mktime: systematically normalize tm_isdst comparisons
[gnulib.git] / ChangeLog
1 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2
3         mktime: systematically normalize tm_isdst comparisons
4         * lib/mktime.c (isdst_differ): New function.
5         (__mktime_internal): Use it systematically for all isdst comparisons.
6         This completes the fix for libc BZ #6723, and removes the need for
7         normalizing tm_isdst.  See
8         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
10
11         mktime: fix some integer overflow issues and sidestep the rest
12
13         This was prompted by a bug report by Benjamin Lindner for MinGW
14         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15         His bug is due to signed integer overflow (0 - INT_MIN), and I
16         I scanned through mktime.c looking for other integer overflow
17         problems, fixing all the bugs I found.
18
19         Although the C Standard says the resulting code is still not safe
20         in the presence of integer overflow, in practice it should be good
21         enough for all real-world two's-complement implementations, except
22         for debugging environments that deliberately trap on integer
23         overflow (e.g., gcc -ftrapv).
24
25         * lib/mktime.c (WRAPV): New macro.
26         (SHR): Also check that long_int and time_t shift right in the
27         usual way, before using the fast-but-unportable method.
28         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
29         used.  The code already assumed two's complement, so there's
30         no need to test for alternatives.  All uses removed.
31         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
32         the C standard.  Problem reported by Rich Felker in
33         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
34         (twos_complement_arithmetic): Also check long_int and time_t.
35         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
36         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
37         (__mktime_internal): Avoid integer overflow with unary subtraction
38         in two instances where -1 - X is an adequate replacement for -X,
39         since the calculations are approximate.
40
41 2011-01-29  Eric Blake  <eblake@redhat.com>
42
43         mktime: avoid infinite loop
44         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
45         type; behavior is still undefined but portable to all known targets.
46         Reported by Rich Felker.
47
48 2011-01-29  Simon Josefsson  <simon@josefsson.org>
49
50         rename, unlink, same-inode: Relicense.
51         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
52         * modules/unlink (License): Likewise.
53         * modules/same-inode (License): Likewise.
54
55 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56
57         mktime: avoid problems on NetBSD 5 / i386
58         * lib/mktime.c (long_int): New type.  This works around a problem
59         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
60         but time_t is 64 bits, and where I expect the existing code is
61         wrong in some cases.
62         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
63         (ydhms_diff): Bring back the compile-time check for wide-enough
64         year and yday.
65
66         mktime: fix misspelling in comment
67         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
68         This merges all recent glibc changes of importance.
69
70 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71
72         move-if-change: cope with concurrent mv of identical file.
73         * build-aux/move-if-change (CMPPROG): Accept environment
74         variable as an override for `cmp'.
75         (usage): Document CMPPROG.
76         Adjust comparison to drop stdout.  Cope with failure of mv if
77         the target file exists and is identical to the source, for
78         parallel builds.
79         Report from H.J. Lu against binutils in PR binutils/12283.
80
81 2011-01-28  Bruce Korb  <bkorb@gnu.org>
82
83         * users.txt: Mention sharutils.
84
85 2011-01-28  Simon Josefsson  <simon@josefsson.org>
86
87         * users.txt: Mention OATH Toolkit.
88
89 2011-01-27  Bruno Haible  <bruno@clisp.org>
90
91         Prepare for supporting FreeBSD 10.
92         * build-aux/config.libpath: Remove handling of freebsd1*.
93
94 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
95
96         Prepare for supporting FreeBSD 10.
97         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
98         match FreeBSD 10.0.
99
100 2011-01-27  Bruno Haible  <bruno@clisp.org>
101
102         vma-iter, get-rusage-as: Add OpenBSD support.
103         * modules/vma-iter (configure.ac): Test for mquery.
104         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
105         * lib/vma-iter.c: Include <sys/mman.h>.
106         (vma_iterate): Add an implementation based on mquery().
107         * lib/resource-ext.h (get_rusage_as): Update comments.
108         * lib/get-rusage-as.c: Likewise.
109         * lib/get-rusage-data.c: Likewise.
110
111 2011-01-26  Karl Berry  <karl@gnu.org>
112
113         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
114         variables to make it easier to override the makeinfo program used.
115
116 2011-01-26  Eric Blake  <eblake@redhat.com>
117
118         fcntl: work around Haiku F_DUPFD bugs
119         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
120         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
121         cloexec bit on duplication.
122         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
123
124 2011-01-26  Bruno Haible  <bruno@clisp.org>
125
126         Enable memory leak tests on AIX.
127         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
128         * tests/test-fprintf-posix3.c (main): Likewise.
129
130 2011-01-26  Bruno Haible  <bruno@clisp.org>
131
132         Tests for module 'get-rusage-data'.
133         * modules/get-rusage-data-tests: New file.
134         * tests/test-get-rusage-data.c: New file.
135
136         New module 'get-rusage-data'.
137         * lib/resource-ext.h (get_rusage_data): New declaration.
138         * lib/get-rusage-data.c: New file.
139         * modules/get-rusage-data: New file.
140
141 2011-01-25  Bruno Haible  <bruno@clisp.org>
142
143         get-rusage-as: Allow for easier testing.
144         * lib/resource-ext.h (get_rusage_as): Add comment.
145         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
146         (main): New function for interactive testing.
147
148 2011-01-25  Bruno Haible  <bruno@clisp.org>
149
150         vma-iter: Treat Haiku like BeOS.
151         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
152         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
153
154 2011-01-25  Eric Blake  <eblake@redhat.com>
155
156         c-stack: fix regression on cygwin when libsigsegv is present
157         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
158
159 2011-01-24  Bruno Haible  <bruno@clisp.org>
160
161         vma-iter: Avoid empty intervals.
162         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
163         on an empty interval.
164
165 2011-01-24  Jim Meyering  <meyering@redhat.com>
166
167         u64: remove unnecessary #include
168         * lib/u64.h: Don't include <stddef.h>.  It was not used.
169
170 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
171
172         Allow the user to avoid the GNULIB_TEST_* macros.
173         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
174
175 2011-01-23  Bruno Haible  <bruno@clisp.org>
176
177         New module 'vma-iter'.
178         * lib/vma-iter.h: New file.
179         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
180         * modules/vma-iter: New file.
181         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
182         for get_rusage_as_via_iterator.
183         (vma_iterate_callback): New function.
184         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
185         * modules/get-rusage-as (Depends-on): Add vma-iter.
186
187 2011-01-23  Bruno Haible  <bruno@clisp.org>
188
189         uninorm: Tweak includes.
190         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
191         Reported by Jim Meyering.
192
193 2011-01-23  Bruno Haible  <bruno@clisp.org>
194
195         get-rusage-as: Improve on NetBSD.
196         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
197         /proc, like on FreeBSD.
198
199 2011-01-23  Jim Meyering  <meyering@redhat.com>
200
201         xreadlink.h: remove unnecessary #include
202         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
203
204         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
205         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
206
207 2011-01-23  Bruno Haible  <bruno@clisp.org>
208
209         get-rusage-as: Fix bug.
210         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
211         original limit when aborting the first loop.
212
213 2011-01-23  Bruno Haible  <bruno@clisp.org>
214
215         wctype: Ensure valid C syntax.
216         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
217         unconditionally, instead of gl_NEXT_HEADERS conditionally.
218
219 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
220
221         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
222         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
223         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
224         as they are needed only for configure's test case.
225         This removes two unnecessary symbols from config.h.
226
227         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
228         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
230         AC_CHECK_HEADERS_ONCE on a header that we also invoke
231         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
232         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
233         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
234         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
235         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
236         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
237         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
238         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
239         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
240         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
241         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
242         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
243         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
244         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
245
246 2011-01-21  Eric Blake  <eblake@redhat.com>
247
248         maintainer-makefile: work with older git for submodule check
249         * top/maint.mk (public-submodule-commit): Rewrite to avoid
250         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
251         Reported by Matthias Bolte.
252
253         bootstrap: minor portability fixes
254         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
255         (usage): Omit leading capital and trailing . on help phrases, per
256         GNU Coding Standards.
257         (check_versions, top level): Prefix messages with script name.
258
259 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
260
261         bootstrap: support --no-git option
262         * build-aux/bootstrap: Add --no-git option, to be used when
263         --gnulib-srcdir points to the exact desired checkout.
264
265 2011-01-21  Eric Blake  <eblake@redhat.com>
266
267         strerror_r-posix: work with glibc 2.13
268         * lib/strerror_r.c (strerror_r): Fix return type.
269
270 2011-01-21  Pádraig Brady  <P@draigBrady.com>
271             Bruno Haible  <bruno@clisp.org>
272
273         uN_strstr: New unit tests.
274         * modules/unistr/u8-strstr-tests: New file.
275         * modules/unistr/u16-strstr-tests: New file.
276         * modules/unistr/u32-strstr-tests: New file.
277         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
278         * tests/unistr/test-u8-strstr.c: New file.
279         * tests/unistr/test-u16-strstr.c: New file.
280         * tests/unistr/test-u32-strstr.c: New file.
281
282 2011-01-21  Pádraig Brady  <P@draigBrady.com>
283             Bruno Haible  <bruno@clisp.org>
284
285         Make uN_strstr functions O(n) worst-case.
286         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
287         16-bit and 32-bit unit cases, use the unibyte algorithm from
288         lib/mbsstr.c.
289         * lib/unistr/u8-strstr.c: Include <string.h>.
290         (UNIT_IS_UINT8_T): New macro.
291         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
292         (U_STRLEN, U_STRNLEN): New macros.
293         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
294         (U_STRLEN, U_STRNLEN): New macros.
295         * modules/unistr/u8-strstr (Depends-on): Add strstr.
296         (configure.ac): Update required libunistring version.
297         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
298         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
299         malloca.
300         (configure.ac): Update required libunistring version.
301         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
302         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
303         malloca.
304         (configure.ac): Update required libunistring version.
305
306 2011-01-21  Pádraig Brady  <P@draigBrady.com>
307             Bruno Haible  <bruno@clisp.org>
308
309         Prepare for faster uN_strstr functions.
310         * lib/str-kmp.h: Support definable UNITs.
311         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
312         needle_len argument.
313         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
314         * lib/mbscasestr.c (mbscasestr): Likewise.
315
316 2011-01-21  Pádraig Brady <P@draigBrady.com>
317
318         malloca-tests: make faster by unsetting MALLOC_PERTURB_
319         * tests/test-malloca.c (main): Unset the environment variable
320         to greatly speed up the test.
321         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
322         * modules/malloca-tests: Depend on unsetenv.
323
324 2011-01-21  Pádraig Brady <P@draigBrady.com>
325
326         ignore-value: remove stdint dependency
327         * lib/ignore-value.h: Remove <stdint.h>
328         * modules/ignore-value: Remove stdint dependency.
329
330 2011-01-21  Jim Meyering  <meyering@redhat.com>
331
332         maint.mk: adjust variable name to be consistent with other gl_ vars
333         * top/maint.mk (gl_public_submodule_commit): Rename the variable
334         to be lower case.
335
336 2011-01-20  Jim Meyering  <meyering@redhat.com>
337
338         maint.mk: make "check" depend on public-submodule-commit by default
339         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
340
341 2011-01-20  Bruno Haible  <bruno@clisp.org>
342
343         mbfile, mbiter: Complete change from 2008-12-21.
344         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
345         * m4/mbiter.m4 (gl_MBITER): Likewise.
346
347 2011-01-20  Jim Meyering  <meyering@redhat.com>
348
349         init.sh: insert space between each function name and "()"
350         * tests/init.sh: Make it a little easier to see that a function's
351         name is "warn_", and not "warn" when looking at the first part of
352         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
353
354 2011-01-20  Jim Meyering  <meyering@redhat.com>
355
356         mountlist: clean up code formatting
357         * lib/mountlist.c (read_file_system_list): Split a long line,
358         correct bracing style, use NULL in place of "(struct statfs *)0",
359         don't parenthesize return value, add spaces around "=" and after
360         ";-in-for-stmt".
361
362 2011-01-14  Markus Duft <mduft@gentoo.org>
363
364         mountlist: add support for Interix
365         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
366         Apply statvfs to all entries of /dev/fs.
367         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
368         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
369
370 2011-01-20  Jim Meyering  <meyering@redhat.com>
371
372         maint.mk: improve the public-submodule-commit rule
373         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
374         to suppress printing of its commands... unless V=1.
375         Add git submodule's --quiet option to suppress printing of e.g.,
376         "Entering gnulib" output.
377         "cd" into $(srcdir) before running git submodule.
378
379 2011-01-20  Bruno Haible  <bruno@clisp.org>
380
381         include_next: Fix bug introduced on 2011-01-18.
382         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
383         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
384         ac_cv_header_... variable if the second argument is not 'check'.
385         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
386         gl_NEXT_HEADERS_INTERNAL.
387
388 2011-01-20  Bruno Haible  <bruno@clisp.org>
389
390         Allow the user to avoid the GNULIB_TEST_* macros.
391         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
392         Suggested by Paul Eggert.
393
394 2011-01-14  Jim Meyering  <meyering@redhat.com>
395
396         bootstrap: avoid failure when there is no .gitmodules file
397         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
398         has been assigned to, even when its value is the empty string.
399         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
400         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
401         Reported by John W. Eaton <jwe@gnu.org>.
402
403 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
404
405         assume <ctype.h>, ..., <time.h> exist
406         For years gnulib has been assuming the existence of the headers
407         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
408         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
409         them, since they don't appear to be needed.
410         * README (Portability guidelines): Document this.
411         * lib/flock.c: Assume <fcntl.h> exists.
412         * lib/regex_internal.h: Assume <locale.h> exists.
413         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
414         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
415         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
416         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
417         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
418         * m4/regex.m4 (gl_REGEX): Likewise.
419         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
420         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
421         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
422         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
423         * tests/test-argp.c: Likewise.
424         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
425
426         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
427         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
428         AA_APPLE_UNIVERSAL_BUILD.  See
429         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
430         * NEWS: Document this.
431
432 2011-01-19  Eric Blake  <eblake@redhat.com>
433
434         c-stack: assume stack overflow if SA_SIGINFO unsupported
435         * lib/c-stack.c (SIGACTION_WORKS): Rename...
436         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
437         sigaction will work.
438         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
439         behavior match Linux.
440         * tests/test-c-stack.c (main): Prefer NULL for pointers.
441
442         stdbool-tests: accomodate Haiku
443         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
444
445         binary-io: fix O_TEXT on Haiku
446         * modules/binary-io (Depends-on): Add fcntl-h.
447         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
448         than blindly undefining O_TEXT.
449         Reported by Scott McCreary.
450
451 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
452
453         include_next: do not check for standard headers like stddef.h
454
455         I found this problem when modifying Emacs to use gnulib.
456         I noticed that it added HAVE_STDDEF_H to config.h, even though
457         gnulib always assumes <stddef.h> exists as per README and this
458         symbol is unnecessary.
459         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
460         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
461         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
462         faster for headers like stddef.h that are known to exist.
463         (gl_CHECK_NEXT_HEADERS): Use it.
464         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
465         rather than gl_CHECK_NEXT_HEADERS.
466         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
467         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
468
469 2011-01-18  Eric Blake  <eblake@redhat.com>
470
471         ansi-c++-opt: skip C++ dependency style if C++ is unused
472         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
473         tests when we know C++ compilation is not desired.
474         Reported by Scott McCreary.
475
476 2011-01-18  Bruno Haible  <bruno@clisp.org>
477
478         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
479         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
480         (main): Perform test also when getrlimit and setrlimit don't exist or
481         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
482         limiting the address space size using setrlimit, compare the address
483         space size before and after the the test.
484         * tests/test-dprintf-posix2.c: Likewise.
485         * tests/test-fprintf-posix3.sh: Update skip messages.
486         * tests/test-dprintf-posix2.sh: Likewise.
487         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
488         * modules/dprintf-posix-tests (Depends-on): Likewise.
489         Reported by Bruce Korb <bkorb@gnu.org> and
490         Gary V. Vaughan <gary@gnu.org>.
491
492 2011-01-18  Bruno Haible  <bruno@clisp.org>
493
494         get-rusage-as: Improvement for Cygwin.
495         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
496         areas that are merely reserved.
497
498 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
499
500         strftime: remove dependencies on multibyte modules
501
502         strftime depended on mbrlen, mbsinit, and wchar, but these modules
503         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
504         only if __osf__ is defined, and I suspect OSF doesn't need these
505         other modules.  If my guess is wrong, we'll need to come up with a
506         variant of strftime that doesn't need the multibyte modules.
507
508         I discovered this problem when attempting modify Emacs to use the
509         strftime module.  With the previous gnulib, this caused Emacs to
510         need 31 new files, ranging from lib/config.charset to
511         m4/wint_t.m4.  This was overkill and I expect would be offputting
512         to the Emacs maintainers.  After this change, only 6 new files are
513         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
514         stdbool.m4, and tm_gmtoff.m4.
515
516         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
517         Suggested by Bruno Haible in
518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
519         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
520         and do not check for wchar.h.
521         * modules/strftime (Files): Remove m4/mbstate_t.m4.
522         (Depends-on): Remove mbrlen, mbsinit, wchar.
523
524 2011-01-18  Bruno Haible  <bruno@clisp.org>
525
526         Tests for module 'get-rusage-as'.
527         * modules/get-rusage-as-tests: New file.
528         * tests/test-get-rusage-as.c: New file.
529
530         New module 'get-rusage-as'.
531         * modules/get-rusage-as: New file.
532         * lib/resource-ext.h: New file.
533         * lib/get-rusage-as.c: New file.
534
535 2011-01-17  Eric Blake  <eblake@redhat.com>
536
537         sigaction: relax license from LGPLv3+ to LGPLv2+
538         * modules/sigaction (License): Relax to LGPLv2+.
539
540 2011-01-14  Bruno Haible  <bruno@clisp.org>
541
542         filemode: Make function declarations usable in C++ mode.
543         * lib/filemode.h: Enclose function declarations in extern "C" block.
544         Reported by John W. Eaton <jwe@gnu.org>.
545
546 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
547
548         save-cwd: no longer include "xgetcwd.h"
549         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
550         This avoids a compilation failure in projects that use save-cwd
551         without also using the xgetcwd module.
552
553 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
554
555         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
556         This is so that a program like Emacs, which needs only dtoastr,
557         does not have to bother with distributing and compiling ftoastr
558         and ldtoastr.
559         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
560         * modules/dtoastr, modules/ldtoastr: New files.
561         * modules/ftoastr: Now works just for 'float'.
562         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
563         (Makefile.am): Remove ftoastr.h (not needed and no effect),
564         dtoastr.c, ldtoastr.c.
565
566 2011-01-11  Jim Meyering  <meyering@redhat.com>
567
568         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
569         There is no need to work around the lack of the fchdir function,
570         since gnulib can now provide a replacement when required.
571         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
572         * modules/save-cwd (Depends-on): Add fchdir.
573
574 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
575
576         openat, save-cwd: avoid xmalloc
577
578         This removes a direct (but undocumented) dependency of openat on
579         xalloc, along with an indirect dependency via save-cwd.  It also
580         removes a dependency of save-cwd on xgetcwd, and thereby
581         indirectly on xalloc.  This change causes the openat substitute
582         to fall back on save_cwd when memory is tight, and for save_cwd to
583         fail instead of dying when memory is tight, but that's good enough.
584
585         * lib/openat-proc.c: Include stdlib.h (for malloc), not
586         xalloc.h (for xmalloc).
587         (openat_proc_name): Use malloc, not xmalloc.
588         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
589         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
590
591         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
592         This avoids heap allocation for file names whose lengths are in
593         the range 512..1023, with the upper bound increasing to at most
594         4031 depending on the platform's PATH_MAX.  (We do not want
595         pathmax.h here as it might supply a non-constant PATH_MAX.)
596         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
597         Perhaps they should be moved to malloca.h?
598         (OPENAT_BUFFER_SIZE): Use them.
599
600 2011-01-10  Bruno Haible  <bruno@clisp.org>
601
602         doc: Update users.txt.
603         * users.txt: Add recutils.
604
605 2011-01-09  Karl Berry  <karl@gnu.org>
606
607         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
608
609         * doc/configmake.texi: New file.
610         * doc/gnulib.texi: Include it.
611         * modules/configmake: Move documentation from here.
612
613 2011-01-09  Bruno Haible  <bruno@clisp.org>
614
615         Update to Unicode 6.0.0.
616         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
617         (get_lbp): Update for Unicode 6.0.0.
618         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
619         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
620         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
621         U+11001, U+11038..U+11046. Remove U+06DE.
622         (uc_width): Fix bounds of planes.
623         * tests/uniwidth/test-uc_width2.sh: Same updates as in
624         lib/uniwidth/width.c.
625         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
626         trailing whitespace removed.
627         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
628         without comments, but with the original copyright notice.
629         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
630         * lib/unicase/ignorable.h: Likewise.
631         * lib/unicase/tocasefold.h: Likewise.
632         * lib/unicase/tolower.h: Likewise.
633         * lib/unicase/totitle.h: Likewise.
634         * lib/unicase/toupper.h: Likewise.
635         * lib/unictype/bidi_of.h: Likewise.
636         * lib/unictype/blocks.h: Likewise.
637         * lib/unictype/categ_C.h: Likewise.
638         * lib/unictype/categ_Cn.h: Likewise.
639         * lib/unictype/categ_L.h: Likewise.
640         * lib/unictype/categ_Ll.h: Likewise.
641         * lib/unictype/categ_Lm.h: Likewise.
642         * lib/unictype/categ_Lo.h: Likewise.
643         * lib/unictype/categ_Lu.h: Likewise.
644         * lib/unictype/categ_M.h: Likewise.
645         * lib/unictype/categ_Mc.h: Likewise.
646         * lib/unictype/categ_Me.h: Likewise.
647         * lib/unictype/categ_Mn.h: Likewise.
648         * lib/unictype/categ_N.h: Likewise.
649         * lib/unictype/categ_Nd.h: Likewise.
650         * lib/unictype/categ_No.h: Likewise.
651         * lib/unictype/categ_P.h: Likewise.
652         * lib/unictype/categ_Po.h: Likewise.
653         * lib/unictype/categ_S.h: Likewise.
654         * lib/unictype/categ_Sc.h: Likewise.
655         * lib/unictype/categ_Sk.h: Likewise.
656         * lib/unictype/categ_Sm.h: Likewise.
657         * lib/unictype/categ_So.h: Likewise.
658         * lib/unictype/categ_of.h: Likewise.
659         * lib/unictype/combining.h: Likewise.
660         * lib/unictype/ctype_alnum.h: Likewise.
661         * lib/unictype/ctype_alpha.h: Likewise.
662         * lib/unictype/ctype_graph.h: Likewise.
663         * lib/unictype/ctype_lower.h: Likewise.
664         * lib/unictype/ctype_print.h: Likewise.
665         * lib/unictype/ctype_punct.h: Likewise.
666         * lib/unictype/ctype_upper.h: Likewise.
667         * lib/unictype/decdigit.h: Likewise.
668         * lib/unictype/digit.h: Likewise.
669         * lib/unictype/numeric.h: Likewise.
670         * lib/unictype/pr_alphabetic.h: Likewise.
671         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
672         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
673         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
674         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
675         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
676         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
677         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
678         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
679         * lib/unictype/pr_case_ignorable.h: Likewise.
680         * lib/unictype/pr_cased.h: Likewise.
681         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
682         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
683         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
684         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
685         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
686         * lib/unictype/pr_combining.h: Likewise.
687         * lib/unictype/pr_composite.h: Likewise.
688         * lib/unictype/pr_currency_symbol.h: Likewise.
689         * lib/unictype/pr_decimal_digit.h: Likewise.
690         * lib/unictype/pr_deprecated.h: Likewise.
691         * lib/unictype/pr_format_control.h: Likewise.
692         * lib/unictype/pr_grapheme_base.h: Likewise.
693         * lib/unictype/pr_grapheme_extend.h: Likewise.
694         * lib/unictype/pr_grapheme_link.h: Likewise.
695         * lib/unictype/pr_id_continue.h: Likewise.
696         * lib/unictype/pr_id_start.h: Likewise.
697         * lib/unictype/pr_ideographic.h: Likewise.
698         * lib/unictype/pr_lowercase.h: Likewise.
699         * lib/unictype/pr_math.h: Likewise.
700         * lib/unictype/pr_numeric.h: Likewise.
701         * lib/unictype/pr_other_alphabetic.h: Likewise.
702         * lib/unictype/pr_other_id_continue.h: Likewise.
703         * lib/unictype/pr_other_math.h: Likewise.
704         * lib/unictype/pr_punctuation.h: Likewise.
705         * lib/unictype/pr_sentence_terminal.h: Likewise.
706         * lib/unictype/pr_terminal_punctuation.h: Likewise.
707         * lib/unictype/pr_unassigned_code_value.h: Likewise.
708         * lib/unictype/pr_unified_ideograph.h: Likewise.
709         * lib/unictype/pr_uppercase.h: Likewise.
710         * lib/unictype/pr_xid_continue.h: Likewise.
711         * lib/unictype/pr_xid_start.h: Likewise.
712         * lib/unictype/scripts.h: Likewise.
713         * lib/unictype/scripts_byname.gperf: Likewise.
714         * lib/unictype/sy_java_ident.h: Likewise.
715         * lib/unigbrk/gbrkprop.h: Likewise.
716         * lib/unilbrk/lbrkprop1.h: Likewise.
717         * lib/unilbrk/lbrkprop2.h: Likewise.
718         * lib/uninorm/decomposition-table2.h: Likewise.
719         * lib/uniwbrk/wbrkprop.h: Likewise.
720         * tests/unicase/test-cased.c: Likewise.
721         * tests/unicase/test-ignorable.c: Likewise.
722         * tests/unicase/test-uc_tolower.c: Likewise.
723         * tests/unicase/test-uc_totitle.c: Likewise.
724         * tests/unicase/test-uc_toupper.c: Likewise.
725         * tests/unictype/test-categ_C.c: Likewise.
726         * tests/unictype/test-categ_Cn.c: Likewise.
727         * tests/unictype/test-categ_L.c: Likewise.
728         * tests/unictype/test-categ_Ll.c: Likewise.
729         * tests/unictype/test-categ_Lm.c: Likewise.
730         * tests/unictype/test-categ_Lo.c: Likewise.
731         * tests/unictype/test-categ_Lu.c: Likewise.
732         * tests/unictype/test-categ_M.c: Likewise.
733         * tests/unictype/test-categ_Mc.c: Likewise.
734         * tests/unictype/test-categ_Me.c: Likewise.
735         * tests/unictype/test-categ_Mn.c: Likewise.
736         * tests/unictype/test-categ_N.c: Likewise.
737         * tests/unictype/test-categ_Nd.c: Likewise.
738         * tests/unictype/test-categ_No.c: Likewise.
739         * tests/unictype/test-categ_P.c: Likewise.
740         * tests/unictype/test-categ_Po.c: Likewise.
741         * tests/unictype/test-categ_S.c: Likewise.
742         * tests/unictype/test-categ_Sc.c: Likewise.
743         * tests/unictype/test-categ_Sk.c: Likewise.
744         * tests/unictype/test-categ_Sm.c: Likewise.
745         * tests/unictype/test-categ_So.c: Likewise.
746         * tests/unictype/test-ctype_alnum.c: Likewise.
747         * tests/unictype/test-ctype_alpha.c: Likewise.
748         * tests/unictype/test-ctype_graph.c: Likewise.
749         * tests/unictype/test-ctype_lower.c: Likewise.
750         * tests/unictype/test-ctype_print.c: Likewise.
751         * tests/unictype/test-ctype_punct.c: Likewise.
752         * tests/unictype/test-ctype_upper.c: Likewise.
753         * tests/unictype/test-decdigit.h: Likewise.
754         * tests/unictype/test-digit.h: Likewise.
755         * tests/unictype/test-numeric.h: Likewise.
756         * tests/unictype/test-pr_alphabetic.c: Likewise.
757         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
758         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
759         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
760         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
761         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
762         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
763         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
764         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
765         * tests/unictype/test-pr_case_ignorable.c: Likewise.
766         * tests/unictype/test-pr_cased.c: Likewise.
767         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
768         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
769         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
770         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
771         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
772         * tests/unictype/test-pr_combining.c: Likewise.
773         * tests/unictype/test-pr_composite.c: Likewise.
774         * tests/unictype/test-pr_currency_symbol.c: Likewise.
775         * tests/unictype/test-pr_decimal_digit.c: Likewise.
776         * tests/unictype/test-pr_deprecated.c: Likewise.
777         * tests/unictype/test-pr_format_control.c: Likewise.
778         * tests/unictype/test-pr_grapheme_base.c: Likewise.
779         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
780         * tests/unictype/test-pr_grapheme_link.c: Likewise.
781         * tests/unictype/test-pr_id_continue.c: Likewise.
782         * tests/unictype/test-pr_id_start.c: Likewise.
783         * tests/unictype/test-pr_ideographic.c: Likewise.
784         * tests/unictype/test-pr_lowercase.c: Likewise.
785         * tests/unictype/test-pr_math.c: Likewise.
786         * tests/unictype/test-pr_numeric.c: Likewise.
787         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
788         * tests/unictype/test-pr_other_id_continue.c: Likewise.
789         * tests/unictype/test-pr_other_math.c: Likewise.
790         * tests/unictype/test-pr_punctuation.c: Likewise.
791         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
792         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
793         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
794         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
795         * tests/unictype/test-pr_uppercase.c: Likewise.
796         * tests/unictype/test-pr_xid_continue.c: Likewise.
797         * tests/unictype/test-pr_xid_start.c: Likewise.
798         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
799         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
800         changes.
801         * lib/unictype/categ_Cc.h: Likewise.
802         * lib/unictype/categ_Cf.h: Likewise.
803         * lib/unictype/categ_Co.h: Likewise.
804         * lib/unictype/categ_Cs.h: Likewise.
805         * lib/unictype/categ_Lt.h: Likewise.
806         * lib/unictype/categ_Nl.h: Likewise.
807         * lib/unictype/categ_Pc.h: Likewise.
808         * lib/unictype/categ_Pd.h: Likewise.
809         * lib/unictype/categ_Pe.h: Likewise.
810         * lib/unictype/categ_Pf.h: Likewise.
811         * lib/unictype/categ_Pi.h: Likewise.
812         * lib/unictype/categ_Ps.h: Likewise.
813         * lib/unictype/categ_Z.h: Likewise.
814         * lib/unictype/categ_Zl.h: Likewise.
815         * lib/unictype/categ_Zp.h: Likewise.
816         * lib/unictype/categ_Zs.h: Likewise.
817         * lib/unictype/ctype_blank.h: Likewise.
818         * lib/unictype/ctype_cntrl.h: Likewise.
819         * lib/unictype/ctype_digit.h: Likewise.
820         * lib/unictype/ctype_space.h: Likewise.
821         * lib/unictype/ctype_xdigit.h: Likewise.
822         * lib/unictype/mirror.h: Likewise.
823         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
824         * lib/unictype/pr_bidi_block_separator.h: Likewise.
825         * lib/unictype/pr_bidi_common_separator.h: Likewise.
826         * lib/unictype/pr_bidi_control.h: Likewise.
827         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
828         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
829         * lib/unictype/pr_bidi_european_digit.h: Likewise.
830         * lib/unictype/pr_bidi_pdf.h: Likewise.
831         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
832         * lib/unictype/pr_bidi_whitespace.h: Likewise.
833         * lib/unictype/pr_dash.h: Likewise.
834         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
835         * lib/unictype/pr_diacritic.h: Likewise.
836         * lib/unictype/pr_extender.h: Likewise.
837         * lib/unictype/pr_hex_digit.h: Likewise.
838         * lib/unictype/pr_hyphen.h: Likewise.
839         * lib/unictype/pr_ids_binary_operator.h: Likewise.
840         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
841         * lib/unictype/pr_ignorable_control.h: Likewise.
842         * lib/unictype/pr_iso_control.h: Likewise.
843         * lib/unictype/pr_join_control.h: Likewise.
844         * lib/unictype/pr_left_of_pair.h: Likewise.
845         * lib/unictype/pr_line_separator.h: Likewise.
846         * lib/unictype/pr_logical_order_exception.h: Likewise.
847         * lib/unictype/pr_non_break.h: Likewise.
848         * lib/unictype/pr_not_a_character.h: Likewise.
849         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
850         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
851         * lib/unictype/pr_other_id_start.h: Likewise.
852         * lib/unictype/pr_other_lowercase.h: Likewise.
853         * lib/unictype/pr_other_uppercase.h: Likewise.
854         * lib/unictype/pr_paired_punctuation.h: Likewise.
855         * lib/unictype/pr_paragraph_separator.h: Likewise.
856         * lib/unictype/pr_pattern_syntax.h: Likewise.
857         * lib/unictype/pr_pattern_white_space.h: Likewise.
858         * lib/unictype/pr_private_use.h: Likewise.
859         * lib/unictype/pr_quotation_mark.h: Likewise.
860         * lib/unictype/pr_radical.h: Likewise.
861         * lib/unictype/pr_soft_dotted.h: Likewise.
862         * lib/unictype/pr_space.h: Likewise.
863         * lib/unictype/pr_titlecase.h: Likewise.
864         * lib/unictype/pr_variation_selector.h: Likewise.
865         * lib/unictype/pr_white_space.h: Likewise.
866         * lib/unictype/pr_zero_width.h: Likewise.
867         * lib/unictype/sy_c_ident.h: Likewise.
868         * lib/unictype/sy_c_whitespace.h: Likewise.
869         * lib/unictype/sy_java_whitespace.h: Likewise.
870         * lib/uninorm/composition-table.gperf: Likewise.
871         * lib/uninorm/decomposition-table1.h: Likewise.
872         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
873         LB8.
874         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
875         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
876         * modules/unictype/*: Bump version number of expected libunistring
877         version.
878
879 2011-01-09  Bruno Haible  <bruno@clisp.org>
880
881         Update to Unicode 5.2.0.
882         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
883         trailing whitespace removed.
884
885 2011-01-09  Bruno Haible  <bruno@clisp.org>
886
887         New Unicode character properties, from Unicode 5.2.0.
888         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
889         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
890         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
891         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
892         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
893         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
894         uc_is_property_cased, uc_is_property_case_ignorable,
895         uc_is_property_changes_when_lowercased,
896         uc_is_property_changes_when_uppercased,
897         uc_is_property_changes_when_titlecased,
898         uc_is_property_changes_when_casefolded,
899         uc_is_property_changes_when_casemapped): New declarations.
900         * lib/unictype/pr_byname.gperf: Add the new properties.
901         * modules/unictype/property-byname (Depends-on): Depend on the new
902         properties modules.
903         * modules/unictype/property-all (Depends-on): Likewise.
904         * MODULES.html.sh (Unicode string functions): Add
905         unictype/property-case-ignorable, unictype/property-cased,
906         unictype/property-changes-when-casefolded,
907         unictype/property-changes-when-casemapped,
908         unictype/property-changes-when-lowercased,
909         unictype/property-changes-when-titlecased,
910         unictype/property-changes-when-uppercased.
911
912         New module 'unictype/property-changes-when-casemapped'.
913         * modules/unictype/property-changes-when-casemapped: New file.
914         * lib/unictype/pr_changes_when_casemapped.c: New file.
915         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
916         generated by gen-uni-tables.
917         * modules/unictype/property-changes-when-casemapped-tests: New file.
918         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
919         automatically generated by gen-uni-tables.
920
921         New module 'unictype/property-changes-when-casefolded'.
922         * modules/unictype/property-changes-when-casefolded: New file.
923         * lib/unictype/pr_changes_when_casefolded.c: New file.
924         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
925         generated by gen-uni-tables.
926         * modules/unictype/property-changes-when-casefolded-tests: New file.
927         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
928         automatically generated by gen-uni-tables.
929
930         New module 'unictype/property-changes-when-titlecased'.
931         * modules/unictype/property-changes-when-titlecased: New file.
932         * lib/unictype/pr_changes_when_titlecased.c: New file.
933         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
934         generated by gen-uni-tables.
935         * modules/unictype/property-changes-when-titlecased-tests: New file.
936         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
937         automatically generated by gen-uni-tables.
938
939         New module 'unictype/property-changes-when-uppercased'.
940         * modules/unictype/property-changes-when-uppercased: New file.
941         * lib/unictype/pr_changes_when_uppercased.c: New file.
942         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
943         generated by gen-uni-tables.
944         * modules/unictype/property-changes-when-uppercased-tests: New file.
945         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
946         automatically generated by gen-uni-tables.
947
948         New module 'unictype/property-changes-when-lowercased'.
949         * modules/unictype/property-changes-when-lowercased: New file.
950         * lib/unictype/pr_changes_when_lowercased.c: New file.
951         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
952         generated by gen-uni-tables.
953         * modules/unictype/property-changes-when-lowercased-tests: New file.
954         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
955         automatically generated by gen-uni-tables.
956
957         New module 'unictype/property-case-ignorable'.
958         * modules/unictype/property-case-ignorable: New file.
959         * lib/unictype/pr_case_ignorable.c: New file.
960         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
961         by gen-uni-tables.
962         * modules/unictype/property-case-ignorable-tests: New file.
963         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
964         generated by gen-uni-tables.
965
966         New module 'unictype/property-cased'.
967         * modules/unictype/property-cased: New file.
968         * lib/unictype/pr_cased.c: New file.
969         * lib/unictype/pr_cased.h: New file, automatically generated by
970         gen-uni-tables.
971         * modules/unictype/property-cased-tests: New file.
972         * tests/unictype/test-pr_cased.c: New file, automatically generated by
973         gen-uni-tables.
974
975 2011-01-09  Bruno Haible  <bruno@clisp.org>
976
977         Update to Unicode 5.2.0.
978         * lib/gen-uni-tables.c (output_predicate, output_category,
979         output_combclass, output_bidi_category, output_decimal_digit_test,
980         output_decimal_digit, output_digit_test, output_digit,
981         output_numeric_test, output_numeric, output_mirror, output_scripts,
982         output_scripts_byname, output_blocks, output_ident_category): Fix
983         comment header.
984         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
985         get_wbp.
986         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
987         items.
988         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
989         Changes_When_Lowercased, Changes_When_Uppercased,
990         Changes_When_Titlecased, Changes_When_Casefolded,
991         Changes_When_Casemapped.
992         (is_property_alphabetic, is_property_default_ignorable_code_point):
993         Update for Unicode 5.2.0.
994         (is_property_cased, is_property_case_ignorable,
995         is_property_changes_when_lowercased,
996         is_property_changes_when_uppercased,
997         is_property_changes_when_titlecased,
998         is_property_changes_when_casefolded,
999         is_property_changes_when_casemapped): New functions.
1000         (output_properties): Output also the properties cased, case_ignorable,
1001         changes_when_lowercased, changes_when_uppercased,
1002         changes_when_titlecased, changes_when_casefolded,
1003         changes_when_casemapped.
1004         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
1005         Unicode TR#11 revision 17 -> 19.
1006         (LBP_CP): New enumeration value.
1007         (LBP_*): Adjust values accordingly.
1008         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1009         TR#14 revision 22 -> 24.
1010         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
1011         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
1012         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1013         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
1014         is_WBP_MIDLETTER.
1015         (output_composition_tables): Allow for 24 bits instead of 16 bits in
1016         the code1 and code2 of each composition rule.
1017         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
1018         * lib/unicase/ignorable.h: Likewise.
1019         * lib/unicase/tocasefold.h: Likewise.
1020         * lib/unicase/tolower.h: Likewise.
1021         * lib/unicase/totitle.h: Likewise.
1022         * lib/unicase/toupper.h: Likewise.
1023         * lib/unictype/bidi_of.h: Likewise.
1024         * lib/unictype/blocks.h: Likewise.
1025         * lib/unictype/categ_C.h: Likewise.
1026         * lib/unictype/categ_Cf.h: Likewise.
1027         * lib/unictype/categ_Cn.h: Likewise.
1028         * lib/unictype/categ_L.h: Likewise.
1029         * lib/unictype/categ_Ll.h: Likewise.
1030         * lib/unictype/categ_Lm.h: Likewise.
1031         * lib/unictype/categ_Lo.h: Likewise.
1032         * lib/unictype/categ_Lu.h: Likewise.
1033         * lib/unictype/categ_M.h: Likewise.
1034         * lib/unictype/categ_Mc.h: Likewise.
1035         * lib/unictype/categ_Mn.h: Likewise.
1036         * lib/unictype/categ_N.h: Likewise.
1037         * lib/unictype/categ_Nd.h: Likewise.
1038         * lib/unictype/categ_Nl.h: Likewise.
1039         * lib/unictype/categ_No.h: Likewise.
1040         * lib/unictype/categ_P.h: Likewise.
1041         * lib/unictype/categ_Pd.h: Likewise.
1042         * lib/unictype/categ_Po.h: Likewise.
1043         * lib/unictype/categ_S.h: Likewise.
1044         * lib/unictype/categ_Sc.h: Likewise.
1045         * lib/unictype/categ_So.h: Likewise.
1046         * lib/unictype/categ_of.h: Likewise.
1047         * lib/unictype/combining.h: Likewise.
1048         * lib/unictype/ctype_alnum.h: Likewise.
1049         * lib/unictype/ctype_alpha.h: Likewise.
1050         * lib/unictype/ctype_graph.h: Likewise.
1051         * lib/unictype/ctype_lower.h: Likewise.
1052         * lib/unictype/ctype_print.h: Likewise.
1053         * lib/unictype/ctype_punct.h: Likewise.
1054         * lib/unictype/ctype_upper.h: Likewise.
1055         * lib/unictype/decdigit.h: Likewise.
1056         * lib/unictype/digit.h: Likewise.
1057         * lib/unictype/numeric.h: Likewise.
1058         * lib/unictype/pr_alphabetic.h: Likewise.
1059         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1060         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1061         * lib/unictype/pr_bidi_european_digit.h: Likewise.
1062         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1063         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1064         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1065         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1066         * lib/unictype/pr_combining.h: Likewise.
1067         * lib/unictype/pr_composite.h: Likewise.
1068         * lib/unictype/pr_currency_symbol.h: Likewise.
1069         * lib/unictype/pr_dash.h: Likewise.
1070         * lib/unictype/pr_decimal_digit.h: Likewise.
1071         * lib/unictype/pr_deprecated.h: Likewise.
1072         * lib/unictype/pr_diacritic.h: Likewise.
1073         * lib/unictype/pr_extender.h: Likewise.
1074         * lib/unictype/pr_grapheme_base.h: Likewise.
1075         * lib/unictype/pr_grapheme_extend.h: Likewise.
1076         * lib/unictype/pr_grapheme_link.h: Likewise.
1077         * lib/unictype/pr_id_continue.h: Likewise.
1078         * lib/unictype/pr_id_start.h: Likewise.
1079         * lib/unictype/pr_ideographic.h: Likewise.
1080         * lib/unictype/pr_ignorable_control.h: Likewise.
1081         * lib/unictype/pr_logical_order_exception.h: Likewise.
1082         * lib/unictype/pr_lowercase.h: Likewise.
1083         * lib/unictype/pr_numeric.h: Likewise.
1084         * lib/unictype/pr_other_alphabetic.h: Likewise.
1085         * lib/unictype/pr_punctuation.h: Likewise.
1086         * lib/unictype/pr_sentence_terminal.h: Likewise.
1087         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1088         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1089         * lib/unictype/pr_unified_ideograph.h: Likewise.
1090         * lib/unictype/pr_uppercase.h: Likewise.
1091         * lib/unictype/pr_xid_continue.h: Likewise.
1092         * lib/unictype/pr_xid_start.h: Likewise.
1093         * lib/unictype/pr_zero_width.h: Likewise.
1094         * lib/unictype/scripts.h: Likewise.
1095         * lib/unictype/scripts_byname.gperf: Likewise.
1096         * lib/unictype/sy_java_ident.h: Likewise.
1097         * lib/unigbrk/gbrkprop.h: Likewise.
1098         * lib/unilbrk/lbrkprop1.h: Likewise.
1099         * lib/unilbrk/lbrkprop2.h: Likewise.
1100         * lib/unilbrk/lbrktables.h: Likewise.
1101         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
1102         LBP_CP. Implement rule LB30.
1103         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
1104         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
1105         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
1106         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
1107         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
1108         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
1109         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
1110         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
1111         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
1112         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
1113         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
1114         bits instead of 16 bits in the code1 and code2 of each composition
1115         rule.
1116         (uc_composition): Update for Unicode 5.2.0.
1117         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
1118         * lib/uninorm/decomposition-table2.h: Likewise.
1119         * lib/uniwbrk/wbrkprop.h: Likewise.
1120         * tests/unicase/test-cased.c: Likewise.
1121         * tests/unicase/test-ignorable.c: Likewise.
1122         * tests/unicase/test-uc_tolower.c: Likewise.
1123         * tests/unicase/test-uc_totitle.c: Likewise.
1124         * tests/unicase/test-uc_toupper.c: Likewise.
1125         * tests/unictype/test-categ_C.c: Likewise.
1126         * tests/unictype/test-categ_Cf.c: Likewise.
1127         * tests/unictype/test-categ_Cn.c: Likewise.
1128         * tests/unictype/test-categ_L.c: Likewise.
1129         * tests/unictype/test-categ_Ll.c: Likewise.
1130         * tests/unictype/test-categ_Lm.c: Likewise.
1131         * tests/unictype/test-categ_Lo.c: Likewise.
1132         * tests/unictype/test-categ_Lu.c: Likewise.
1133         * tests/unictype/test-categ_M.c: Likewise.
1134         * tests/unictype/test-categ_Mc.c: Likewise.
1135         * tests/unictype/test-categ_Mn.c: Likewise.
1136         * tests/unictype/test-categ_N.c: Likewise.
1137         * tests/unictype/test-categ_Nd.c: Likewise.
1138         * tests/unictype/test-categ_Nl.c: Likewise.
1139         * tests/unictype/test-categ_No.c: Likewise.
1140         * tests/unictype/test-categ_P.c: Likewise.
1141         * tests/unictype/test-categ_Pd.c: Likewise.
1142         * tests/unictype/test-categ_Po.c: Likewise.
1143         * tests/unictype/test-categ_S.c: Likewise.
1144         * tests/unictype/test-categ_Sc.c: Likewise.
1145         * tests/unictype/test-categ_So.c: Likewise.
1146         * tests/unictype/test-ctype_alnum.c: Likewise.
1147         * tests/unictype/test-ctype_alpha.c: Likewise.
1148         * tests/unictype/test-ctype_graph.c: Likewise.
1149         * tests/unictype/test-ctype_lower.c: Likewise.
1150         * tests/unictype/test-ctype_print.c: Likewise.
1151         * tests/unictype/test-ctype_punct.c: Likewise.
1152         * tests/unictype/test-ctype_upper.c: Likewise.
1153         * tests/unictype/test-decdigit.h: Likewise.
1154         * tests/unictype/test-digit.h: Likewise.
1155         * tests/unictype/test-numeric.h: Likewise.
1156         * tests/unictype/test-pr_alphabetic.c: Likewise.
1157         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1158         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1159         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
1160         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1161         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1162         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1163         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1164         * tests/unictype/test-pr_combining.c: Likewise.
1165         * tests/unictype/test-pr_composite.c: Likewise.
1166         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1167         * tests/unictype/test-pr_dash.c: Likewise.
1168         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1169         * tests/unictype/test-pr_deprecated.c: Likewise.
1170         * tests/unictype/test-pr_diacritic.c: Likewise.
1171         * tests/unictype/test-pr_extender.c: Likewise.
1172         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1173         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1174         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1175         * tests/unictype/test-pr_id_continue.c: Likewise.
1176         * tests/unictype/test-pr_id_start.c: Likewise.
1177         * tests/unictype/test-pr_ideographic.c: Likewise.
1178         * tests/unictype/test-pr_ignorable_control.c: Likewise.
1179         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
1180         * tests/unictype/test-pr_lowercase.c: Likewise.
1181         * tests/unictype/test-pr_numeric.c: Likewise.
1182         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1183         * tests/unictype/test-pr_punctuation.c: Likewise.
1184         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1185         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1186         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1187         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1188         * tests/unictype/test-pr_uppercase.c: Likewise.
1189         * tests/unictype/test-pr_xid_continue.c: Likewise.
1190         * tests/unictype/test-pr_xid_start.c: Likewise.
1191         * tests/unictype/test-pr_zero_width.c: Likewise.
1192         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
1193         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
1194         changed behaviour: line breaking is now disallowed between a letter
1195         or '=' and '('.
1196         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
1197         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
1198         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
1199         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
1200         * tests/uniwidth/test-uc_width2.sh: Same updates as in
1201         lib/uniwidth/width.c.
1202         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
1203         without comments, but with the original copyright notice.
1204         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
1205         changes.
1206         * lib/unictype/categ_Cc.h: Likewise.
1207         * lib/unictype/categ_Co.h: Likewise.
1208         * lib/unictype/categ_Cs.h: Likewise.
1209         * lib/unictype/categ_Lt.h: Likewise.
1210         * lib/unictype/categ_Me.h: Likewise.
1211         * lib/unictype/categ_Pc.h: Likewise.
1212         * lib/unictype/categ_Pe.h: Likewise.
1213         * lib/unictype/categ_Pf.h: Likewise.
1214         * lib/unictype/categ_Pi.h: Likewise.
1215         * lib/unictype/categ_Ps.h: Likewise.
1216         * lib/unictype/categ_Sk.h: Likewise.
1217         * lib/unictype/categ_Sm.h: Likewise.
1218         * lib/unictype/categ_Z.h: Likewise.
1219         * lib/unictype/categ_Zl.h: Likewise.
1220         * lib/unictype/categ_Zp.h: Likewise.
1221         * lib/unictype/categ_Zs.h: Likewise.
1222         * lib/unictype/ctype_blank.h: Likewise.
1223         * lib/unictype/ctype_cntrl.h: Likewise.
1224         * lib/unictype/ctype_digit.h: Likewise.
1225         * lib/unictype/ctype_space.h: Likewise.
1226         * lib/unictype/ctype_xdigit.h: Likewise.
1227         * lib/unictype/mirror.h: Likewise.
1228         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1229         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1230         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1231         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1232         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1233         * lib/unictype/pr_bidi_control.h: Likewise.
1234         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1235         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1236         * lib/unictype/pr_bidi_pdf.h: Likewise.
1237         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1238         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1239         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1240         * lib/unictype/pr_format_control.h: Likewise.
1241         * lib/unictype/pr_hex_digit.h: Likewise.
1242         * lib/unictype/pr_hyphen.h: Likewise.
1243         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1244         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1245         * lib/unictype/pr_iso_control.h: Likewise.
1246         * lib/unictype/pr_join_control.h: Likewise.
1247         * lib/unictype/pr_left_of_pair.h: Likewise.
1248         * lib/unictype/pr_line_separator.h: Likewise.
1249         * lib/unictype/pr_math.h: Likewise.
1250         * lib/unictype/pr_non_break.h: Likewise.
1251         * lib/unictype/pr_not_a_character.h: Likewise.
1252         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1253         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1254         * lib/unictype/pr_other_id_continue.h: Likewise.
1255         * lib/unictype/pr_other_id_start.h: Likewise.
1256         * lib/unictype/pr_other_lowercase.h: Likewise.
1257         * lib/unictype/pr_other_math.h: Likewise.
1258         * lib/unictype/pr_other_uppercase.h: Likewise.
1259         * lib/unictype/pr_paired_punctuation.h: Likewise.
1260         * lib/unictype/pr_paragraph_separator.h: Likewise.
1261         * lib/unictype/pr_pattern_syntax.h: Likewise.
1262         * lib/unictype/pr_pattern_white_space.h: Likewise.
1263         * lib/unictype/pr_private_use.h: Likewise.
1264         * lib/unictype/pr_quotation_mark.h: Likewise.
1265         * lib/unictype/pr_radical.h: Likewise.
1266         * lib/unictype/pr_soft_dotted.h: Likewise.
1267         * lib/unictype/pr_space.h: Likewise.
1268         * lib/unictype/pr_titlecase.h: Likewise.
1269         * lib/unictype/pr_variation_selector.h: Likewise.
1270         * lib/unictype/pr_white_space.h: Likewise.
1271         * lib/unictype/sy_c_ident.h: Likewise.
1272         * lib/unictype/sy_c_whitespace.h: Likewise.
1273         * lib/unictype/sy_java_whitespace.h: Likewise.
1274         * modules/uni*/*: Bump version number of expected libunistring version.
1275         Reported by Simon Josefsson.
1276
1277 2011-01-09  Karl Heuer  <kwzh@gnu.org>
1278
1279         useless-if-before-free: fix typo in --help and make the internal,
1280         automatic version date update process work once again.
1281         --help output contained a NUL character instead of the
1282         backslash-zero that was intended.  Also, the "must lie within
1283         the first 8 lines" line is on line 9, and hence not getting
1284         automatically updated.
1285         * build-aux/useless-if-before-free: Fix the former by adding a
1286         backslash, and the latter by condensing the three lines of what-it-does
1287         to a single line, leaving one line of slack for the future.
1288
1289 2011-01-09  Bruno Haible  <bruno@clisp.org>
1290
1291         uniwidth/width: Fix width of U+1D173..U+1D17A.
1292         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
1293         symbolic_width, output_width_property_test): New functions.
1294         (main): Invoke output_nonspacing_property, output_width_property_test.
1295         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
1296         U+1D173..U+1D17A.
1297         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
1298         1.
1299         * modules/uniwidth/*: Bump version number of expected libunistring
1300         version.
1301         * modules/unilbrk/*: Likewise.
1302
1303 2011-01-08  Bruno Haible  <bruno@clisp.org>
1304
1305         uninorm tests: Preserve copyright of Unicode data file.
1306         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
1307         Mention modifications.
1308
1309 2011-01-08  Bruno Haible  <bruno@clisp.org>
1310
1311         gen-uni-tables: Prepare for Unicode 5.2.0.
1312         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
1313         (debug_output_lbp, output_lbp): Update.
1314
1315 2011-01-08  Bruno Haible  <bruno@clisp.org>
1316
1317         unilbrk: Clarify gen-uni-tables.c code.
1318         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
1319         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
1320         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
1321
1322 2011-01-07  Bruno Haible  <bruno@clisp.org>
1323
1324         strtod: Restore errno when successfully parsing Infinity or NaN.
1325         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
1326         restore the original errno.
1327
1328 2011-01-07  Bruno Haible  <bruno@clisp.org>
1329
1330         remove test: Avoid failure on HP-UX 11.
1331         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
1332
1333 2011-01-07  Bruno Haible  <bruno@clisp.org>
1334
1335         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
1336         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
1337         error code.
1338
1339 2011-01-07  Pádraig Brady <P@draigBrady.com>
1340
1341         ignore-value: fixup comments, and add Eric Blake
1342         as an author since he rewrote the macros.
1343         * lib/ignore-value.h (ignore_value):  State that
1344         we now support aggregates.  Also specify exactly
1345         when the GCC warn_unused_result feature was added.
1346
1347 2011-01-06  Eric Blake  <eblake@redhat.com>
1348
1349         ignore-value: support aggregate types
1350         * lib/ignore-value.h (ignore_value): Provide separate gcc
1351         definition.
1352         * modules/ignore-value-tests: New test module.
1353         * tests/test-ignore-value.c: New test.
1354
1355         maint.mk: improve sc_prohibit_strcmp regex
1356         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
1357         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
1358         definition of STRNEQ.
1359
1360         signal: work around Haiku issue with SIGBUS
1361         * lib/siglist.h: Add comment.
1362         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
1363         strsignal's favoring of SIGSEGV.
1364         * tests/test-signal.c (main): Avoid test failure.
1365         * doc/posix-headers/signal.texi (signal.h): Document the issue.
1366         Reported by Scott McCreary.
1367
1368         maint.mk: add pre-release check to ensure submodule commits are public
1369         * top/maint.mk (public-submodule-commit): New rule.
1370         (submodule-checks): New variable.
1371         (alpha beta stable): Depend on the variable.
1372
1373 2011-01-05  Pádraig Brady <P@draigBrady.com>
1374         and Jim Meyering  <meyering@redhat.com>
1375
1376         ignore-value: make ignore_value more generic; deprecate ignore_ptr
1377         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
1378         (ATTRIBUTE_DEPRECATED): Define.
1379         (_ignore_case): New function.
1380         (ignore_value): New macro, to replace the old function.
1381         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
1382         * modules/ignore-value (Depends-on): Add stdint.
1383
1384 2011-01-04  Eric Blake  <eblake@redhat.com>
1385
1386         doc: regenerate INSTALL
1387         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
1388         @firstparagraphindent support, now that autoconf dropped it.
1389         (INSTALL_PRELUDE): Reinstate old macro.
1390         * doc/install.texi: Resync from autoconf.
1391         * doc/INSTALL: Reflect recent autoconf update.
1392         * doc/INSTALL.ISO: Likewise.
1393         * doc/INSTALL.UTF-8: Likewise.
1394         Reported by Karl Berry.
1395
1396 2011-01-04  Bruce Korb  <address@hidden>
1397
1398         git-version-gen: avoid a sub-shell
1399         * build-aux/git-version-gen: Redirect stderr in `...` via
1400         "exec 2>...", rather than via an added sub-shell.
1401
1402 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
1403
1404         git-version-gen: use (...) rather than sh -c '...'
1405         * build-aux/git-version-gen: Rather than hard-coding a shell's name
1406         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
1407
1408 2011-01-03  Jim Meyering  <meyering@redhat.com>
1409
1410         git-version-gen: convert leading TABs to spaces
1411         * build-aux/git-version-gen: Expand leading TABs.
1412
1413         git-version-gen: handle failed "git rev-list"
1414         * build-aux/git-version-gen: Rather than leaking a "fatal" error
1415         from git and proceeding as if it had succeeded but printed no SHA1
1416         checksums, suppress the diagnostic and handle the failure.
1417         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
1418
1419         git-version-gen: include command name in one more diagnostic
1420         * build-aux/git-version-gen: When the required .tarball-version file
1421         was missing or unreadable, you might see the diagnostic from "cat",
1422         but no trace of the name of the invoking script.  Now, you still see
1423         the diagnostic from cat, but also get one from "git-version-gen: ".
1424         Inspired by a patch from Bruce Korb.
1425
1426         update-copyright: adjust test to match changed code
1427         * tests/test-update-copyright.sh: Change test's expected output
1428         to match new actual output.
1429
1430 2011-01-02  Bruno Haible  <bruno@clisp.org>
1431
1432         getlogin_r: Avoid test failure on HP-UX 11.
1433         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
1434         ERANGE when the second argument is zero.
1435         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
1436         portability problem.
1437
1438 2011-01-02  Bruce Korb  <bkorb@gnu.org>
1439
1440         * build-aux/update-copyright: doc Simon's changes
1441
1442 2011-01-02  Simon Josefsson  <simon@josefsson.org>
1443
1444         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
1445         environment variable.
1446
1447 2011-01-02  Bruno Haible  <bruno@clisp.org>
1448
1449         unigbrk: Avoid gcc warnings.
1450         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
1451         unused variable.
1452         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
1453         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
1454         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
1455         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
1456         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
1457         Change type of first argument to 'const char *'.
1458         (main): Remove unused variable.
1459         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
1460         type of first argument to 'const char *'.
1461         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
1462         Likewise.
1463         (main): Change type of variable 's'.
1464         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
1465         to 'int'.
1466
1467 2011-01-02  Bruno Haible  <bruno@clisp.org>
1468
1469         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
1470         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
1471         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
1472         bug.
1473         * lib/pwrite.c: Undo 2010-12-31 patch.
1474         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
1475
1476 2011-01-02  Bruno Haible  <bruno@clisp.org>
1477
1478         pread: Fix test whether it works.
1479         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
1480
1481 2011-01-02  Bruno Haible  <bruno@clisp.org>
1482
1483         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
1484         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
1485         ends in "6". Don't require a specific month name. Try also the locale
1486         names found on HP-UX 11 and Solaris 7.
1487
1488 2011-01-02  Bruno Haible  <bruno@clisp.org>
1489
1490         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
1491         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
1492         C linkage.
1493         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
1494
1495 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1496
1497         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
1498         for consistency, since the "cluster" term is not used elsewhere.
1499         * lib/unigbrk.in.h: Update name.
1500         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
1501         * lib/unigbrk/u16-grapheme-next.c: Update name.
1502         * lib/unigbrk/u16-grapheme-prev.c: Update name.
1503         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
1504         * lib/unigbrk/u32-grapheme-next.c: Update name.
1505         * lib/unigbrk/u32-grapheme-prev.c: Update name.
1506         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
1507         * lib/unigbrk/u8-grapheme-next.c: Update name.
1508         * lib/unigbrk/u8-grapheme-prev.c: Update name.
1509         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
1510         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
1511         Suggested by Bruno Haible.
1512
1513 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1514
1515         Remove module 'u8-grapheme-len' as too redundant with
1516         'u8-grapheme-next'.
1517         * modules/unigbrk/u8-grapheme-len: Delete file.
1518         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
1519         * lib/unigbrk.in.h: Remove prototype for deleted function.
1520         * lib/unigbrk/u8-grapheme-len.c: Delete file.
1521         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
1522
1523         Remove module 'u16-grapheme-len' as too redundant with
1524         'u16-grapheme-next'.
1525         * modules/unigbrk/u16-grapheme-len: Delete file.
1526         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
1527         * lib/unigbrk.in.h: Remove prototype for deleted function.
1528         * lib/unigbrk/u16-grapheme-len.c: Delete file.
1529         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
1530
1531         Remove module 'u32-grapheme-len' as too redundant with
1532         'u32-grapheme-next'.
1533         * modules/unigbrk/u32-grapheme-len: Delete file.
1534         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
1535         * lib/unigbrk.in.h: Remove prototype for deleted function.
1536         * lib/unigbrk/u32-grapheme-len.c: Delete file.
1537         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
1538
1539         Suggested by Bruno Haible.
1540
1541 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1542
1543         * unigbrk.in.h: Fix typo: "ben" => "been".
1544         Reported by Bruno Haible.
1545
1546 2011-01-01  Jim Meyering  <meyering@redhat.com>
1547
1548         maint: update almost all copyright ranges to include 2011
1549         Run the new "make update-copyright" rule.
1550
1551 2011-01-01  Jim Meyering  <meyering@redhat.com>
1552
1553         maint: update-copyright: exempt doc/INSTALL*
1554         * Makefile (update-copyright): Also exclude doc/INSTALL*,
1555         since they are generated.  Suggested by Bruno Haible.
1556
1557 2011-01-01  Jim Meyering  <meyering@redhat.com>
1558
1559         maint: refine the update-copyright rule
1560         * Makefile (update-copyright): Also exclude any file that includes
1561         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
1562         code that merely generates the comment.
1563
1564 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1565
1566         New module 'u8-grapheme-len'.
1567         * modules/unigbrk/u8-grapheme-len: New file.
1568         * modules/unigbrk/u8-grapheme-len-tests: New file.
1569         * lib/unigbrk.in.h: Add prototype for new function.
1570         * lib/unigbrk/u8-grapheme-len.c: New file.
1571         * tests/unigbrk/test-u8-grapheme-len.c: New file.
1572
1573         New module 'u16-grapheme-len'.
1574         * modules/unigbrk/u16-grapheme-len: New file.
1575         * modules/unigbrk/u16-grapheme-len-tests: New file.
1576         * lib/unigbrk.in.h: Add prototype for new function.
1577         * lib/unigbrk/u16-grapheme-len.c: New file.
1578         * tests/unigbrk/test-u16-grapheme-len.c: New file.
1579
1580         New module 'u32-grapheme-len'.
1581         * modules/unigbrk/u32-grapheme-len: New file.
1582         * modules/unigbrk/u32-grapheme-len-tests: New file.
1583         * lib/unigbrk.in.h: Add prototype for new function.
1584         * lib/unigbrk/u32-grapheme-len.c: New file.
1585         * tests/unigbrk/test-u32-grapheme-len.c: New file.
1586
1587         New module 'u8-grapheme-next'.
1588         * modules/unigbrk/u8-grapheme-next: New file.
1589         * modules/unigbrk/u8-grapheme-next-tests: New file.
1590         * lib/unigbrk.in.h: Add prototype for new function.
1591         * lib/unigbrk/u8-grapheme-next.c: New file.
1592         * tests/unigbrk/test-u8-grapheme-next.c: New file.
1593
1594         New module 'u16-grapheme-next'.
1595         * modules/unigbrk/u16-grapheme-next: New file.
1596         * modules/unigbrk/u16-grapheme-next-tests: New file.
1597         * lib/unigbrk.in.h: Add prototype for new function.
1598         * lib/unigbrk/u16-grapheme-next.c: New file.
1599         * tests/unigbrk/test-u16-grapheme-next.c: New file.
1600
1601         New module 'u32-grapheme-next'.
1602         * modules/unigbrk/u32-grapheme-next: New file.
1603         * modules/unigbrk/u32-grapheme-next-tests: New file.
1604         * lib/unigbrk.in.h: Add prototype for new function.
1605         * lib/unigbrk/u32-grapheme-next.c: New file.
1606         * tests/unigbrk/test-u32-grapheme-next.c: New file.
1607
1608         New module 'u8-grapheme-prev'.
1609         * modules/unigbrk/u8-grapheme-prev: New file.
1610         * modules/unigbrk/u8-grapheme-prev-tests: New file.
1611         * lib/unigbrk.in.h: Add prototype for new function.
1612         * lib/unigbrk/u8-grapheme-prev.c: New file.
1613         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
1614
1615         New module 'u16-grapheme-prev'.
1616         * modules/unigbrk/u16-grapheme-prev: New file.
1617         * modules/unigbrk/u16-grapheme-prev-tests: New file.
1618         * lib/unigbrk.in.h: Add prototype for new function.
1619         * lib/unigbrk/u16-grapheme-prev.c: New file.
1620         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
1621
1622         New module 'u32-grapheme-prev'.
1623         * modules/unigbrk/u32-grapheme-prev: New file.
1624         * modules/unigbrk/u32-grapheme-prev-tests: New file.
1625         * lib/unigbrk.in.h: Add prototype for new function.
1626         * lib/unigbrk/u32-grapheme-prev.c: New file.
1627         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
1628
1629         New module 'u8-grapheme-breaks'.
1630         * modules/unigbrk/u8-grapheme-breaks: New file.
1631         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
1632         * lib/unigbrk.in.h: Add prototype for new function.
1633         * lib/unigbrk/u8-grapheme-breaks.c: New file.
1634         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
1635
1636         New module 'u16-grapheme-breaks'.
1637         * modules/unigbrk/u16-grapheme-breaks: New file.
1638         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
1639         * lib/unigbrk.in.h: Add prototype for new function.
1640         * lib/unigbrk/u16-grapheme-breaks.c: New file.
1641         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
1642
1643         New module 'u32-grapheme-breaks'.
1644         * modules/unigbrk/u32-grapheme-breaks: New file.
1645         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
1646         * lib/unigbrk.in.h: Add prototype for new function.
1647         * lib/unigbrk/u32-grapheme-breaks.c: New file.
1648         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
1649
1650         New module 'ulc-grapheme-breaks'.
1651         * modules/unigbrk/ulc-grapheme-breaks: New file.
1652         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
1653         * m4/locale-ar.m4: New file.
1654         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
1655         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
1656         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
1657
1658 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1659
1660         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
1661         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
1662         modified how this file was generated before I initially submitted
1663         the module, but failed to regenerate it.  This meant that several
1664         of the level2 entries were wrong.
1665         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
1666         Remove the division-by-2 that is folded into the table now that
1667         gbrkprop.h has been regenerated properly.  Now -1 entries are
1668         handled correctly.
1669
1670         New module 'unigbrk/uc-gbrk-prop-tests'.
1671         * modules/unigbrk/uc-gbrk-prop-tests: New file.
1672         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
1673         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
1674         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
1675
1676 2011-01-01  Bruno Haible  <bruno@clisp.org>
1677
1678         Avoid use of hexadecimal escapes.
1679         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
1680         instead of hexadecimal escapes.
1681
1682 2011-01-01  Jim Meyering  <meyering@redhat.com>
1683
1684         maint: new rule to update copyright year ranges
1685         * Makefile (update-copyright): New rule.
1686
1687         maint: indent with TABs in Makefile
1688         * Makefile: Expand leading sequences of spaces to TABs
1689
1690         version-etc: update the copyright year it reports
1691         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
1692
1693 2010-12-31  Bruno Haible  <bruno@clisp.org>
1694
1695         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
1696         * lib/isfinite.c (zerof, zerod, zerol): New variables.
1697         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
1698         zero.
1699
1700 2010-12-31  Bruno Haible  <bruno@clisp.org>
1701
1702         pwrite: Work around HP-UX 11.11 bug.
1703         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
1704         works and set REPLACE_PWRITE if not.
1705         * lib/pwrite.c (pwrite): Add an implementation that uses the system
1706         function.
1707         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
1708
1709 2010-12-31  Bruno Haible  <bruno@clisp.org>
1710
1711         pread: Work around HP-UX 11 bugs.
1712         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
1713         and set REPLACE_PREAD if not.
1714         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
1715
1716 2010-12-31  Eric Blake  <eblake@redhat.com>
1717
1718         nl_langinfo: fix YESEXPR on Irix 6.5
1719         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
1720         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
1721         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
1722         it.
1723
1724 2010-12-31  Bruno Haible  <bruno@clisp.org>
1725
1726         iconv: Document HP-UX 11 bug.
1727         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
1728
1729 2010-12-31  Bruno Haible  <bruno@clisp.org>
1730
1731         ldexpl: Fix link error on HP-UX 11.
1732         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
1733         LDEXPL_LIBM, using $ISNANL_LIBM.
1734
1735 2010-12-31  Eric Blake  <eblake@redhat.com>
1736
1737         ftello: avoid compilation failure with SunStudio c89
1738         * lib/ftello.c (ftello): Use lseek, not llseek.
1739
1740         tests: avoid failing coreutils tests on cygwin
1741         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
1742         (create_exe_shims_): Return 0 when skipping.
1743
1744 2010-12-31  Bruno Haible  <bruno@clisp.org>
1745
1746         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
1747         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
1748
1749 2010-12-31  Bruno Haible  <bruno@clisp.org>
1750
1751         waitpid: Fix link error in C++ mode.
1752         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
1753
1754 2010-12-31  Bruno Haible  <bruno@clisp.org>
1755
1756         isnan: Use GCC built-ins when possible.
1757         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
1758         __builtin_isnan.
1759         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
1760         (isnan): Define using GCC built-ins for GCC >= 4.0.
1761
1762 2010-12-31  Bruno Haible  <bruno@clisp.org>
1763
1764         isnand: Fix mistake.
1765         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
1766         __builtin_isnand.
1767
1768 2010-12-31  Bruno Haible  <bruno@clisp.org>
1769
1770         open: Avoid C++ error on HP-UX 11.
1771         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
1772
1773 2010-12-31  Bruno Haible  <bruno@clisp.org>
1774
1775         time_r: Add missing declarations on HP-UX 11.
1776         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
1777         instead of HAVE_LOCALTIME_R.
1778         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
1779         HAVE_LOCALTIME_R always.
1780         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
1781         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
1782         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
1783         HAVE_LOCALTIME_R.
1784         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
1785         * doc/posix-functions/localtime_r.texi: Likewise.
1786
1787 2010-12-29  Eric Blake  <eblake@redhat.com>
1788
1789         mountlist: tweak previous commit
1790         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
1791         Reported by Paul Eggert.
1792
1793         mountlist: fix local drive detection on cygwin
1794         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
1795         that works for cygwin.
1796
1797 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1798
1799         ftoastr, snprintf: ftoastr + snprintf module
1800         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
1801         since the snprintf module now should be good enough here.
1802         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
1803         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
1804         and gl_MODULE_INDICATOR([snprintf]), but the former enables
1805         GNULIB_SNPRINTF only for the test directory, and the latter
1806         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
1807         seems to suffice by itself.
1808
1809 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1810
1811         alloca: one step towards thread-safety
1812         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
1813         need for a static variable.  All callers changed.  This does not
1814         make the alloca replacement thread-safe, but it's one step.
1815
1816         tests: minor indenting change
1817         * tests/init.sh: Sync from coreutils housekeeping patch
1818         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
1819         to keep lines within 80 columns.
1820
1821 2010-12-28  Jim Meyering  <meyering@redhat.com>
1822
1823         regex: don't infloop on persistent failing calloc
1824         * lib/regexec.c (build_trtable): Return failure indication upon
1825         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
1826         In glibc, this was fixed for version 2.13:
1827         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
1828
1829 2010-12-28  Bruno Haible  <bruno@clisp.org>
1830             Paul Eggert <eggert@cs.ucla.edu>
1831
1832         linkat: Make implementation robust against system behaviour variations.
1833         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
1834         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
1835         way, and to -2 if it needs a generic runtime test.
1836         * lib/linkat.c (solaris_optimized_link_immediate,
1837         solaris_optimized_link_follow): New functions.
1838         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
1839         (check_same_link): Use it.
1840
1841 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
1842
1843         New module 'unigbrk/base'.
1844         * modules/unigbrk/base: New file.
1845         * lib/unigbrk.in.h: New file.
1846
1847         New module 'unigbrk/uc-gbrk-prop'.
1848         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
1849         * modules/unigbrk/uc-gbrk-prop: New file.
1850         * lib/unigbrk/gbrkprop.h: New file.
1851         * lib/unigbrk/uc-gbrk-prop.c: New file.
1852
1853         New module 'unigbrk/uc-is-grapheme-break'.
1854         * modules/unigbrk/uc-is-grapheme-break: New file.
1855         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
1856         * lib/unigbrk/uc-is-grapheme-break.c: New file.
1857         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
1858         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
1859         * tests/unigbrk/GraphemeBreakTest.txt: New file.
1860
1861         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
1862
1863 2010-12-27  Bruno Haible  <bruno@clisp.org>
1864
1865         linkat test: Avoid failure on Solaris 11 2010-11.
1866         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
1867
1868 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1869
1870         utimens: work around glibc rounding bug on more platforms
1871         * lib/utimens.c (fdutimens): Work around rounding bug even if
1872         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
1873         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
1874
1875 2010-12-27  Bruno Haible  <bruno@clisp.org>
1876
1877         select tests: Improve comments.
1878         * tests/test-select.c (do_select): Add comments.
1879
1880 2010-12-27  Bruno Haible  <bruno@clisp.org>
1881
1882         select tests: Safer way of handling timeout.
1883         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
1884         at every invocation.
1885
1886 2010-12-27  Bruno Haible  <bruno@clisp.org>
1887
1888         select tests: Use 'bool' where appropriate.
1889         * tests/test-select.c (connect_to_socket): Change argument type to
1890         'bool'.
1891
1892 2010-12-27  Bruno Haible  <bruno@clisp.org>
1893
1894         select tests: Use existing modules.
1895         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
1896         (configure.ac): Don't test for unistd.h.
1897         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
1898         declared in <unistd.h>.
1899
1900 2010-12-27  Bruno Haible  <bruno@clisp.org>
1901
1902         mbrtowc: Work around a Solaris 7 bug.
1903         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
1904         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
1905         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
1906         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
1907         MBRTOWC_NULL_ARG1_BUG.
1908         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
1909         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
1910         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
1911         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
1912
1913 2010-12-27  Jim Meyering  <meyering@redhat.com>
1914
1915         read-file.c: tweak syntax
1916         * lib/read-file.c (fread_file): Remove space after "*" in function
1917         definitions.
1918
1919 2010-12-27  Bruno Haible  <bruno@clisp.org>
1920
1921         times test: Avoid gcc warnings on OSF/1.
1922         * tests/test-times.c (main): Cast printf arguments from clock_t to
1923         'long int'.
1924
1925 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1926
1927         utimens: work around glibc rounding bug on older Linux kernels
1928         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
1929         on Linux with a glibc whose utimes might not work, then work
1930         around a longstanding glibc bug involving rounding rather than
1931         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
1932         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1933
1934 2010-12-26  Bruno Haible  <bruno@clisp.org>
1935
1936         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
1937         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
1938         _GL_CXXALIAS_SYS.
1939         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1940
1941 2010-12-26  Bruno Haible  <bruno@clisp.org>
1942
1943         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
1944         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
1945         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1946         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
1947         looking for the declaration.
1948         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
1949         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
1950         problem.
1951         * doc/posix-functions/inet_pton.texi: Likewise.
1952
1953 2010-12-26  Bruno Haible  <bruno@clisp.org>
1954
1955         arpa_inet: Use the common idioms with C++ support.
1956         * lib/arpa_inet.in.h: Include c++defs.h.
1957         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
1958         support.
1959         * modules/arpa_inet (Depends-on): Add c++defs.
1960         (Makefile.am): Substitute the contents of c++defs.h.
1961         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
1962         * modules/arpa_inet-c++-tests: New file.
1963         * tests/test-arpa_inet-c++.cc: New file.
1964
1965 2010-12-25  Bruno Haible  <bruno@clisp.org>
1966
1967         Fix more C++ link errors on Solaris 8.
1968         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
1969         $(LIB_EACCESS).
1970         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
1971         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
1972         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
1973         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
1974         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
1975
1976 2010-12-25  Bruno Haible  <bruno@clisp.org>
1977
1978         printf-posix: Fix link error when a non-GCC compiler is used.
1979         * lib/stdio.in.h (printf): When not using GCC, override printf
1980         correctly.
1981         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1982
1983 2010-12-25  Bruno Haible  <bruno@clisp.org>
1984
1985         strerror_r-posix: Update doc.
1986         * doc/posix-functions/strerror_r.texi: Update doc about the return
1987         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
1988
1989 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1990
1991         utimens: simplify the logic of the previous change
1992         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
1993         This should not affect whether the test succeeds or fails.
1994
1995         utimens: configure better on hosts with NFS clock skew
1996         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
1997         uses the clock of the local host.  It might use the clock of the
1998         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
1999         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
2000
2001 2010-12-25  Bruno Haible  <bruno@clisp.org>
2002
2003         ptsname test: Avoid failure on Solaris.
2004         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
2005         open a pseudo-terminal; don't use BSD-style ptys.
2006         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
2007
2008 2010-12-25  Bruno Haible  <bruno@clisp.org>
2009
2010         ptsname: Avoid ERANGE failure on some systems.
2011         * lib/ptsname.c (buffer): Increase size.
2012
2013 2010-12-25  Bruno Haible  <bruno@clisp.org>
2014
2015         rename, renameat: Avoid test failures at NFS mounted locations.
2016         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
2017         so that subsequent mkdir calls succeed.
2018
2019 2010-12-25  Bruno Haible  <bruno@clisp.org>
2020
2021         iswblank: Fix C++ link error on Solaris 8.
2022         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
2023         _GL_FUNCDECL_SYS.
2024
2025 2010-12-25  Bruno Haible  <bruno@clisp.org>
2026
2027         unistd: Fix C++ link error on Solaris 8.
2028         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
2029
2030 2010-12-25  Bruno Haible  <bruno@clisp.org>
2031
2032         readlink doc: Mention an old glibc bug.
2033         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
2034
2035 2010-12-25  Bruno Haible  <bruno@clisp.org>
2036
2037         fcntl-h: Fix for use of C++ on glibc systems.
2038         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
2039         also on glibc systems in C++ mode.
2040         Reported by Gary V. Vaughan <gary@gnu.org>.
2041
2042 2010-12-25  Bruno Haible  <bruno@clisp.org>
2043
2044         roundl-ieee: Make it work on OSF/1 5.1 with cc.
2045         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
2046
2047 2010-12-25  Bruno Haible  <bruno@clisp.org>
2048
2049         truncl-ieee: Make it work on OSF/1 5.1 with cc.
2050         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
2051         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
2052         test whether truncl works according to ISO C 99 with IEC 60559.
2053         * m4/truncl-ieee.m4: New file.
2054         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
2055         m4/signbit.m4.
2056         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
2057
2058 2010-12-25  Bruno Haible  <bruno@clisp.org>
2059
2060         ceill-ieee: Make it work on OSF/1 5.1 with cc.
2061         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
2062         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
2063         test whether ceill works according to ISO C 99 with IEC 60559.
2064         * m4/ceill-ieee.m4: New file.
2065         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
2066         m4/signbit.m4.
2067         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
2068
2069 2010-12-25  Bruno Haible  <bruno@clisp.org>
2070
2071         Ensure all prerequisites of <wchar.h> are included.
2072         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
2073         before <wchar.h>.
2074         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2075         gl_MBRLEN_NUL_RETVAL): Likewise.
2076         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2077         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
2078         AC_FUNC_MBRTOWC): Likewise.
2079         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2080         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
2081         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2082         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
2083         Likewise.
2084         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2085         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
2086         (gl_WCHAR_H): Improve comments.
2087         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2088
2089 2010-12-25  Bruno Haible  <bruno@clisp.org>
2090
2091         strtok_r: Fix C syntax error in autoconf macro.
2092         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
2093         characters in test program.
2094
2095 2010-12-24  Bruno Haible  <bruno@clisp.org>
2096
2097         ceil, trunc, round: Fix gcc warnings.
2098         * lib/ceil.c (MIN): Undefine before redefining.
2099         * lib/trunc.c (MIN): Likewise.
2100         * lib/round.c (MIN): Likewise.
2101         Include <math.h> first.
2102
2103 2010-12-24  Bruno Haible  <bruno@clisp.org>
2104
2105         select tests: Avoid failures on OSF/1 5.1.
2106         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
2107         failure of closing the last socket; it may fail with ECONNRESET.
2108
2109 2010-12-24  Eric Blake  <eblake@redhat.com>
2110
2111         stdint: avoid HP-UX 10.20 preprocessor bug
2112         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
2113         than #if.
2114         * tests/test-floor2.c (main): Likewise.
2115         Reported by Peter O'Gorman.
2116
2117         pipe: make obsoletion transition easier
2118         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
2119         * modules/pipe (Files): Include revived file.
2120         (Include): Drop reference, to mirror getdate's behavior.
2121
2122 2010-12-24  Bruno Haible  <bruno@clisp.org>
2123
2124         sys_socket: Hide mismatch of declarations on NonStop Kernel.
2125         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
2126         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
2127         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2128
2129 2010-12-24  Bruno Haible  <bruno@clisp.org>
2130
2131         gethostname: Ensure declaration on NonStop Kernel.
2132         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
2133         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2134
2135 2010-12-24  Bruno Haible  <bruno@clisp.org>
2136
2137         sys_select: Ensure all necessary types on NonStop Kernel.
2138         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
2139         include <sys/time.h>.
2140         * doc/posix-headers/sys_select.texi: Mention that it's missing on
2141         NonStop Kernel.
2142         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2143
2144 2010-12-24  Bruno Haible  <bruno@clisp.org>
2145
2146         sys_select: Remove unneeded include.
2147         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
2148         have <sys/select.h>.
2149
2150 2010-12-24  Bruno Haible  <bruno@clisp.org>
2151
2152         gethostname: Provide a fallback for HOST_NAME_MAX.
2153         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
2154         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
2155         instead.
2156         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2157
2158 2010-12-24  Bruno Haible  <bruno@clisp.org>
2159
2160         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
2161         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
2162         (SA_RESTART): Likewise.
2163         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2164
2165 2010-12-24  Bruno Haible  <bruno@clisp.org>
2166
2167         signal: Define NSIG.
2168         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
2169         * tests/test-signal.c (nsig): New variable.
2170         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2171
2172 2010-12-24  Bruno Haible  <bruno@clisp.org>
2173
2174         rename, renameat: Avoid test failures on OSF/1 5.1.
2175         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
2176         alternative error codes.
2177         * tests/test-renameat.c (main): Likewise.
2178
2179 2010-12-24  Bruno Haible  <bruno@clisp.org>
2180
2181         *printf: Detect large precisions bug on Solaris 10/SPARC.
2182         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
2183         by Paul Eggert.
2184         * tests/test-snprintf-posix.h (test_function): Add this test code here
2185         too.
2186         * tests/test-sprintf-posix.h (test_function): Likewise.
2187         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2188         * tests/test-vasprintf-posix.c (test_function): Likewise.
2189         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
2190         around by gnulib.
2191         * doc/posix-functions/printf.texi: Likewise.
2192         * doc/posix-functions/snprintf.texi: Likewise.
2193         * doc/posix-functions/sprintf.texi: Likewise.
2194         * doc/posix-functions/vfprintf.texi: Likewise.
2195         * doc/posix-functions/vprintf.texi: Likewise.
2196         * doc/posix-functions/vsnprintf.texi: Likewise.
2197         * doc/posix-functions/vsprintf.texi: Likewise.
2198         * doc/posix-functions/dprintf.texi: Undo last commit.
2199         * doc/posix-functions/vdprintf.texi: Likewise.
2200
2201 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2202
2203         tests: port test-fdutimensat.c to Solaris 8
2204         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
2205         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
2206         On Solaris 8, it fails with errno == ENOSYS, because there is no
2207         futimens (so it can't use the fd), and there is no lutimens (so it
2208         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
2209
2210         vsnprintf: make more consistent with snprintf; doc fixes
2211
2212         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
2213         the byte count return problem was promoted from the snprintf-posix
2214         to the snprintf module.
2215         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2216         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
2217         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
2218         * tests/test-snprintf.c (main): Check the byte count returned.
2219         * tests/test-vsnprintf.c (main): Likewise.
2220
2221 2010-12-23  Eric Blake  <eblake@redhat.com>
2222
2223         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
2224         * modules/sigpipe (License): Relax license.
2225
2226 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2227
2228         doc: document Solaris printf bug with large float precisions
2229         * doc/posix-functions/dprintf.texi (dprintf):
2230         * doc/posix-functions/fprintf.texi (fprintf):
2231         * doc/posix-functions/printf.texi (printf):
2232         * doc/posix-functions/snprintf.texi (snprintf):
2233         * doc/posix-functions/sprintf.texi (sprintf):
2234         * doc/posix-functions/vdprintf.texi (vdprintf):
2235         * doc/posix-functions/vfprintf.texi (vfprintf):
2236         * doc/posix-functions/vprintf.texi (vprintf):
2237         * doc/posix-functions/vsnprintf.texi (vsnprintf):
2238         * doc/posix-functions/vsprintf.texi (vsprintf):
2239         Mention that these functions mishandle large floating point
2240         precisions on Solaris 10.  The same bug is also present in Solaris
2241         8, and I assume earlier.  This causes "cd gnulib-tests; make
2242         check" to fail on Solaris 8 (and I assume, later) when building
2243         the latest coreutils, in test-vasprintf-posix's call to
2244         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
2245         the wide flavors (e.g., wprintf) so this patch just updates the
2246         documentation for the narrow ones.
2247
2248         test-posixtm.c: add two tests
2249         * tests/test-posixtm.c: Add two tests, to highlight the
2250         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
2251         around this bug; this is merely to document it.
2252
2253 2010-12-22  Bruno Haible  <bruno@clisp.org>
2254
2255         getlogin_r: Work around portability problem on OSF/1.
2256         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
2257         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
2258         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
2259         test for a truncated result.
2260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
2261         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
2262         * modules/getlogin_r (Depends-on): Add memchr.
2263         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
2264
2265 2010-12-22  Bruno Haible  <bruno@clisp.org>
2266
2267         ptsname: Avoid test failure on OSF/1 5.1.
2268         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
2269         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
2270         (same_slave): New function.
2271         (main): Use it to compare ptsname's result with the expected file name.
2272
2273 2010-12-22  Bruno Haible  <bruno@clisp.org>
2274
2275         Port extended stdio modules to HP NonStop Kernel.
2276         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
2277         macros.
2278         * lib/fbufmode.c: Update comments.
2279         * lib/fflush.c: Likewise.
2280         * lib/fpurge.c: Likewise.
2281         * lib/freadable.c: Likewise.
2282         * lib/freadahead.c: Likewise.
2283         * lib/freading.c: Likewise.
2284         * lib/freadptr.c: Likewise.
2285         * lib/freadseek.c: Likewise.
2286         * lib/fseeko.c: Likewise.
2287         * lib/fseterr.c: Likewise.
2288         * lib/fwritable.c: Likewise.
2289         * lib/fwriting.c: Likewise.
2290         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2291
2292 2010-12-22  Bruno Haible  <bruno@clisp.org>
2293
2294         ttyname_r: Work around bug on OSF/1 5.1.
2295         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
2296         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
2297         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
2298         present.
2299         * lib/ttyname_r.c (ttyname_r): Update comments.
2300
2301 2010-12-22  Bruno Haible  <bruno@clisp.org>
2302
2303         round: Implement result sign according to IEEE 754.
2304         * lib/round.c (MIN, MINUS_ZERO): New macros.
2305         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
2306         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
2307         * tests/test-round-ieee.c (main): Likewise.
2308         * tests/test-roundl-ieee.c (main): Likewise.
2309
2310         trunc: Implement result sign according to IEEE 754.
2311         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
2312         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
2313         * tests/test-trunc2.c: Include minus-zero.h.
2314         (MINUS_ZERO): New macro.
2315         (trunc_reference): Keep in sync with lib/trunc.c.
2316         * tests/test-truncf2.c: Include minus-zero.h.
2317         (MINUS_ZERO): New macro.
2318         (truncf_reference): Keep in sync with lib/trunc.c.
2319         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
2320         * tests/test-trunc-ieee.c (main): Likewise.
2321         * tests/test-truncl-ieee.c (main): Likewise.
2322
2323         ceil: Implement result sign according to IEEE 754.
2324         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
2325         (FUNC): Return -0.0 for -1 < x < 0.
2326         * tests/test-ceil2.c: Include minus-zero.h.
2327         (MINUS_ZERO): New macro.
2328         (ceil_reference): Keep in sync with lib/ceil.c.
2329         * tests/test-ceilf2.c: Include minus-zero.h.
2330         (MINUS_ZERO): New macro.
2331         (ceilf_reference): Keep in sync with lib/ceil.c.
2332         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
2333         * tests/test-ceil-ieee.c (main): Likewise.
2334         * tests/test-ceill-ieee.c (main): Likewise.
2335
2336         floor: Implement result sign according to IEEE 754.
2337         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
2338         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
2339         * tests/test-floorf2.c (floorf_reference): Likewise.
2340         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
2341         * tests/test-floor-ieee.c (main): Likewise.
2342         * tests/test-floorl-ieee.c (main): Likewise.
2343
2344 2010-12-22  Bruno Haible  <bruno@clisp.org>
2345
2346         getaddrinfo: Update doc.
2347         * doc/posix-functions/gai_strerror.texi: Return type is also different
2348         on AIX and HP-UX.
2349
2350 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2351
2352         getaddrinfo, inet_ntop: Update doc for Solaris.
2353         * doc/posix-functions/gai_strerror.texi: Return type is also an
2354         issue on Solaris 9 and earlier.
2355         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
2356         on Solaris 10 and earlier.
2357
2358 2010-12-21  Bruno Haible  <bruno@clisp.org>
2359
2360         New module 'roundl-ieee'.
2361         * modules/roundl-ieee: New file.
2362         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
2363         test whether roundl works according to ISO C 99 with IEC 60559.
2364         * m4/roundl-ieee.m4: New file.
2365         * modules/roundl-ieee-tests: New file.
2366         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
2367         * tests/test-roundl.c (main): Remove signbit tests.
2368         * modules/roundl-tests (Depends-on): Remove signbit.
2369         * doc/posix-functions/roundl.texi: Mention the new module.
2370
2371 2010-12-21  Bruno Haible  <bruno@clisp.org>
2372
2373         New module 'truncl-ieee'.
2374         * modules/truncl-ieee: New file.
2375         * modules/truncl-ieee-tests: New file.
2376         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
2377         * tests/test-truncl.c (main): Remove signbit tests.
2378         * modules/truncl-tests (Depends-on): Remove signbit.
2379         * doc/posix-functions/truncl.texi: Mention the new module.
2380
2381 2010-12-21  Bruno Haible  <bruno@clisp.org>
2382
2383         New module 'ceill-ieee'.
2384         * modules/ceill-ieee: New file.
2385         * modules/ceill-ieee-tests: New file.
2386         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
2387         * tests/test-ceill.c (main): Remove signbit tests.
2388         * modules/ceill-tests (Depends-on): Remove signbit.
2389         * doc/posix-functions/ceill.texi: Mention the new module.
2390
2391 2010-12-21  Bruno Haible  <bruno@clisp.org>
2392
2393         New module 'floorl-ieee'.
2394         * modules/floorl-ieee: New file.
2395         * modules/floorl-ieee-tests: New file.
2396         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
2397         * tests/test-floorl.c (main): Remove signbit tests.
2398         * modules/floorl-tests (Depends-on): Remove signbit.
2399         * doc/posix-functions/floorl.texi: Mention the new module.
2400
2401 2010-12-21  Bruno Haible  <bruno@clisp.org>
2402
2403         New module 'round-ieee'.
2404         * modules/round-ieee: New file.
2405         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
2406         whether round works according to ISO C 99 with IEC 60559.
2407         * m4/round-ieee.m4: New file.
2408         * modules/round-ieee-tests: New file.
2409         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
2410         * tests/test-round1.c (main): Remove signbit tests.
2411         * modules/round-tests (Depends-on): Remove 'signbit'.
2412         * doc/posix-functions/round.texi: Mention the new module.
2413
2414 2010-12-21  Bruno Haible  <bruno@clisp.org>
2415
2416         New module 'trunc-ieee'.
2417         * modules/trunc-ieee: New file.
2418         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
2419         whether trunc works according to ISO C 99 with IEC 60559.
2420         * m4/trunc-ieee.m4: New file.
2421         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
2422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
2423         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
2424         * modules/trunc-ieee-tests: New file.
2425         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
2426         * tests/test-trunc1.c (main): Remove signbit tests.
2427         * modules/trunc-tests (Depends-on): Remove 'signbit'.
2428         * doc/posix-functions/trunc.texi: Mention the new module.
2429
2430 2010-12-21  Bruno Haible  <bruno@clisp.org>
2431
2432         New module 'ceil-ieee'.
2433         * modules/ceil-ieee: New file.
2434         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
2435         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
2436         ISO C 99 with IEC 60559.
2437         * m4/ceil-ieee.m4: New file.
2438         * modules/ceil (Files): Add lib/ceil.c.
2439         (Depends-on): Add 'float'.
2440         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2441         * lib/math.in.h (ceil): New declaration.
2442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
2443         REPLACE_CEIL.
2444         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
2445         * modules/ceil-ieee-tests: New file.
2446         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
2447         * tests/test-math-c++.cc: Check the signature of 'ceil'.
2448         * doc/posix-functions/ceil.texi: Mention the new module.
2449
2450 2010-12-21  Bruno Haible  <bruno@clisp.org>
2451
2452         New module 'floor-ieee'.
2453         * modules/floor-ieee: New file.
2454         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
2455         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
2456         ISO C 99 with IEC 60559.
2457         * m4/floor-ieee.m4: New file.
2458         * modules/floor (Files): Add lib/floor.c.
2459         (Depends-on): Add 'float'.
2460         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2461         * lib/math.in.h (floor): New declaration.
2462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
2463         REPLACE_FLOOR.
2464         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
2465         * modules/floor-ieee-tests: New file.
2466         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
2467         * tests/test-math-c++.cc: Check the signature of 'floor'.
2468         * doc/posix-functions/floor.texi: Mention the new module.
2469
2470 2010-12-21  Bruno Haible  <bruno@clisp.org>
2471
2472         New module 'roundf-ieee'.
2473         * modules/roundf-ieee: New file.
2474         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
2475         test whether roundf works according to ISO C 99 with IEC 60559.
2476         * m4/roundf-ieee.m4: New file.
2477         * modules/roundf-ieee-tests: New file.
2478         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
2479         * tests/test-roundf1.c (main): Remove signbit tests.
2480         * modules/roundf-tests (Depends-on): Remove 'signbit'.
2481         * doc/posix-functions/roundf.texi: Mention the new module.
2482
2483 2010-12-21  Bruno Haible  <bruno@clisp.org>
2484
2485         New module 'truncf-ieee'.
2486         * modules/truncf-ieee: New file.
2487         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
2488         test whether truncf works according to ISO C 99 with IEC 60559.
2489         * m4/truncf-ieee.m4: New file.
2490         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
2491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
2492         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
2493         * modules/truncf-ieee-tests: New file.
2494         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
2495         * tests/test-truncf1.c (main): Remove signbit tests.
2496         * modules/truncf-tests (Depends-on): Remove 'signbit'.
2497         * doc/posix-functions/truncf.texi: Mention the new module.
2498
2499 2010-12-21  Bruno Haible  <bruno@clisp.org>
2500
2501         New module 'ceilf-ieee'.
2502         * modules/ceilf-ieee: New file.
2503         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
2504         test whether ceilf works according to ISO C 99 with IEC 60559.
2505         * m4/ceilf-ieee.m4: New file.
2506         * modules/ceilf-ieee-tests: New file.
2507         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
2508         * tests/test-ceilf1.c (main): Remove signbit tests.
2509         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
2510         * doc/posix-functions/ceilf.texi: Mention the new module.
2511
2512 2010-12-21  Bruno Haible  <bruno@clisp.org>
2513
2514         New module 'floorf-ieee'.
2515         * modules/floorf-ieee: New file.
2516         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
2517         test whether floorf works according to ISO C 99 with IEC 60559.
2518         * m4/floorf-ieee.m4: New file.
2519         * modules/floorf-ieee-tests: New file.
2520         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
2521         * tests/test-floorf1.c (main): Remove signbit tests.
2522         * modules/floorf-tests (Depends-on): Remove 'signbit'.
2523         * doc/posix-functions/floorf.texi: Mention the new module.
2524
2525 2010-12-21  Bruno Haible  <bruno@clisp.org>
2526
2527         Support for minus zero in autoconf macros.
2528         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
2529         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
2530         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
2531         * tests/minus-zero.h: Update comments.
2532
2533 2010-12-21  Bruno Haible  <bruno@clisp.org>
2534
2535         Tests for module 'ceil'.
2536         * modules/ceil-tests: New file.
2537         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
2538         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
2539
2540 2010-12-21  Bruno Haible  <bruno@clisp.org>
2541
2542         Tests for module 'floor'.
2543         * modules/floor-tests: New file.
2544         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
2545         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
2546
2547 2010-12-21  Bruno Haible  <bruno@clisp.org>
2548
2549         math: Fix indentation.
2550         * lib/math.in.h (floorf): Fix indentation.
2551
2552 2010-12-21  Bruno Haible  <bruno@clisp.org>
2553
2554         Fix cross-compilation guesses on Solaris.
2555         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
2556         not match "solaris2.10".
2557         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2558         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
2559         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
2560
2561 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2562
2563         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
2564         This fixes a problem observed with the latest coreutils snapshot
2565         that caused a test to fail on Solaris 8.  src/csplit.c's call
2566         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
2567         earlier, instead of returning the number of bytes that would have
2568         been generated; this causes csplit to incorrectly report memory
2569         exhaustion.
2570         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
2571         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
2572         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
2573         comments to match.
2574         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
2575         Fix typo in matching older versions of Solaris: "solaris2.10"
2576         is matched by the shell pattern "solaris2.[0-9]*".  This matters
2577         only for guessing while cross-compiling.
2578         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
2579
2580 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2581
2582         ftoastr: fix comment again
2583         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2584         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
2585         Also, simplify example a bit by using flags = 0.
2586
2587 2010-12-20  Bruno Haible  <bruno@clisp.org>
2588
2589         round*, trunc*: Update documentation regarding glibc.
2590         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
2591         * doc/posix-functions/round.texi: Likewise.
2592         * doc/posix-functions/roundl.texi: Likewise.
2593         * doc/posix-functions/truncf.texi: Likewise.
2594         * doc/posix-functions/trunc.texi: Likewise.
2595         * doc/posix-functions/truncl.texi: Likewise.
2596
2597 2010-12-20  Bruno Haible  <bruno@clisp.org>
2598
2599         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
2600         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
2601         * doc/posix-functions/round.texi: Likewise.
2602         * doc/posix-functions/roundl.texi: Likewise.
2603
2604 2010-12-20  Bruno Haible  <bruno@clisp.org>
2605
2606         ttyname_r: Add missing declaration on HP-UX 11.
2607         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
2608         HAVE_TTYNAME_R.
2609         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
2610         declared. Set HAVE_TTYNAME_R always.
2611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2612         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
2613         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
2614         HAVE_TTYNAME_R.
2615         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
2616
2617 2010-12-20  Bruno Haible  <bruno@clisp.org>
2618
2619         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
2620         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
2621         * doc/posix-functions/getlogin_r.texi: Likewise.
2622         * tests/test-getlogin.c: Include <errno.h>.
2623         (main): Avoid test failure on HP-UX 11.11.
2624         * tests/test-getlogin_r.c (main): Likewise.
2625
2626 2010-12-20  Bruno Haible  <bruno@clisp.org>
2627
2628         getlogin_r: Add missing declaration on HP-UX 11.
2629         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
2630         declared also when it exists as a function.
2631         * doc/posix-functions/getlogin_r.texi: Document this workaround.
2632
2633 2010-12-20  Bruno Haible  <bruno@clisp.org>
2634
2635         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
2636         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
2637         through wcrtomb.
2638
2639 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2640
2641         ftoastr: fix comment
2642         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2643         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
2644
2645 2010-12-19  Bruno Haible  <bruno@clisp.org>
2646
2647         isnan: Ensure it is a macro.
2648         * lib/math.in.h (isnan): Define as a macro if not already a macro.
2649         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
2650         Solaris.
2651
2652 2010-12-19  Bruno Haible  <bruno@clisp.org>
2653
2654         ldexpl test: Fix link error on OSF/1 5.1.
2655         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
2656
2657 2010-12-19  Bruno Haible  <bruno@clisp.org>
2658
2659         wctype: Make it work in C++ mode on OSF/1 5.1.
2660         * lib/wctype.in.h (iswblank): Declare but not define here.
2661         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
2662         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
2663         * modules/wctype (Files): Add lib/iswblank.c.
2664
2665 2010-12-19  Bruno Haible  <bruno@clisp.org>
2666
2667         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
2668         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
2669         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
2670
2671 2010-12-19  Bruno Haible  <bruno@clisp.org>
2672
2673         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
2674         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
2675         _POSIX_PII_SOCKET.
2676         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
2677         * doc/posix-functions/recvfrom.texi: Likewise.
2678         * doc/posix-functions/send.texi: Likewise.
2679         * doc/posix-functions/sendto.texi: Likewise.
2680
2681 2010-12-19  Bruno Haible  <bruno@clisp.org>
2682
2683         tcgetsid: Add missing declaration on OSF/1 5.1.
2684         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
2685         HAVE_TCGETSID.
2686         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
2687         Don't set HAVE_TCGETSID.
2688         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
2689         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
2690         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
2691         HAVE_TCGETSID.
2692         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
2693
2694 2010-12-19  Bruno Haible  <bruno@clisp.org>
2695
2696         stdio: Fix problem with popen() declaration on OSF/1 5.1.
2697         * lib/stdio.in.h: During the include_next statement, let recursive
2698         includes of this file include only the system header file.
2699
2700 2010-12-19  Bruno Haible  <bruno@clisp.org>
2701
2702         iconv_open: Fix regression from 2010-12-04.
2703         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
2704         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
2705
2706 2010-12-19  Bruno Haible  <bruno@clisp.org>
2707
2708         stdbool test: Avoid a gcc warning.
2709         * tests/test-stdbool.c (main): Fail if e1 is false.
2710         Reported by Jim Meyering.
2711
2712 2010-12-19  Jim Meyering  <meyering@redhat.com>
2713
2714         setenv: restore to working order
2715         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
2716         mistakenly removed.
2717         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
2718         HAVE_SETENV.
2719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
2720         HAVE_SETENV.
2721
2722 2010-12-19  Bruno Haible  <bruno@clisp.org>
2723
2724         Document some different function declarations on OSF/1 5.1.
2725         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
2726         * doc/posix-functions/inet_ntop.texi: Likewise.
2727         * doc/posix-functions/gethostname.texi: Likewise.
2728         * lib/unistd.in.h (gethostname): Update comment.
2729
2730 2010-12-19  Bruno Haible  <bruno@clisp.org>
2731
2732         doc: Mention vasprintf-posix module.
2733         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
2734         the 'vasprintf-posix' module.
2735         * doc/glibc-functions/vasprintf.texi: Likewise.
2736
2737 2010-12-19  Bruno Haible  <bruno@clisp.org>
2738
2739         unsetenv: Add missing declaration on OSF/1 5.1.
2740         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
2741         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
2742         Don't set HAVE_UNSETENV. In the test program, set _BSD.
2743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
2744         not HAVE_UNSETENV.
2745         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
2746         HAVE_UNSETENV.
2747         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
2748
2749 2010-12-19  Bruno Haible  <bruno@clisp.org>
2750
2751         setenv: Add missing declaration on OSF/1 5.1.
2752         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
2753         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
2754         declared. Don't set HAVE_SETENV.
2755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
2756         not HAVE_SETENV.
2757         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
2758         HAVE_SETENV.
2759         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
2760
2761 2010-12-19  Bruno Haible  <bruno@clisp.org>
2762
2763         nl_langinfo tests: Avoid gcc warning.
2764         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
2765
2766 2010-12-19  Bruno Haible  <bruno@clisp.org>
2767
2768         mknod: Avoid error in C++ mode on OSF/1 with GCC.
2769         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
2770         _GL_CXXALIAS_SYS.
2771
2772 2010-12-19  Bruno Haible  <bruno@clisp.org>
2773
2774         stdbool: Relax test.
2775         * tests/test-stdbool.c (e): Don't require that casts from a variable's
2776         address to 'bool' work in static initializer, for compilers other than
2777         GCC.
2778
2779 2010-12-19  Bruno Haible  <bruno@clisp.org>
2780
2781         ftello: Add missing declaration on OSF/1 5.1.
2782         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
2783         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
2784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
2785         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
2786         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
2787
2788 2010-12-19  Bruno Haible  <bruno@clisp.org>
2789
2790         fseeko: Add missing declaration on OSF/1 5.1.
2791         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
2792         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
2793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
2794         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
2795         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
2796
2797 2010-12-19  Bruno Haible  <bruno@clisp.org>
2798
2799         fchdir: Add missing declaration on OSF/1 5.1.
2800         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
2801         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
2802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
2803         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
2804         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
2805
2806 2010-12-19  Bruno Haible  <bruno@clisp.org>
2807
2808         relocatable-prog-wrapper: Separate from relocatable-prog.
2809         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
2810         uninstall-relocwrapper rule here.
2811         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
2812         Reported by Ian Beckwith <ianb@erislabs.net>.
2813
2814 2010-12-19  Bruno Haible  <bruno@clisp.org>
2815
2816         unistr/u8-mbsnlen: Add missing dependency.
2817         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
2818         Reported by Ian Beckwith <ianb@erislabs.net>.
2819
2820 2010-12-19  Bruno Haible  <bruno@clisp.org>
2821
2822         iconv: Make it possible again to use this module without 'iconv-h'.
2823         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
2824         if it is not defined.
2825         Reported by Ian Beckwith <ianb@erislabs.net>.
2826
2827 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2828
2829         acl: port to Solaris 8 when copying from tmpfs to ufs
2830         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
2831         error number.  Problem observed on Solaris 8 with latest
2832         coreutils, with "mv A B", where A is on a tmpfs file system and B
2833         is on a ufs file system.  This caused coreutils' mv/part-symlink
2834         test to fail.
2835
2836         tests: set fail=0 at start
2837         * tests/init.sh (setup_): Move fail=0 initialization here ...
2838         (mktempd_): ... from here, so that tests can rely on fail being
2839         set to 0 initially.  This fixes a problem in coreutils; see:
2840         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
2841
2842 2010-12-18  Bruno Haible  <bruno@clisp.org>
2843
2844         memmem-simple: Stylistic changes.
2845         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
2846         Fix preprocessor directive indentation.
2847
2848 2010-12-15  Pádraig Brady <P@draigBrady.com>
2849
2850         memmem, memmem-simple: reorganize and expand empty needle check
2851         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
2852         functional checks to memmem-simple so that one has a fully functional
2853         memmem by using just this module.
2854         Restrict the performance only check to the memmem module.
2855         Also expand the empty needle check to ensure the correct
2856         pointer is returned, not just a non NULL pointer.
2857         * doc/glibc-functions/memmem.texi: Rearrange the portability
2858         documentation to correlate with the rearranged checks.
2859         Clarify exactly how the memmem and memmem-simple modules
2860         relate to each other.
2861
2862 2010-12-15  Pádraig Brady <P@draigBrady.com>
2863             Bruno Haible  <bruno@clisp.org>
2864
2865         Improve cross-compilation guesses for uClibc.
2866         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
2867         that uClibc does not have the glibc bug.
2868         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
2869         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
2870
2871 2010-12-14  Eric Blake  <eblake@redhat.com>
2872
2873         configmake: provide fallbacks for oldest supported autotools
2874         * m4/configmake.m4: New file.
2875         * modules/configmake (Files): Ship it.
2876         (configure.ac): Use it to guarantee fallbacks.
2877
2878 2010-12-13  Pádraig Brady <P@draigBrady.com>
2879
2880         read-file: Improve handling of large files
2881         * lib/read-file.c (fread_file): Minimize realloc()s
2882         for regular files, and better manage sizes around SIZE_MAX.
2883
2884 2010-12-13  Eric Blake  <eblake@redhat.com>
2885
2886         cloexec, fcntl: relax license
2887         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
2888         consent from all contributors.
2889         * modules/fcntl (License): Likewise.
2890
2891 2010-12-10  Bruno Haible  <bruno@clisp.org>
2892
2893         Tests for module 'pipe-posix'.
2894         * modules/pipe-posix-tests: New file.
2895         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
2896
2897 2010-12-10  Bruno Haible  <bruno@clisp.org>
2898
2899         pipe-posix: Make it work in C++ mode.
2900         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
2901         (pipe): Use common idiom, not a macro definition.
2902         * lib/pipe.c: New file.
2903         * m4/pipe.m4: New file.
2904         * modules/pipe-posix (Description): Enhance.
2905         (Files): Add lib/pipe.c, m4/pipe.m4.
2906         (configure.ac): Invoke gl_FUNC_PIPE.
2907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
2908         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
2909         * tests/test-unistd-c++.cc: Check the signature of pipe.
2910
2911 2010-12-10  Bruno Haible  <bruno@clisp.org>
2912
2913         Rename module 'pipe' to 'spawn-pipe'.
2914         * modules/spawn-pipe: New file, renamed from modules/pipe.
2915         (Files, configure.ac, Makefile.am): Update.
2916         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
2917         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
2918         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
2919         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
2920         "spawn-pipe.h" instead of "pipe.h".
2921         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
2922         to gl_SPAWN_PIPE.
2923         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
2924         (Files, Makefile.am): Update.
2925         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
2926         Update.
2927         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
2928         Include "spawn-pipe.h" instead of "pipe.h".
2929         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
2930         * lib/javacomp.c: Likewise.
2931         * lib/javaversion.c: Likewise.
2932         * lib/pipe-filter-gi.c: Likewise.
2933         * lib/pipe-filter-ii.c: Likewise.
2934         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
2935         * modules/javacomp (Depends-on): Likewise.
2936         * modules/javaversion (Depends-on): Likewise.
2937         * modules/pipe-filter-gi (Depends-on): Likewise.
2938         * modules/pipe-filter-ii (Depends-on): Likewise.
2939         * MODULES.html.sh (Executing programs): Update.
2940         * NEWS: Mention the change.
2941
2942 2010-12-10  Eric Blake  <eblake@redhat.com>
2943
2944         pipe-posix: new module
2945         * modules/pipe-posix: New file.
2946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
2947         (gl_UNISTD_H): Check for declaration.
2948         * modules/unistd (Makefile.am): Substitute it.
2949         * lib/unistd.in.h (pipe): Provide it for mingw.
2950         * doc/posix-functions/pipe.texi (pipe): Update documentation.
2951         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
2952
2953 2010-12-07  Bruno Haible  <bruno@clisp.org>
2954
2955         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
2956         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
2957         u8_strcmp_gnu.
2958         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
2959
2960 2010-12-06  Bruno Haible  <bruno@clisp.org>
2961
2962         Update internal documentation.
2963         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
2964
2965 2010-12-04  Bruno Haible  <bruno@clisp.org>
2966
2967         Put more information about failed tests into the test return codes.
2968         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
2969         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
2970         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2971         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2972         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
2973         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2974         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2975         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2976         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
2977         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2978         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
2979         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2980         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2981         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2982         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
2983         returns a bit mask.
2984         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
2985         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
2986         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
2987         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
2988         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2989         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2990         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2991         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
2992         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2993         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2994         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2995         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2996         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2997         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2998         * m4/link.m4 (gl_FUNC_LINK): Likewise.
2999         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3000         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
3001         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
3002         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3003         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
3004         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3005         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3006         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3007         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3008         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3009         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3010         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
3011         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3012         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3013         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
3014         gl_PRINTF_PRECISION): Likewise.
3015         * m4/regex.m4 (gl_REGEX): Likewise.
3016         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3017         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3018         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
3019         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3020         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3021         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3022         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3023         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
3024         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3025         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3026         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3027         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
3028         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3029         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3030         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3031         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3032         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3033         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3034         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3035         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
3036         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
3037         enumerated value.
3038         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
3039
3040 2010-12-04  Bruno Haible  <bruno@clisp.org>
3041
3042         Update for Solaris 11 2010-11.
3043         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
3044         Express, released in November 2010.
3045
3046 2010-12-04  Bruno Haible  <bruno@clisp.org>
3047
3048         nproc: Relax license.
3049         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
3050         and Paul Eggert.
3051         Requested by Ludovic Courtès <ludo@gnu.org>.
3052
3053 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
3054
3055         utimecmp: fine-grained src to nearby coarse-grained dest
3056
3057         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
3058         and the source is on a file system with higher-resolution time
3059         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
3060         not work, and the time stamps are close together, the algorithm to
3061         determine the exact resolution from the read-back mtime was buggy:
3062         it had a "!=" where it should have had an "==".  This bug has been
3063         in the code ever since it was introduced to gnulib.
3064         Problem reported by Dan Jacobson in
3065         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
3066
3067 2010-11-30  Bruno Haible  <bruno@clisp.org>
3068
3069         strerror_r-posix: Fix autoconf test.
3070         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
3071
3072 2010-11-28  Bruno Haible  <bruno@clisp.org>
3073             Paul Eggert  <eggert@cs.ucla.edu>
3074
3075         Tests for module 'getdomainname'.
3076         * modules/getdomainname-tests: New file.
3077         * tests/test-getdomainname.c: New file, based on
3078         tests/test-gethostname.c.
3079
3080 2010-11-28  Bruno Haible  <bruno@clisp.org>
3081             Paul Eggert  <eggert@cs.ucla.edu>
3082
3083         getdomainname: Use the system function when possible.
3084         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
3085         (getdomainname): Replace if needed. Provide the declaration if it is
3086         missing. Don't use _GL_CXXALIAS_SYS_CAST.
3087         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
3088         (getdomainname): When the system has getdomainname, call the system
3089         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
3090         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
3091         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
3092         found in libnsl. Look for the declaration also in <netdb.h>. Replace
3093         the function if its second argument is of type 'int' or if it is found
3094         in libnsl.
3095         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
3096         <sys/systeminfo.h> and sysinfo().
3097         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
3098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3099         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
3100         HAVE_GETDOMAINNAME.
3101         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
3102         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
3103         * doc/glibc-functions/getdomainname.texi: Document the problems with
3104         the getdomainname declaration.
3105
3106 2010-11-28  Bruno Haible  <bruno@clisp.org>
3107
3108         sys_socket: Ensure ss_family field on AIX.
3109         * lib/sys_socket.in.h (ss_family): New macro definition.
3110         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
3111         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
3112         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
3113         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
3114         * modules/sys_socket (Makefile.am): Substitute
3115         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
3116         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
3117
3118 2010-11-27  Bruno Haible  <bruno@clisp.org>
3119
3120         readline: Improve configure output.
3121         * m4/readline.m4 (gl_FUNC_READLINE): Make the
3122         "checking for readline..." result understandable.
3123
3124 2010-11-27  Bruno Haible  <bruno@clisp.org>
3125
3126         *printf-posix: Detect a bug on Solaris 10/x86.
3127         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
3128         for floating-point output.
3129         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
3130         directive.
3131         * tests/test-snprintf-posix.h (test_function): Likewise.
3132         * tests/test-sprintf-posix.h (test_function): Likewise.
3133         * tests/test-vasprintf-posix.c (test_function): Likewise.
3134         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
3135         * doc/posix-functions/printf.texi: Likewise.
3136         * doc/posix-functions/snprintf.texi: Likewise.
3137         * doc/posix-functions/sprintf.texi: Likewise.
3138         * doc/posix-functions/vfprintf.texi: Likewise.
3139         * doc/posix-functions/vprintf.texi: Likewise.
3140         * doc/posix-functions/vsnprintf.texi: Likewise.
3141         * doc/posix-functions/vsprintf.texi: Likewise.
3142         * doc/glibc-functions/obstack_printf.texi: Likewise.
3143         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3144
3145 2010-11-27  Bruno Haible  <bruno@clisp.org>
3146
3147         Fix link error when module libunistring-optional is in use.
3148         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
3149         * modules/striconveha-tests (Makefile.am): Likewise.
3150
3151 2010-11-27  Bruno Haible  <bruno@clisp.org>
3152
3153         regex: Mention link dependencies.
3154         * modules/regex (Link): New section.
3155         * modules/rpmatch (Link): Likewise.
3156         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
3157
3158 2010-11-27  Bruno Haible  <bruno@clisp.org>
3159
3160         ftoastr: Fix compilation error on Solaris.
3161         * lib/ftoastr.c: Include <config.h>.
3162
3163 2010-11-27  Bruno Haible  <bruno@clisp.org>
3164
3165         getloadavg: Update documentation.
3166         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
3167
3168 2010-11-27  Bruno Haible  <bruno@clisp.org>
3169
3170         sys_socket: Fix test whether the functions are declared.
3171         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
3172         not <sys/select.h>.
3173
3174 2010-11-27  Bruno Haible  <bruno@clisp.org>
3175
3176         getpass: Make sure to get system declaration on some platforms.
3177         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
3178         gl_USE_SYSTEM_EXTENSIONS.
3179         * modules/getpass (Depends-on): Add extensions.
3180
3181 2010-11-26  Bruno Haible  <bruno@clisp.org>
3182
3183         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
3184         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
3185         'iconv' module is present.
3186         (ICONV_CONST): New macro.
3187         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
3188         ICONV_CONST.
3189         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
3190         set ICONV_CONST.
3191         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
3192         here.
3193         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
3194         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
3195         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
3196         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
3197         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
3198         present.
3199
3200 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
3201
3202         ftoastr: comment fix
3203         * lib/ftoastr.c: "little" -> "little or no" in comment
3204
3205 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
3206
3207         stdint: port to GCC 4.3 + OSX + Octave
3208         On this platform, stdint.h is buggy and defines int64_t to long
3209         long int.  The replacement defined it to long int, causing
3210         problems with C++ style name mangling.  Instead, trust the system
3211         definition if INT64_MAX is defined, and likewise for the unsigned
3212         variant.   Problem reported by Jarno Rajahalme in
3213         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
3214         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
3215         and don't mess with int64_t and INT64_MAX in this case.
3216         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
3217
3218 2010-11-24  Bruno Haible  <bruno@clisp.org>
3219
3220         doc: Corrections regarding MacOS X 10.4 and 10.5.
3221         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
3222         MacOS X.
3223         Reported by Simon Josefsson.
3224
3225 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
3226
3227         Uninstall ".bin" files installed by relocwrapper.
3228         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
3229         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
3230         unless it is already there.
3231
3232 2010-11-21  Bruno Haible  <bruno@clisp.org>
3233
3234         Update for NetBSD 5.0.
3235         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3236         NetBSD; the test fails on NetBSD 5.0.
3237         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3238         about NetBSD.
3239
3240 2010-11-21  Bruno Haible  <bruno@clisp.org>
3241
3242         Update for HP-UX 11.23 and HP-UX 11.31.
3243         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
3244         HP-UX.
3245
3246 2010-11-21  Bruno Haible  <bruno@clisp.org>
3247
3248         Update for MacOS X 10.5.
3249         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3250         MacOS X; the test fails on MacOS X 10.5.8.
3251         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3252         about MacOS X.
3253
3254 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
3255
3256         bootstrap: add bootstrap_sync option.
3257         See discussion at
3258         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
3259         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
3260         * build-aux/bootstrap: Accept --bootstrap-sync to update
3261         bootstrap if it is not identical to the local gnulib's
3262         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
3263         enable this by default.  Accept --no-bootstrap-sync to disable
3264         it.
3265
3266 2010-11-20  Bruno Haible  <bruno@clisp.org>
3267
3268         Ensure that <features.h> is included before __GLIBC__ is tested.
3269         * lib/printf-parse.h: Include <features.h>.
3270         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
3271         Reported by Mike Frysinger <vapier@gentoo.org>.
3272
3273         Ensure that <features.h> is included before __GLIBC__ is tested.
3274         * lib/wchar.in.h: Include <features.h>.
3275         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
3276         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
3277         Reported by Mike Frysinger <vapier@gentoo.org>.
3278
3279         Ensure that <features.h> is included before __GLIBC__ is tested.
3280         * lib/arpa_inet.in.h: Include <features.h>.
3281         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
3282         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
3283         Reported by Mike Frysinger <vapier@gentoo.org>.
3284
3285         Ensure that <features.h> is included before __GLIBC__ is tested.
3286         * build-aux/link-warning.h: Include <features.h>.
3287         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
3288         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
3289         Reported by Mike Frysinger <vapier@gentoo.org>.
3290
3291         Ensure that <features.h> is included before __GLIBC__ is tested.
3292         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
3293         Reported by Mike Frysinger <vapier@gentoo.org>.
3294
3295 2010-11-20  Bruno Haible  <bruno@clisp.org>
3296
3297         memmem: Fix autoconf test.
3298         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
3299
3300 2010-11-20  Bruno Haible  <bruno@clisp.org>
3301
3302         Port to uClibc.
3303         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
3304         * lib/fcntl.in.h: Likewise.
3305         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
3306         * lib/mbrtowc.c (mbrtowc): Likewise.
3307         * lib/relocatable.c (find_shared_library_fullname): Likewise.
3308         * lib/strerror_r.c: Likewise.
3309         * lib/unistr/u8-strnlen.c: Likewise.
3310         * lib/vasnprintf.c (decimal_point_char): Likewise.
3311         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
3312         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3313         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
3314         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3315         * tests/test-sigaction.c (handler, main): Likewise.
3316         * lib/freading.h: Treat uClibc like a non-glibc platform.
3317         * lib/freading.c: Likewise.
3318         * lib/gettext.h: Likewise.
3319         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
3320         Likewise.
3321         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
3322         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3323         * lib/propername.c (proper_name_utf8): Likewise.
3324         * lib/spawn.in.h: Likewise.
3325         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
3326         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
3327         mem_cd_iconveh_internal): Likewise.
3328         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
3329         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
3330         strstr, strcasestr): Likewise.
3331         * lib/unicodeio.c (unicode_to_mb): Likewise.
3332         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
3333         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
3334         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
3335         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
3336         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
3337         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
3338         * lib/unistr/u8-stpncpy.c: Likewise.
3339         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3340         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
3341         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3342         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3343         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3344         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
3345         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
3346         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
3347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3348         Likewise.
3349         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3350         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3351         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3352         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3353         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3354         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3355         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3356         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3357         * tests/test-getopt.h (OPTIND_MIN): Likewise.
3358         * tests/test-striconveha.c (main): Likewise.
3359         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3360         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
3361         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
3362         * doc/posix-functions/getline.texi: Likewise.
3363         Reported by Mike Frysinger <vapier@gentoo.org>.
3364
3365 2010-11-20  Bruno Haible  <bruno@clisp.org>
3366
3367         nproc: Fix condition.
3368         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
3369         HAVE_PTHREAD_AFFINITY_NP.
3370
3371 2010-11-20  Bruno Haible  <bruno@clisp.org>
3372
3373         Fix a comment.
3374         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
3375
3376 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
3377
3378         ftoastr: don't assume snprintf
3379         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
3380         Implement a subset of snprintf here, by using sprintf safely.
3381         * modules/ftoastr (Depends-on): Remove snprintf.
3382
3383 2010-11-19  Jim Meyering  <meyering@redhat.com>
3384
3385         test-rename.h: fix compilation failure
3386         * tests/test-rename.h (test_rename): Add omitted "}".
3387
3388 2010-11-17  Jim Meyering  <meyering@redhat.com>
3389
3390         maint.mk: add a URL discussing the no-@acronym policy
3391         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
3392
3393 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3394
3395         ftoastr: depend on snprintf, improve comments
3396         * lib/ftoastr.c: Also mention Loitsch's draft.
3397         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
3398         needed in the current implementation, but it might simplify
3399         speeding up the code later.
3400         * modules/ftoastr: Depend on snprintf; this improves portability.
3401         Suggested by Bruno Haible in the same email.
3402
3403         ftoastr: port to hosts lacking strtof and strtold
3404         Problem reported by Bruno Haible in
3405         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
3406         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
3407         environment and strtold (and presumably strtof) are not available.
3408         * modules/ftoastr (Files): Add m4/c-strtod.m4.
3409         (configure.ac): Require gl_C99_STRTOLD.
3410
3411 2010-11-18  Bruno Haible  <bruno@clisp.org>
3412
3413         c-strtold: Avoid link error on AIX 7.
3414         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
3415         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
3416         (gl_C_STRTOLD): Test whether strtold_l exists.
3417         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3418
3419 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3420
3421         intprops: new macro INT_BITS_STRLEN_BOUND
3422         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
3423         ftoastr.h.  This exposes an internal of intprops.h that was formerly
3424         not exposed.  Also, it uses a slightly tighter bound than before;
3425         though this makes no practical difference, we might as well be as
3426         tight as we easily can.
3427
3428         ftoastr: new module, for lossless conversion of floats to short strings
3429         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
3430         * modules/ftoastr: New files.
3431
3432 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
3433
3434         bootstrap: port to Solaris sed
3435         * build-aux/bootstrap (get_version): Port to Solaris sed.
3436         See Ralf Wildenhues's note in
3437         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
3438
3439 2010-11-14  Jim Meyering  <meyering@redhat.com>
3440
3441         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
3442         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
3443         and move definition closer to sole use.
3444
3445 2010-11-13  Jim Meyering  <meyering@redhat.com>
3446
3447         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
3448         Now we require at least autoconf-2.59, which means the work-around
3449         is no longer needed.
3450         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
3451         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3452         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3453         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
3454         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3455
3456 2010-11-13  Bruno Haible  <bruno@clisp.org>
3457
3458         rename, renameat: Avoid test failures at NFS mounted locations.
3459         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
3460         functions.
3461         (test_rename): Use assert_nonexistent.
3462         * tests/test-rename.c: Include <dirent.h>.
3463         * tests/test-renameat.c: Likewise.
3464         Reported by Gary V. Vaughan <gary@gnu.org>.
3465
3466         rename, renameat: Document Linux bug with NFS
3467         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
3468         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
3469         * doc/posix-functions/renameat.texi: Likewise.
3470         Suggested by Eric Blake.
3471
3472 2010-11-13  Bruno Haible  <bruno@clisp.org>
3473
3474         rename test: Add comments.
3475         * tests/test-rename.h (test_rename): Add structure and comments.
3476
3477 2010-11-13  Eric Blake  <eblake@redhat.com>
3478
3479         maintainer-makefile: cover a few more files
3480         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
3481         scripts generated within C files, for libvirt.
3482
3483 2010-11-13  Bruno Haible  <bruno@clisp.org>
3484
3485         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
3486         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
3487         character, return the number of bytes that belong together, not always
3488         1.
3489         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
3490         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
3491         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
3492         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
3493         number of bytes of an invalid character.
3494         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
3495         (main): Invoke it.
3496         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
3497         results.
3498         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
3499         malformed byte sequences.
3500         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
3501         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
3502         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
3503         Reported by Ben Pfaff and Paolo Bonzini.
3504
3505 2010-11-13  Bruno Haible  <bruno@clisp.org>
3506
3507         openat: Work around glibc bug with fchownat() and empty file names.
3508         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
3509         (gl_FUNC_FCHOWNAT): Invoke it.
3510         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
3511         * doc/posix-functions/fchownat.texi: Document the glibc bug.
3512         Reported by Gary V. Vaughan <gary@gnu.org>.
3513
3514 2010-11-13  Bruno Haible  <bruno@clisp.org>
3515
3516         openat: Ensure autoconf macro ordering.
3517         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
3518         gl_USE_SYSTEM_EXTENSIONS.
3519         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
3520
3521 2010-11-13  Bruno Haible  <bruno@clisp.org>
3522
3523         Update comments.
3524         * lib/unistr/u8-check.c: Update file name in comments.
3525         * lib/unistr/u8-mblen.c: Likewise.
3526         * lib/unistr/u8-prev.c: Likewise.
3527         * lib/unistr/u8-strmblen.c: Likewise.
3528         * lib/unistr/u8-strmbtouc.c: Likewise.
3529
3530 2010-11-13  Jim Meyering  <meyering@redhat.com>
3531
3532         tests: avoid test failure on Solaris 10 due to lack of PATH export
3533         * tests/test-update-copyright.sh: Don't forget to export PATH.
3534
3535         init.sh: ensure that IFS is defined, just in case...
3536         * tests/init.sh (setup_): Ensure that IFS is defined,
3537         so that saving and restoring it works as expected.  This
3538         appears to be useful at least for an old version of dash
3539         from a long time ago (RH 6).  See here for details:
3540         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
3541
3542         maint.mk: tighten "test a == b" check
3543         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
3544         test to files that contain something like #!/bin/sh.
3545         Without this, coreutils would get two false positives in
3546         the comments of C source files.
3547
3548 2010-11-12  Eric Blake  <eblake@redhat.com>
3549
3550         bootstrap: fix typo in previous attempt
3551         * build-aux/bootstrap (buildreq): Correct the grouping.
3552         Reported by Paul Eggert.
3553
3554         maintainer-makefile: prohibit test x == x
3555         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
3556         Based on a report by Matthias Bolte.
3557
3558         bootstrap: allow FreeBSD gzip
3559         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
3560         which has no '.' and goes to stderr.
3561         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
3562         Reported by Matthias Bolte.
3563
3564         maintainer-makefile: check for i18n setup
3565         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
3566         will likely work.
3567
3568 2010-11-12  Bruno Haible  <bruno@clisp.org>
3569
3570         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
3571         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
3572         * lib/nanosleep.c (nanosleep): Likewise.
3573
3574 2010-11-11  Bruno Haible  <bruno@clisp.org>
3575
3576         fcntl-h: Fix for use of C++ on glibc systems.
3577         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3578         also on glibc systems in C++ mode.
3579         Reported by Gary V. Vaughan <gary@gnu.org>.
3580
3581 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3582
3583         mknod: avoid false failure with dash
3584         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
3585
3586 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
3587
3588         unlink: Fix "is it should" typo in diagnostic.
3589         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
3590         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
3591
3592 2010-11-11  Bruno Haible  <bruno@clisp.org>
3593
3594         Tests for module 'strerror_r-posix'.
3595         * modules/strerror_r-posix-tests: New file.
3596         * tests/test-strerror_r.c: New file.
3597         * tests/test-string-c++.cc: Check the signature of strerror_r.
3598
3599         New module 'strerror_r-posix'.
3600         * lib/string.in.h (strerror_r): New declaration.
3601         * lib/strerror_r.c: New file.
3602         * m4/strerror_r.m4: New file.
3603         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
3604         of strerror_r.
3605         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
3606         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3607         * modules/strerror_r-posix: New file.
3608         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
3609         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3610         * doc/posix-functions/strerror_r.texi: Mention the new module and the
3611         portability problems.
3612
3613 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
3614
3615         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
3616         line is also considered for output. Quoted function name in shell
3617         command, so temporary files for functions like MyClass::operator()
3618         are removed correctly without errors.
3619
3620 2010-11-09  Bruno Haible  <bruno@clisp.org>
3621
3622         * doc/posix-functions/strerror.texi: List more failing platforms.
3623
3624         * doc/posix-functions/strerror.texi: Add a comment.
3625
3626 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3627
3628         fdopendir: fix bug on MacOS X when low on file descriptors
3629
3630         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
3631         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
3632         All callers changed.
3633         (fdopendir): Invoke save_cwd at the top level, not after using
3634         multiple dup() calls to use up file descriptors.  Then retry
3635         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
3636         less than the maximum number of open file descriptors, because
3637         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
3638         on Mac OS X 10.6.4 for tar 1.24
3639         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
3640         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
3641         and for tar 1.25
3642         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
3643
3644 2010-11-07  Bruno Haible  <bruno@clisp.org>
3645
3646         vasnprintf: Support I flag on glibc systems.
3647         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
3648         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
3649         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
3650         snprintf function.
3651         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
3652         glibc systems.
3653         * tests/test-vasnprintf-posix3.c: New file.
3654         * modules/vasnprintf-posix-tests (Files): Add it.
3655         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
3656
3657 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3658
3659         [html] Fix copy/paste bug: Use unique name for compiler warnings.
3660         * MODULES.html.sh: For compiler warnings, use name
3661         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
3662
3663 2010-11-05  Eric Blake  <eblake@redhat.com>
3664
3665         ceil, floor: avoid spurious failure with icc
3666         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
3667         [denormals-as-zero] when optimizing without -mieee-fp option.
3668         * tests/test-floorf2.c (floorf_reference): Likewise.
3669         * tests/test-ceilf1.c (dummy): New function.
3670         (main): Use it to outsmart icc's optimization.
3671         * tests/test-floorf1.c (dummy, main): Likewise.
3672
3673         tests: require working signbit
3674         * modules/ceilf-tests (Depends-on): Add signbit.
3675         * modules/ceill-tests (Depends-on): Likewise.
3676         * modules/floorf-tests (Depends-on): Likewise.
3677         * modules/floorl-tests (Depends-on): Likewise.
3678         * modules/round-tests (Depends-on): Likewise.
3679         * modules/roundf-tests (Depends-on): Likewise.
3680         * modules/roundl-tests (Depends-on): Likewise.
3681         * modules/trunc-tests (Depends-on): Likewise.
3682         * modules/truncf-tests (Depends-on): Likewise.
3683         * modules/truncl-tests (Depends-on): Likewise.
3684
3685         strtod: work around icc bug
3686         * lib/strtod.c (minus_zero): Define to working value.
3687         (strtod): Use it to avoid icc bug.
3688
3689         copysign: enhance tests
3690         * modules/copysign-tests (Files): Add minus-zero.h.
3691         * tests/test-copysign.c (main): Also test zeros.
3692
3693 2010-11-04  Eric Blake  <eblake@redhat.com>
3694
3695         ceil, floor, round, trunc: enhance tests of -0
3696         * tests/test-ceilf1.c (main): Ensure correct sign of result.
3697         * tests/test-ceill.c (main): Likewise.
3698         * tests/test-floorf1.c (main): Likewise.
3699         * tests/test-floorl.c (main): Likewise.
3700         * tests/test-round1.c (main): Likewise.
3701         * tests/test-roundf1.c (main): Likewise.
3702         * tests/test-roundl.c (main): Likewise.
3703         * tests/test-trunc1.c (main): Likewise.
3704         * tests/test-truncf1.c (main): Likewise.
3705         * tests/test-truncl.c (main): Likewise.
3706
3707 2010-11-04  Eric Blake  <eblake@redhat.com>
3708
3709         frexp, tests: work around ICC bug with -zero
3710         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
3711         works with more compilers.
3712         * tests/minus-zero.h: New file.
3713         * modules/ceilf-tests (Files): Include it.
3714         * modules/ceill-tests (Files): Likewise.
3715         * modules/floorf-tests (Files): Likewise.
3716         * modules/floorl-tests (Files): Likewise.
3717         * modules/frexp-nolibm-tests (Files): Likewise.
3718         * modules/frexp-tests (Files): Likewise.
3719         * modules/frexpl-nolibm-tests (Files): Likewise.
3720         * modules/frexpl-tests (Files): Likewise.
3721         * modules/isnan-tests (Files): Likewise.
3722         * modules/isnand-nolibm-tests (Files): Likewise.
3723         * modules/isnand-tests (Files): Likewise.
3724         * modules/isnanf-nolibm-tests (Files): Likewise.
3725         * modules/isnanf-tests (Files): Likewise.
3726         * modules/isnanl-nolibm-tests (Files): Likewise.
3727         * modules/isnanl-tests (Files): Likewise.
3728         * modules/round-tests (Files): Likewise.
3729         * modules/roundf-tests (Files): Likewise.
3730         * modules/roundl-tests (Files): Likewise.
3731         * modules/ldexpl-tests (Files): Likewise.
3732         * modules/signbit-tests (Files): Likewise.
3733         * modules/snprintf-posix-tests (Files): Likewise.
3734         * modules/sprintf-posix-tests (Files): Likewise.
3735         * modules/strtod-tests (Files): Likewise.
3736         * modules/trunc-tests (Files): Likewise.
3737         * modules/truncf-tests (Files): Likewise.
3738         * modules/truncl-tests (Files): Likewise.
3739         * modules/vsnprintf-posix-tests (Files): Likewise.
3740         * modules/vsprintf-posix-tests (Files): Likewise.
3741         * modules/vasnprintf-posix-tests (Files): Likewise.
3742         * modules/vasprintf-posix-tests (Files): Likewise.
3743         * tests/test-ceilf1.c (main): Use it.
3744         * tests/test-ceill.c (main): Likewise.
3745         * tests/test-floorf1.c (main): Likewise.
3746         * tests/test-floorl.c (main): Likewise.
3747         * tests/test-frexp.c (main): Likewise.
3748         * tests/test-frexpl.c (main): Likewise.
3749         * tests/test-isnan.c (main): Likewise.
3750         * tests/test-isnand.h (main): Likewise.
3751         * tests/test-isnanf.h (main): Likewise.
3752         * tests/test-isnanl.h (main): Likewise.
3753         * tests/test-ldexpl.c (main): Likewise.
3754         * tests/test-round.c (main): Likewise.
3755         * tests/test-roundf.c (main): Likewise.
3756         * tests/test-roundl.c (main): Likewise.
3757         * tests/test-signbit.c (test_signbitf, test_signbitd)
3758         (test_signbitl): Likewise.
3759         * tests/test-snprintf-posix.h (test_function): Likewise.
3760         * tests/test-sprintf-posix.h (test_function): Likewise.
3761         * tests/test-strtod.c (main): Likewise.
3762         * tests/test-trunc1.c (main): Likewise.
3763         * tests/test-truncf1.c (main): Likewise.
3764         * tests/test-truncl.c (main): Likewise.
3765
3766         isnanl: work around icc bug
3767         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
3768
3769 2010-11-03  Eric Blake  <eblake@redhat.com>
3770
3771         tests: fix compiler warnings
3772         * tests/test-getopt.h (test_getopt): Fix condition.
3773         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3774         * tests/test-pipe2.c (main): Likewise.
3775         * tests/test-quotearg-simple.c (main): Avoid icc warning.
3776
3777         utimens: fix broken m4 test
3778         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
3779
3780 2010-10-28  Bruno Haible  <bruno@clisp.org>
3781
3782         posix_spawn*, getdtablesize: Relax license.
3783         * modules/posix_spawn (License): Change to LGPLv2+.
3784         * modules/posix_spawnp (License): Likewise.
3785         * modules/posix_spawn-internal (License): Likewise.
3786         * modules/posix_spawnattr_init (License): Likewise.
3787         * modules/posix_spawnattr_getflags (License): Likewise.
3788         * modules/posix_spawnattr_setflags (License): Likewise.
3789         * modules/posix_spawnattr_getpgroup (License): Likewise.
3790         * modules/posix_spawnattr_setpgroup (License): Likewise.
3791         * modules/posix_spawnattr_getschedparam (License): Likewise.
3792         * modules/posix_spawnattr_setschedparam (License): Likewise.
3793         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
3794         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
3795         * modules/posix_spawnattr_getsigdefault (License): Likewise.
3796         * modules/posix_spawnattr_setsigdefault (License): Likewise.
3797         * modules/posix_spawnattr_getsigmask (License): Likewise.
3798         * modules/posix_spawnattr_setsigmask (License): Likewise.
3799         * modules/posix_spawnattr_destroy (License): Likewise.
3800         * modules/posix_spawn_file_actions_init (License): Likewise.
3801         * modules/posix_spawn_file_actions_addclose (License): Likewise.
3802         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
3803         * modules/posix_spawn_file_actions_addopen (License): Likewise.
3804         * modules/posix_spawn_file_actions_destroy (License): Likewise.
3805         * modules/getdtablesize (License): Likewise.
3806         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
3807
3808 2010-10-26  Bruno Haible  <bruno@clisp.org>
3809
3810         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
3811         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
3812         Cygwin and mingw.
3813         Suggested by Eric Blake.
3814
3815 2010-10-26  Bruno Haible  <bruno@clisp.org>
3816
3817         stdio: Work around compilation error due to renameat() on Solaris 10.
3818         * lib/stdio.in.h: Include <unistd.h> on Solaris.
3819         * lib/renameat.c: Don't include <unistd.h> here.
3820         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
3821         Reported by Paul Eggert and Eric Blake.
3822
3823 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3824
3825         renameat: port to Solaris 10, which declares renameat in unistd.h
3826
3827         * lib/renameat.c: Include unistd.h before stdio.h, because
3828         Solaris 10 declares renameat in unistd.h.  Problem encountered
3829         when building GNU tar 1.24 on Solaris 10.
3830
3831 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3832
3833         fdopendir: fix C89 compilation
3834         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
3835         compilers.
3836
3837 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3838
3839         inttostr: simplify by removing unnecessary redundancy
3840         * lib/anytostr.c: Don't include verify.h.
3841         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
3842         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
3843         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
3844         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
3845         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
3846         Likewise.
3847         * modules/inttostr (Depends-on): Remove 'verify'.
3848
3849 2010-10-23  Bruno Haible  <bruno@clisp.org>
3850
3851         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
3852         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
3853         Reported by Eric Blake.
3854
3855 2010-10-23  Bruno Haible  <bruno@clisp.org>
3856
3857         Tests: Fix LOCALE_JA on MirBSD 10.
3858         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
3859         to an UTF-8 locale.
3860         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
3861         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3862         Reported by Eric Blake.
3863
3864 2010-10-21  Bruno Haible  <bruno@clisp.org>
3865
3866         nl_langinfo test: Avoid test failure on NetBSD 5.
3867         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
3868         Reported by Eric Blake.
3869
3870 2010-10-21  Eric Blake  <eblake@redhat.com>
3871
3872         c-stack: work around libsigsegv 2.8 bug
3873         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
3874         overflow on at least PowerPC64.
3875
3876 2010-10-17  Bruno Haible  <bruno@clisp.org>
3877
3878         userspec: Drop redundant file.
3879         * modules/userspec (Files): Remove lib/inttostr.h.
3880
3881 2010-10-17  Bruno Haible  <bruno@clisp.org>
3882
3883         nl_langinfo tests: Silence some warnings.
3884         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
3885         Reported by Jim Meyering.
3886
3887 2010-10-17  Bruno Haible  <bruno@clisp.org>
3888
3889         Make use of GCC's attribute __alloc_size__.
3890         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
3891         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
3892         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
3893         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
3894         __alloc_size__.
3895         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3896         Suggested by Jim Meyering.
3897
3898 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
3899
3900         bootstrap: anchor .gitignore entries.
3901         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
3902         with...
3903         (insert_vc_ignore): ... this new function, which prepends `/' to
3904         all .gitignore entries before passing them to
3905         insert_sorted_if_absent.
3906
3907 2010-10-16  Bruno Haible  <bruno@clisp.org>
3908
3909         nextafter: Fix configure check.
3910         * modules/nextafter (configure.ac): Correct expected prototype.
3911
3912 2010-10-16  Bruno Haible  <bruno@clisp.org>
3913
3914         termios: Update documentation.
3915         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
3916
3917 2010-10-16  Bruno Haible  <bruno@clisp.org>
3918
3919         tests: Make them compile with TinyCC.
3920         * tests/test-strstr.c (main): Remove parentheses around array
3921         initializer.
3922
3923 2010-10-15  Eric Blake  <eblake@redhat.com>
3924
3925         ignore-value: make header idempotent
3926         * lib/ignore-value.h: Add double-inclusion guards.
3927         Reported by Stefan Berger.
3928
3929 2010-10-15  Jim Meyering  <meyering@redhat.com>
3930
3931         GNUmakefile: handle "stable" target, not "major"
3932         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
3933         lists in maint.mk and announce-gen.  Without this, "make stable"
3934         would fail to ensure that $(VERSION) is up to date.
3935
3936 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
3937
3938         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
3939         & co.
3940
3941 2010-10-14  Bruno Haible  <bruno@clisp.org>
3942
3943         vasnprintf: Don't set errno to 0.
3944         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
3945         block that sets it to 0.
3946         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3947
3948 2010-10-14  Bruno Haible  <bruno@clisp.org>
3949
3950         socketlib: Fix.
3951         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
3952         gl_PREREQ_SYS_H_WINSOCK2.
3953         Reported by Ian Beckwith <ianb@erislabs.net>.
3954
3955 2010-10-13  Jim Meyering  <meyering@redhat.com>
3956
3957         test-select-stdin.c: avoid warn_unused_result warnings
3958         * tests/test-select-stdin.c: Include "macros.h".
3959         ASSERT that read and fflush succeed.
3960
3961 2010-10-13  Jim Meyering  <meyering@redhat.com>
3962
3963         git-version-gen: do require git-VC'd files in cwd
3964         * build-aux/git-version-gen: Reject a git version string
3965         if there are no commits associated with the current directory.
3966         This avoids an unlikely false-positive (unrelated dir whose parent
3967         repository also contains a tag matching v*), as pointed out
3968         by Giuseppe Scrivano in
3969         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
3970
3971 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
3972
3973         argv-iter: omit nonconforming declaration
3974         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
3975         enum arg_iter_err declaration, which doesn't conform to C99.
3976         Solaris 10 cc warns about this.
3977
3978 2010-10-13  Eric Blake  <eblake@redhat.com>
3979
3980         termios: fix compilation on mingw
3981         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
3982         (gl_TERMIOS_H): Adjust it on mingw.
3983         * modules/termios (Makefile.am): Substitute new key.
3984         * lib/termios.in.h (includes): Make include_next conditional.
3985         * doc/posix-headers/termios.texi (termios.h): Update
3986         documentation.
3987         Reported by Daniel P. Berrange.
3988
3989 2010-10-13  Jim Meyering  <meyering@redhat.com>
3990
3991         git-version-gen: don't require that .git/ be in the current dir
3992         * build-aux/git-version-gen: Adjust this script so that it works
3993         when run from any working directory beneath the top-level .git/-
3994         containing directory.  Inspired by a patch from Giuseppe Scrivano,
3995         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
3996
3997         test-select: avoid warn_unused_result warnings
3998         * tests/test-select.c: Include "macros.h".
3999         ASSERT that each call to read, write, and pipe succeeds.
4000         While not technically required, also check each "close".
4001         * modules/select-tests (Files): Add tests/macros.h.
4002
4003         test-symlinkat: remove declaration of unused local
4004         * tests/test-symlinkat.c (main): Remove unused local, "buf".
4005
4006         test-inttostr: avoid shadowing warnings
4007         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
4008         and use malloc rather than the stack for the same reason as
4009         mentioned in the comment justifying the other allocation.
4010
4011 2010-10-11  Bruno Haible  <bruno@clisp.org>
4012
4013         stdlib: Allow multiple gnulib generated replacements to coexist.
4014         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
4015         Reported by Sam Steingold <sds@gnu.org>.
4016
4017 2010-10-11  Jim Meyering  <meyering@redhat.com>
4018
4019         fix a documentation typo
4020         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
4021
4022 2010-10-11  Eric Blake  <eblake@redhat.com>
4023
4024         futimens: work around Solaris 11 bug
4025         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
4026         * tests/test-futimens.h (test_futimens): Enhance, rather than
4027         weaken test.
4028         * doc/posix-functions/futimens.texi (futimens): Document the bug.
4029
4030 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4031
4032         Indentation.
4033         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
4034         higher-level operators more to the left.
4035
4036 2010-10-11  Jim Meyering  <meyering@redhat.com>
4037
4038         test-futimens: avoid unwarranted test failure on Solaris 5.11
4039         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
4040         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
4041         because it tries to dereference the NULL name argument.
4042
4043 2010-10-11  Bruno Haible  <bruno@clisp.org>
4044
4045         Indentation.
4046         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
4047         indentation.
4048
4049 2010-10-11  Jim Meyering  <meyering@redhat.com>
4050
4051         spawn.in.h: make indentation consistent with parentheses
4052         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
4053         Make indentation consistent with parentheses.
4054
4055 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
4056
4057         Fix mismatched parens in previous commit
4058         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
4059         parens.
4060
4061 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
4062
4063         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
4064
4065         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
4066         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
4067         * lib/malloca.c: Include "verify.h".
4068         (verify1): Remove, replacing with a verify call.
4069         * lib/relocwrapper.c (verify1): Likewise.
4070         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
4071         Likewise.
4072         * modules/malloca (Depends-on): Add 'verify'.
4073         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
4074         * modules/vasnprintf (Depends-on): Add 'verify'.
4075         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4076         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4077         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4078         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4079         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4080         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4081         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4082
4083         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
4084
4085         Formerly the style was sometimes 2*X - 1, because the C standard
4086         was wrongly thought to disallow ?: in integral constant expressions.
4087         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
4088         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
4089         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4090         * lib/stdint.in.h (_verify_intmax_size): Likewise.
4091         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
4092         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
4093         verify that time_t cannot be floating.
4094
4095 2010-10-08  Eric Blake  <eblake@redhat.com>
4096
4097         time: enforce recent POSIX ruling that time_t is integral
4098         * lib/time.in.h (__time_t_must_be_integral): Detect any
4099         problematic systems, allowing the rest of gnulib to assume POSIX.
4100
4101 2010-10-08  Jim Meyering  <meyering@redhat.com>
4102
4103         fdopendir: fix a bug on systems lacking openat and /proc support
4104         OpenBSD 4.7 is one such system.  The most noticeable effect was
4105         failure of any application making nontrivial use of fts: rm, du,
4106         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
4107           ./rm: traversal failed: `a': Bad file descriptor
4108         Debugging that, you see that even though FD 6 was closed just
4109         prior to the opendir call in fd_clone_opendir, its resulting
4110         dir->dd_fd was 8, rather than the expected value of 6:
4111
4112         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
4113         93                close (fd);
4114         (gdb) n
4115         94                dir = fd_clone_opendir (dupfd);
4116         (gdb) n
4117         95                saved_errno = errno;
4118         (gdb) p dir->dd_fd
4119         $11 = 8
4120
4121         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
4122         The problem is that on OpenBSD, fd_clone_opendir has to resort
4123         to using the old-style save/restore CWD mechanism, due to its
4124         lack of openat/proc support, and *that* would steal the FD (6)
4125         that opendir was supposed to use.
4126
4127         The fix is to squirrel away the desired FD so that save_cwd uses a
4128         different one, and then free the dest FD right before calling opendir.
4129         That guarantees opendir will use the required file descriptor.
4130
4131         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
4132
4133 2010-10-08  Bruno Haible  <bruno@clisp.org>
4134
4135         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
4136         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
4137
4138 2010-10-08  Bruno Haible  <bruno@clisp.org>
4139
4140         nanosleep: Make replacement POSIX compliant.
4141         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
4142         is out of range.
4143         Reported by Jim Meyering.
4144
4145 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
4146
4147         bootstrap: add hook for altering gnulib.mk, for Bison
4148         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
4149         the Bison bootstrapping process can rewrite file names and variables
4150         in this file before later parts of 'bootstrap' use the file.
4151         Bison wants to include lib/gnulib.mk from the top-level makefile,
4152         so it needs the file names in this file to be relative to the top
4153         level, not relative to lib; plus it needs variable names to be
4154         rewritten.
4155         (slurp): Use the new function.
4156
4157         bootstrap: reformat for readability
4158         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
4159
4160 2010-10-08  Eric Blake  <eblake@redhat.com>
4161
4162         docs: update cygwin progress
4163         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
4164         1.7.7.
4165         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
4166         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
4167         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
4168         * doc/posix-functions/carg.texi (carg): Likewise.
4169         * doc/posix-functions/cargf.texi (cargf): Likewise.
4170         * doc/posix-functions/casin.texi (casin): Likewise.
4171         * doc/posix-functions/casinf.texi (casinf): Likewise.
4172         * doc/posix-functions/casinh.texi (casinh): Likewise.
4173         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
4174         * doc/posix-functions/catan.texi (catan): Likewise.
4175         * doc/posix-functions/catanf.texi (catanf): Likewise.
4176         * doc/posix-functions/catanh.texi (catanh): Likewise.
4177         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
4178         * doc/posix-functions/ccos.texi (ccos): Likewise.
4179         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
4180         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
4181         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
4182         * doc/posix-functions/cexp.texi (cexp): Likewise.
4183         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
4184         * doc/posix-functions/cimag.texi (cimag): Likewise.
4185         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
4186         * doc/posix-functions/clog.texi (clog): Likewise.
4187         * doc/posix-functions/clogf.texi (clogf): Likewise.
4188         * doc/posix-functions/conj.texi (conj): Likewise.
4189         * doc/posix-functions/conjf.texi (conjf): Likewise.
4190         * doc/posix-functions/cpow.texi (cpow): Likewise.
4191         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
4192         * doc/posix-functions/cproj.texi (cproj): Likewise.
4193         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
4194         * doc/posix-functions/creal.texi (creal): Likewise.
4195         * doc/posix-functions/crealf.texi (crealf): Likewise.
4196         * doc/posix-functions/csin.texi (csin): Likewise.
4197         * doc/posix-functions/csinf.texi (csinf): Likewise.
4198         * doc/posix-functions/csinh.texi (csinh): Likewise.
4199         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
4200         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
4201         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
4202         * doc/posix-functions/ctan.texi (ctan): Likewise.
4203         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
4204         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
4205         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
4206         * doc/posix-headers/complex.texi (complex.h): Likewise.
4207
4208 2010-10-07  Jim Meyering  <meyering@redhat.com>
4209
4210         parse-datetime: avoid compilation failure on OpenBSD 4.7
4211         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
4212         This works around a compilation failure on OpenBSD 4.7:
4213         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
4214
4215 2010-10-07  Eric Blake  <eblake@redhat.com>
4216
4217         docs: update cygwin progress
4218         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
4219         1.7.6.
4220         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
4221         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
4222         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
4223         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
4224         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
4225         Likewise.
4226         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
4227         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
4228         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
4229         Likewise.
4230         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
4231         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
4232         Likewise.
4233         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
4234         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
4235         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
4236         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
4237         Likewise.
4238         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
4239         Likewise.
4240         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
4241
4242         docs: update parse-datetime history
4243         * doc/parse-datetime.texi (Authors of parse_datetime): Better
4244         documentation of this function's history and alternatives.
4245
4246         cygwin: use more robust version check
4247         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
4248         exclude an eventual cygwin 1.9.1.
4249         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4250         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4251         (gl_FUNC_STRCASESTR): Likewise.
4252         Reported by Bruno Haible.
4253
4254 2010-10-06  Bruno Haible  <bruno@clisp.org>
4255
4256         string, sys_select: Avoid #including large headers unless necessary.
4257         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
4258         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
4259         OSF/1, BeOS, Haiku.
4260         Reported by Jim Meyering.
4261
4262 2010-10-05  Eric Blake  <eblake@redhat.com>
4263
4264         memmem, strstr, strcasestr: fix bug with long periodic needle
4265         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
4266         periodic needle having false positive.
4267         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
4268         and cygwin 1.7.7.
4269         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
4270         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4271         (gl_FUNC_STRCASESTR): Likewise.
4272         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4273         * tests/test-memmem.c (main): Expose the bug.
4274         * tests/test-strcasestr.c (main): Likewise.
4275         * tests/test-strstr.c (main): Likewise.
4276         * tests/test-c-strcasestr.c (main): Likewise.
4277         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
4278         * doc/posix-functions/strstr.texi (strstr): Likewise.
4279         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4280         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
4281
4282 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4283
4284         parse-datetime: do some more renaming
4285         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
4286         parse_datetime, not get_date.  Mention the renaming.
4287         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
4288         in comments.
4289         * m4/bison.m4: Likewise.
4290
4291 2010-10-05  Eric Blake  <eblake@redhat.com>
4292
4293         parse-datetime: better name than get_date
4294         * NEWS: Reword the deprecation notice.
4295         * modules/get_date: Rename to modules/parse-datetime.
4296         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
4297         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
4298         * lib/get_date.y: Rename to lib/parse-datetime.y.
4299         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
4300         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
4301         * doc/getdate.texi: Provide fallback wrapper.
4302         * lib/getdate.h: Move guts, and wrap...
4303         * lib/parse-datetime.h: ...new file.
4304         * lib/parse-datetime.y (get_date): Rename...
4305         (parse_datetime): ...to this.
4306         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
4307         (gl_PARSE_DATETIME): ...to this.
4308         * doc/posix-functions/getdate.texi (get_date): Provide fallback
4309         documentation.
4310         * modules/getdate (Files): Provide fallback docs and header.
4311         (Notice, Depends-on): Update references.
4312         * tests/test-parse-datetime.c: Likewise.
4313         * DEPENDENCIES: Likewise.
4314         * MODULES.html.sh (Date and time <time.h>): Likewise.
4315         * doc/parse-datetime.texi (Date input formats)
4316         (Authors of parse_datetime): Likewise.
4317         * modules/parse-datetime (Files, configure.ac, Makefile.am)
4318         (Include): Likewise.
4319         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
4320         * gnulib-tool: Likewise.
4321         * m4/bison.m4 (gl_BISON): Likewise.
4322         Suggested by Bruno Haible.
4323
4324 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4325
4326         more ports to Solaris tr, which needs [] around ranges
4327         * gnulib-tool: Solaris tr needs [] around ranges.
4328         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4329         * tests/test-pipe-filter-gi1.c (main): Likewise.
4330         * tests/test-pipe-filter-ii1.c (main): Likewise.
4331
4332 2010-10-05  Eric Blake  <eblake@redhat.com>
4333
4334         bootstrap: fix Solaris regression
4335         * build-aux/bootstrap (check_versions): Solaris tr still needs []
4336         around ranges.
4337         Reported by Pádraig Brady.
4338
4339         bootstrap: work with pkg-config
4340         * build-aux/bootstrap (check_versions): Also transliterate - in
4341         prerequisite name.
4342         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
4343         prerequisites that were already found, to avoid confusion.
4344         Reported by Justin Clift.
4345
4346         faccessat: remove unused wrappers
4347         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
4348         presence of these wrappers dragged in -lgen on Solaris.
4349         Reported by Clemens Brogi; fix suggested by Paul Eggert.
4350
4351 2010-10-05  Jim Meyering  <meyering@redhat.com>
4352
4353         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
4354         * Makefile (sc_pragma_columns): New syntax-check rule.
4355
4356 2010-10-04  Bruno Haible  <bruno@clisp.org>
4357
4358         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
4359         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
4360         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
4361         Reported by Bruce Korb and Eric Blake.
4362
4363 2010-10-04  Bruno Haible  <bruno@clisp.org>
4364
4365         threadlib: Make option --with-libpth-prefix work.
4366         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
4367         use $LIBPTH, not just -lpth.
4368
4369 2010-10-04  Bruno Haible  <bruno@clisp.org>
4370
4371         Avoid line length limitation from HP NonStop system header files.
4372         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
4373         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
4374         * lib/ctype.in.h: Likewise.
4375         * lib/dirent.in.h: Likewise.
4376         * lib/errno.in.h: Likewise.
4377         * lib/fcntl.in.h: Likewise.
4378         * lib/float.in.h: Likewise.
4379         * lib/getopt.in.h: Likewise.
4380         * lib/iconv.in.h: Likewise.
4381         * lib/inttypes.in.h: Likewise.
4382         * lib/langinfo.in.h: Likewise.
4383         * lib/locale.in.h: Likewise.
4384         * lib/math.in.h: Likewise.
4385         * lib/netdb.in.h: Likewise.
4386         * lib/netinet_in.in.h: Likewise.
4387         * lib/poll.in.h: Likewise.
4388         * lib/pthread.in.h: Likewise.
4389         * lib/pty.in.h: Likewise.
4390         * lib/sched.in.h: Likewise.
4391         * lib/se-selinux.in.h: Likewise.
4392         * lib/search.in.h: Likewise.
4393         * lib/signal.in.h: Likewise.
4394         * lib/spawn.in.h: Likewise.
4395         * lib/stdarg.in.h: Likewise.
4396         * lib/stddef.in.h: Likewise.
4397         * lib/stdint.in.h: Likewise.
4398         * lib/stdio.in.h: Likewise.
4399         * lib/stdlib.in.h: Likewise.
4400         * lib/string.in.h: Likewise.
4401         * lib/strings.in.h: Likewise.
4402         * lib/sys_file.in.h: Likewise.
4403         * lib/sys_ioctl.in.h: Likewise.
4404         * lib/sys_select.in.h: Likewise.
4405         * lib/sys_socket.in.h: Likewise.
4406         * lib/sys_stat.in.h: Likewise.
4407         * lib/sys_time.in.h: Likewise.
4408         * lib/sys_times.in.h: Likewise.
4409         * lib/sys_utsname.in.h: Likewise.
4410         * lib/sys_wait.in.h: Likewise.
4411         * lib/sysexits.in.h: Likewise.
4412         * lib/termios.in.h: Likewise.
4413         * lib/time.in.h: Likewise.
4414         * lib/unistd.in.h: Likewise.
4415         * lib/wchar.in.h: Likewise.
4416         * lib/wctype.in.h: Likewise.
4417         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
4418         * modules/ctype (Makefile.am): Likewise.
4419         * modules/dirent (Makefile.am): Likewise.
4420         * modules/errno (Makefile.am): Likewise.
4421         * modules/fcntl-h (Makefile.am): Likewise.
4422         * modules/float (Makefile.am): Likewise.
4423         * modules/getopt-posix (Makefile.am): Likewise.
4424         * modules/iconv-h (Makefile.am): Likewise.
4425         * modules/inttypes (Makefile.am): Likewise.
4426         * modules/langinfo (Makefile.am): Likewise.
4427         * modules/locale (Makefile.am): Likewise.
4428         * modules/math (Makefile.am): Likewise.
4429         * modules/netdb (Makefile.am): Likewise.
4430         * modules/netinet_in (Makefile.am): Likewise.
4431         * modules/poll-h (Makefile.am): Likewise.
4432         * modules/pthread (Makefile.am): Likewise.
4433         * modules/pty (Makefile.am): Likewise.
4434         * modules/sched (Makefile.am): Likewise.
4435         * modules/search (Makefile.am): Likewise.
4436         * modules/selinux-h (Makefile.am): Likewise.
4437         * modules/signal (Makefile.am): Likewise.
4438         * modules/spawn (Makefile.am): Likewise.
4439         * modules/stdarg (Makefile.am): Likewise.
4440         * modules/stddef (Makefile.am): Likewise.
4441         * modules/stdint (Makefile.am): Likewise.
4442         * modules/stdio (Makefile.am): Likewise.
4443         * modules/stdlib (Makefile.am): Likewise.
4444         * modules/string (Makefile.am): Likewise.
4445         * modules/strings (Makefile.am): Likewise.
4446         * modules/sys_file (Makefile.am): Likewise.
4447         * modules/sys_ioctl (Makefile.am): Likewise.
4448         * modules/sys_select (Makefile.am): Likewise.
4449         * modules/sys_socket (Makefile.am): Likewise.
4450         * modules/sys_stat (Makefile.am): Likewise.
4451         * modules/sys_time (Makefile.am): Likewise.
4452         * modules/sys_times (Makefile.am): Likewise.
4453         * modules/sys_utsname (Makefile.am): Likewise.
4454         * modules/sys_wait (Makefile.am): Likewise.
4455         * modules/sysexits (Makefile.am): Likewise.
4456         * modules/termios (Makefile.am): Likewise.
4457         * modules/time (Makefile.am): Likewise.
4458         * modules/unistd (Makefile.am): Likewise.
4459         * modules/wchar (Makefile.am): Likewise.
4460         * modules/wctype (Makefile.am): Likewise.
4461
4462 2010-10-04  Bruno Haible  <bruno@clisp.org>
4463
4464         read-file tests: Avoid a test failure on NonStop Kernel.
4465         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
4466         a regular file.
4467         Reported by Joachim Schmitz <schmitz@hp.com>.
4468
4469 2010-10-03  Bruno Haible  <bruno@clisp.org>
4470
4471         gnulib-tool: Fixes for --create-testdir with --libtool.
4472         * gnulib-tool (func_get_automake_snippet): Don't augment
4473         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
4474         an executable.
4475         (func_create_testdir): Handle module 'alloca' like func_import.
4476         Reported by Bruce Korb <bruce.korb@gmail.com>.
4477
4478 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
4479
4480         Avoid some lines longer than 80 characters.
4481         * lib/stdint.in.h: Break long comment lines.
4482         * lib/math.in.h: Likewise.
4483         (_GL_NUM_UINT_WORDS): New macro, for readability.
4484         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
4485         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
4486         * lib/stdlib.in.h: Likewise.
4487         * lib/spawn.in.h: Likewise.
4488         * lib/sys_socket.in.h: Update an URL.
4489         * lib/sys_stat.in.h: Break long line.
4490
4491 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
4492
4493         Improve pmccabe2html.
4494         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
4495         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
4496         when the sources change. Remove the line in the HTML about "Used
4497         ranges" (which implied that there might be other unused ranges),
4498         rename "Resume" to "Summary" (easier to understand for more users).
4499         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
4500         styles, and some unnecessary blank lines.
4501
4502 2010-10-03  Bruno Haible  <bruno@clisp.org>
4503             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4504
4505         acl: Add support for ACLs on NonStop Kernel.
4506         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
4507         Check whether the function aclsort() exists.
4508         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
4509         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
4510         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4511         (acl_nontrivial [HAVE_ACLSORT]: New function.
4512         (file_has_acl): Implement for NonStop Kernel.
4513         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4514         (qset_acl): Implement for NonStop Kernel.
4515         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
4516         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4517         (main): Implement for NonStop Kernel.
4518         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
4519         Kernel. Handle this flavor.
4520         * tests/test-set-mode-acl.sh: Likewise.
4521         * tests/test-copy-acl.sh: Likewise.
4522         * tests/test-copy-file.sh: Likewise.
4523
4524 2010-10-03  Bruno Haible  <bruno@clisp.org>
4525
4526         Info about ACLs on NonStop Kernel.
4527         * doc/acl-resources.txt: Add info about NonStop Kernel.
4528         References by Joachim Schmitz <schmitz@hp.com>.
4529
4530 2010-10-02  Bruno Haible  <bruno@clisp.org>
4531
4532         Define missing EDQUOT on NonStop Kernel.
4533         * lib/errno.in.h (EDQUOT): Assign a value if missing.
4534         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
4535         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
4536         missing.
4537         * doc/posix-headers/errno.texi: Mention the NSK bug.
4538         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
4539         Reported by Joachim Schmitz <schmitz@hp.com>.
4540
4541 2010-10-02  Bruno Haible  <bruno@clisp.org>
4542
4543         Update doc for POSIX:2008.
4544         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
4545         Update URL of POSIX specification.
4546
4547 2010-10-02  Bruno Haible  <bruno@clisp.org>
4548
4549         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
4550         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
4551         from gnulib, not from Automake.
4552
4553 2010-10-02  Bruno Haible  <bruno@clisp.org>
4554
4555         New module 'system-posix'.
4556         * modules/system-posix: New file.
4557         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
4558         module is present.
4559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4560         GNULIB_SYSTEM_POSIX.
4561         * modules/stdlib (Depends-on): Remove sys_wait.
4562         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
4563         * doc/posix-functions/system.texi: Mention the new module.
4564         * doc/posix-headers/stdlib.texi: Likewise.
4565         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
4566         define test_sys_wait_macros to a no-op.
4567         Reported by Sam Steingold <sds@gnu.org>.
4568
4569 2010-09-30  Bruno Haible  <bruno@clisp.org>
4570
4571         More renaming from 'getdate' to 'get_date'.
4572         * doc/get_date.texi: Renamed from doc/getdate.texi.
4573         * modules/get_date (Files): Update.
4574         * MODULES.html.sh (Date and time <time.h>): Update.
4575         * DEPENDENCIES: Update.
4576         * gnulib-tool: Update comment.
4577         * m4/bison.m4 (gl_BISON): Likewise.
4578         * m4/get_date.m4 (gl_GET_DATE): Likewise.
4579
4580 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
4581
4582         bootstrap: support ACLOCAL_FLAGS during aclocal
4583         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
4584         can add additional -I dir for third-party .m4 files.
4585
4586 2010-09-30  Eric Blake  <eblake@redhat.com>
4587
4588         bootstrap: use glibtoolize on MacOS
4589         * build-aux/bootstrap (check_versions): Convert libtool into
4590         libtoolize.
4591         (tool search): Move libtool check earlier, and look for
4592         glibtoolize for MacOS.
4593         (gnulib_tool_options): Auto-add --libtool when appropriate.
4594         Reported by Justin Clift.
4595
4596         poll: fix typo that broke test on MacOS
4597         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
4598         Reported by Justin Clift.
4599
4600         getdate: rename to get_date
4601         Note: getdate.h is not renamed, to minimize client impact.
4602         * modules/getdate: Mark obsolete.  Move old contents...
4603         * modules/get_date: ...to new module name.
4604         * modules/getdate-tests: Move...
4605         * modules/get_date-tests: ...here.
4606         * m4/getdate.m4: Move...
4607         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
4608         * lib/getdate.y: Move...
4609         * lib/get_date.y: ...here.
4610         * tests/test-getdate.c: Move...
4611         * tests/test-get_date.c: ...here.
4612         * doc/posix-functions/getdate.texi (getdate): Update name.
4613         * NEWS: Mention the change.
4614
4615 2010-09-29  Bruno Haible  <bruno@clisp.org>
4616
4617         Separate the module 'waitpid' from the module 'sys_wait'.
4618         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
4619         present.
4620         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
4621         gl_MODULE_INDICATOR_FOR_TESTS.
4622         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
4623         * modules/sys_wait (Depends-on): Remove waitpid.
4624         (Makefile.am): Substitute GNULIB_WAITPID.
4625         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
4626         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
4627         signature only if the 'waitpid' module is present.
4628         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
4629         * NEWS: Mention the change.
4630         * modules/grantpt (Depends-on): Add waitpid.
4631         * modules/wait-process (Depends-on): Likewise.
4632
4633 2010-09-29  Bruno Haible  <bruno@clisp.org>
4634
4635         More tests for module 'sys_wait'.
4636         * modules/sys_wait-c++-tests: New file.
4637         * tests/test-sys_wait-c++.cc: New file.
4638         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
4639         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4640
4641 2010-09-29  Bruno Haible  <bruno@clisp.org>
4642
4643         New module 'waitpid'.
4644         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
4645         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
4646         Don't include <process.h>.
4647         (waitpid): Declare only, using modern idiom.
4648         * m4/waitpid.m4: New file.
4649         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
4650         * modules/waitpid: New file.
4651         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
4652         (Makefile.am): Update.
4653         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4654
4655 2010-09-28  Bruno Haible  <bruno@clisp.org>
4656
4657         poll: Assume ANSI C.
4658         * lib/poll.c (poll): Use an ANSI C declaration.
4659
4660 2010-09-28  Bruno Haible  <bruno@clisp.org>
4661
4662         poll-h: Create poll.h on all platforms.
4663         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
4664         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
4665         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
4666         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
4667         (gl_REPLACE_POLL_H): Don't set POLL_H.
4668         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
4669         * modules/poll-h (Depends-on): Add include_next.
4670         (Makefile.am): Create poll.h unconditionally. Substitute also
4671         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
4672
4673 2010-09-28  Bruno Haible  <bruno@clisp.org>
4674
4675         Tests for module 'poll-h'.
4676         * modules/poll-h-c++-tests: New file.
4677         * tests/test-poll-h-c++.cc: New file.
4678
4679         Tests for module 'poll-h'.
4680         * modules/poll-h-tests: New file.
4681         * tests/test-poll-h.c: New file.
4682
4683 2010-09-28  Bruno Haible  <bruno@clisp.org>
4684
4685         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
4686         * modules/poll-h (Depends-on): Add 'extensions'.
4687
4688 2010-09-28  Bruno Haible  <bruno@clisp.org>
4689
4690         New module 'poll-h'.
4691         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
4692         (poll): Use modern idiom.
4693         * modules/poll-h: New file.
4694         * modules/poll (Files): Remove lib/poll.in.h.
4695         (Depends-on): Add poll-h.
4696         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
4697         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
4698         * m4/poll_h.m4: New file.
4699         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
4700         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
4701         and invoke gl_REPLACE_POLL_H.
4702         * lib/poll.c: Use common idiom.
4703         * tests/test-poll.c: Likewise.
4704         * doc/posix-headers/poll.texi: Mention the poll-h module.
4705         Suggested by Eric Blake.
4706
4707 2010-09-26  Bruno Haible  <bruno@clisp.org>
4708
4709         sys_wait: Implement WSTOPSIG.
4710         * lib/sys_wait.in.h (WSTOPSIG): New macro.
4711         Reported by Simon Josefsson.
4712
4713 2010-09-26  Simon Josefsson  <simon@josefsson.org>
4714
4715         stdlib, sys_wait: Avoid compilation error on mingw.
4716         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
4717
4718 2010-09-26  Bruno Haible  <bruno@clisp.org>
4719
4720         stdlib tests: Avoid code duplication.
4721         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
4722         * modules/sys_wait-tests (Files): Likewise.
4723         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
4724         * tests/test-stdlib.c: Include test-sys_wait.h.
4725         (main): Invoke test_sys_wait_macros.
4726         * tests/test-sys_wait.c: Include test-sys_wait.h.
4727         (main): Invoke test_sys_wait_macros.
4728
4729 2010-09-25  Simon Josefsson  <simon@josefsson.org>
4730
4731         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
4732         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
4733         sure Windows sockets are working before calling getaddrinfo.
4734         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
4735         * doc/gnulib.texi (Windows sockets): Fix typo.
4736
4737 2010-09-25  Bruno Haible  <bruno@clisp.org>
4738
4739         Tests for module 'regex-quote'.
4740         * modules/regex-quote-tests: New file.
4741         * tests/test-regex-quote.c: New file.
4742
4743         New module 'regex-quote'.
4744         * lib/regex-quote.h: New file.
4745         * lib/regex-quote.c: New file.
4746         * modules/regex-quote: New file.
4747         Suggested by Reuben Thomas <rrt@sc3d.org>.
4748
4749 2010-09-24  Bruno Haible  <bruno@clisp.org>
4750
4751         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
4752         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
4753
4754 2010-09-23  Bruno Haible  <bruno@clisp.org>
4755
4756         setenv: Relax license.
4757         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
4758         Blake.
4759         Requested by Eric Blake.
4760
4761 2010-09-22  Bruno Haible  <bruno@clisp.org>
4762
4763         termios: Relax license.
4764         * modules/termios (License): Change to LGPLv2+.
4765         Requested by Eric Blake.
4766
4767 2010-09-22  Bruno Haible  <bruno@clisp.org>
4768
4769         threadlib: Allow the package to change the default to 'no'.
4770         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
4771         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
4772         Reported by Paul Eggert.
4773
4774 2010-09-22  Pádraig Brady  <P@draigbrady.com>
4775             Bruno Haible  <bruno@clisp.org>
4776
4777         Fix endless loop in mbmemcasecoll.
4778         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
4779         byte.
4780         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
4781
4782 2010-09-22  Bruno Haible  <bruno@clisp.org>
4783
4784         Tests for module 'memcoll'.
4785         * modules/memcoll-tests: New file.
4786         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
4787
4788         memcoll, xmemcoll: Clarify size vs. length.
4789         * modules/memcoll.c (memcoll0): Clarify specification.
4790         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
4791         passed to collate_error.
4792
4793 2010-09-22  Bruno Haible  <bruno@clisp.org>
4794
4795         Tests for module 'memcasecmp'.
4796         * modules/memcasecmp-tests: New file.
4797         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
4798
4799 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4800
4801         * lib/pthread.in.h: Add split double-inclusion guard, and include
4802         system <pthread.h> if there is one.  Use @@-style as in other
4803         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
4804         pthread.h doesn't.
4805         (pthread_mutexattr_destroy, pthread_mutexattr_init):
4806         (pthread_mutexattr_settype, pthread_mutex_trylock):
4807         New static inline functions, if there's no system <pthread.h>.
4808         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
4809         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
4810         Approximate with mutexes if the system lacks spinlocks, as in
4811         MacOS.
4812         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
4813         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
4814         @@-style.  Check for spinlocks separately.
4815         (gl_PTHREAD_DEFAULTS): New macro.
4816         * modules/pthread: Redo to use a more typical style for in.h files.
4817
4818 2010-09-21  Eric Blake  <eblake@redhat.com>
4819
4820         net_if: enhance tests
4821         * tests/test-net_if.c (main): Move signature checks earlier.
4822         Print failures to stderr.
4823         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
4824         Document the bug that we do not yet fix.
4825
4826 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4827
4828         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
4829         about gnulib, not GSS.
4830
4831 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4832
4833         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
4834         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
4835         for Emacs.
4836         * build-aux/pmccabe2html: Make Makefile.am example code more
4837         cut-and-paste friendly.
4838
4839 2010-09-21  Simon Josefsson  <simon@josefsson.org>
4840
4841         * tests/test-net_if.c: New file.
4842         * modules/net_if-tests: New file.
4843
4844 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4845
4846         pthread: add pthread_spin_destroy
4847         * lib/pthread.in.h (pthread_spin_destroy): New function.
4848
4849 2010-09-19  Bruno Haible  <bruno@clisp.org>
4850
4851         gnulib-tool: Fix --help output.
4852         * gnulib-tool (func_usage): Fix help message.
4853         Reported by Reuben Thomas <rrt@sc3d.org>.
4854
4855 2010-09-18  Jim Meyering  <meyering@redhat.com>
4856
4857         maint.mk: avoid unexpanded \n in two diagnostics
4858         * top/maint.mk (sc_prohibit_always_true_header_tests):
4859         Don't use a literal \n in a halt=... assignment.  It would not be
4860         expanded, and the two \n bytes would appear in the diagnostic output
4861         rather than the desired newline.  Use halt=$$(printf ... instead.
4862         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
4863
4864 2010-09-18  Bruno Haible  <bruno@clisp.org>
4865
4866         netinet_in: Doc tweak.
4867         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
4868         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4869
4870 2010-09-18  Jim Meyering  <meyering@redhat.com>
4871
4872         init.sh: correct an outdated comment
4873         * tests/init.sh (create_exe_shims_):  s/function/alias/
4874
4875         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
4876         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
4877         a file named "*.exe" is removed between the glob expansion and the
4878         processing of that oddly named file.
4879
4880 2010-09-17  Eric Blake  <eblake@redhat.com>
4881
4882         mirbsd: add some more support
4883         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
4884         in BSD family.
4885         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
4886         devices as OpenBSD.
4887         * m4/host-os.m4 (mirbsd): Add MirBSD.
4888
4889         tests: fix unportable assumption on sys/wait.h
4890         * tests/test-sys_wait.c (main): Relax test.
4891         * tests/test-stdlib.c (main): Likewise.
4892
4893         init.sh: accomodate directory with no .exes
4894         * tests/init.sh: Accomodate directory containing only scripts.
4895
4896         tests: avoid compiler warning
4897         * tests/test-stdlib.c (main): Use the variable.
4898
4899         fdutimens, fdutimensat: update signature, again
4900         * lib/utimens.h (gl_futimens): Delete, and move signature...
4901         (fdutimens): ...here.
4902         (fdutimensat): Rearrange signature.
4903         (lutimensat): Rename variable for clarity.
4904         * lib/fdutimensat.c (fdutimensat): Update signature.
4905         * lib/utimens.c (fdutimens): Likewise.
4906         (gl_futimens): Delete.
4907         (utimens, lutimens): Update callers.
4908         * lib/futimens.c (futimens): Likewise.
4909         * tests/test-fdutimensat.c: Likewise.
4910         * tests/test-utimens.c: Likewise.
4911         * tests/test-futimens.h: Update comment.
4912         * NEWS: Mention this.
4913         Suggested by Paul Eggert.
4914
4915 2010-09-17  Bruno Haible  <bruno@clisp.org>
4916
4917         Take over the maintenance of some older macros from Autoconf.
4918         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
4919         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
4920         GNU Autoconf.
4921         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
4922         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
4923
4924 2010-09-17  Eric Blake  <eblake@redhat.com>
4925
4926         fdutimensat: drop atflag validation
4927         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
4928         with valid fd, to close a race scenario where futimens is
4929         unsupported and FILE was replaced by a symlink.
4930         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
4931         accordingly.
4932         Suggested by Paul Eggert.
4933
4934 2010-09-16  Bruno Haible  <bruno@clisp.org>
4935
4936         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
4937         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
4938
4939 2010-09-16  Bruno Haible  <bruno@clisp.org>
4940
4941         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
4942         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
4943         login_tty exists.
4944         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4945
4946 2010-09-16  Bruno Haible  <bruno@clisp.org>
4947
4948         login_tty: Make the replacement code work on BSD systems.
4949         * lib/login_tty.c: Include <sys/ioctl.h>.
4950         (login_tty): Use ioctl TIOCSCTTY when available.
4951         * modules/login_tty (Depends-on): Add sys_ioctl.
4952         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4953
4954 2010-09-16  Bruno Haible  <bruno@clisp.org>
4955
4956         login_tty: Stricter unit test.
4957         * modules/login_tty-tests (Depends-on): Add tcgetsid.
4958         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
4959         and tcgetsid() after login_tty.
4960         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4961
4962 2010-09-16  Bruno Haible  <bruno@clisp.org>
4963
4964         New module 'tcgetsid'.
4965         * lib/tcgetsid.c: New file.
4966         * m4/tcgetsid.m4: New file.
4967         * modules/tcgetsid: New file.
4968         * modules/termios (Depends-on): Add c++defs, warn-on-use.
4969         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
4970         GNULIB_TCGETSID, HAVE_TCGETSID.
4971         * lib/termios.in.h: Include <sys/types.h>.
4972         (tcgetsid): New declaration.
4973         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
4974         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
4975         * doc/posix-functions/tcgetsid.texi: Mention the new module.
4976         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
4977
4978 2010-09-16  Bruno Haible  <bruno@clisp.org>
4979
4980         Tests for module 'termios'.
4981         * modules/termios-c++-tests: New file.
4982         * modules/termios-tests: New file.
4983         * tests/test-termios-c++.cc: New file.
4984         * tests/test-termios.c: New file.
4985
4986         New module 'termios'.
4987         * modules/termios: New file.
4988         * lib/termios.in.h: New file.
4989         * m4/termios_h.m4: New file.
4990         * doc/posix-headers/termios.texi: Mention the new module.
4991
4992 2010-09-16  Eric Blake  <eblake@redhat.com>
4993
4994         fdutimensat: add an atflag parameter
4995         * lib/fdutimensat.c (fdutimensat): Add new parameter.
4996         * lib/utimens.h (fdutimensat): Update prototype.
4997         * tests/test-fdutimensat.c: Adjust test to match.
4998         * NEWS: Document the change.
4999         Suggested by Paul Eggert.
5000
5001 2010-09-16  Bruno Haible  <bruno@clisp.org>
5002
5003         Fix typos in comments.
5004         * lib/striconveh.h: Fix typo in comment.
5005         * lib/login_tty.c (login_tty): Likewise.
5006
5007 2010-09-15  Bruno Haible  <bruno@clisp.org>
5008
5009         stdlib: clarify MirBSD WEXITSTATUS bug
5010         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
5011         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5012
5013 2010-09-15  Eric Blake  <eblake@redhat.com>
5014
5015         stdlib: work around MirBSD WEXITSTATUS bug
5016         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
5017         * modules/stdlib (Depends-on): Add sys_wait.
5018         * tests/test-sys_wait.c (main): Enhance test.
5019         * tests/test-stdlib.c (main): Likewise.
5020         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
5021
5022         docs: mention MacOS issue with WEXITSTATUS(constant)
5023         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
5024         issue.
5025         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5026
5027         strnlen: add tests
5028         * modules/strnlen-tests: New file.
5029         * tests/test-strnlen.c: Likewise.
5030
5031 2010-09-14  Bruno Haible  <bruno@clisp.org>
5032
5033         unistr/base: Avoid link errors when module 'libunistring' is also used.
5034         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
5035         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
5036         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
5037         Declare also when HAVE_LIBUNISTRING is set.
5038         Reported by Pádraig Brady <P@draigbrady.com>.
5039
5040 2010-09-14  Eric Blake  <eblake@redhat.com>
5041
5042         test-rawmemchr: make more robust
5043         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
5044         (Depends-on, configure.ac): Add needed prerequisites to use it.
5045         * modules/memchr-tests (Files, Depends-on, configure.ac):
5046         Likewise, to avoid implicit reliance on memchr module prereqs.
5047         * tests/test-memchr.c (main): Ensure proper masking.
5048         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
5049         reads.
5050
5051         memchr: detect glibc Alpha bug
5052         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
5053         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
5054         Alpha.
5055         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
5056         * tests/test-memchr.c (main): Enhance test.
5057         Reported by Nelson H. F. Beebe.
5058
5059 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5060
5061         fts, getcwd, glob: audit for dirfd returning -1
5062         * lib/fts.c (opendir): Remove #define; no longer used.
5063         (opendirat): New arg PDIR_FD.  All callers changed.
5064         (fts_build, _opendir2): Use new opendirat to avoid the need for
5065         dirfd, or for checking whether dirfd returns a negative value.
5066         Don't use opendir; always use openat followed by fdopendir.
5067         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
5068         it.
5069         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
5070         returns -1 here.
5071         * modules/fts (Depends-on): Remove dirfd.
5072         * modules/getcwd (Depends-on): Likewise.
5073
5074 2010-09-13  Eric Blake  <eblake@redhat.com>
5075
5076         float: fix broken MirBSD header
5077         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
5078         * doc/posix-headers/float.texi (float.h): Document it.
5079
5080 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5081
5082         fts: use O_NOFOLLOW to avoid race condition when opening a directory
5083         * lib/fts.c (opendirat): New arg extra_flags.
5084         (__opendir2): Use it to avoid following symlinks when opening
5085         a directory, if symlinks are not supposed to be followed.  See
5086         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
5087
5088         fdopendir: preserve argument fd before returning
5089         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
5090         (fdopendir_with_dup, fd_clone_opendir): New static functions.
5091         (fdopendir): Use them, arranging for FD to be open to the same
5092         directory that it was when it started.  (It might be temporarily
5093         closed while fdopendir is running, so this not thread- or
5094         signal-safe.)  Be careful to do the right thing even when file
5095         descriptors are scarce and dup fails with errno == EMFILE.  See
5096         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
5097
5098 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
5099
5100         regex: Pass the system regex if its only problem is 32-bit regoff_t.
5101         * NEWS: Document change.
5102         * m4/regex.m4: Disable test for regoff_t size.
5103
5104 2010-09-13  Jim Meyering  <meyering@redhat.com>
5105
5106         fts: don't operate on an invalid file descriptor after failed dup
5107         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
5108         negative file descriptor.
5109
5110 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5111
5112         savedir: add streamsavedir, deprecate fdsavedir
5113         * NEWS: Mention deprecation of fdsavedir.
5114         * lib/savedir.c (streamsavedir): New extern function, whose name
5115         ends in "savedir" to be consistent with the others.  This differs
5116         from savedirstream in that it doesn't close its argument.  The
5117         next version of GNU tar will use this instead of fdsavedir, to
5118         avoid some race conditions and conserve file descriptors.
5119         (savedirstream): Reimplement as a wrapper around streamsavedir.
5120         (fdsavedir): Add a comment deprecating this function.  As far as
5121         I know, only GNU tar used it, and GNU tar doesn't need it any more.
5122         * lib/savedir.h (streamsavedir): New decl.
5123         (fdsavedir): Add a comment deprecating this.
5124
5125 2010-09-10  Bruno Haible  <bruno@clisp.org>
5126
5127         langinfo: Fix last commit.
5128         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
5129         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
5130         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5131
5132 2010-09-10  Bruno Haible  <bruno@clisp.org>
5133
5134         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
5135         * lib/progreloc.c (O_EXEC): Define fallback.
5136
5137 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
5138
5139         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
5140         * NEWS: Document recent changes to fcntl-h.
5141         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
5142         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
5143         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
5144         Similarly for O_SEARCH; this last was already true, but not documented.
5145         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
5146         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
5147         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
5148         Likewise.
5149         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
5150         is zero, not whether it is defined.
5151         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
5152         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
5153         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
5154
5155 2010-09-10  Bruno Haible  <bruno@clisp.org>
5156
5157         langinfo, nl_langinfo: Fix for IRIX 5.3.
5158         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
5159         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
5160         HAVE_LANGINFO_YESEXPR.
5161         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
5162         HAVE_LANGINFO_YESEXPR.
5163         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
5164         HAVE_LANGINFO_T_FMT_AMPM is 0.
5165         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
5166         HAVE_LANGINFO_YESEXPR is 0.
5167         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
5168         NOEXPR.
5169         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
5170         * doc/posix-functions/nl_langinfo.texi: Likewise.
5171         Reported by Eric Blake.
5172
5173 2010-09-10  Bruno Haible  <bruno@clisp.org>
5174
5175         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
5176         * doc/glibc-functions/login_tty.texi: Mention the include file problem
5177         on FreeBSD 8.0 and OpenBSD 4.6.
5178         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
5179         * m4/pty_h.m4 (gl_PTY_H): Likewise.
5180         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
5181         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
5182         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
5183         ac_includes_default.
5184         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5185
5186 2010-09-09  Eric Blake  <eblake@redhat.com>
5187
5188         strsignal: work around NetBSD bug
5189         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
5190         * lib/string.in.h (includes): Likewise.
5191         * doc/posix-functions/strsignal.texi (strsignal): Document the
5192         bug.
5193         Reported by Nelson H. F. Beebe.
5194
5195         gnulib-tool: work with NetBSD /bin/sh
5196         * gnulib-tool (func_cache_var, func_cache_lookup_module)
5197         (func_get_description, func_get_comment, func_get_status)
5198         (func_get_notice, func_get_applicability, func_get_filelist)
5199         (func_get_dependencies, func_get_autoconf_early_snippet)
5200         (func_get_autoconf_snippet, func_get_automake_snippet)
5201         (func_get_include_directive, func_get_link_directive)
5202         (func_get_license, func_get_maintainer, func_import): Avoid
5203         shell syntax errors from parsing syntax extensions.
5204
5205 2010-09-09  Bruno Haible  <bruno@clisp.org>
5206
5207         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5208         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
5209         a reliable way to determine whether the 'alias' command works.
5210
5211 2010-09-08  Jim Meyering  <meyering@redhat.com>
5212
5213         init.sh: penalize a set-x-impaired shell; don't disqualify it
5214         * tests/init.sh: Too many shells corrupt application stderr when
5215         you set -x, so we can't afford to disqualify them, since at least
5216         on Irix-6.5, that would disqualify all bourne shells.
5217         Instead, use a two-pass approach.
5218         On the first pass, try to find a shell that meets the stricter
5219         condition that set -x does not corrupt stderr.
5220         If no shell meets the stricter condition, retest each candidate
5221         shell, but without that extra condition.  Finally, when
5222         VERBOSE=yes is requested and set -x might cause trouble, simply
5223         issue a warning and refrain from enabling debug output.
5224
5225 2010-09-08  Eric Blake  <eblake@redhat.com>
5226
5227         unsetenv: fix OpenBSD bug
5228         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
5229         * doc/posix-functions/unsetenv.texi (unsetenv): Update
5230         documentation.
5231         Reported by Jim Meyering.
5232
5233         strtod: work around IRIX 6.5 bug
5234         * lib/strtod.c (strtod): Reparse number on shorter string if
5235         exponent parse was invalid.
5236         * tests/test-strtod.c (main): Add check for "0x1p 2".
5237         Reported by Tom G. Christensen.
5238
5239         getopt: optimize previous patch
5240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
5241         empty variable.  Speed up awk script.
5242         Reported by Paolo Bonzini.
5243
5244 2010-09-08  Jim Meyering  <meyering@redhat.com>
5245
5246         test.sh: disqualify shells for which set -x corrupts stderr
5247         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
5248         and OpenBSD 4.7.  They make it so with "set -x", environment settings
5249         appear in stderr output.  For example, this command:
5250             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
5251         prints "P=1" on those two systems:
5252
5253 2010-09-08  Bruno Haible  <bruno@clisp.org>
5254
5255         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5256         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
5257         commands, because some shells ignore redirections when there is an
5258         error in the command lookup.
5259         Reported by Eric Blake.
5260
5261 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
5262
5263         * lib/regex.h: Fix a mention of `regex_compile' (should be
5264         `re_compile_pattern').
5265         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
5266         (re_set_registers): Correct name of parameter in comment.
5267
5268         * doc/regex.texi: Add documentation for missing syntax flags.
5269         Remove commented-out documentation of defunct syntax option
5270         RE_NO_EMPTY_ALTS.
5271         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
5272         Add documentation of re_set_registers.
5273         Document trick to re-use a pattern buffer by setting fastmap manually.
5274         Update documentation of struct re_pattern_buffer per public members.
5275         Uncomment documentation of equivalence class operators and
5276         collating symbol operators, since they are now implemented,
5277         Explain leftmost-longest matching in relation to alternatives.
5278         Tidy documentation of substring matching.
5279         Remove POSIX documentation, which is done better in
5280         glibc, and refer the reader there. Keep BSD API documentation, as
5281         that is not readily available elsewhere.
5282
5283 2010-09-07  Eric Blake  <eblake@redhat.com>
5284
5285         getopt: handle POSIXLY_CORRECT set but not exported
5286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
5287         export state of POSIXLY_CORRECT, due to bash set -o posix.
5288         Reported by Dustin J. Mitchell.
5289
5290 2010-09-05  Bruno Haible  <bruno@clisp.org>
5291
5292         gnulib-tool: Highlight the changed options.
5293         * gnulib-tool (func_usage): Display the --import, --add-import,
5294         --remove-import explanations in bold font.
5295
5296 2010-09-06  Karl Berry  <karl@gnu.org>
5297
5298         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
5299
5300 2010-09-05  Bruno Haible  <bruno@clisp.org>
5301
5302         uniwidth/width: Update comment.
5303         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
5304         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
5305
5306 2010-09-05  Bruno Haible  <bruno@clisp.org>
5307
5308         isinf, isnan: Relax license.
5309         * modules/isinf (License): Change from GPL to LGPL, with consent from
5310         Ben Pfaff.
5311         * modules/isnan (License): Likewise.
5312         Requested by Ludovic Courtès.
5313
5314 2010-09-04  Bruno Haible  <bruno@clisp.org>
5315
5316         gnulib-tool: Help migration from --import to --add-import or --update.
5317         * gnulib-tool: Emit a verbose error message when --import is used
5318         without any module name.
5319
5320 2010-09-04  Bruno Haible  <bruno@clisp.org>
5321
5322         Update doc about gnulib-tool.
5323         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
5324         'gnulib-tool --update' in more detail.
5325         Reported by Eric Blake.
5326
5327 2010-09-04  Bruno Haible  <bruno@clisp.org>
5328
5329         gnulib-tool: Change --import. New options --add/remove-import.
5330         * gnulib-tool: New options --add-import, --remove-import.
5331         (func_usage): Document them.
5332         (have_associative): Define always.
5333         (func_import): In import mode, don't merge the specified settings with
5334         the cached settings. Implement remove-import mode.
5335         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
5336         Explain when to use them versus --import.
5337         (Simple update): Use --add-import instead of --import.
5338         * NEWS: Mention the change.
5339
5340 2010-09-04  Bruno Haible  <bruno@clisp.org>
5341
5342         * doc/gnulib-tool.texi (Initial import): Update paragraph about
5343         separate gnulib.mk.
5344
5345 2010-09-04  Bruno Haible  <bruno@clisp.org>
5346
5347         gnulib-tool: Don't talk about CVS any more.
5348         * gnulib-tool (func_usage, func_import): Write "version control"
5349         instead of CVS.
5350
5351 2010-09-04  Jim Meyering  <meyering@redhat.com>
5352
5353         maint.mk: avoid obscure sc_copyright_check failure in coreutils
5354         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
5355         false positives (whose names may be ill-chosen) when searching
5356         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
5357         would cause a false-positive.
5358
5359         avoid coreutils "make distcheck" failure
5360         Coreutils tests with an absolute build directory name that contains
5361         a space.  Not quoting this directory name caused a failure.
5362         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
5363         * tests/test-vc-list-files-cvs.sh: Likewise.
5364
5365 2010-09-04  Bruno Haible  <bruno@clisp.org>
5366
5367         gnulib-tool: Avoid error when run in a package without Makefile.am.
5368         * gnulib-tool: When collecting the m4dirs in a package that does not
5369         have a Makefile.am, eliminate those directories that contain no
5370         gnulib-cache.m4. Fix expression that counts these directories.
5371
5372 2010-09-04  Bruno Haible  <bruno@clisp.org>
5373
5374         update-copyright test: Improve output when perl is missing or too old.
5375         * tests/test-update-copyright.sh: Move test of Perl version down after
5376         the test whether Perl exists. Provide an explanation relating Perl's
5377         error message to Automake's SKIP: message.
5378
5379 2010-09-04  Bruno Haible  <bruno@clisp.org>
5380
5381         Don't augment PATH in TESTS_ENVIRONMENT.
5382         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
5383         set abs_aux_dir instead of augmenting PATH.
5384         * modules/vc-list-files-tests (Makefile.am): Likewise.
5385         * tests/test-update-copyright.sh: Augment PATH here.
5386         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
5387         path_prepend_.
5388         * tests/test-vc-list-files-git.sh: Likewise.
5389
5390 2010-09-04  Jim Meyering  <meyering@redhat.com>
5391
5392         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
5393         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
5394
5395 2010-09-04  Bruno Haible  <bruno@clisp.org>
5396
5397         strdup: Fix compilation error in C++ mode.
5398         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
5399         the macro.
5400
5401 2010-09-04  Bruno Haible  <bruno@clisp.org>
5402
5403         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
5404         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
5405         macro into a function.
5406         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5407
5408 2010-09-04  Bruno Haible  <bruno@clisp.org>
5409
5410         Set PATH_SEPARATOR the same way autoconf does.
5411         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
5412         the value of PATH_SEPARATOR the same way autoconf-generated configure
5413         scripts do.
5414         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
5415         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
5416
5417 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5418
5419         Set PATH_SEPARATOR the same way autoconf does.
5420         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
5421         the same way autoconf-generated configure scripts do.
5422         * posix-modules: Likewise.
5423
5424 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5425
5426         hash: fix safe_hasher const typo
5427         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
5428         const; otherwise, there is a type error later.
5429
5430 2010-09-02  Jim Meyering  <meyering@redhat.com>
5431
5432         test-update-copyright.sh: require perl 5.8.0
5433         * tests/test-update-copyright.sh: Require 5.8.0,
5434         which Tom G. Christensen has confirmed is adequate,
5435         while 5.6.1 is not.
5436
5437 2010-09-02  Eric Blake  <eblake@redhat.com>
5438
5439         tests: init.sh improvements for re-exec'ing with zsh
5440         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
5441         -vx through shell re-exec.
5442         Reported by Tom G. Christensen.
5443
5444         wctype: fix typo in previous commit
5445         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
5446         Reported by Ludovic Courtès.
5447
5448 2010-09-02  Jim Meyering  <meyering@redhat.com>
5449
5450         test-update-copyright.sh: skip test if Perl is too old
5451         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
5452         Reported by Tom G. Christensen.
5453
5454 2010-09-02  Bruno Haible  <bruno@clisp.org>
5455
5456         wctype: Avoid compilation error on IRIX 6.5.30.
5457         * lib/wctype.in.h (iswblank): Declare with a replacement if
5458         REPLACE_ISWBLANK is set.
5459         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
5460         declared. Set REPLACE_ISWBLANK.
5461         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
5462         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
5463         * doc/posix-headers/wctype.texi: Likewise.
5464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5465
5466 2010-09-01  Bruno Haible  <bruno@clisp.org>
5467
5468         New module 'socketlib'.
5469         * modules/socketlib: New file.
5470         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
5471         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
5472         * modules/sockets (Depends-on): Add socketlib.
5473         Suggested by Sam Steingold <sds@gnu.org>.
5474
5475 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5476
5477         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
5478
5479         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
5480         when one needs search access to a directory but not read access.
5481         On systems where it is available, it works in some cases where
5482         O_RDONLY does not, namely on directories that are searchable but
5483         not readable, and which need only to be searchable.  If O_SEARCH
5484         is not available, fall back to the traditional method of using
5485         O_RDONLY.
5486
5487         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
5488         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
5489         when opening a directory that needs only to be searchable.
5490         * lib/chdir-safer.c (chdir_no_follow): Likewise.
5491         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
5492         * lib/openat-proc.c (openat_proc_name): Likewise.
5493         * lib/openat.c (openat_needs_fchdir): Likewise.
5494         * lib/save-cwd.c (save_cwd): Likewise.
5495         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
5496
5497 2010-08-28  Bruno Haible  <bruno@clisp.org>
5498
5499         New module 'host-cpu-c-abi'.
5500         * modules/host-cpu-c-abi: New file.
5501         * m4/host-cpu-c-abi.m4: New file, based on part of
5502         clisp/src/m4/general.m4.
5503         Requested by Sam Steingold <sds@gnu.org>.
5504
5505 2010-08-31  Eric Blake  <eblake@redhat.com>
5506         and Jim Meyering  <meyering@redhat.com>
5507
5508         hash: factor, and guard against misbehaving hasher function
5509         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
5510         of table->hasher's return value.  Also protect against a hash value
5511         so large that adding it to table->bucket results in a NULL pointer.
5512         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
5513         Use it in place of open-coded check-and-abort.
5514
5515 2010-08-30  Bruno Haible  <bruno@clisp.org>
5516
5517         hash: silence spurious clang warning
5518         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
5519         Reported by Eric Blake.
5520
5521 2010-08-30  Eric Blake  <eblake@redhat.com>
5522
5523         strstr, memmem, strcasestr: avoid leaked shell message
5524         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
5525         FreeBSD.
5526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5527         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5528
5529         tests: silence clang warning
5530         * tests/test-malloca.c (do_allocation): Avoid dead store.
5531
5532 2010-08-29  Bruno Haible  <bruno@clisp.org>
5533
5534         gettext: Fix recent mistake.
5535         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
5536
5537 2010-08-29  Bruno Haible  <bruno@clisp.org>
5538
5539         selinux-h: Offer a --without-selinux option.
5540         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
5541         --without-selinux was specified, skip all tests and define
5542         HAVE_SELINUX_SELINUX_H to 0.
5543         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
5544         set LIB_SELINUX to empty.
5545         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
5546         gl_LIBSELINUX. If --without-selinux was specified, replace
5547         selinux/context.h.
5548         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
5549
5550 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5551             Bruno Haible  <bruno@clisp.org>
5552
5553         Make the module 'realloc-gnu' work again on AIX and OSF/1.
5554         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
5555         of HAVE_REALLOC.
5556         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
5557         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
5558         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
5559         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5560
5561 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5562             Bruno Haible  <bruno@clisp.org>
5563
5564         Make the module 'calloc-gnu' work again on AIX and OSF/1.
5565         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
5566         HAVE_CALLOC.
5567         * lib/xmalloc.c: Update accordingly.
5568         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
5569         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
5570         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
5571
5572 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5573             Bruno Haible  <bruno@clisp.org>
5574
5575         Make the module 'malloc-gnu' work again on AIX and OSF/1.
5576         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
5577         HAVE_MALLOC.
5578         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
5579         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
5580         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5581
5582 2010-08-29  Bruno Haible  <bruno@clisp.org>
5583
5584         Update modules list.
5585         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
5586         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
5587         (String handling <string.h>): Add astrxfrm.
5588         (File system functions): Add readlinkat.
5589
5590 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5591
5592         Tests for module 'realloc-gnu'.
5593         * modules/realloc-gnu-tests: New file.
5594         * tests/test-realloc-gnu.c: New file.
5595
5596         Tests for module 'calloc-gnu'.
5597         * modules/calloc-gnu-tests: New file.
5598         * tests/test-calloc-gnu.c: New file.
5599
5600         Tests for module 'malloc-gnu'.
5601         * modules/malloc-gnu-tests: New file.
5602         * tests/test-malloc-gnu.c: New file.
5603
5604 2010-08-28  Bruno Haible  <bruno@clisp.org>
5605
5606         Rename module 'realloc' -> 'realloc-gnu'.
5607         * modules/realloc-gnu: New file, copied from modules/realloc.
5608         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
5609         obsolete.
5610         * modules/mgetgroups (Depends-on): Update.
5611         * doc/posix-functions/realloc.texi: Update.
5612         * NEWS: Mention the change.
5613
5614         Rename module 'calloc' -> 'calloc-gnu'.
5615         * modules/calloc-gnu: New file, copied from modules/calloc.
5616         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
5617         obsolete.
5618         * doc/posix-functions/calloc.texi: Update.
5619         * NEWS: Mention the change.
5620
5621         Rename module 'malloc' -> 'malloc-gnu'.
5622         * modules/malloc-gnu: New file, copied from modules/malloc.
5623         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
5624         obsolete.
5625         * modules/argp (Depends-on): Update.
5626         * modules/regex (Depends-on): Update.
5627         * doc/posix-functions/malloc.texi: Update.
5628         * NEWS: Mention the change.
5629
5630 2010-08-28  Eric Blake  <eblake@redhat.com>
5631
5632         pread, pwrite: add missing dependency
5633         * modules/pread (Depends-on): Add extensions.
5634         * modules/pwrite (Depends-on): Likewise.
5635
5636 2010-08-28  Bruno Haible  <bruno@clisp.org>
5637
5638         unistr/u*-strchr: Fix tests dependencies.
5639         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
5640         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
5641         Reported by Ian Beckwith <ianb@erislabs.net>.
5642
5643 2010-08-28  Bruno Haible  <bruno@clisp.org>
5644
5645         read-file: Don't occupy too much unused memory.
5646         * lib/read-file.c (fread_file): Shrink the buffer at the end.
5647
5648 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
5649             Eric Blake  <eblake@redhat.com>
5650             Bruno Haible  <bruno@clisp.org>
5651
5652         read-file: Avoid memory reallocations with regular files.
5653         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
5654         (fread_file): With regular files, use the remaining length as the
5655         initial buffer size.  Check against overflow.
5656         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
5657         sys_stat.
5658
5659 2010-08-28  Bruno Haible  <bruno@clisp.org>
5660
5661         ftello: Relax license.
5662         * modules/ftello (License): Relax to LGPLv2+.
5663         Reported by Eric Blake.
5664
5665 2010-08-28  Bruno Haible  <bruno@clisp.org>
5666
5667         Avoid relocwrapper link errors due to gnulib replacement functions.
5668         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
5669         function.
5670         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5671
5672 2010-08-28  Bruno Haible  <bruno@clisp.org>
5673
5674         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
5675         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
5676         defined.
5677         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
5678         Suggested by Eric Blake.
5679
5680 2010-08-28  Bruno Haible  <bruno@clisp.org>
5681
5682         sys_socket, netdb: Ensure socklen_t gets defined.
5683         * modules/sys_socket (Depends-on): Add socklen.
5684         * modules/netdb (Depends-on): Likewise.
5685         * modules/getaddrinfo (Depends-on): Remove socklen.
5686         * modules/getsockopt (Depends-on): Likewise.
5687         * modules/setsockopt (Depends-on): Likewise.
5688         * tests/test-sys_socket.c: Check that socklen_t is defined.
5689         * tests/test-netdb.c: Likewise.
5690         * m4/socklen.m4: Update comments.
5691         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5692
5693 2010-08-27  Eric Blake  <eblake@redhat.com>
5694
5695         login_tty: add missing dependency
5696         * modules/login_tty (Depends-on): Add pty.
5697
5698 2010-08-26  Eric Blake  <eblake@redhat.com>
5699
5700         lib-symbol-versions: fix m4 quoting
5701         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
5702         format for AC_LINK_IFELSE.
5703
5704         glob: fix compile test
5705         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
5706
5707         btowc: fix missing file
5708         * modules/btowc (Files): Also ship locale-fr.m4.
5709
5710         lseek: fix link test
5711         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
5712         AC_LINK_IFELSE.
5713
5714         include_next: silence autoconf 2.68 warning
5715         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
5716         AC_COMPILE_IFELSE as special.
5717         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
5718         autoconf < 2.68.
5719
5720         acl: fix compilation test
5721         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
5722         AC_COMPILE_IFELSE.
5723
5724 2010-08-26  Bruno Haible  <bruno@clisp.org>
5725
5726         Modernize AC_TRY_RUN invocations.
5727         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
5728         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5729         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
5730         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
5731         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
5732         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5733         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5734         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5735         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5736         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5737         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5738         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5739         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5740         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5741         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5742         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5743         gl_MBRLEN_NUL_RETVAL): Likewise.
5744         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5745         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
5746         Likewise.
5747         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5748         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5749         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5750         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5751         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
5752         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
5753         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
5754         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5755         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
5756         Likewise.
5757         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
5758         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
5759         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5760         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5761         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5762         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5763         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5764         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
5765         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5766         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5767
5768 2010-08-26  Bruno Haible  <bruno@clisp.org>
5769
5770         Modernize AC_TRY_LINK invocations.
5771         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
5772         AC_TRY_LINK.
5773         * m4/argp.m4 (gl_ARGP): Likewise.
5774         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5775         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5776         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5777         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5778         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5779         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
5780         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5781         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5782         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5783         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
5784         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5785         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
5786         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
5787         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5788         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
5789         * m4/hostent.m4 (gl_HOSTENT): Likewise.
5790         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5791         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
5792         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
5793         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
5794         Likewise.
5795         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
5796         Likewise.
5797         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
5798         Likewise.
5799         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
5800         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
5801         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
5802         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5803         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5804         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
5805         * m4/servent.m4 (gl_SERVENT): Likewise.
5806         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5807         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5808         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5809         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5810         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5811         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5812         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5813         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5814         * modules/tsearch-tests (configure.ac): Likewise.
5815
5816 2010-08-26  Bruno Haible  <bruno@clisp.org>
5817
5818         Modernize AC_TRY_COMPILE invocations.
5819         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
5820         AC_TRY_COMPILE.
5821         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
5822         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
5823         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
5824         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5825         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
5826         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5827         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
5828         * m4/lock.m4 (gl_LOCK): Likewise.
5829         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
5830         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5831         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
5832         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5833         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
5834         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
5835         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
5836         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
5837         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
5838         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
5839         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
5840         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5841         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
5842         extraneous semicolon.
5843
5844 2010-08-26  Jim Meyering  <meyering@redhat.com>
5845
5846         stat-time: relax license LGPL
5847         * modules/stat-time (License): Change from GPL to LGPL,
5848         with consent from all contributors, for use in libguile.
5849         Requested by Ludovic Courtès.
5850
5851 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
5852
5853         poll: return immediately on POLLHUP.
5854         * lib/poll.c (poll): Always set timeout before wait_timeout is
5855         computed.
5856
5857 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5858
5859         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
5860         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
5861         rmdir ("dir/.//"), unlinkat.
5862
5863 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5864
5865         stdbool: avoid spurious failure with modern xlc
5866         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5867
5868 2010-08-24  Bruno Haible  <bruno@clisp.org>
5869
5870         getloadavg: simplify code
5871         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
5872         gl_have_func. Update comments.
5873
5874 2010-08-24  Eric Blake  <eblake@redhat.com>
5875
5876         getloadavg: don't define SVR4 on cygwin
5877         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
5878         only define SVR4 when -lkvm is required.
5879         Reported by Yaakov Selkowitz.
5880
5881 2010-08-24  Bruno Haible  <bruno@clisp.org>
5882
5883         priv-set: fix comment
5884         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
5885
5886 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5887
5888         priv-set: fix comments
5889         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
5890         to match code, as suggested by David Bartley in:
5891         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
5892
5893 2010-08-23  Eric Blake  <eblake@redhat.com>
5894
5895         stdbool: avoid rejecting clang
5896         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5897         * tests/test-stdbool.c: Enable more tests if using the system
5898         <stdbool.h> instead of the gnulib replacement.
5899         (main): Move xlc bug test to a runtime test for all compilers.
5900         Reported by Anders Kaseorg.
5901
5902         argz: fix shell quoting issue
5903         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
5904         Reported by Charles Wilson.
5905
5906 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
5907             Erik Faye-Lund <kusmabite@gmail.com>
5908
5909         poll, select: handle ERROR_BROKEN_PIPE.
5910         * lib/poll.c (win32_compute_revents): Return POLLHUP when
5911         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5912         * lib/select.c (win32_compute_revents): Do not mark a pipe
5913         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5914
5915 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
5916
5917         fts: allow compilation with C++
5918         * lib/fts_.h: Specify extern "C" linkage with C++.
5919
5920 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5921
5922         Fix gnulib-tool sed script de-commentation for AIX sed.
5923         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
5924         sed.
5925
5926 2010-08-17  Eric Blake  <eblake@redhat.com>
5927
5928         test-stddef: test for (some) offsetof bugs
5929         * tests/test-stddef.c: Enhance test to ensure correct type of
5930         offsetof.
5931         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
5932         that we are not fixing at this time.
5933
5934 2010-08-15  Bruno Haible  <bruno@clisp.org>
5935
5936         stpncpy: Allow stpncpy to be defined as a macro.
5937         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
5938         if it's already correctly declared.
5939         * lib/string.in.h (stpncpy): Undefine before redefining.
5940         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
5941
5942 2010-08-14  Bruno Haible  <bruno@clisp.org>
5943
5944         Rename module 'memxfrm' to 'amemxfrm'.
5945         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
5946         (amemxfrm): Renamed from memxfrm.
5947         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
5948         (amemxfrm): Renamed from memxfrm.
5949         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
5950         * NEWS: Mention the change.
5951         * MODULES.html.sh (String handling <string.h>): Update.
5952         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
5953         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
5954         * lib/unicase/u16-casexfrm.c: Likewise.
5955         * lib/unicase/u32-casexfrm.c: Likewise.
5956         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
5957         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
5958         * lib/uninorm/u16-normxfrm.c: Likewise.
5959         * lib/uninorm/u32-normxfrm.c: Likewise.
5960         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
5961         memxfrm.
5962         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
5963         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
5964         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
5965         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
5966         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
5967         Suggested by Paul Eggert.
5968
5969 2010-08-14  Bruno Haible  <bruno@clisp.org>
5970
5971         Tests for module 'astrxfrm'.
5972         * modules/astrxfrm-tests: New file.
5973         * tests/test-astrxfrm.c: New file.
5974
5975         New module 'astrxfrm'.
5976         * lib/astrxfrm.h: New file.
5977         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
5978         * modules/astrxfrm: New file.
5979
5980 2010-08-14  Reuben Thomas <rrt@sc3d.org>
5981
5982         regex: Tweak doc.
5983         * doc/regex.texi (Overview): Don't mention regex.c.
5984         (GNU Regular Expression Compiling): Likewise.
5985         (Match-end-of-line Operator): Mention 'not_eol'.
5986
5987 2010-08-14  Brian Gough  <bjg@gnu.org>
5988             Bruno Haible  <bruno@clisp.org>
5989
5990         git-merge-changelog: add doc relating to use with bzr and hg.
5991         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
5992
5993 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
5994
5995         pthread: fix pthread.h creation for srcdir != builddir
5996         * modules/pthread (Makefile.am): Fix the rule to work also in a
5997         non-srcdir build.
5998
5999 2010-08-13  Karl Berry  <karl@gnu.org>
6000
6001         * doc/regex.texi (Predefined Syntaxes): @smallexample.
6002         * doc/posix-*/*: force line break before @url of POSIX
6003         specifications.
6004         Suggested by Werner Lemberg.
6005
6006 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6007
6008         strtod: fix const diagnostic
6009         * lib/strtod.c (strtod): Don't assign const char * to char *,
6010         as this elicits a warning from GCC when warnings are enabled.
6011
6012 2010-08-10  Pádraig Brady <P@draigbrady.com>
6013         and Eric Blake  <eblake@redhat.com>
6014
6015         copy-acl: ignore ENOTSUP on HP-UX
6016         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
6017         so that it is available for HP-UX.
6018         * lib/copy-acl.c (qcopy_acl): Use it.
6019         Reported by Patrick M. Callahan.
6020
6021 2010-08-10  Eric Blake  <eblake@redhat.com>
6022
6023         open, chown: relax license
6024         * modules/open (License): Change to LGPLv2+, with consent by all
6025         authors, for use in augeas.
6026         * modules/chown (License): Likewise.
6027         * modules/lchown (Likewise): Likewise.
6028         Requested by Adam Stokes.
6029
6030 2010-08-09  Karl Berry  <karl@gnu.org>
6031
6032         * build-aux/ar-lib: new file, import from Automake.
6033         * config/srclist.txt: autocheck for updates.
6034
6035 2010-08-09  Eric Blake  <eblake@redhat.com>
6036
6037         readlinkat: adjust client modules
6038         * modules/areadlinkat (Depends-on): Use readlinkat, not
6039         symlinkat.
6040         * modules/areadlinkat-with-size (Depends-on): Likewise.
6041
6042         mknod: be more vocal about danger of running tests as root
6043         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
6044         root, since that is just asking for problems.
6045         Suggested by Bruno Haible, based on a report by Rainer Tammer.
6046
6047         readlinkat: split into its own module
6048         * modules/symlinkat: Split readlinkat...
6049         * modules/readlinkat: ...into separate module.
6050         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
6051         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
6052         * lib/symlinkat.c (readlinkat): Move...
6053         * lib/readlinkat.c: ...into new file.
6054         * modules/symlinkat-tests: Split readlinkat test...
6055         * modules/readlinkat-tests: ...into separate module.
6056         * tests/test-symlinkat.c: Split...
6057         * tests/test-readlinkat.c: ...into new file.
6058         * NEWS: Document the split.
6059         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6060         * lib/unistd.in.h (readlinkat): Likewise.
6061         Suggested by Bruno Haible.
6062
6063 2010-08-08  Bruno Haible  <bruno@clisp.org>
6064
6065         memxfrm: Speed up.
6066         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
6067         that usually only one call to strxfrm is necessary for each string
6068         part.
6069         Reported by Paul Eggert <eggert@cs.ucla.edu>.
6070
6071 2010-08-07  Karl Berry  <karl@gnu.org>
6072
6073         * doc/posix-headers/limits.texi,
6074         * doc/posix-functions/malloc.texi,
6075         * doc/posix-functions/strsignal.texi: missing @item.
6076         * doc/ld-version-script.texi: spurious leading i.
6077         * doc/regex.texi (Interval Operators): no commas inside @var.
6078
6079 2010-08-01  Bruno Haible  <bruno@clisp.org>
6080
6081         Integrate the regex documentation.
6082         * doc/gnulib.texi: Define 'cn' index.
6083         (Regular expressions): New a chapter that includes regex.texi and
6084         regexprops-generic.texi.
6085         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
6086         syntax.
6087
6088         Whitespace cleanup.
6089         * doc/regex.texi: Remove trailing spaces.
6090
6091         Add regex documentation.
6092         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
6093         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
6094         Written by Kathy A. Hargreaves and Karl Berry.
6095
6096 2010-08-01  Bruno Haible  <bruno@clisp.org>
6097
6098         link: Update documentation.
6099         * doc/posix-functions/link.texi: Update regarding Solaris.
6100
6101 2010-07-31  Bruno Haible  <bruno@clisp.org>
6102
6103         Update modules list.
6104         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
6105         (String handling <string.h>): Add memcmp2, memxfrm.
6106         (Container data structures): Add xlist, xsublist, xoset.
6107         (Core language properties): Add alignof, unused-parameter.
6108         (Process control, Numeric conversion functions <stdlib.h>): Renamed
6109         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
6110         (Unibyte characters <ctype.h>): New section.
6111         (String handling <string.h>): New section.
6112         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
6113         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
6114         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
6115         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
6116         tan, tanh, tanl, y0, y1, yn.
6117         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
6118         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
6119         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
6120         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
6121         unlockpt, vdprintf, vdprintf-posix.
6122         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
6123         (File system functions): Add concat-filename, sys_file, sys_ioctl,
6124         xconcat-filename.
6125         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
6126         getdtablesize, pipe2, pipe2-safer.
6127         (Security): New section.
6128         (Networking functions): Add accept4.
6129         (Signal handling): Add sigpipe.
6130         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
6131         mbmemcasecoll.
6132         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
6133         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
6134         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
6135         pipe-filter-ii.
6136         (Misc): Add argp-version-etc, login_tty, parse-duration.
6137
6138 2010-07-31  Bruno Haible  <bruno@clisp.org>
6139
6140         Improve doc in MODULES.html.
6141         * modules/linkat (Description): Add the word "function".
6142         * modules/mkfifo (Description): Likewise.
6143         * modules/mknod (Description): Likewise.
6144         * modules/remove (Description): Likewise.
6145         * modules/renameat (Description): Likewise.
6146         * modules/stat (Description): Likewise.
6147         * modules/symlink (Description): Likewise.
6148         * modules/unlink (Description): Likewise.
6149
6150 2010-07-31  Bruno Haible  <bruno@clisp.org>
6151
6152         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
6153         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
6154         option --enable/disable-c++ instead of --enable/disable-cxx.
6155         * NEWS: Mention the change.
6156
6157 2010-07-31  Bruno Haible  <bruno@clisp.org>
6158
6159         readlink, areadlink: Relax test a bit.
6160         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
6161         alternative to ENOTDIR.
6162         * tests/test-areadlink.h (test_areadlink): Likewise.
6163         Reported by Rainer Tammer.
6164
6165 2010-07-31  Bruno Haible  <bruno@clisp.org>
6166
6167         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
6168         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
6169         character, perform the search using U_STRCHR.
6170         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
6171         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
6172         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
6173         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
6174         Suggested by Paolo Bonzini.
6175
6176 2010-07-31  Bruno Haible  <bruno@clisp.org>
6177
6178         unistr/u*-strstr: Fix dependencies.
6179         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
6180         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
6181         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
6182
6183 2010-07-31  Bruno Haible  <bruno@clisp.org>
6184
6185         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
6186         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
6187         the beginning of the loop.
6188         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
6189         cases in 'switch' statement.
6190
6191         unistr/u8-strchr: Fix several bugs.
6192         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
6193         the string. When not found, return NULL, not a pointer near the end.
6194
6195         More tests for unistr/u8-strchr.
6196         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
6197         that the function does not read past the first occurrence of the byte
6198         being searched.
6199         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
6200         * tests/unistr/test-u16-strchr.c (main): New function.
6201         * tests/unistr/test-u32-strchr.c (main): New function.
6202
6203 2010-07-31  Bruno Haible  <bruno@clisp.org>
6204
6205         posix-modules: Ignore backup files of documentation files.
6206         * posix-modules: grep only through files named *.texi.
6207
6208 2010-07-31  Bruno Haible  <bruno@clisp.org>
6209
6210         symlinkat: Fix documentation.
6211         * doc/posix-functions/readlinkat.texi: Fix module name.
6212
6213 2010-07-31  Bruno Haible  <bruno@clisp.org>
6214
6215         fchownat: Replace also when chown has the trailing slash bug.
6216         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
6217         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
6218         introduced on 2010-04-10.
6219         Reported by Rainer Tammer.
6220
6221 2010-07-31  Bruno Haible  <bruno@clisp.org>
6222
6223         linkat: Work around AIX 7.1 bug.
6224         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
6225         whether linkat handles trailing slash correctly. If not, replace linkat
6226         and define LINKAT_TRAILING_SLASH_BUG.
6227         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
6228         check whether (fd1,file1) points to a directory if file1 or file2 ends
6229         in a slash. Code taken from lib/link.c.
6230         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
6231         Reported by Rainer Tammer.
6232
6233 2010-07-31  Bruno Haible  <bruno@clisp.org>
6234
6235         Correctly determine whether pow is available in libc on AIX 7 with xlc.
6236         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
6237         This disables an xlc optimization that was causing wrong test results.
6238         Reported by Rainer Tammer.
6239
6240 2010-07-31  Bruno Haible  <bruno@clisp.org>
6241
6242         iconv: Work around AIX 6.1..7.1 bug.
6243         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
6244         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
6245         cross-compiling, guess no on all versions of AIX.
6246         Reported by Rainer Tammer.
6247
6248 2010-07-31  Bruno Haible  <bruno@clisp.org>
6249
6250         readlink: Relax test a bit.
6251         * tests/test-readlink.h (test_readlink): Allow different errno value
6252         when readlink is called with a file name that ends in / and refers to
6253         a file.
6254         Suggested by Eric Blake.
6255         Reported by Rainer Tammer.
6256
6257 2010-07-31  Bruno Haible  <bruno@clisp.org>
6258
6259         copysign: Does not require -lm on glibc systems.
6260         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
6261         gl_COMMON_DOUBLE_MATHFUNC.
6262         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
6263
6264 2010-07-31  Bruno Haible  <bruno@clisp.org>
6265
6266         duplocale: Work around AIX 7.1 bug.
6267         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
6268         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
6269         * lib/duplocale.c (rpl_duplocale): Update comment.
6270         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
6271         Reported by Rainer Tammer.
6272
6273 2010-07-30  Bruno Haible  <bruno@clisp.org>
6274
6275         dirfd: Avoid link error on AIX 7.1.
6276         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
6277         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
6278         exist, set REPLACE_DIRFD.
6279         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
6280         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
6281         * doc/posix-functions/dirfd.texi: Update.
6282         Reported by Rainer Tammer.
6283
6284 2010-07-30  Eric Blake  <eblake@redhat.com>
6285
6286         strtod: next round of AIX fixes
6287         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
6288         exponent.
6289         * tests/test-strtod.c (main): Enhance tests.
6290         * doc/posix-functions/strtod.texi (strtod): Document next bug.
6291         Reported by Rainer Tammer.
6292
6293         futimens: fix configure check
6294         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
6295         Reported by Bruno Haible.
6296
6297 2010-07-30  Bruno Haible  <bruno@clisp.org>
6298
6299         getline: Update regarding AIX.
6300         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
6301         Reported by Rainer Tammer.
6302
6303 2010-07-30  Bruno Haible  <bruno@clisp.org>
6304
6305         wcwidth: Drop replacement on AIX 7.
6306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
6307         AIX 7.
6308         Reported by Rainer Tammer.
6309
6310 2010-07-30  Bruno Haible  <bruno@clisp.org>
6311
6312         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
6313         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
6314         a 'char *'.
6315         Reported by Rainer Tammer.
6316
6317 2010-07-30  Bruno Haible  <bruno@clisp.org>
6318
6319         unlink: Update regarding AIX.
6320         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
6321         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
6322         Reported by Rainer Tammer.
6323
6324 2010-07-30  Bruno Haible  <bruno@clisp.org>
6325
6326         symlink: Update regarding AIX.
6327         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
6328         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
6329         Reported by Rainer Tammer.
6330
6331 2010-07-30  Bruno Haible  <bruno@clisp.org>
6332
6333         strndup: Update regarding AIX.
6334         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
6335         AIX 7.
6336         Reported by Rainer Tammer.
6337
6338 2010-07-30  Bruno Haible  <bruno@clisp.org>
6339
6340         stat: Update regarding AIX.
6341         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
6342         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
6343         Reported by Rainer Tammer.
6344
6345 2010-07-30  Bruno Haible  <bruno@clisp.org>
6346
6347         truncl: Fix autoconf test.
6348         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
6349         whether truncl works.
6350         Reported by Rainer Tammer.
6351
6352 2010-07-30  Bruno Haible  <bruno@clisp.org>
6353
6354         round: Update regarding AIX.
6355         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
6356         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
6357         Reported by Rainer Tammer.
6358
6359 2010-07-30  Bruno Haible  <bruno@clisp.org>
6360
6361         rename: Update regarding AIX.
6362         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
6363         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
6364         Reported by Rainer Tammer.
6365
6366 2010-07-30  Bruno Haible  <bruno@clisp.org>
6367
6368         printf.m4: Update regarding AIX.
6369         * m4/printf.m4: Update comments regarding AIX.
6370         Reported by Rainer Tammer.
6371
6372 2010-07-30  Bruno Haible  <bruno@clisp.org>
6373
6374         iconv: Update regarding AIX.
6375         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
6376         AIX 7.
6377         Reported by Rainer Tammer.
6378
6379 2010-07-30  Bruno Haible  <bruno@clisp.org>
6380
6381         getopt: Update regarding AIX.
6382         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
6383         no on AIX.
6384         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
6385         Reported by Rainer Tammer.
6386
6387 2010-07-30  Bruno Haible  <bruno@clisp.org>
6388
6389         ldexpl; Update regarding AIX.
6390         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
6391         on AIX 7.
6392         Reported by Rainer Tammer.
6393
6394 2010-07-30  Bruno Haible  <bruno@clisp.org>
6395
6396         frexpl: Update regarding AIX.
6397         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
6398         on AIX 7.
6399         Reported by Rainer Tammer.
6400
6401 2010-07-30  Bruno Haible  <bruno@clisp.org>
6402
6403         open, fopen: Update regarding AIX.
6404         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
6405         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6406         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
6407         * doc/posix-functions/fopen.texi: Likewise.
6408         Reported by Rainer Tammer.
6409
6410 2010-07-30  Bruno Haible  <bruno@clisp.org>
6411
6412         chown: Update doc regarding AIX.
6413         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
6414         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
6415         Reported by Rainer Tammer.
6416
6417 2010-07-30  Eric Blake  <eblake@redhat.com>
6418
6419         strtod: fix bug in replacement function on AIX
6420         * lib/strtod.c (strtod): Special case broken "0x" parse in
6421         underlying strtod.
6422         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
6423         * doc/posix-functions/strtod.texi (strtod): Likewise.
6424         Reported by Rainer Tammer.
6425
6426 2010-07-30  Bruno Haible  <bruno@clisp.org>
6427
6428         mbrlen: Fix cross-compilation guess for AIX.
6429         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
6430         guess. Leftover from 2008-12-22.
6431
6432 2010-07-30  Bruno Haible  <bruno@clisp.org>
6433
6434         mbrtowc: Fix cross-compilation guess for AIX.
6435         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
6436         guess. Leftover from 2008-12-21.
6437
6438 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
6439
6440         init.sh: work around trap limitation of some shells
6441         * tests/init.sh (setup_): Move exit trap outside of shell function.
6442
6443 2010-07-29  Eric Blake  <eblake@redhat.com>
6444
6445         strtod: aid debugging
6446         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
6447         understanding why strtod is rejected.
6448
6449 2010-07-28  Bruno Haible  <bruno@clisp.org>
6450
6451         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
6452         * lib/unistr/u8-chr.c: Include <string.h>.
6453         * tests/unistr/test-u8-chr.c: Likewise.
6454         * tests/unistr/test-u16-chr.c: Likewise.
6455         * tests/unistr/test-u32-chr.c: Likewise.
6456         * tests/unistr/test-u8-strchr.c: Likewise.
6457         * tests/unistr/test-u16-strchr.c: Likewise.
6458         * tests/unistr/test-u32-strchr.c: Likewise.
6459         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
6460         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
6461         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
6462         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
6463
6464 2010-07-28  Bruno Haible  <bruno@clisp.org>
6465
6466         Use spaces for indentation, not tabs.
6467         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6468
6469 2010-07-27  Bruno Haible  <bruno@clisp.org>
6470
6471         mbspcasecmp: Fix function specification.
6472         * lib/string.in.h (mbspcasecmp): Fix specification comment.
6473         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
6474         Reported by Eric Blake <eblake@redhat.com>.
6475
6476 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
6477
6478         timespec: use cast and not conditional, as truncation isn't possible
6479         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
6480         instead of a conditional.  Comment about the situation in more detail.
6481         This undoes most of the 2009-10-29 patch.
6482
6483 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
6484
6485         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
6486         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
6487         * lib/unistr/u8-strchr.c: Likewise.
6488         * modules/unistr/u8-chr: Depend on memchr.
6489
6490         unistr/u*-strchr: add tests
6491         * modules/unistr/u8-strchr-tests: New file.
6492         * modules/unistr/u16-strchr-tests: New file.
6493         * modules/unistr/u32-strchr-tests: New file.
6494         * tests/unistr/test-strchr.h: New file.
6495         * tests/unistr/test-u8-strchr.c: New file.
6496         * tests/unistr/test-u16-strchr.c: New file.
6497         * tests/unistr/test-u32-strchr.c: New file.
6498
6499         unistr/u*-chr: test multibyte sequences more
6500         * tests/unistr/test-chr.h: Do complete testing of the characters in the
6501         test vector.
6502         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
6503         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
6504         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
6505
6506         unistr/u*-chr: test multibyte sequences
6507         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
6508
6509         unistr/u*-chr: prepare for multibyte tests
6510         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
6511         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
6512         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
6513         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
6514         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
6515         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
6516
6517 2010-07-18  Bruno Haible  <bruno@clisp.org>
6518
6519         unistr/u8-strchr: Optimize non-ASCII argument case.
6520         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
6521         because the first byte often matches anyway.
6522         Reported by Pádraig Brady <P@draigbrady.com>.
6523
6524 2010-07-15  Karl Berry  <karl@gnu.org>
6525
6526         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
6527
6528 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
6529
6530         getcwd: on Solaris, work better if ancestors are inaccessible
6531         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
6532         buffer and size, try again with a large buffer.  This works better
6533         on Solaris, since its getcwd succeeds even if the path to the root
6534         is inaccessible, and this is helpful in common cases such as .zfs
6535         hidden directories.  Problem reported by J Chapman Flack in
6536         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
6537         Use system getcwd if it's declared, not merely if it's partly
6538         working; use the partly-working test only to avoid needless effort
6539         if the system getcwd fails.
6540         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
6541         comment that was already obsolete and is now even more obsolete.
6542         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
6543         now might call strdup.
6544
6545 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
6546
6547         pthread: Add enough so that coreutils/src/sort.c compiles.
6548         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
6549         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
6550         gnulib. Include <sched.h> and <time.h>, as per POSIX.
6551         Include <sys/types.h>, in case it defines pthread_t.
6552         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
6553         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
6554         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
6555         (pthread_rwlockattr_t, pthread_spinlock_t):
6556         New typedefs, if HAVE_PTHREAD_T is not defined.
6557         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
6558         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
6559         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
6560         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
6561         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
6562         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
6563         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
6564         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
6565         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
6566         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
6567         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
6568         New macros.
6569         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
6570         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
6571         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
6572         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
6573         (pthread_spin_unlock): New dummy functions.
6574         (pthread_create): Return EAGAIN; don't set errno.
6575         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
6576         require AC_C_INLINE.
6577         * modules/pthread (Depends-on): Add sched, time.
6578         (pthread.h): Use AM_V_GEN.
6579
6580 2010-07-13  Bruno Haible  <bruno@clisp.org>
6581
6582         striconveh: Don't malloc memory if the result buffer is sufficient.
6583         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
6584         buffer if its size is sufficient.
6585         Reported by Ludovic Courtès <ludo@gnu.org>.
6586
6587 2010-07-13  Bruno Haible  <bruno@clisp.org>
6588
6589         strtod: Add safety check.
6590         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
6591
6592 2010-07-12  Bruno Haible  <bruno@clisp.org>
6593
6594         Unify tests that set gl_cv_func_ldexpl_no_libm.
6595         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
6596         gl_FUNC_LDEXPL.
6597         (gl_FUNC_LDEXPL): Invoke it.
6598         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6599
6600 2010-07-12  Bruno Haible  <bruno@clisp.org>
6601
6602         Unify tests that set gl_cv_func_ldexp_no_libm.
6603         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
6604         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
6605         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
6606         (configure.ac): Simply invoke gl_FUNC_LDEXP.
6607         * modules/strtod (Files): Add m4/ldexp.m4.
6608
6609 2010-07-12  Bruno Haible  <bruno@clisp.org>
6610
6611         Unify tests that set gl_cv_func_frexpl_no_libm.
6612         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
6613         gl_FUNC_FREXPL_NO_LIBM.
6614         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
6615         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6616
6617 2010-07-12  Bruno Haible  <bruno@clisp.org>
6618
6619         Unify tests that set gl_cv_func_frexp_no_libm.
6620         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
6621         gl_FUNC_FREXP_NO_LIBM.
6622         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
6623         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6624
6625 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6626
6627         memcoll: clarify sizes versus lengths, document better, and tweak perf
6628         * lib/memcoll.c (strcoll_loop, memcoll0):
6629         Improve quality of descriptive comments.  Name variables
6630         consistently as to whether they are lengths (which do not include
6631         terminating null) versus sizes (which do).
6632         * lib/xmemcoll.c (xmemcoll0): Likewise.
6633         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
6634         returned when s1size == 0; this is easier to compile and saves
6635         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
6636
6637 2010-07-12  Bruno Haible  <bruno@clisp.org>
6638
6639         Tests for module '_Exit'.
6640         * modules/_Exit-tests: New file.
6641         * tests/test-_Exit.sh: New file.
6642         * tests/test-_Exit.c: New file.
6643
6644         New module '_Exit'.
6645         * lib/stdlib.in.h (__attribute__): New macro.
6646         (_Exit): New declaration.
6647         * lib/_Exit.c: New file.
6648         * m4/_Exit.m4: New file.
6649         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
6650         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
6651         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
6652         * modules/_Exit: New file.
6653         * tests/test-stdlib-c++.cc (_Exit): Check signature.
6654         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
6655
6656 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6657
6658         strtod: make it more-accurate typically, and don't require libm
6659         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
6660         Include limits.h.  Don't include string.h.
6661         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
6662         (locale_isspace): New function, so that no casts are needed to
6663         check whether *s is a space.
6664         (ldexp): Provide an unused dummy if not available.
6665         (scale_radix_exp, parse_number, underlying_strtod): New functions.
6666         (strtod): Use them.  This implementation prefers to use the
6667         underlying strtod if available, falling back on our own code
6668         only to fix known bugs.  This is more likely to produce an
6669         accurate result.  Also, it avoids the use of libm functions.
6670         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
6671         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
6672         was absent, but it caused a test failure with coreutils.
6673         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
6674         with libm.
6675         * modules/strtod (Makefile.am, Link): libm is no longer needed.
6676         * modules/strtod-tests (Makefile.am): Likewise.
6677
6678 2010-07-11  Pádraig Brady  <P@draigBrady.com>
6679             Bruno Haible  <bruno@clisp.org>
6680
6681         unistr/u8-strchr: Optimize ASCII argument case.
6682         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
6683
6684 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6685
6686         (x)memcoll: minor tweaks
6687         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
6688         is after the type that it qualifies.
6689         (memcoll0): Likewise.
6690         * lib/memcoll.h (memcoll0): Likewise.
6691         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
6692         * lib/xmemcoll.h (xmemcoll0): Likewise.
6693         * lib/memcoll.c (memcoll0): Correct the comment.  This function
6694         differs from memcoll in that the NUL byte is part of the argument.
6695         Omit the abort-checks, as performance is a real issue here.  Plus,
6696         the checks were wrong anyway (an off-by-one error).  Omit local
6697         variable 'diff', as it's a bit clearer that way.
6698         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
6699         no longer needed.
6700
6701 2010-07-08  Chen Guo <chenguo4@yahoo.com>
6702
6703         (x)memcoll: speedup when input is known to be NUL delimited
6704         * lib/memcoll.c: Include stdlib.
6705         (memcoll0) New function.
6706         (strcoll_loop) New function, refactored for use in both memcoll
6707         and memcoll0.
6708         * lib/memcoll.h: Add prototype for memcoll0.
6709         * lib/xmemcoll.c: (xmemcoll0) New function.
6710         (collate_error) New function, refactored for use in both xmemcoll
6711         and xmemcoll0.
6712         * lib/xmemcoll.h: Add prototype for xmemcoll0.
6713         * m4/memcoll.m4: add inline invocation.
6714
6715 2010-07-06  Pádraig Brady  <P@draigBrady.com>
6716
6717         * build-aux/bootstrap: Remove any local translations
6718         from the translation project synchronization directory,
6719         so that local only translations are not distributed.
6720
6721 2010-07-04  Bruno Haible  <bruno@clisp.org>
6722
6723         fsusage: Clarify which code applies to which platforms.
6724         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
6725         platform.
6726         * lib/fsusage.c (get_fs_usage): Likewise.
6727
6728 2010-07-04  Bruno Haible  <bruno@clisp.org>
6729
6730         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
6731         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
6732         Reported by Martin Lambers <marlam@marlam.de>.
6733
6734 2010-07-04  Jim Meyering  <meyering@redhat.com>
6735
6736         hash: once again explicitly disallow insertion of NULL
6737         * lib/hash.c (hash_insert0): Reinstate just-removed test:
6738         inserting a NULL pointer cannot work with these functions.
6739         Add a comment with details.
6740         This reverts part of the 2010-07-01 commit, 5bef1a35
6741         "hash: extend module to deal with non-pointer keys".
6742
6743 2010-07-01  Bruno Haible  <bruno@clisp.org>
6744
6745         stdbool: Update doc.
6746         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
6747         Info from Christian Weisgerber <naddy@mips.inka.de>.
6748
6749 2010-07-01  Jim Meyering  <meyering@redhat.com>
6750
6751         hash: extend module to deal with non-pointer keys
6752         * lib/hash.c (hash_insert0): New interface, much like hash_insert
6753         but that allows insertion of non-pointer entries.
6754         Do not disallow an ENTRY value of NULL.
6755         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
6756         * lib/hash.h (hash_insert0): Declare.
6757
6758 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6759
6760         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
6761         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
6762         not present (i.e. with autoconf 2.59 and when using gettextize, not
6763         gnulib), require AC_GNU_SOURCE instead.
6764
6765 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
6766
6767         idpriv-drop: Fix tests.
6768         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
6769         not to the test-idpriv-droptemp program.
6770
6771 2010-06-29  Bruno Haible  <bruno@clisp.org>
6772
6773         string: Fix syntax error with g++ 2.96.
6774         * lib/string.in.h (__pure__): Remove definition.
6775         (_GL_ATTRIBUTE_PURE): New macro.
6776         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
6777         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
6778         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6779
6780 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
6781
6782         unitypes: Fix bug introduced on 2010-05-18.
6783         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
6784
6785 2010-06-22  Eric Blake  <eblake@redhat.com>
6786
6787         memmem: slight optimization
6788         * lib/str-two-way.h (critical_factorization): Update comments.
6789         Reduce work during factorization phase.
6790         Reported by Carlos Bueno <carlos@bueno.org>.
6791
6792 2010-06-21  Bruno Haible  <bruno@clisp.org>
6793
6794         Fix HAVE_CALLOC_POSIX misnomer.
6795         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
6796         !HAVE_CALLOC_POSIX.
6797         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
6798         HAVE_CALLOC_POSIX.
6799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
6800         instead of HAVE_CALLOC_POSIX.
6801         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
6802         HAVE_CALLOC_POSIX.
6803
6804         Use modern idiom for calloc() replacement.
6805         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
6806         AC_FUNC_CALLOC.
6807         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
6808         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
6809         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6810         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
6811         (gl_REPLACE_CALLOC): New macro.
6812
6813 2010-06-21  Bruno Haible  <bruno@clisp.org>
6814
6815         Fix HAVE_REALLOC_POSIX misnomer.
6816         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
6817         !HAVE_REALLOC_POSIX.
6818         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
6819         HAVE_REALLOC_POSIX.
6820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
6821         instead of HAVE_REALLOC_POSIX.
6822         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
6823         HAVE_REALLOC_POSIX.
6824
6825         Use modern idiom for realloc() replacement.
6826         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
6827         AC_FUNC_REALLOC.
6828         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
6829         Autoconf's AC_FUNC_REALLOC.
6830         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6831         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
6832         (gl_REPLACE_REALLOC): New macro.
6833         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6834
6835 2010-06-21  Bruno Haible  <bruno@clisp.org>
6836
6837         Fix HAVE_MALLOC_POSIX misnomer.
6838         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
6839         !HAVE_MALLOC_POSIX.
6840         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
6841         HAVE_MALLOC_POSIX.
6842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
6843         instead of HAVE_MALLOC_POSIX.
6844         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
6845         HAVE_MALLOC_POSIX.
6846
6847         Use modern idiom for malloc() replacement.
6848         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
6849         AC_FUNC_MALLOC.
6850         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
6851         Autoconf's AC_FUNC_MALLOC.
6852         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6853         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
6854         (gl_REPLACE_MALLOC): New macro.
6855         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6856
6857 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
6858
6859         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
6860         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
6861         This macro takes 3 arguments, not 4.
6862
6863 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
6864
6865         ipv6: fix detection under mingw
6866         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
6867         in6_addr.
6868
6869 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
6870
6871         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
6872         that strtod() works when cross-compiling to a glibc version known
6873         to work.
6874
6875 2010-06-15  Bruno Haible  <bruno@clisp.org>
6876
6877         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
6878
6879 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
6880
6881         select: Correct timeout.
6882         * lib/select.c (rpl_select): Compute wait_timeout correctly.
6883
6884 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6885
6886         git-version-gen: init shell var to avoid env var influence
6887         * build-aux/git-version-gen (v): Init shell var to empty.
6888
6889 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
6890
6891         priv-set: Don't assume that priv.h exists merely because getppriv does.
6892         See Jan Andersen's bug report about AIX 5L in
6893         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
6894         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
6895         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
6896         * lib/priv-set.h: Likewise.
6897         * tests/test-priv-set.c: Likewise.
6898
6899 2010-06-13  Bruno Haible  <bruno@clisp.org>
6900
6901         relocatable: Make it easier to test whether to install wrappers.
6902         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
6903         RELOCATABLE_VIA_WRAPPER.
6904
6905 2010-06-13  Bruno Haible  <bruno@clisp.org>
6906
6907         gnulib-tool: Display specified modules and dependencies differently.
6908         * gnulib-tool (func_show_module_list): New function.
6909         (func_import, func_create_testdir): Invoke it.
6910         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6911
6912 2010-06-13  Bruno Haible  <bruno@clisp.org>
6913
6914         gnulib-tool: Align code of func_import and func_create_testdir.
6915         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
6916         specified_modules.
6917
6918 2010-06-12  Jim Meyering  <meyering@redhat.com>
6919
6920         test-inttostr: avoid spurious failure on Solaris 9
6921         * tests/test-inttostr.c (main): Skip the test when snprintf fails
6922         to accept "%ju".  Reported by Bruno Haible.
6923
6924 2010-06-11  Jim Meyering  <meyering@redhat.com>
6925
6926         test-sys_socket: mark variables as used more readably
6927         * tests/test-sys_socket.c (main): Mark otherwise unused variables
6928         as "used" explicitly via (void) statement casts.  This is more
6929         readable than using them in an artificial return expression.
6930         Suggestion from Bruno Haible.
6931
6932 2010-06-11  Bruno Haible  <bruno@clisp.org>
6933
6934         Avoid some more warnings from "gcc -Wwrite-strings".
6935         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
6936         to 'const char *'.
6937         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
6938         * tests/test-c-strcasestr.c (main): Likewise.
6939         * tests/test-mbscasestr1.c (main): Likewise.
6940         * tests/test-mbscasestr2.c (main): Likewise.
6941         * tests/test-memmem.c (main): Likewise.
6942         * tests/test-strstr.c (main): Likewise.
6943         * tests/test-strcasestr.c (main): Likewise.
6944
6945 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6946
6947         init.sh: change framework_failure_ to fail with status 99, not 1
6948         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
6949         automake's parallel-tests rule that this is an unexpected failure,
6950         even if the test is listed in XFAIL_TESTS.
6951
6952 2010-06-11  Jim Meyering  <meyering@redhat.com>
6953
6954         test-inttostr: avoid warnings about 4-6KB literal strings
6955         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
6956         Include "macros.h", for its definition of ASSERT.
6957         (CK): s/assert/ASSERT/
6958         * modules/inttostr-tests (Files): Add macros.h.
6959
6960         init.sh: don't use $ME_ or skip_ before they are defined
6961         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
6962         their first uses.  Also hoist their companions: warn_, fail_,
6963         framework_failure_, $stderr_fileno.  Prompted by a patch from
6964         Stefano Lattarini.
6965
6966         test-sys_socket: avoid set-but-not-used warnings from gcc
6967         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
6968         avoid warning about set-but-not-used variables.
6969
6970         test-xvasprintf: avoid 'const' discard warnings
6971         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
6972         "const" when assigning from literal strings.
6973         (test_xasprintf): Add "void" in function argument list to placate
6974         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
6975
6976         tests: avoid compilation warnings in argmatch and exclude tests...
6977         in packages that define ARGMATCH_DIE_DECL, like coreutils.
6978         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
6979         Since it always exits, declare with the "noreturn" attribute.
6980         * tests/test-argmatch.c: Likewise.
6981
6982         tests: avoid 'const' discard warnings in mbsstr tests
6983         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
6984         * tests/test-mbsstr2.c (main): Likewise.
6985
6986         test-verify: avoid warning from gcc's -Wmissing-declarations
6987         * tests/test-verify.c (function): Declare to be static.
6988
6989         test-inttostr.c: include <string.h> for use of strcmp
6990         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
6991
6992         test-linkat: avoid failed assertion on "other" architectures
6993         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
6994         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
6995         sparc: https://bugs.launchpad.net/bugs/591968
6996
6997 2010-06-11  Jim Meyering  <meyering@redhat.com>
6998
6999         printf.m4: avoid autoconf's "Expanded Before Required" warning
7000         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
7001         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
7002         autoconf warning.
7003
7004 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
7005
7006         Replacement header templates are now named with ".in", not "_".
7007         * doc/gnulib-intro.texi: Correct.
7008
7009 2010-06-10  Jim Meyering  <meyering@redhat.com>
7010
7011         inttostr-tests: depend on snprintf, not snprintf-posix
7012         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
7013         snprintf-posix, to avoid this aclocal failure:
7014           missing file gnulib-tests/vasnprintf.c
7015           configure.ac:45: error: expected source file, required through \
7016           AC_LIBSOURCES, not found
7017
7018 2010-06-10  Jim Meyering  <meyering@redhat.com>
7019
7020         inttostr: add a new function, inttostr, and tests
7021         The namesake function was not available.  The existence of the
7022         template file, inttostr.c makes its addition nontrivial.
7023         * lib/anytostr.c: Rename from inttostr.c.
7024         (anytostr): Rename from inttostr.
7025         * lib/inttostr.c: New file.
7026         * modules/inttostr (Files): Add anytostr.c.
7027         (Makefile.am): Set lib_SOURCES instead of ...
7028         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
7029         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
7030         * lib/offtostr.c: Likewise.
7031         * lib/uinttostr.c: Likewise.
7032         * lib/umaxtostr.c: Likewise.
7033         * modules/inttostr-tests: New file.
7034         * tests/test-inttostr.c: New file.  Test these functions.
7035
7036 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
7037             Bruno Haible  <bruno@clisp.org>
7038
7039         Add "Extending Gnulib" chapter to manual.
7040         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
7041         chapter.
7042         (Extending Gnulib): New chapter.
7043         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
7044         chapter.
7045
7046 2010-06-09  Bruno Haible  <bruno@clisp.org>
7047
7048         Avoid relocwrapper link errors due to gnulib replacement functions.
7049         * lib/areadlink.c: Use the system's malloc, realloc functions.
7050         (areadlink): Set errno to ENOMEM explicitly.
7051         * modules/areadlink (Depends-on): Remove malloc-posix.
7052         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7053
7054 2010-06-09  Bruno Haible  <bruno@clisp.org>
7055
7056         Avoid relocwrapper link errors due to gnulib replacement functions.
7057         * lib/canonicalize-lgpl.c: Use the system's malloc function.
7058         * lib/malloca.c: Likewise.
7059         * lib/relocatable.c: Likewise.
7060         * lib/progreloc.c: Use the system's malloc, sprintf functions.
7061         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
7062         * lib/setenv.c: Use the system's malloc, realloc functions.
7063         * lib/strerror.c: Use the system's sprintf function.
7064         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7065
7066 2010-06-04  Bruno Haible  <bruno@clisp.org>
7067
7068         Prefer documented low-level autoconf macro names.
7069         * m4/lib-link.m4: Use m4_translit instead of translit.
7070         * m4/environ.m4: Likewise.
7071         * m4/mathfunc.m4: Likewise.
7072         * m4/onceonly.m4: Likewise.
7073         * m4/stdint.m4: Likewise.
7074         Suggested by Eric Blake.
7075
7076 2010-06-04  Martin Lambers  <marlam@marlam.de>
7077             Bruno Haible  <bruno@clisp.org>
7078
7079         havelib: Allow library names with '+' characters.
7080         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7081         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
7082
7083 2010-06-09  Bruno Haible  <bruno@clisp.org>
7084
7085         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
7086         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
7087         realloc failed.
7088
7089 2010-06-08  Peter Simons  <simons@cryp.to>
7090
7091         maint.mk: make the news-check rule more configurable
7092         * top/maint.mk (news-check-lines-spec) New variable.
7093         (news-check): Use "sed -n 1,10p" in place of "head".
7094
7095 2010-06-07  Jim Meyering  <meyering@redhat.com>
7096
7097         do-release-commit-and-tag: fix typo in --help
7098         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
7099
7100         regex: avoid new dead-code warning with gcc-4.6.0
7101         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
7102         if-block containing a while-loop.  It's been unused for at least
7103         5 years.
7104
7105 2010-06-05  Bruno Haible  <bruno@clisp.org>
7106
7107         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
7108         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
7109
7110 2010-06-04  Bruno Haible  <bruno@clisp.org>
7111
7112         Update to GNU gettext 0.18.1.
7113         * modules/gettext (configure.ac): Require gettext infrastructure from
7114         version 0.18.1.
7115
7116 2010-06-03  Bruno Haible  <bruno@clisp.org>
7117
7118         Don't use AC_LIBOBJ with file names in subdirectories.
7119         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
7120         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
7121         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
7122         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
7123         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
7124         gl_LIBUNISTRING_LIBSOURCE.
7125         (Makefile.am): Augment lib_SOURCES here, conditionally.
7126         * NEWS: Drop requirement for Automake option 'subdir-objects'.
7127
7128 2010-06-03  Bruno Haible  <bruno@clisp.org>
7129
7130         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
7131         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
7132         expansion does not end with a newline.
7133         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
7134         unnecessary newline.
7135
7136 2010-06-03  Bruno Haible  <bruno@clisp.org>
7137
7138         Reduce dependencies.
7139         * tests/test-quotearg.h: New file, extracted from
7140         tests/test-quotearg.c.
7141         * tests/test-quotearg-simple.c: New file, extracted from
7142         tests/test-quotearg.c.
7143         * tests/test-quotearg.c: Don't include <ctype.h>.
7144         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
7145         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
7146         use_quote_double_quotes, use_quotearg_colon): Moved to
7147         tests/test-quotearg.h.
7148         (results_g, flag_results, custom_quotes, custom_results): Moved
7149         to tests/test-quotearg-simple.c.
7150         (main): Moved the part that does not depend on gettext to
7151         tests/test-quotearg-simple.c. Return 77 if the test cannot be
7152         performed.
7153         * modules/quotearg-simple: New file.
7154         * modules/quotearg-simple-tests: New file.
7155         * modules/quotearg (Depends-on): Add quotearg-simple.
7156         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
7157         (Files): Add tests/test-quotearg.h.
7158         Reported by Paolo Bonzini.
7159
7160 2010-06-03  Bruno Haible  <bruno@clisp.org>
7161
7162         Reduce dependencies.
7163         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
7164
7165 2010-06-03  Bruno Haible  <bruno@clisp.org>
7166
7167         time: Undefine more broken macros.
7168         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
7169         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
7170         Reported by Eric Blake.
7171
7172 2010-06-03  Bruno Haible  <bruno@clisp.org>
7173
7174         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
7175         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
7176         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
7177         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
7178         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
7179         Reported by Ludovic Courtès <ludo@gnu.org>.
7180
7181 2010-06-02  Eric Blake  <eblake@redhat.com>
7182
7183         time: work with mingw + pthreads-win32 library
7184         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
7185         if timespec is defined only in pthread.h.
7186         * modules/time (Makefile.am): Substitute it.
7187         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
7188         <pthread.h>, when needed.
7189         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
7190         from the library.
7191
7192 2010-05-31  Bruno Haible  <bruno@clisp.org>
7193
7194         Avoid expanding two macros in the wrong order.
7195         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
7196         gl_LIBUNISTRING if it is defined.
7197         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
7198         autoconf >= 2.64.
7199         Reported by Ludovic Courtès <ludo@gnu.org>.
7200
7201 2010-05-27  Jim Meyering  <meyering@redhat.com>
7202
7203         maint.mk: also prohibit "#undef" of always-defined symbols
7204         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
7205         Allow more than one space before the symbol name.
7206         (sc_prohibit_always-defined_macros): Use grep's -E, now that
7207         the regexp uses alternation.
7208
7209 2010-05-26  Eric Blake  <eblake@redhat.com>
7210
7211         maint.mk: avoid echo -e
7212         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
7213         Convert all uses of echo -* to printf.
7214         Reported by Matthias Bolte.
7215
7216 2010-05-25  Bruno Haible  <bruno@clisp.org>
7217
7218         Update to GNU gettext 0.18, part 2.
7219         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
7220         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
7221
7222 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7223
7224         Add missing include in test-pwrite.c.
7225         * tests/test-pwrite.c: Include string.h, for strcmp.
7226
7227 2010-05-24  Bruno Haible  <bruno@clisp.org>
7228
7229         * NEWS: Mention requirement for Automake option 'subdir-objects'.
7230
7231 2010-05-24  Bruno Haible  <bruno@clisp.org>
7232
7233         Don't use conversion with transliteration in u{8,16,32}_strcoll.
7234         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
7235         iconveh_error argument.
7236         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
7237         U_STRCONV_TO_LOCALE.
7238         * lib/unistr/u16-strcoll.c: Likewise.
7239         * lib/unistr/u32-strcoll.c: Likewise.
7240         * modules/unistr/u8-strcoll (Depends-on): Add
7241         uniconv/u8-strconv-to-enc, localcharset. Remove
7242         uniconv/u8-strconv-to-locale.
7243         (configure.ac): Bump version number.
7244         * modules/unistr/u16-strcoll (Depends-on): Add
7245         uniconv/u16-strconv-to-enc, localcharset. Remove
7246         uniconv/u16-strconv-to-locale.
7247         (configure.ac): Bump version number.
7248         * modules/unistr/u32-strcoll (Depends-on): Add
7249         uniconv/u32-strconv-to-enc, localcharset. Remove
7250         uniconv/u32-strconv-to-locale.
7251         (configure.ac): Bump version number.
7252
7253 2010-05-24  Bruno Haible  <bruno@clisp.org>
7254
7255         Avoid a test failure on NetBSD 5.0.
7256         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
7257         an iconv() bug.
7258
7259 2010-05-24  Bruno Haible  <bruno@clisp.org>
7260
7261         Adjust #include directive style.
7262         * modules/regex (Includes): Recommend to write <regex.h>.
7263
7264 2010-05-24  Bruno Haible  <bruno@clisp.org>
7265
7266         regex: Don't require alloca.
7267         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
7268         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
7269         only inside if (0).
7270
7271 2010-05-23  Jim Meyering  <meyering@redhat.com>
7272
7273         test-renameat.c: include <sys/stat.h>
7274         * tests/test-renameat.c: Include <sys/stat.h>; required for
7275         definition of S_IS* macros.
7276
7277 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
7278
7279         Update maintainer documentation for 'relocatable-prog' module.
7280         * doc/relocatable-maint.texi: Update.
7281         Comments by Bruno Haible.
7282
7283 2010-05-23  Bruno Haible  <bruno@clisp.org>
7284
7285         git-merge-changelog: Enable --split-merged-entry by default.
7286         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
7287         (usage): Don't mention this option any more.
7288         Reported by Ralf Wildenhues.
7289
7290 2010-05-23  Jim Meyering  <meyering@redhat.com>
7291
7292         test-pwrite: do not leave behind a test file named "out"
7293         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
7294         The trivial-looking use of init.sh is really necessary.
7295         It ensures that the temporary file, "out", is created in
7296         a temporary directory, and removed upon termination.
7297         * tests/test-pwrite.sh: Re-add file.
7298         * modules/pwrite-tests: Reference it.
7299
7300 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7301
7302         Fix output redirection buglet in init.sh.
7303         * tests/init.sh: Fix redirection of stderr.
7304
7305 2010-05-20  Simon Josefsson  <simon@josefsson.org>
7306
7307         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
7308
7309 2010-05-17  Simon Josefsson  <simon@josefsson.org>
7310
7311         * modules/valgrind-tests: New file.
7312         * m4/valgrind-tests.m4: New file.
7313         * doc/valgrind-tests.texi: New file.
7314         * doc/gnulib.texi (Running self-tests under valgrind): New
7315         section.
7316
7317 2010-05-19  Bruno Haible  <bruno@clisp.org>
7318
7319         Clean up dead code in recent commit.
7320         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
7321         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
7322         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
7323         Suggested by Paolo Bonzini.
7324
7325 2010-05-19  Bruno Haible  <bruno@clisp.org>
7326
7327         Avoid valgrind error reports from libunistring.
7328         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
7329         * modules/libunistring (Files): Add it.
7330         * modules/libunistring-optional (Files): Likewise.
7331
7332 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
7333             Bruno Haible  <bruno@clisp.org>
7334
7335         New module 'libunistring-optional'.
7336         * modules/libunistring-optional: New file.
7337         * m4/libunistring-base.m4: New file.
7338         * m4/libunistring-optional.m4: New file.
7339         * lib/unicase.in.h: Renamed from lib/unicase.h.
7340         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
7341         * lib/unictype.in.h: Renamed from lib/unictype.h.
7342         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
7343         * lib/uniname.in.h: Renamed from lib/uniname.h.
7344         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
7345         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
7346         * lib/unistr.in.h: Renamed from lib/unistr.h.
7347         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
7348         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
7349         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
7350         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
7351         gl_LIBUNISTRING. If the library was found, determine the installed
7352         version and set LIBUNISTRING_VERSION.
7353         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
7354         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
7355         handle a configuration option --with-included-libunistring.
7356         * modules/libunistring (Files): Add m4/absolute-header.m4.
7357         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
7358         Add m4/libunistring-base.m4.
7359         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7360         (Makefile.am): Build unicase.h from unicase.in.h.
7361         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
7362         Add m4/libunistring-base.m4.
7363         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7364         (Makefile.am): Build uniconv.h from uniconv.in.h.
7365         * modules/unictype/base (Files): Use unictype.in.h instead of
7366         unictype.h. Add m4/libunistring-base.m4.
7367         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7368         (Makefile.am): Build unictype.h from unictype.in.h.
7369         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
7370         Add m4/libunistring-base.m4.
7371         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7372         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
7373         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
7374         Add m4/libunistring-base.m4.
7375         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7376         (Makefile.am): Build uniname.h from uniname.in.h.
7377         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
7378         Add m4/libunistring-base.m4.
7379         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7380         (Makefile.am): Build uninorm.h from uninorm.in.h.
7381         * modules/unistdio/base (Files): Use unistdio.in.h instead of
7382         unistdio.h. Add m4/libunistring-base.m4.
7383         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7384         (Makefile.am): Build unistdio.h from unistdio.in.h.
7385         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
7386         Add m4/libunistring-base.m4.
7387         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7388         (Makefile.am): Build unistr.h from unistr.in.h.
7389         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
7390         Add m4/libunistring-base.m4.
7391         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7392         (Makefile.am): Build unitypes.h from unitypes.in.h.
7393         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
7394         Add m4/libunistring-base.m4.
7395         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7396         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
7397         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
7398         uniwidth.h. Add m4/libunistring-base.m4.
7399         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7400         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
7401         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
7402         instead of augmenting lib_SOURCES.
7403         * modules/unicase/empty-suffix-context: Likewise.
7404         * modules/unicase/locale-language: Likewise.
7405         * modules/unicase/tolower: Likewise.
7406         * modules/unicase/totitle: Likewise.
7407         * modules/unicase/toupper: Likewise.
7408         * modules/unicase/u8-casecmp: Likewise.
7409         * modules/unicase/u8-casecoll: Likewise.
7410         * modules/unicase/u8-casefold: Likewise.
7411         * modules/unicase/u8-casexfrm: Likewise.
7412         * modules/unicase/u8-ct-casefold: Likewise.
7413         * modules/unicase/u8-ct-tolower: Likewise.
7414         * modules/unicase/u8-ct-totitle: Likewise.
7415         * modules/unicase/u8-ct-toupper: Likewise.
7416         * modules/unicase/u8-is-cased: Likewise.
7417         * modules/unicase/u8-is-casefolded: Likewise.
7418         * modules/unicase/u8-is-lowercase: Likewise.
7419         * modules/unicase/u8-is-titlecase: Likewise.
7420         * modules/unicase/u8-is-uppercase: Likewise.
7421         * modules/unicase/u8-prefix-context: Likewise.
7422         * modules/unicase/u8-suffix-context: Likewise.
7423         * modules/unicase/u8-tolower: Likewise.
7424         * modules/unicase/u8-totitle: Likewise.
7425         * modules/unicase/u8-toupper: Likewise.
7426         * modules/unicase/u16-casecmp: Likewise.
7427         * modules/unicase/u16-casecoll: Likewise.
7428         * modules/unicase/u16-casefold: Likewise.
7429         * modules/unicase/u16-casexfrm: Likewise.
7430         * modules/unicase/u16-ct-casefold: Likewise.
7431         * modules/unicase/u16-ct-tolower: Likewise.
7432         * modules/unicase/u16-ct-totitle: Likewise.
7433         * modules/unicase/u16-ct-toupper: Likewise.
7434         * modules/unicase/u16-is-cased: Likewise.
7435         * modules/unicase/u16-is-casefolded: Likewise.
7436         * modules/unicase/u16-is-lowercase: Likewise.
7437         * modules/unicase/u16-is-titlecase: Likewise.
7438         * modules/unicase/u16-is-uppercase: Likewise.
7439         * modules/unicase/u16-prefix-context: Likewise.
7440         * modules/unicase/u16-suffix-context: Likewise.
7441         * modules/unicase/u16-tolower: Likewise.
7442         * modules/unicase/u16-totitle: Likewise.
7443         * modules/unicase/u16-toupper: Likewise.
7444         * modules/unicase/u32-casecmp: Likewise.
7445         * modules/unicase/u32-casecoll: Likewise.
7446         * modules/unicase/u32-casefold: Likewise.
7447         * modules/unicase/u32-casexfrm: Likewise.
7448         * modules/unicase/u32-ct-casefold: Likewise.
7449         * modules/unicase/u32-ct-tolower: Likewise.
7450         * modules/unicase/u32-ct-totitle: Likewise.
7451         * modules/unicase/u32-ct-toupper: Likewise.
7452         * modules/unicase/u32-is-cased: Likewise.
7453         * modules/unicase/u32-is-casefolded: Likewise.
7454         * modules/unicase/u32-is-lowercase: Likewise.
7455         * modules/unicase/u32-is-titlecase: Likewise.
7456         * modules/unicase/u32-is-uppercase: Likewise.
7457         * modules/unicase/u32-prefix-context: Likewise.
7458         * modules/unicase/u32-suffix-context: Likewise.
7459         * modules/unicase/u32-tolower: Likewise.
7460         * modules/unicase/u32-totitle: Likewise.
7461         * modules/unicase/u32-toupper: Likewise.
7462         * modules/unicase/ulc-casecmp: Likewise.
7463         * modules/unicase/ulc-casecoll: Likewise.
7464         * modules/unicase/ulc-casexfrm: Likewise.
7465         * modules/uniconv/u8-conv-from-enc: Likewise.
7466         * modules/uniconv/u8-conv-to-enc: Likewise.
7467         * modules/uniconv/u8-strconv-from-enc: Likewise.
7468         * modules/uniconv/u8-strconv-from-locale: Likewise.
7469         * modules/uniconv/u8-strconv-to-enc: Likewise.
7470         * modules/uniconv/u8-strconv-to-locale: Likewise.
7471         * modules/uniconv/u16-conv-from-enc: Likewise.
7472         * modules/uniconv/u16-conv-to-enc: Likewise.
7473         * modules/uniconv/u16-strconv-from-enc: Likewise.
7474         * modules/uniconv/u16-strconv-from-locale: Likewise.
7475         * modules/uniconv/u16-strconv-to-enc: Likewise.
7476         * modules/uniconv/u16-strconv-to-locale: Likewise.
7477         * modules/uniconv/u32-conv-from-enc: Likewise.
7478         * modules/uniconv/u32-conv-to-enc: Likewise.
7479         * modules/uniconv/u32-strconv-from-enc: Likewise.
7480         * modules/uniconv/u32-strconv-from-locale: Likewise.
7481         * modules/uniconv/u32-strconv-to-enc: Likewise.
7482         * modules/uniconv/u32-strconv-to-locale: Likewise.
7483         * modules/unictype/bidicategory-byname: Likewise.
7484         * modules/unictype/bidicategory-name: Likewise.
7485         * modules/unictype/bidicategory-of: Likewise.
7486         * modules/unictype/bidicategory-test: Likewise.
7487         * modules/unictype/block-list: Likewise.
7488         * modules/unictype/block-test: Likewise.
7489         * modules/unictype/category-C: Likewise.
7490         * modules/unictype/category-Cc: Likewise.
7491         * modules/unictype/category-Cf: Likewise.
7492         * modules/unictype/category-Cn: Likewise.
7493         * modules/unictype/category-Co: Likewise.
7494         * modules/unictype/category-Cs: Likewise.
7495         * modules/unictype/category-L: Likewise.
7496         * modules/unictype/category-Ll: Likewise.
7497         * modules/unictype/category-Lm: Likewise.
7498         * modules/unictype/category-Lo: Likewise.
7499         * modules/unictype/category-Lt: Likewise.
7500         * modules/unictype/category-Lu: Likewise.
7501         * modules/unictype/category-M: Likewise.
7502         * modules/unictype/category-Mc: Likewise.
7503         * modules/unictype/category-Me: Likewise.
7504         * modules/unictype/category-Mn: Likewise.
7505         * modules/unictype/category-N: Likewise.
7506         * modules/unictype/category-Nd: Likewise.
7507         * modules/unictype/category-Nl: Likewise.
7508         * modules/unictype/category-No: Likewise.
7509         * modules/unictype/category-P: Likewise.
7510         * modules/unictype/category-Pc: Likewise.
7511         * modules/unictype/category-Pd: Likewise.
7512         * modules/unictype/category-Pe: Likewise.
7513         * modules/unictype/category-Pf: Likewise.
7514         * modules/unictype/category-Pi: Likewise.
7515         * modules/unictype/category-Po: Likewise.
7516         * modules/unictype/category-Ps: Likewise.
7517         * modules/unictype/category-S: Likewise.
7518         * modules/unictype/category-Sc: Likewise.
7519         * modules/unictype/category-Sk: Likewise.
7520         * modules/unictype/category-Sm: Likewise.
7521         * modules/unictype/category-So: Likewise.
7522         * modules/unictype/category-Z: Likewise.
7523         * modules/unictype/category-Zl: Likewise.
7524         * modules/unictype/category-Zp: Likewise.
7525         * modules/unictype/category-Zs: Likewise.
7526         * modules/unictype/category-and: Likewise.
7527         * modules/unictype/category-and-not: Likewise.
7528         * modules/unictype/category-byname: Likewise.
7529         * modules/unictype/category-name: Likewise.
7530         * modules/unictype/category-none: Likewise.
7531         * modules/unictype/category-of: Likewise.
7532         * modules/unictype/category-or: Likewise.
7533         * modules/unictype/category-test: Likewise.
7534         * modules/unictype/combining-class: Likewise.
7535         * modules/unictype/ctype-alnum: Likewise.
7536         * modules/unictype/ctype-alpha: Likewise.
7537         * modules/unictype/ctype-blank: Likewise.
7538         * modules/unictype/ctype-cntrl: Likewise.
7539         * modules/unictype/ctype-digit: Likewise.
7540         * modules/unictype/ctype-graph: Likewise.
7541         * modules/unictype/ctype-lower: Likewise.
7542         * modules/unictype/ctype-print: Likewise.
7543         * modules/unictype/ctype-punct: Likewise.
7544         * modules/unictype/ctype-space: Likewise.
7545         * modules/unictype/ctype-upper: Likewise.
7546         * modules/unictype/ctype-xdigit: Likewise.
7547         * modules/unictype/decimal-digit: Likewise.
7548         * modules/unictype/digit: Likewise.
7549         * modules/unictype/mirror: Likewise.
7550         * modules/unictype/numeric: Likewise.
7551         * modules/unictype/property-alphabetic: Likewise.
7552         * modules/unictype/property-ascii-hex-digit: Likewise.
7553         * modules/unictype/property-bidi-arabic-digit: Likewise.
7554         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
7555         * modules/unictype/property-bidi-block-separator: Likewise.
7556         * modules/unictype/property-bidi-boundary-neutral: Likewise.
7557         * modules/unictype/property-bidi-common-separator: Likewise.
7558         * modules/unictype/property-bidi-control: Likewise.
7559         * modules/unictype/property-bidi-embedding-or-override: Likewise.
7560         * modules/unictype/property-bidi-eur-num-separator: Likewise.
7561         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
7562         * modules/unictype/property-bidi-european-digit: Likewise.
7563         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
7564         * modules/unictype/property-bidi-left-to-right: Likewise.
7565         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
7566         * modules/unictype/property-bidi-other-neutral: Likewise.
7567         * modules/unictype/property-bidi-pdf: Likewise.
7568         * modules/unictype/property-bidi-segment-separator: Likewise.
7569         * modules/unictype/property-bidi-whitespace: Likewise.
7570         * modules/unictype/property-byname: Likewise.
7571         * modules/unictype/property-combining: Likewise.
7572         * modules/unictype/property-composite: Likewise.
7573         * modules/unictype/property-currency-symbol: Likewise.
7574         * modules/unictype/property-dash: Likewise.
7575         * modules/unictype/property-decimal-digit: Likewise.
7576         * modules/unictype/property-default-ignorable-code-point: Likewise.
7577         * modules/unictype/property-deprecated: Likewise.
7578         * modules/unictype/property-diacritic: Likewise.
7579         * modules/unictype/property-extender: Likewise.
7580         * modules/unictype/property-format-control: Likewise.
7581         * modules/unictype/property-grapheme-base: Likewise.
7582         * modules/unictype/property-grapheme-extend: Likewise.
7583         * modules/unictype/property-grapheme-link: Likewise.
7584         * modules/unictype/property-hex-digit: Likewise.
7585         * modules/unictype/property-hyphen: Likewise.
7586         * modules/unictype/property-id-continue: Likewise.
7587         * modules/unictype/property-id-start: Likewise.
7588         * modules/unictype/property-ideographic: Likewise.
7589         * modules/unictype/property-ids-binary-operator: Likewise.
7590         * modules/unictype/property-ids-trinary-operator: Likewise.
7591         * modules/unictype/property-ignorable-control: Likewise.
7592         * modules/unictype/property-iso-control: Likewise.
7593         * modules/unictype/property-join-control: Likewise.
7594         * modules/unictype/property-left-of-pair: Likewise.
7595         * modules/unictype/property-line-separator: Likewise.
7596         * modules/unictype/property-logical-order-exception: Likewise.
7597         * modules/unictype/property-lowercase: Likewise.
7598         * modules/unictype/property-math: Likewise.
7599         * modules/unictype/property-non-break: Likewise.
7600         * modules/unictype/property-not-a-character: Likewise.
7601         * modules/unictype/property-numeric: Likewise.
7602         * modules/unictype/property-other-alphabetic: Likewise.
7603         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
7604         * modules/unictype/property-other-grapheme-extend: Likewise.
7605         * modules/unictype/property-other-id-continue: Likewise.
7606         * modules/unictype/property-other-id-start: Likewise.
7607         * modules/unictype/property-other-lowercase: Likewise.
7608         * modules/unictype/property-other-math: Likewise.
7609         * modules/unictype/property-other-uppercase: Likewise.
7610         * modules/unictype/property-paired-punctuation: Likewise.
7611         * modules/unictype/property-paragraph-separator: Likewise.
7612         * modules/unictype/property-pattern-syntax: Likewise.
7613         * modules/unictype/property-pattern-white-space: Likewise.
7614         * modules/unictype/property-private-use: Likewise.
7615         * modules/unictype/property-punctuation: Likewise.
7616         * modules/unictype/property-quotation-mark: Likewise.
7617         * modules/unictype/property-radical: Likewise.
7618         * modules/unictype/property-sentence-terminal: Likewise.
7619         * modules/unictype/property-soft-dotted: Likewise.
7620         * modules/unictype/property-space: Likewise.
7621         * modules/unictype/property-terminal-punctuation: Likewise.
7622         * modules/unictype/property-test: Likewise.
7623         * modules/unictype/property-titlecase: Likewise.
7624         * modules/unictype/property-unassigned-code-value: Likewise.
7625         * modules/unictype/property-unified-ideograph: Likewise.
7626         * modules/unictype/property-uppercase: Likewise.
7627         * modules/unictype/property-variation-selector: Likewise.
7628         * modules/unictype/property-white-space: Likewise.
7629         * modules/unictype/property-xid-continue: Likewise.
7630         * modules/unictype/property-xid-start: Likewise.
7631         * modules/unictype/property-zero-width: Likewise.
7632         * modules/unictype/scripts: Likewise.
7633         * modules/unictype/syntax-c-ident: Likewise.
7634         * modules/unictype/syntax-c-whitespace: Likewise.
7635         * modules/unictype/syntax-java-ident: Likewise.
7636         * modules/unictype/syntax-java-whitespace: Likewise.
7637         * modules/unilbrk/u8-possible-linebreaks: Likewise.
7638         * modules/unilbrk/u8-width-linebreaks: Likewise.
7639         * modules/unilbrk/u16-possible-linebreaks: Likewise.
7640         * modules/unilbrk/u16-width-linebreaks: Likewise.
7641         * modules/unilbrk/u32-possible-linebreaks: Likewise.
7642         * modules/unilbrk/u32-width-linebreaks: Likewise.
7643         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
7644         * modules/unilbrk/ulc-width-linebreaks: Likewise.
7645         * modules/uniname/uniname: Likewise.
7646         * modules/uninorm/canonical-decomposition: Likewise.
7647         * modules/uninorm/composition: Likewise.
7648         * modules/uninorm/decomposing-form: Likewise.
7649         * modules/uninorm/decomposition: Likewise.
7650         * modules/uninorm/filter: Likewise.
7651         * modules/uninorm/nfc: Likewise.
7652         * modules/uninorm/nfd: Likewise.
7653         * modules/uninorm/nfkc: Likewise.
7654         * modules/uninorm/nfkd: Likewise.
7655         * modules/uninorm/u8-normalize: Likewise.
7656         * modules/uninorm/u8-normcmp: Likewise.
7657         * modules/uninorm/u8-normcoll: Likewise.
7658         * modules/uninorm/u8-normxfrm: Likewise.
7659         * modules/uninorm/u16-normalize: Likewise.
7660         * modules/uninorm/u16-normcmp: Likewise.
7661         * modules/uninorm/u16-normcoll: Likewise.
7662         * modules/uninorm/u16-normxfrm: Likewise.
7663         * modules/uninorm/u32-normalize: Likewise.
7664         * modules/uninorm/u32-normcmp: Likewise.
7665         * modules/uninorm/u32-normcoll: Likewise.
7666         * modules/uninorm/u32-normxfrm: Likewise.
7667         * modules/unistdio/u8-asnprintf: Likewise.
7668         * modules/unistdio/u8-asprintf: Likewise.
7669         * modules/unistdio/u8-snprintf: Likewise.
7670         * modules/unistdio/u8-sprintf: Likewise.
7671         * modules/unistdio/u8-u8-asnprintf: Likewise.
7672         * modules/unistdio/u8-u8-asprintf: Likewise.
7673         * modules/unistdio/u8-u8-snprintf: Likewise.
7674         * modules/unistdio/u8-u8-sprintf: Likewise.
7675         * modules/unistdio/u8-u8-vasnprintf: Likewise.
7676         * modules/unistdio/u8-u8-vasprintf: Likewise.
7677         * modules/unistdio/u8-u8-vsnprintf: Likewise.
7678         * modules/unistdio/u8-u8-vsprintf: Likewise.
7679         * modules/unistdio/u8-vasnprintf: Likewise.
7680         * modules/unistdio/u8-vasprintf: Likewise.
7681         * modules/unistdio/u8-vsnprintf: Likewise.
7682         * modules/unistdio/u8-vsprintf: Likewise.
7683         * modules/unistdio/u16-asnprintf: Likewise.
7684         * modules/unistdio/u16-asprintf: Likewise.
7685         * modules/unistdio/u16-snprintf: Likewise.
7686         * modules/unistdio/u16-sprintf: Likewise.
7687         * modules/unistdio/u16-u16-asnprintf: Likewise.
7688         * modules/unistdio/u16-u16-asprintf: Likewise.
7689         * modules/unistdio/u16-u16-snprintf: Likewise.
7690         * modules/unistdio/u16-u16-sprintf: Likewise.
7691         * modules/unistdio/u16-u16-vasnprintf: Likewise.
7692         * modules/unistdio/u16-u16-vasprintf: Likewise.
7693         * modules/unistdio/u16-u16-vsnprintf: Likewise.
7694         * modules/unistdio/u16-u16-vsprintf: Likewise.
7695         * modules/unistdio/u16-vasnprintf: Likewise.
7696         * modules/unistdio/u16-vasprintf: Likewise.
7697         * modules/unistdio/u16-vsnprintf: Likewise.
7698         * modules/unistdio/u16-vsprintf: Likewise.
7699         * modules/unistdio/u32-asnprintf: Likewise.
7700         * modules/unistdio/u32-asprintf: Likewise.
7701         * modules/unistdio/u32-snprintf: Likewise.
7702         * modules/unistdio/u32-sprintf: Likewise.
7703         * modules/unistdio/u32-u32-asnprintf: Likewise.
7704         * modules/unistdio/u32-u32-asprintf: Likewise.
7705         * modules/unistdio/u32-u32-snprintf: Likewise.
7706         * modules/unistdio/u32-u32-sprintf: Likewise.
7707         * modules/unistdio/u32-u32-vasnprintf: Likewise.
7708         * modules/unistdio/u32-u32-vasprintf: Likewise.
7709         * modules/unistdio/u32-u32-vsnprintf: Likewise.
7710         * modules/unistdio/u32-u32-vsprintf: Likewise.
7711         * modules/unistdio/u32-vasnprintf: Likewise.
7712         * modules/unistdio/u32-vasprintf: Likewise.
7713         * modules/unistdio/u32-vsnprintf: Likewise.
7714         * modules/unistdio/u32-vsprintf: Likewise.
7715         * modules/unistdio/ulc-asnprintf: Likewise.
7716         * modules/unistdio/ulc-asprintf: Likewise.
7717         * modules/unistdio/ulc-fprintf: Likewise.
7718         * modules/unistdio/ulc-snprintf: Likewise.
7719         * modules/unistdio/ulc-sprintf: Likewise.
7720         * modules/unistdio/ulc-vasnprintf: Likewise.
7721         * modules/unistdio/ulc-vasprintf: Likewise.
7722         * modules/unistdio/ulc-vfprintf: Likewise.
7723         * modules/unistdio/ulc-vsnprintf: Likewise.
7724         * modules/unistdio/ulc-vsprintf: Likewise.
7725         * modules/unistr/u8-check: Likewise.
7726         * modules/unistr/u8-chr: Likewise.
7727         * modules/unistr/u8-cmp: Likewise.
7728         * modules/unistr/u8-cmp2: Likewise.
7729         * modules/unistr/u8-cpy: Likewise.
7730         * modules/unistr/u8-cpy-alloc: Likewise.
7731         * modules/unistr/u8-endswith: Likewise.
7732         * modules/unistr/u8-mblen: Likewise.
7733         * modules/unistr/u8-mbsnlen: Likewise.
7734         * modules/unistr/u8-mbtouc: Likewise.
7735         * modules/unistr/u8-mbtouc-unsafe: Likewise.
7736         * modules/unistr/u8-mbtoucr: Likewise.
7737         * modules/unistr/u8-move: Likewise.
7738         * modules/unistr/u8-next: Likewise.
7739         * modules/unistr/u8-prev: Likewise.
7740         * modules/unistr/u8-set: Likewise.
7741         * modules/unistr/u8-startswith: Likewise.
7742         * modules/unistr/u8-stpcpy: Likewise.
7743         * modules/unistr/u8-stpncpy: Likewise.
7744         * modules/unistr/u8-strcat: Likewise.
7745         * modules/unistr/u8-strchr: Likewise.
7746         * modules/unistr/u8-strcmp: Likewise.
7747         * modules/unistr/u8-strcoll: Likewise.
7748         * modules/unistr/u8-strcpy: Likewise.
7749         * modules/unistr/u8-strcspn: Likewise.
7750         * modules/unistr/u8-strdup: Likewise.
7751         * modules/unistr/u8-strlen: Likewise.
7752         * modules/unistr/u8-strmblen: Likewise.
7753         * modules/unistr/u8-strmbtouc: Likewise.
7754         * modules/unistr/u8-strncat: Likewise.
7755         * modules/unistr/u8-strncmp: Likewise.
7756         * modules/unistr/u8-strncpy: Likewise.
7757         * modules/unistr/u8-strnlen: Likewise.
7758         * modules/unistr/u8-strpbrk: Likewise.
7759         * modules/unistr/u8-strrchr: Likewise.
7760         * modules/unistr/u8-strspn: Likewise.
7761         * modules/unistr/u8-strstr: Likewise.
7762         * modules/unistr/u8-strtok: Likewise.
7763         * modules/unistr/u8-to-u16: Likewise.
7764         * modules/unistr/u8-to-u32: Likewise.
7765         * modules/unistr/u8-uctomb: Likewise.
7766         * modules/unistr/u16-check: Likewise.
7767         * modules/unistr/u16-chr: Likewise.
7768         * modules/unistr/u16-cmp: Likewise.
7769         * modules/unistr/u16-cmp2: Likewise.
7770         * modules/unistr/u16-cpy: Likewise.
7771         * modules/unistr/u16-cpy-alloc: Likewise.
7772         * modules/unistr/u16-endswith: Likewise.
7773         * modules/unistr/u16-mblen: Likewise.
7774         * modules/unistr/u16-mbsnlen: Likewise.
7775         * modules/unistr/u16-mbtouc: Likewise.
7776         * modules/unistr/u16-mbtouc-unsafe: Likewise.
7777         * modules/unistr/u16-mbtoucr: Likewise.
7778         * modules/unistr/u16-move: Likewise.
7779         * modules/unistr/u16-next: Likewise.
7780         * modules/unistr/u16-prev: Likewise.
7781         * modules/unistr/u16-set: Likewise.
7782         * modules/unistr/u16-startswith: Likewise.
7783         * modules/unistr/u16-stpcpy: Likewise.
7784         * modules/unistr/u16-stpncpy: Likewise.
7785         * modules/unistr/u16-strcat: Likewise.
7786         * modules/unistr/u16-strchr: Likewise.
7787         * modules/unistr/u16-strcmp: Likewise.
7788         * modules/unistr/u16-strcoll: Likewise.
7789         * modules/unistr/u16-strcpy: Likewise.
7790         * modules/unistr/u16-strcspn: Likewise.
7791         * modules/unistr/u16-strdup: Likewise.
7792         * modules/unistr/u16-strlen: Likewise.
7793         * modules/unistr/u16-strmblen: Likewise.
7794         * modules/unistr/u16-strmbtouc: Likewise.
7795         * modules/unistr/u16-strncat: Likewise.
7796         * modules/unistr/u16-strncmp: Likewise.
7797         * modules/unistr/u16-strncpy: Likewise.
7798         * modules/unistr/u16-strnlen: Likewise.
7799         * modules/unistr/u16-strpbrk: Likewise.
7800         * modules/unistr/u16-strrchr: Likewise.
7801         * modules/unistr/u16-strspn: Likewise.
7802         * modules/unistr/u16-strstr: Likewise.
7803         * modules/unistr/u16-strtok: Likewise.
7804         * modules/unistr/u16-to-u32: Likewise.
7805         * modules/unistr/u16-to-u8: Likewise.
7806         * modules/unistr/u16-uctomb: Likewise.
7807         * modules/unistr/u32-check: Likewise.
7808         * modules/unistr/u32-chr: Likewise.
7809         * modules/unistr/u32-cmp: Likewise.
7810         * modules/unistr/u32-cmp2: Likewise.
7811         * modules/unistr/u32-cpy: Likewise.
7812         * modules/unistr/u32-cpy-alloc: Likewise.
7813         * modules/unistr/u32-endswith: Likewise.
7814         * modules/unistr/u32-mblen: Likewise.
7815         * modules/unistr/u32-mbsnlen: Likewise.
7816         * modules/unistr/u32-mbtouc: Likewise.
7817         * modules/unistr/u32-mbtouc-unsafe: Likewise.
7818         * modules/unistr/u32-mbtoucr: Likewise.
7819         * modules/unistr/u32-move: Likewise.
7820         * modules/unistr/u32-next: Likewise.
7821         * modules/unistr/u32-prev: Likewise.
7822         * modules/unistr/u32-set: Likewise.
7823         * modules/unistr/u32-startswith: Likewise.
7824         * modules/unistr/u32-stpcpy: Likewise.
7825         * modules/unistr/u32-stpncpy: Likewise.
7826         * modules/unistr/u32-strcat: Likewise.
7827         * modules/unistr/u32-strchr: Likewise.
7828         * modules/unistr/u32-strcmp: Likewise.
7829         * modules/unistr/u32-strcoll: Likewise.
7830         * modules/unistr/u32-strcpy: Likewise.
7831         * modules/unistr/u32-strcspn: Likewise.
7832         * modules/unistr/u32-strdup: Likewise.
7833         * modules/unistr/u32-strlen: Likewise.
7834         * modules/unistr/u32-strmblen: Likewise.
7835         * modules/unistr/u32-strmbtouc: Likewise.
7836         * modules/unistr/u32-strncat: Likewise.
7837         * modules/unistr/u32-strncmp: Likewise.
7838         * modules/unistr/u32-strncpy: Likewise.
7839         * modules/unistr/u32-strnlen: Likewise.
7840         * modules/unistr/u32-strpbrk: Likewise.
7841         * modules/unistr/u32-strrchr: Likewise.
7842         * modules/unistr/u32-strspn: Likewise.
7843         * modules/unistr/u32-strstr: Likewise.
7844         * modules/unistr/u32-strtok: Likewise.
7845         * modules/unistr/u32-to-u16: Likewise.
7846         * modules/unistr/u32-to-u8: Likewise.
7847         * modules/unistr/u32-uctomb: Likewise.
7848         * modules/uniwbrk/u8-wordbreaks: Likewise.
7849         * modules/uniwbrk/u16-wordbreaks: Likewise.
7850         * modules/uniwbrk/u32-wordbreaks: Likewise.
7851         * modules/uniwbrk/ulc-wordbreaks: Likewise.
7852         * modules/uniwbrk/wordbreak-property: Likewise.
7853         * modules/uniwidth/u8-strwidth: Likewise.
7854         * modules/uniwidth/u8-width: Likewise.
7855         * modules/uniwidth/u16-strwidth: Likewise.
7856         * modules/uniwidth/u16-width: Likewise.
7857         * modules/uniwidth/u32-strwidth: Likewise.
7858         * modules/uniwidth/u32-width: Likewise.
7859         * modules/uniwidth/width: Likewise.
7860         * modules/unicase/cased-tests (Makefile.am): Link all test programs
7861         with $(LIBUNISTRING).
7862         * modules/unicase/ignorable-tests: Likewise.
7863         * modules/unicase/locale-language-tests: Likewise.
7864         * modules/unicase/tolower-tests: Likewise.
7865         * modules/unicase/totitle-tests: Likewise.
7866         * modules/unicase/toupper-tests: Likewise.
7867         * modules/unicase/u8-casecmp-tests: Likewise.
7868         * modules/unicase/u8-casecoll-tests: Likewise.
7869         * modules/unicase/u8-casefold-tests: Likewise.
7870         * modules/unicase/u8-is-cased-tests: Likewise.
7871         * modules/unicase/u8-is-casefolded-tests: Likewise.
7872         * modules/unicase/u8-is-lowercase-tests: Likewise.
7873         * modules/unicase/u8-is-titlecase-tests: Likewise.
7874         * modules/unicase/u8-is-uppercase-tests: Likewise.
7875         * modules/unicase/u8-tolower-tests: Likewise.
7876         * modules/unicase/u8-totitle-tests: Likewise.
7877         * modules/unicase/u8-toupper-tests: Likewise.
7878         * modules/unicase/u16-casecmp-tests: Likewise.
7879         * modules/unicase/u16-casecoll-tests: Likewise.
7880         * modules/unicase/u16-casefold-tests: Likewise.
7881         * modules/unicase/u16-is-cased-tests: Likewise.
7882         * modules/unicase/u16-is-casefolded-tests: Likewise.
7883         * modules/unicase/u16-is-lowercase-tests: Likewise.
7884         * modules/unicase/u16-is-titlecase-tests: Likewise.
7885         * modules/unicase/u16-is-uppercase-tests: Likewise.
7886         * modules/unicase/u16-tolower-tests: Likewise.
7887         * modules/unicase/u16-totitle-tests: Likewise.
7888         * modules/unicase/u16-toupper-tests: Likewise.
7889         * modules/unicase/u32-casecmp-tests: Likewise.
7890         * modules/unicase/u32-casecoll-tests: Likewise.
7891         * modules/unicase/u32-casefold-tests: Likewise.
7892         * modules/unicase/u32-is-cased-tests: Likewise.
7893         * modules/unicase/u32-is-casefolded-tests: Likewise.
7894         * modules/unicase/u32-is-lowercase-tests: Likewise.
7895         * modules/unicase/u32-is-titlecase-tests: Likewise.
7896         * modules/unicase/u32-is-uppercase-tests: Likewise.
7897         * modules/unicase/u32-tolower-tests: Likewise.
7898         * modules/unicase/u32-totitle-tests: Likewise.
7899         * modules/unicase/u32-toupper-tests: Likewise.
7900         * modules/unicase/ulc-casecmp-tests: Likewise.
7901         * modules/unicase/ulc-casecoll-tests: Likewise.
7902         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
7903         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
7904         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
7905         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
7906         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
7907         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
7908         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
7909         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
7910         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
7911         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
7912         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
7913         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
7914         * modules/unictype/bidicategory-byname-tests: Likewise.
7915         * modules/unictype/bidicategory-name-tests: Likewise.
7916         * modules/unictype/bidicategory-of-tests: Likewise.
7917         * modules/unictype/bidicategory-test-tests: Likewise.
7918         * modules/unictype/block-list-tests: Likewise.
7919         * modules/unictype/block-of-tests: Likewise.
7920         * modules/unictype/block-test-tests: Likewise.
7921         * modules/unictype/category-C-tests: Likewise.
7922         * modules/unictype/category-Cc-tests: Likewise.
7923         * modules/unictype/category-Cf-tests: Likewise.
7924         * modules/unictype/category-Cn-tests: Likewise.
7925         * modules/unictype/category-Co-tests: Likewise.
7926         * modules/unictype/category-Cs-tests: Likewise.
7927         * modules/unictype/category-L-tests: Likewise.
7928         * modules/unictype/category-Ll-tests: Likewise.
7929         * modules/unictype/category-Lm-tests: Likewise.
7930         * modules/unictype/category-Lo-tests: Likewise.
7931         * modules/unictype/category-Lt-tests: Likewise.
7932         * modules/unictype/category-Lu-tests: Likewise.
7933         * modules/unictype/category-M-tests: Likewise.
7934         * modules/unictype/category-Mc-tests: Likewise.
7935         * modules/unictype/category-Me-tests: Likewise.
7936         * modules/unictype/category-Mn-tests: Likewise.
7937         * modules/unictype/category-N-tests: Likewise.
7938         * modules/unictype/category-Nd-tests: Likewise.
7939         * modules/unictype/category-Nl-tests: Likewise.
7940         * modules/unictype/category-No-tests: Likewise.
7941         * modules/unictype/category-P-tests: Likewise.
7942         * modules/unictype/category-Pc-tests: Likewise.
7943         * modules/unictype/category-Pd-tests: Likewise.
7944         * modules/unictype/category-Pe-tests: Likewise.
7945         * modules/unictype/category-Pf-tests: Likewise.
7946         * modules/unictype/category-Pi-tests: Likewise.
7947         * modules/unictype/category-Po-tests: Likewise.
7948         * modules/unictype/category-Ps-tests: Likewise.
7949         * modules/unictype/category-S-tests: Likewise.
7950         * modules/unictype/category-Sc-tests: Likewise.
7951         * modules/unictype/category-Sk-tests: Likewise.
7952         * modules/unictype/category-Sm-tests: Likewise.
7953         * modules/unictype/category-So-tests: Likewise.
7954         * modules/unictype/category-Z-tests: Likewise.
7955         * modules/unictype/category-Zl-tests: Likewise.
7956         * modules/unictype/category-Zp-tests: Likewise.
7957         * modules/unictype/category-Zs-tests: Likewise.
7958         * modules/unictype/category-and-not-tests: Likewise.
7959         * modules/unictype/category-and-tests: Likewise.
7960         * modules/unictype/category-byname-tests: Likewise.
7961         * modules/unictype/category-name-tests: Likewise.
7962         * modules/unictype/category-none-tests: Likewise.
7963         * modules/unictype/category-of-tests: Likewise.
7964         * modules/unictype/category-or-tests: Likewise.
7965         * modules/unictype/category-test-withtable-tests: Likewise.
7966         * modules/unictype/combining-class-tests: Likewise.
7967         * modules/unictype/ctype-alnum-tests: Likewise.
7968         * modules/unictype/ctype-alpha-tests: Likewise.
7969         * modules/unictype/ctype-blank-tests: Likewise.
7970         * modules/unictype/ctype-cntrl-tests: Likewise.
7971         * modules/unictype/ctype-digit-tests: Likewise.
7972         * modules/unictype/ctype-graph-tests: Likewise.
7973         * modules/unictype/ctype-lower-tests: Likewise.
7974         * modules/unictype/ctype-print-tests: Likewise.
7975         * modules/unictype/ctype-punct-tests: Likewise.
7976         * modules/unictype/ctype-space-tests: Likewise.
7977         * modules/unictype/ctype-upper-tests: Likewise.
7978         * modules/unictype/ctype-xdigit-tests: Likewise.
7979         * modules/unictype/decimal-digit-tests: Likewise.
7980         * modules/unictype/digit-tests: Likewise.
7981         * modules/unictype/mirror-tests: Likewise.
7982         * modules/unictype/numeric-tests: Likewise.
7983         * modules/unictype/property-alphabetic-tests: Likewise.
7984         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
7985         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
7986         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
7987         * modules/unictype/property-bidi-block-separator-tests: Likewise.
7988         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
7989         * modules/unictype/property-bidi-common-separator-tests: Likewise.
7990         * modules/unictype/property-bidi-control-tests: Likewise.
7991         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
7992         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
7993         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
7994         * modules/unictype/property-bidi-european-digit-tests: Likewise.
7995         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
7996         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
7997         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
7998         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
7999         * modules/unictype/property-bidi-pdf-tests: Likewise.
8000         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
8001         * modules/unictype/property-bidi-whitespace-tests: Likewise.
8002         * modules/unictype/property-byname-tests: Likewise.
8003         * modules/unictype/property-combining-tests: Likewise.
8004         * modules/unictype/property-composite-tests: Likewise.
8005         * modules/unictype/property-currency-symbol-tests: Likewise.
8006         * modules/unictype/property-dash-tests: Likewise.
8007         * modules/unictype/property-decimal-digit-tests: Likewise.
8008         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
8009         * modules/unictype/property-deprecated-tests: Likewise.
8010         * modules/unictype/property-diacritic-tests: Likewise.
8011         * modules/unictype/property-extender-tests: Likewise.
8012         * modules/unictype/property-format-control-tests: Likewise.
8013         * modules/unictype/property-grapheme-base-tests: Likewise.
8014         * modules/unictype/property-grapheme-extend-tests: Likewise.
8015         * modules/unictype/property-grapheme-link-tests: Likewise.
8016         * modules/unictype/property-hex-digit-tests: Likewise.
8017         * modules/unictype/property-hyphen-tests: Likewise.
8018         * modules/unictype/property-id-continue-tests: Likewise.
8019         * modules/unictype/property-id-start-tests: Likewise.
8020         * modules/unictype/property-ideographic-tests: Likewise.
8021         * modules/unictype/property-ids-binary-operator-tests: Likewise.
8022         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
8023         * modules/unictype/property-ignorable-control-tests: Likewise.
8024         * modules/unictype/property-iso-control-tests: Likewise.
8025         * modules/unictype/property-join-control-tests: Likewise.
8026         * modules/unictype/property-left-of-pair-tests: Likewise.
8027         * modules/unictype/property-line-separator-tests: Likewise.
8028         * modules/unictype/property-logical-order-exception-tests: Likewise.
8029         * modules/unictype/property-lowercase-tests: Likewise.
8030         * modules/unictype/property-math-tests: Likewise.
8031         * modules/unictype/property-non-break-tests: Likewise.
8032         * modules/unictype/property-not-a-character-tests: Likewise.
8033         * modules/unictype/property-numeric-tests: Likewise.
8034         * modules/unictype/property-other-alphabetic-tests: Likewise.
8035         * modules/unictype/property-other-default-ignorable-code-point-tests:
8036         Likewise.
8037         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
8038         * modules/unictype/property-other-id-continue-tests: Likewise.
8039         * modules/unictype/property-other-id-start-tests: Likewise.
8040         * modules/unictype/property-other-lowercase-tests: Likewise.
8041         * modules/unictype/property-other-math-tests: Likewise.
8042         * modules/unictype/property-other-uppercase-tests: Likewise.
8043         * modules/unictype/property-paired-punctuation-tests: Likewise.
8044         * modules/unictype/property-paragraph-separator-tests: Likewise.
8045         * modules/unictype/property-pattern-syntax-tests: Likewise.
8046         * modules/unictype/property-pattern-white-space-tests: Likewise.
8047         * modules/unictype/property-private-use-tests: Likewise.
8048         * modules/unictype/property-punctuation-tests: Likewise.
8049         * modules/unictype/property-quotation-mark-tests: Likewise.
8050         * modules/unictype/property-radical-tests: Likewise.
8051         * modules/unictype/property-sentence-terminal-tests: Likewise.
8052         * modules/unictype/property-soft-dotted-tests: Likewise.
8053         * modules/unictype/property-space-tests: Likewise.
8054         * modules/unictype/property-terminal-punctuation-tests: Likewise.
8055         * modules/unictype/property-test-tests: Likewise.
8056         * modules/unictype/property-titlecase-tests: Likewise.
8057         * modules/unictype/property-unassigned-code-value-tests: Likewise.
8058         * modules/unictype/property-unified-ideograph-tests: Likewise.
8059         * modules/unictype/property-uppercase-tests: Likewise.
8060         * modules/unictype/property-variation-selector-tests: Likewise.
8061         * modules/unictype/property-white-space-tests: Likewise.
8062         * modules/unictype/property-xid-continue-tests: Likewise.
8063         * modules/unictype/property-xid-start-tests: Likewise.
8064         * modules/unictype/property-zero-width-tests: Likewise.
8065         * modules/unictype/scripts-tests: Likewise.
8066         * modules/unictype/syntax-c-ident-tests: Likewise.
8067         * modules/unictype/syntax-c-whitespace-tests: Likewise.
8068         * modules/unictype/syntax-java-ident-tests: Likewise.
8069         * modules/unictype/syntax-java-whitespace-tests: Likewise.
8070         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
8071         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
8072         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
8073         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
8074         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
8075         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
8076         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
8077         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
8078         * modules/uniname/uniname-tests: Likewise.
8079         * modules/uninorm/canonical-decomposition-tests: Likewise.
8080         * modules/uninorm/compat-decomposition-tests: Likewise.
8081         * modules/uninorm/composition-tests: Likewise.
8082         * modules/uninorm/decomposing-form-tests: Likewise.
8083         * modules/uninorm/decomposition-tests: Likewise.
8084         * modules/uninorm/filter-tests: Likewise.
8085         * modules/uninorm/nfc-tests: Likewise.
8086         * modules/uninorm/nfd-tests: Likewise.
8087         * modules/uninorm/nfkc-tests: Likewise.
8088         * modules/uninorm/nfkd-tests: Likewise.
8089         * modules/uninorm/u8-normcmp-tests: Likewise.
8090         * modules/uninorm/u8-normcoll-tests: Likewise.
8091         * modules/uninorm/u16-normcmp-tests: Likewise.
8092         * modules/uninorm/u16-normcoll-tests: Likewise.
8093         * modules/uninorm/u32-normcmp-tests: Likewise.
8094         * modules/uninorm/u32-normcoll-tests: Likewise.
8095         * modules/unistdio/u8-asnprintf-tests: Likewise.
8096         * modules/unistdio/u8-vasnprintf-tests: Likewise.
8097         * modules/unistdio/u8-vasprintf-tests: Likewise.
8098         * modules/unistdio/u8-vsnprintf-tests: Likewise.
8099         * modules/unistdio/u8-vsprintf-tests: Likewise.
8100         * modules/unistdio/u16-asnprintf-tests: Likewise.
8101         * modules/unistdio/u16-vasnprintf-tests: Likewise.
8102         * modules/unistdio/u16-vasprintf-tests: Likewise.
8103         * modules/unistdio/u16-vsnprintf-tests: Likewise.
8104         * modules/unistdio/u16-vsprintf-tests: Likewise.
8105         * modules/unistdio/u32-asnprintf-tests: Likewise.
8106         * modules/unistdio/u32-vasnprintf-tests: Likewise.
8107         * modules/unistdio/u32-vasprintf-tests: Likewise.
8108         * modules/unistdio/u32-vsnprintf-tests: Likewise.
8109         * modules/unistdio/u32-vsprintf-tests: Likewise.
8110         * modules/unistdio/ulc-asnprintf-tests: Likewise.
8111         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
8112         * modules/unistdio/ulc-vasprintf-tests: Likewise.
8113         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
8114         * modules/unistdio/ulc-vsprintf-tests: Likewise.
8115         * modules/unistr/u8-check-tests: Likewise.
8116         * modules/unistr/u8-chr-tests: Likewise.
8117         * modules/unistr/u8-cmp-tests: Likewise.
8118         * modules/unistr/u8-cmp2-tests: Likewise.
8119         * modules/unistr/u8-cpy-alloc-tests: Likewise.
8120         * modules/unistr/u8-cpy-tests: Likewise.
8121         * modules/unistr/u8-mblen-tests: Likewise.
8122         * modules/unistr/u8-mbsnlen-tests: Likewise.
8123         * modules/unistr/u8-mbtouc-tests: Likewise.
8124         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
8125         * modules/unistr/u8-mbtoucr-tests: Likewise.
8126         * modules/unistr/u8-move-tests: Likewise.
8127         * modules/unistr/u8-next-tests: Likewise.
8128         * modules/unistr/u8-prev-tests: Likewise.
8129         * modules/unistr/u8-set-tests: Likewise.
8130         * modules/unistr/u8-stpcpy-tests: Likewise.
8131         * modules/unistr/u8-stpncpy-tests: Likewise.
8132         * modules/unistr/u8-strcat-tests: Likewise.
8133         * modules/unistr/u8-strcmp-tests: Likewise.
8134         * modules/unistr/u8-strcoll-tests: Likewise.
8135         * modules/unistr/u8-strcpy-tests: Likewise.
8136         * modules/unistr/u8-strdup-tests: Likewise.
8137         * modules/unistr/u8-strlen-tests: Likewise.
8138         * modules/unistr/u8-strmblen-tests: Likewise.
8139         * modules/unistr/u8-strmbtouc-tests: Likewise.
8140         * modules/unistr/u8-strncat-tests: Likewise.
8141         * modules/unistr/u8-strncmp-tests: Likewise.
8142         * modules/unistr/u8-strncpy-tests: Likewise.
8143         * modules/unistr/u8-strnlen-tests: Likewise.
8144         * modules/unistr/u8-to-u16-tests: Likewise.
8145         * modules/unistr/u8-to-u32-tests: Likewise.
8146         * modules/unistr/u8-uctomb-tests: Likewise.
8147         * modules/unistr/u16-check-tests: Likewise.
8148         * modules/unistr/u16-chr-tests: Likewise.
8149         * modules/unistr/u16-cmp-tests: Likewise.
8150         * modules/unistr/u16-cmp2-tests: Likewise.
8151         * modules/unistr/u16-cpy-alloc-tests: Likewise.
8152         * modules/unistr/u16-cpy-tests: Likewise.
8153         * modules/unistr/u16-mblen-tests: Likewise.
8154         * modules/unistr/u16-mbsnlen-tests: Likewise.
8155         * modules/unistr/u16-mbtouc-tests: Likewise.
8156         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
8157         * modules/unistr/u16-mbtoucr-tests: Likewise.
8158         * modules/unistr/u16-move-tests: Likewise.
8159         * modules/unistr/u16-next-tests: Likewise.
8160         * modules/unistr/u16-prev-tests: Likewise.
8161         * modules/unistr/u16-set-tests: Likewise.
8162         * modules/unistr/u16-stpcpy-tests: Likewise.
8163         * modules/unistr/u16-stpncpy-tests: Likewise.
8164         * modules/unistr/u16-strcat-tests: Likewise.
8165         * modules/unistr/u16-strcmp-tests: Likewise.
8166         * modules/unistr/u16-strcoll-tests: Likewise.
8167         * modules/unistr/u16-strcpy-tests: Likewise.
8168         * modules/unistr/u16-strdup-tests: Likewise.
8169         * modules/unistr/u16-strlen-tests: Likewise.
8170         * modules/unistr/u16-strmblen-tests: Likewise.
8171         * modules/unistr/u16-strmbtouc-tests: Likewise.
8172         * modules/unistr/u16-strncat-tests: Likewise.
8173         * modules/unistr/u16-strncmp-tests: Likewise.
8174         * modules/unistr/u16-strncpy-tests: Likewise.
8175         * modules/unistr/u16-strnlen-tests: Likewise.
8176         * modules/unistr/u16-to-u32-tests: Likewise.
8177         * modules/unistr/u16-to-u8-tests: Likewise.
8178         * modules/unistr/u16-uctomb-tests: Likewise.
8179         * modules/unistr/u32-check-tests: Likewise.
8180         * modules/unistr/u32-chr-tests: Likewise.
8181         * modules/unistr/u32-cmp-tests: Likewise.
8182         * modules/unistr/u32-cmp2-tests: Likewise.
8183         * modules/unistr/u32-cpy-alloc-tests: Likewise.
8184         * modules/unistr/u32-cpy-tests: Likewise.
8185         * modules/unistr/u32-mblen-tests: Likewise.
8186         * modules/unistr/u32-mbsnlen-tests: Likewise.
8187         * modules/unistr/u32-mbtouc-tests: Likewise.
8188         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
8189         * modules/unistr/u32-mbtoucr-tests: Likewise.
8190         * modules/unistr/u32-move-tests: Likewise.
8191         * modules/unistr/u32-next-tests: Likewise.
8192         * modules/unistr/u32-prev-tests: Likewise.
8193         * modules/unistr/u32-set-tests: Likewise.
8194         * modules/unistr/u32-stpcpy-tests: Likewise.
8195         * modules/unistr/u32-stpncpy-tests: Likewise.
8196         * modules/unistr/u32-strcat-tests: Likewise.
8197         * modules/unistr/u32-strcmp-tests: Likewise.
8198         * modules/unistr/u32-strcoll-tests: Likewise.
8199         * modules/unistr/u32-strcpy-tests: Likewise.
8200         * modules/unistr/u32-strdup-tests: Likewise.
8201         * modules/unistr/u32-strlen-tests: Likewise.
8202         * modules/unistr/u32-strmblen-tests: Likewise.
8203         * modules/unistr/u32-strmbtouc-tests: Likewise.
8204         * modules/unistr/u32-strncat-tests: Likewise.
8205         * modules/unistr/u32-strncmp-tests: Likewise.
8206         * modules/unistr/u32-strncpy-tests: Likewise.
8207         * modules/unistr/u32-strnlen-tests: Likewise.
8208         * modules/unistr/u32-to-u16-tests: Likewise.
8209         * modules/unistr/u32-to-u8-tests: Likewise.
8210         * modules/unistr/u32-uctomb-tests: Likewise.
8211         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
8212         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
8213         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
8214         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
8215         * modules/uniwidth/u8-strwidth-tests: Likewise.
8216         * modules/uniwidth/u8-width-tests: Likewise.
8217         * modules/uniwidth/u16-strwidth-tests: Likewise.
8218         * modules/uniwidth/u16-width-tests: Likewise.
8219         * modules/uniwidth/u32-strwidth-tests: Likewise.
8220         * modules/uniwidth/u32-width-tests: Likewise.
8221         * modules/uniwidth/width-tests: Likewise.
8222
8223 2010-05-18  Richard Jones  <rjones@redhat.com>
8224
8225         doc: users.txt: list hivex
8226         * users.txt: Add hivex.
8227
8228 2010-05-18  Richard Jones  <rjones@redhat.com>
8229
8230         doc: users.txt: list febootstrap
8231         * users.txt: Add febootstrap.
8232
8233 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
8234
8235         bootstrap: fix an error when gnulib is not used as a git submodule
8236         * build-aux/bootstrap (gnulib_path): If its length is zero then
8237         assign "gnulib" to it.
8238         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
8239
8240 2010-05-16  Bruno Haible  <bruno@clisp.org>
8241
8242         Avoid autoconf warnings about AM_ICONV.
8243         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
8244         2.64.
8245
8246 2010-05-16  Bruno Haible  <bruno@clisp.org>
8247
8248         absolute-header: Make the macro usable in more situations.
8249         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
8250         from gl_ABSOLUTE_HEADER.
8251         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
8252
8253 2010-05-16  James Youngman  <jay@gnu.org>
8254
8255         doc: update users.txt
8256         * users.txt: Add CSSC.
8257
8258 2010-05-16  Jim Meyering  <meyering@redhat.com>
8259
8260         init.sh: fix an error in the previous change; add more comments
8261         * tests/init.sh: Compare exit code in loop against 9, not 2.
8262         Patch by Bruno Haible.
8263         Make the two tests more similar by adding an empty "then" clause.
8264         Add comments.
8265
8266         init.sh: avoid unnecessary shell re-exec
8267         * tests/init.sh: Improve the re-exec-required check to first test the
8268         current shell.  If it passes the test, do not search for a shell that
8269         does pass, and do not re-exec.  This test is particularly contorted to
8270         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
8271         of $(...) evokes a syntax error and causes immediate shell exit with
8272         status 2.  Bruno Haible reported that the re-exec made it impossible
8273         to single-step through any init.sh-using script.
8274
8275 2010-05-16  Bruno Haible  <bruno@clisp.org>
8276
8277         Fix collision between gnulib's and libintl's printf replacements.
8278         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
8279         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
8280         (printf): When using GNU C, map the __printf__ function to rpl_printf
8281         via __asm__. When not using GNU C, define rpl_printf instead of
8282         __printf__.
8283         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
8284         commit.
8285         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
8286         commit.
8287         * m4/asm-underscore.m4: New file.
8288         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
8289         * modules/stdio (Files): Add m4/asm-underscore.m4.
8290         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
8291         Reported by Ben Pfaff.
8292
8293 2010-05-16  Bruno Haible  <bruno@clisp.org>
8294
8295         verify: Avoid skipping the test on openSUSE 11.0.
8296         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
8297
8298 2010-05-13  Bruno Haible  <bruno@clisp.org>
8299
8300         Avoid useless warnings from G++.
8301         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
8302         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
8303         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8304
8305 2010-05-11  Jim Meyering  <meyering@redhat.com>
8306
8307         maint.mk: tweak preceding change
8308         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
8309         regexps tighter by anchoring at EOL, and make the new group "shy"
8310         for slightly decreased overhead.
8311
8312 2010-05-11  Eric Blake  <eblake@redhat.com>
8313
8314         maint.mk: gnulib doesn't guarantee NSIG
8315         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
8316
8317 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8318
8319         test-pwrite.c: Remove unused variable declaration.
8320         * tests/test-pwrite.c (main): Remove read_buf declaration.
8321
8322         Remove useless test-pwrite.sh file.
8323         * tests/test-pwrite.sh: Delete file.
8324         * modules/pwrite-tests: Remove references.
8325         Reported by Bruno Haible.
8326
8327 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8328
8329         init.sh: fix a typo
8330         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
8331
8332 2010-05-10  Jim Meyering  <meyering@redhat.com>
8333
8334         maint.mk: avoid using a temporary file in the always-defined-macros check
8335         * top/maint.mk (.re-defmac): Remove rule.
8336         (gl_trap_): Remove definition.
8337         (sc_prohibit_always-defined_macros): Rewrite not to create and
8338         depend on a temporary file.  Instead, depend on GNU grep's ability
8339         to read a list of regular expressions from stdin when given "-f -".
8340
8341 2010-05-09  Bruno Haible  <bruno@clisp.org>
8342
8343         Update to GNU gettext 0.18, part 1.
8344         * m4/gettext.m4: Update to GNU gettext 0.18.
8345         * m4/intl.m4: Likewise.
8346         * m4/po.m4: Likewise.
8347         * modules/gettext (Files): Add m4/fcntl-o.m4.
8348         (configure.ac): Require gettext infrastructure from version 0.18.
8349
8350 2010-05-09  Jim Meyering  <meyering@redhat.com>
8351
8352         init.sh: enable MALLOC_PERTURB_
8353         * tests/init.sh: Enable glibc's malloc-perturbing option.
8354
8355         maint.mk: improve sc_cross_check_PATH_usage_in_tests
8356         With my recent change in init.sh from the two-line form:
8357             -#   : ${srcdir=.}
8358             -#   . "$srcdir/init.sh"; path_prepend_ .
8359             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
8360         I noticed that using the one-line form would cause this test
8361         to fail with a false-positive, or to stop working altogether,
8362         depending on whether help-version changed or all the tests did.
8363         * top/maint.mk (_hv_regex): Remove this definition.
8364         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
8365         (_hv_regex_strong): Use a stronger regex to check for conformance.
8366         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
8367         Give a separate diagnostic for lack of conforming use.
8368
8369         maint.mk: prohibit definition of symbols defined by gnulib
8370         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
8371         definition of symbols defined by gnulib.
8372
8373 2010-05-09  Bruno Haible  <bruno@clisp.org>
8374
8375         acl: Avoid test failure on Cygwin-hosted mingw.
8376         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
8377
8378 2010-05-09  Bruno Haible  <bruno@clisp.org>
8379
8380         error: Use system's fcntl function.
8381         * lib/error.c (fcntl): Undefine.
8382
8383 2010-05-09  Jim Meyering  <meyering@redhat.com>
8384
8385         verify: adjust formatting to be more consistent
8386         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
8387         argument-list '('s, and after one comma.
8388
8389 2010-05-09  Bruno Haible  <bruno@clisp.org>
8390
8391         error: More reliable output on mingw.
8392         * lib/error.c: Include <windows.h>.
8393         (is_open): New function.
8394         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
8395         defined.
8396
8397 2010-05-09  Bruno Haible  <bruno@clisp.org>
8398
8399         vasnprintf: Fix syntax errors in libintl build on mingw.
8400         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
8401         pad_ourselves and prec_ourselves after use.
8402
8403 2010-05-08  Bruno Haible  <bruno@clisp.org>
8404
8405         * lib/config.charset: Update comments for Cygwin 1.7.
8406         * lib/localcharset.c: Likewise.
8407
8408 2010-05-07  Jim Meyering  <meyering@redhat.com>
8409
8410         init.sh: improve comments
8411         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
8412         . "${srcdir=.}/init.sh"; path_prepend_ .
8413         Add a note about path_prepend_ and the alternative of using
8414         TESTS_ENVIRONMENT.
8415
8416 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
8417
8418         exclude: Unescape hashed patterns in wildcard mode.
8419         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
8420         to the hash list.
8421         * tests/test-exclude8.sh: New test case.
8422         * modules/exclude-tests: Add new test.
8423
8424 2010-05-05  Eric Blake  <eblake@redhat.com>
8425
8426         verify: automate tests
8427         * modules/verify-tests: New module.
8428         * tests/test-verify.sh: New file.
8429         * tests/test-verify.c: Guard each negative test with a unique id.
8430         Also avoid warning about unused left hand of comma expressions.
8431
8432 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8433
8434         Further improvements to verify.h, suggested by Eric Blake.
8435         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
8436         the GL_* versions, to avoid collision with OpenGL.
8437         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
8438         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
8439         than testing merely whether it's defined.
8440
8441         Modify verify.h to pacify gcc -Wredundant_decls.
8442         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
8443         These use the prefix "GL_" since they're likely to be useful elsewhere.
8444         We may need to break them out into a different .h file.
8445         (__COUNTER__): Define to 0 if the compiler doesn't support it.
8446         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
8447         of verify_function__.
8448
8449 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8450
8451         Tests for module pwrite.
8452         * modules/pwrite-tests: New file.
8453         * tests/test-pwrite.sh: New file.
8454         * tests/test-pwrite.c: New file.
8455
8456         New module pwrite.
8457         * lib/unistd.in.h (pwrite): New declaration.
8458         * lib/pwrite.c: New file, from glibc with modifications.
8459         * m4/pwrite.m4: New file.
8460         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
8461         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
8462         REPLACE_PWRITE.
8463         * modules/pwrite: New file.
8464         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
8465         REPLACE_PWRITE.
8466         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
8467         * doc/posix-functions/pwrite.texi: Mention the new module.
8468
8469 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8470
8471         pread: Update documentation.
8472         * doc/posix-functions/pread.texi: Mention the 'pread' module.
8473
8474 2010-05-04  Eric Blake  <eblake@redhat.com>
8475
8476         docs: update cygwin progress
8477         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
8478         this bug.
8479         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
8480         Added in cygwin 1.7.2.
8481         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
8482         Likewise.
8483         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
8484         Likewise.
8485         * doc/glibc-functions/dup3.texi (dup3): Likewise.
8486         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8487         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8488         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
8489         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
8490         Mention nproc module.
8491         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
8492         bug in cygwin 1.7.5 addition.
8493         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
8494         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
8495         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
8496         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
8497         1.7.5.
8498         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
8499         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
8500         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
8501         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
8502         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
8503         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
8504         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
8505         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
8506         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
8507         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
8508         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
8509         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
8510         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
8511         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
8512         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
8513         Likewise.
8514         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
8515         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
8516         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
8517         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
8518         Likewise.
8519         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
8520         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
8521         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
8522         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
8523         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
8524         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
8525         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
8526         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
8527         Likewise.
8528         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
8529         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
8530         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
8531         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
8532         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
8533         Likewise.
8534         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
8535         Likewise.
8536         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
8537         Likewise.
8538         * doc/glibc-functions/xdrrec_endofrecord.texi
8539         (xdrrec_endofrecord): Likewise.
8540         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
8541         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
8542         Likewise.
8543         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
8544         Likewise.
8545
8546 2010-05-04  Jim Meyering  <meyering@redhat.com>
8547
8548         gendocs.sh: make its "-s FILE" option more useful
8549         * build-aux/gendocs.sh: When honoring the -s FILE option, update
8550         $PACKAGE to reflect the probably-different basename of "FILE".
8551
8552 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
8553
8554         bootstrap: don't ignore download_po_files failure
8555         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
8556         failure.
8557
8558 2010-05-03  Jim Meyering  <meyering@redhat.com>
8559
8560         maint.mk: allow to pass options to gendocs.sh
8561         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
8562         (gendocs_options_): New overridable variable.
8563
8564         gnu-web-doc-update: don't ignore configure or build failure
8565         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
8566
8567         announce-gen: backslash-escape '@'s in --help output
8568         * build-aux/announce-gen: Fix syntax errors.
8569
8570         maint.mk, announce-gen: allow project-specific announcement mail headers
8571         * top/maint.mk (translation_project_): Define default.
8572         (announcement_Cc_, announcement_mail_headers_): Likewise.
8573         (announcement): Invoke announce-gen with new --mail-headers option.
8574         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
8575
8576         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
8577         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
8578         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
8579         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
8580         line in the "err2" output file when running "make check" in verbose
8581         mode (i.e., with set -x enabled).
8582
8583 2010-05-03  Bruno Haible  <bruno@clisp.org>
8584
8585         wctob: Fix for weird platforms.
8586         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
8587         argument value.
8588
8589 2010-05-03  Jim Meyering  <meyering@redhat.com>
8590
8591         maint.mk: prohibit unwarranted use of <strings.h>
8592         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
8593         strings.h in a file that does not also use strcasecmp, strncasecmp,
8594         ffs or ffsll.
8595
8596         maint.mk: remove obsolete comments
8597         * top/maint.mk: Remove stale, commented-out rules.
8598
8599 2010-05-02  Bruno Haible  <bruno@clisp.org>
8600
8601         wcwidth: Declare also when it's aliased.
8602         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
8603         macro.
8604
8605 2010-05-02  Bruno Haible  <bruno@clisp.org>
8606
8607         Fix regression from 2010-04-25.
8608         * gnulib-tool (func_modules_transitive_closure): Check the status of
8609         all modules, not only of the tests that are of the form foo-tests where
8610         foo is a module.
8611
8612 2010-05-02  Bruno Haible  <bruno@clisp.org>
8613
8614         wctob: Work around nasty Cygwin 1.7.2 bug.
8615         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
8616         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
8617
8618 2010-05-01  Bruno Haible  <bruno@clisp.org>
8619
8620         fpurge: Sharper test.
8621         * tests/test-fpurge.c (main): Add one more ftell check.
8622         * modules/fpurge-tests (Depends-on): Add ftell.
8623         Suggested by Eric Blake.
8624
8625 2010-05-01  Bruno Haible  <bruno@clisp.org>
8626
8627         ftello: Another test.
8628         * tests/test-ftello3.c: New file.
8629         * modules/ftello-tests (Files): Add it.
8630         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8631         MOSTLYCLEANFILES.
8632
8633         ftell: Another test.
8634         * tests/test-ftell3.c: New file.
8635         * modules/ftell-tests (Files): Add it.
8636         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8637         MOSTLYCLEANFILES.
8638
8639 2010-05-01  Bruno Haible  <bruno@clisp.org>
8640
8641         ftell, ftello: Work around Solaris bug.
8642         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
8643         * lib/ftello.c: Include stdio-impl.h.
8644         (ftello): On Solaris, when _IOWRT is set, compute the result without
8645         looking at _IOREAD.
8646         * modules/ftello (Files): Add lib/stdio-impl.h.
8647         * doc/posix-functions/ftell.texi: Mention Solaris bug.
8648         * doc/posix-functions/ftello.texi: Likewise.
8649         Reported by Eric Blake.
8650
8651 2010-05-01  Bruno Haible  <bruno@clisp.org>
8652
8653         freading: Adapt to special meaning of _IOREAD flag on Solaris.
8654         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
8655         the _IOWRT flag is also set.
8656
8657 2010-05-01  Bruno Haible  <bruno@clisp.org>
8658
8659         Fix doc about a HP-UX stdio bug.
8660         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
8661         * doc/posix-functions/ftello.texi: Likewise.
8662
8663 2010-05-01  Bruno Haible  <bruno@clisp.org>
8664
8665         lseek test: Fix failure on Solaris.
8666         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
8667         output.
8668
8669 2010-04-30  Jim Meyering  <meyering@redhat.com>
8670
8671         bootstrap: don't ignore failure to generate po*/Makevars
8672         * build-aux/bootstrap (with_gettext): Don't ignore failure
8673         to create po/Makevars or runtime-po/Makevars.
8674
8675 2010-04-29  Eric Blake  <eblake@redhat.com>
8676
8677         headers: relax license to LGPLv2+
8678         * modules/fcntl-h (License): Relax license.
8679         * modules/getopt-posix (License): Likewise.
8680         * modules/locale (License): Likewise.
8681         * modules/math (License): Likewise.
8682         * modules/pty (License): Likewise.
8683         * modules/sched (License): Likewise.
8684         * modules/search (License): Likewise.
8685         * modules/spawn (License): Likewise.
8686         * modules/stdarg (License): Likewise.
8687         * modules/sysexits (License): Likewise.
8688
8689 2010-04-29  Jim Meyering  <meyering@redhat.com>
8690
8691         inttypes: relax license to LGPLv2+
8692         * modules/inttypes (License): Relax license.
8693
8694 2010-04-29  Simon Josefsson  <simon@josefsson.org>
8695
8696         * top/maint.mk (indent): Run twice to produce idempotent results.
8697
8698 2010-04-28  Bruno Haible  <bruno@clisp.org>
8699
8700         getdate: Generate getdate.c in the source directory.
8701         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
8702         MOSTLYCLEANFILES.
8703         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
8704
8705 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
8706
8707         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
8708         is not declared as a const *; avoid warnings in that case.
8709
8710 2010-04-28  Eric Blake  <eblake@redhat.com>
8711
8712         canonicalize-lgpl: avoid compiler warning
8713         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
8714         declaration' / 'extraneous semicolon' warning with some compilers.
8715         Reported by Andreas Gruenbacher.
8716
8717 2010-04-28  Jim Meyering  <meyering@redhat.com>
8718
8719         init.sh: ensure a more reliable exit status when exiting via trap
8720         * tests/init.sh (setup_): Don't rely on $? in signal handler.
8721         Inspired by patches from Dmitry V. Levin.
8722         Also trap on signal 3 (SIGQUIT).
8723
8724 2010-04-27  Bruno Haible  <bruno@clisp.org>
8725
8726         Update doc about utimes().
8727         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
8728         'utimens' module.
8729         Reported by Andreas Gruenbacher <agruen@suse.de>.
8730
8731 2010-04-27  Eric Blake  <eblake@redhat.com>
8732
8733         full-read, full-write: relax license
8734         * modules/full-read (License): Drop to LGPLv2+.
8735         * modules/full-write (License): Likewise.
8736         * modules/safe-read (License): Likewise.
8737         * modules/safe-write (License): Likewise.
8738
8739         pthread: mention library for linking
8740         * modules/pthread (Link): Mention $(LIB_PTHREAD).
8741
8742 2010-04-27  Jim Meyering  <meyering@redhat.com>
8743
8744         maint.mk: fix a bug introduced in last change
8745         * top/maint.mk (gl_assured_headers_): Now that all names are on
8746         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
8747         is not anchored to end of word, it should be adequate.
8748
8749         maint.mk: avoid side-effect in latest syntax-check
8750         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
8751         to run commands via $(shell...), and hence to incur cost only when
8752         the new rule is actually run.
8753
8754         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
8755         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
8756         and use that to create a regexp used to detect all #if HAVE_..._H uses.
8757         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
8758         (gl_assured_headers_, az_, AZ_): Define.
8759         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
8760
8761 2010-04-26  Jim Meyering  <jim@meyering.net>
8762             Bruno Haible  <bruno@clisp.org>
8763
8764         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
8765         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
8766         Prompted by an exchange with Gilles Espinasse.
8767
8768 2010-04-26  Jim Meyering  <meyering@redhat.com>
8769
8770         git-version-gen: aesthetic tweak
8771         * build-aux/git-version-gen: Use "$nl" rather than a literal,
8772         so that the command remains on a single line.
8773
8774 2010-04-26  Eric Blake  <eblake@redhat.com>
8775
8776         git-version-gen: allow use on EBCDIC hosts
8777         * build-aux/git-version-gen (dirty): Use literal rather than tying
8778         ourselves to ascii.
8779         Reported by Steve Goetze.
8780
8781 2010-04-25  Bruno Haible  <bruno@clisp.org>
8782
8783         netdb: Add support for GNULIB_POSIXCHECK.
8784         * lib/netdb.in.h: Include warn-on-use.h.
8785         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
8786         functions are used when GNULIB_POSIXCHECK is defined and the
8787         getaddrinfo module is not in use.
8788         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
8789         freeaddrinfo, gai_strerror, getnameinfo are declared.
8790         * modules/netdb (Depends-on): Add warn-on-use.
8791         (Makefile.am): Include warn-on-use.h in netdb.h.
8792
8793 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
8794
8795         build: avoid "make check" failure without .git/ directory
8796         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
8797         there is no .git/ directory.
8798
8799 2010-04-25  Bruno Haible  <bruno@clisp.org>
8800
8801         ptsname: Fix misuse of ttyname_r.
8802         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
8803         of errno.
8804
8805 2010-04-25  Bruno Haible  <bruno@clisp.org>
8806
8807         ttyname_r: Make it work on Solaris 10.
8808         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
8809         if the system function has the POSIX declaration. Test whether the
8810         function fails if the buffer is less than 128 bytes large.
8811         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
8812         system's ttyname_r function. Provide a reasonably large buffer.
8813         * modules/ttyname_r (Depends-on): Add extensions.
8814         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
8815
8816 2010-04-25  Bruno Haible  <bruno@clisp.org>
8817
8818         Use the 'extensions' module for some more functions on Solaris.
8819         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
8820         module.
8821         * doc/posix-functions/ctime_r.texi: Likewise.
8822         * doc/posix-functions/getgrgid_r.texi: Likewise.
8823         * doc/posix-functions/getgrnam_r.texi: Likewise.
8824         * doc/posix-functions/getpwnam_r.texi: Likewise.
8825         * doc/posix-functions/getpwuid_r.texi: Likewise.
8826         * doc/posix-functions/readdir_r.texi: Likewise.
8827         * doc/posix-functions/sigwait.texi: Likewise.
8828         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
8829         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
8830
8831 2010-04-25  Bruno Haible  <bruno@clisp.org>
8832
8833         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
8834         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
8835         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
8836         * lib/ttyname_r.c: Include <limits.h>.
8837         (ttyname_r): Define using the system's ttyname_r function, if it exists
8838         and not on Solaris.
8839         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
8840         set.
8841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
8842         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
8843         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
8844         Reported by Simon Josefsson.
8845
8846 2010-04-25  Bruno Haible  <bruno@clisp.org>
8847
8848         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
8849         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
8850         * doc/posix-functions/ctime_r.texi: Likewise.
8851         * doc/posix-functions/getgrgid_r.texi: Likewise.
8852         * doc/posix-functions/getgrnam_r.texi: Likewise.
8853         * doc/posix-functions/getlogin_r.texi: Likewise.
8854         * doc/posix-functions/getpwnam_r.texi: Likewise.
8855         * doc/posix-functions/getpwuid_r.texi: Likewise.
8856         * doc/posix-functions/readdir_r.texi: Likewise.
8857         * doc/posix-functions/sigwait.texi: Likewise.
8858         * doc/posix-functions/ttyname_r.texi: Likewise.
8859         Reported by Simon Josefsson.
8860
8861 2010-04-25  Bruno Haible  <bruno@clisp.org>
8862
8863         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
8864         * gnulib-tool (func_usage): Document that --with-*-tests options apply
8865         also to --create-testdir.
8866         (func_acceptable): Don't consider the status of *-tests modules here.
8867         (func_modules_transitive_closure): Consider it here, before including a
8868         test module.
8869         (func_import, func_create_testdir): Set inc_all_direct_tests,
8870         inc_all_indirect_tests.
8871         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
8872         --create-testdir and --create-megatestdir.
8873
8874 2010-04-25  Bruno Haible  <bruno@clisp.org>
8875
8876         gnulib-tool: Add --without-*-tests options.
8877         * gnulib-tool (func_usage): Document the --without-*-tests options.
8878         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
8879         excl_unportable_tests): New variables.
8880         Fail if they are specified with --import or --update.
8881         (func_acceptable): Respect the excl_*_tests variables.
8882         (func_import): Set the excl_*_tests variables to empty.
8883
8884 2010-04-25  Simon Josefsson  <simon@josefsson.org>
8885             Bruno Haible  <bruno@clisp.org>
8886
8887         Work around a MacOS X 10.4 bug with openpty.
8888         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
8889         * tests/test-openpty.c (main): Close the master side explicitly.
8890
8891 2010-04-25  Bruno Haible  <bruno@clisp.org>
8892
8893         strnlen: Fix a C++ test error on MacOS X and Solaris.
8894         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
8895         the function is not declared.
8896         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
8897         Simon Josefsson.
8898
8899 2010-04-24  Bruno Haible  <bruno@clisp.org>
8900
8901         Avoid a gcc warning.
8902         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
8903         of correct type for %08lx directive.
8904         Reported by Eric Blake.
8905
8906 2010-04-24  Bruno Haible  <bruno@clisp.org>
8907
8908         vasnprintf: Correct errno value in case of out-of-memory.
8909         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
8910         or sprintf. Use the errno value from SNPRINTF or sprintf.
8911         Reported by Ian Beckwith <ianb@erislabs.net>.
8912
8913 2010-04-24  Bruno Haible  <bruno@clisp.org>
8914
8915         ansi-c++-opt: Find correct compiler when cross-compiling.
8916         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
8917         AC_CHECK_PROGS.
8918         Reported by Simon Josefsson.
8919
8920 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
8921
8922         vc-list-files: Add support for subversion
8923         * build-aux/vc-list-files: Use "svn list" to generate the list of
8924         files controlled by subversion.
8925
8926 2010-04-23  Jim Meyering  <meyering@redhat.com>
8927
8928         vc-list-files tests: convert to use init.sh
8929         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
8930         path_prepend_.
8931         Use Exit, not exit.
8932         Use skip_ rather than open coding it.
8933         Remove trap set-up and compare definitions.
8934         * tests/test-vc-list-files-git.sh: Likewise.
8935         * modules/vc-list-files-tests (Files): Add tests/init.sh.
8936
8937 2010-04-22  Simon Josefsson  <simon@josefsson.org>
8938
8939         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
8940         backup files.
8941
8942 2010-04-21  Simon Josefsson  <simon@josefsson.org>
8943
8944         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
8945
8946 2010-04-20  Eric Blake  <eblake@redhat.com>
8947
8948         tests: be robust to ignored SIGPIPE
8949         * tests/test-select-in.sh: Consume all output.
8950         * tests/test-lseek.sh: Check correct exit status, while avoiding
8951         EPIPE.
8952
8953 2010-04-20  Simon Josefsson  <simon@josefsson.org>
8954             Bruno Haible  <bruno@clisp.org>
8955
8956         visibility: Don't use -fvisibility if it leads to a warning.
8957         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
8958         yes, don't pretend that visibility works if it leads to a warning.
8959         Reported by Mike Gran <spk121@yahoo.com>.
8960
8961 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
8962
8963         * build-aux/bootstrap: Use "git -h" for testing for supported options
8964         instead of "git --help".  The short-form option only shows a summary,
8965         and doesn't layout the full man page.  Grep for the full option name
8966         in the summary, too.
8967
8968 2010-04-19  Bruno Haible  <bruno@clisp.org>
8969
8970         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
8971         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
8972         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
8973         mention of RELOCATABLE_STRIP.
8974         Reported by Sylvain Beucler <beuc@beuc.net>.
8975
8976 2010-04-19  Bruno Haible  <bruno@clisp.org>
8977
8978         * lib/diffseq.h: Fix typo in comment.
8979         Reported by Eric Blake.
8980
8981 2010-04-19  Bruno Haible  <bruno@clisp.org>
8982
8983         ioctl: Move autoconf macro to a .m4 file.
8984         * m4/ioctl.m4: New file, extracted from modules/ioctl.
8985         * modules/ioctl (Files): Add it.
8986         (configure.ac): Simply invoke gl_FUNC_IOCTL.
8987         Reported by Ian Beckwith <ianb@erislabs.net>.
8988
8989 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
8990             Bruno Haible  <bruno@clisp.org>
8991
8992         diffseq: Accommodate use-case with abstract arrays.
8993         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
8994         is not defined.
8995         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
8996         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
8997
8998 2010-04-18  Bruno Haible  <bruno@clisp.org>
8999
9000         * doc/posix-headers/stdbool.texi: More precise wording.
9001
9002 2010-04-17  Jim Meyering  <meyering@redhat.com>
9003
9004         maint.mk: use gnu-style indentation in an embedded perl script
9005         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
9006         Rename variable: s/two/last_two_bytes/
9007
9008 2010-04-16  Eric Blake  <eblake@redhat.com>
9009
9010         test-stdbool: skip test that fails with Solaris CC
9011         * tests/test-stdbool.c (f): Skip test that causes compilation
9012         error under buggy C++ compiler.
9013         * lib/stdbool.in.h: Document the limitation.
9014         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
9015
9016         setenv: allow compilation with C++
9017         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
9018         register keyword.
9019
9020         stdint: allow test to pass with C++
9021         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
9022
9023         getopt: allow compilation with C++
9024         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
9025         struct.
9026         * lib/getopt.c (_getopt_internal_r): Use correct type.
9027         Reported by Dagobert Michelson, via Joel E. Denny.
9028
9029 2010-04-16  Bruno Haible  <bruno@clisp.org>
9030
9031         Override netdb.h always.
9032         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
9033         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
9034         Reported by Ludovic Courtès <ludo@gnu.org>.
9035
9036 2010-04-15  Bruno Haible  <bruno@clisp.org>
9037
9038         openpty: Fix mistake from 2010-03-21.
9039         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
9040         Reported by Simon Josefsson.
9041
9042 2010-04-15  Eric Blake  <eblake@redhat.com>
9043
9044         test-forkpty: fix expected signature
9045         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
9046         Reported by Simon Josefsson.
9047
9048 2010-04-15  Jim Meyering  <meyering@redhat.com>
9049
9050         maint.mk: texinfo_suffix_re_: correct the default regexp
9051         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
9052
9053         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
9054         make it configurable via texinfo_suffix_re_.
9055
9056 2010-04-14  Eric Blake  <eblake@redhat.com>
9057
9058         strtok_r: relax license to LGPLv2+
9059         * modules/strtok_r (License): Relax license.
9060         Reported by Matthias Bolte.
9061
9062 2010-04-14  Simon Josefsson  <simon@josefsson.org>
9063
9064         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
9065         version 1.4.4 by default instead of requiring the libgcrypt
9066         version used during build.  This makes it possible to use the
9067         application with older but still binary compatible libgcrypt
9068         versions.
9069
9070 2010-04-13  Eric Blake  <eblake@redhat.com>
9071
9072         getopt-gnu: match recent glibc fixes and posix ruling
9073         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
9074         '+' handling, when requesting extensions.
9075         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
9076         'W;' handling.
9077         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
9078         * doc/posix-functions/getopt.texi (getopt): Document this.
9079         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9080         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9081         Likewise.
9082
9083         getopt: merge bug fixes from glibc
9084         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
9085         diagnostics.  Honor '+:' correctly.  Reject ';'.
9086
9087         getopt-posix: detect MacOS bug
9088         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
9089         optind when missing a required argument.
9090         * doc/posix-functions/getopt.texi (getopt): Document the bug.
9091         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9092         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9093         Likewise.
9094
9095         getopt-posix: avoid spurious failure on Solaris
9096         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
9097         an indicator that setting optind=1 is sufficient for reset.
9098
9099         getopt-posix: avoid spurious failure on FreeBSD
9100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
9101         in POSIX mode, since the m4 test uses it.
9102
9103         gnulib-tool: silence warning on BSD sh
9104         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
9105
9106 2010-04-13  Jim Meyering  <meyering@redhat.com>
9107
9108         doc: users.txt: GNU patch now uses gnulib
9109         * users.txt: Add patch.
9110
9111 2010-04-12  Jim Meyering  <meyering@redhat.com>
9112
9113         maint.mk: generate more concise timing data for syntax-check rules
9114         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
9115         " done" from each line that reports a syntax-check test duration.
9116
9117 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
9118
9119         git-version-gen: use "git update-index..." rather than "git status"
9120         * build-aux/git-version-gen: Use git update-index --refresh, not
9121         "git status".  With some versions of git, "git status" would fail
9122         to update the index and result in an unwarranted "-dirty" suffix.
9123
9124 2010-04-11  Jim Meyering  <meyering@redhat.com>
9125
9126         openat: correct formatting (no semantic change)
9127         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
9128         Suggested by Bruno Haible.
9129
9130 2010-04-11  Bruno Haible  <bruno@clisp.org>
9131
9132         Stricter declaration checking in testdirs.
9133         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9134         If for_tests is true, augment AM_CPPFLAGS to define
9135         GNULIB_STRICT_CHECKING.
9136         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
9137         GNULIB_STRICT_CHECKING is defined, verify that the function is
9138         declared.
9139
9140 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
9141             Bruno Haible  <bruno@clisp.org>
9142
9143         libunistring: Improve configure output.
9144         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
9145         Don't say "consider installing GNU libunistring" when checking again
9146         with libiconv.
9147
9148 2010-04-11  Bruno Haible  <bruno@clisp.org>
9149
9150         libunistring: Correct value of $LTLIBUNISTRING.
9151         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
9152         correct the value of $LTLIBUNISTRING.
9153
9154 2010-04-11  Bruno Haible  <bruno@clisp.org>
9155
9156         havelib: Add static libraries to LIBS in the right order.
9157         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
9158         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
9159
9160 2010-04-11  Bruno Haible  <bruno@clisp.org>
9161
9162         libunistring: Detect libunistring also when it depends on libiconv.
9163         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
9164         the second AC_LIB_HAVE_LINKFLAGS invocation.
9165
9166 2010-04-11  James Youngman  <jay@gnu.org>
9167
9168         close-stream: declare local scalars to be "const"
9169         * lib/close-stream.c (close_stream): Make boolean variables const
9170         to document the fact that we set but do not change them.
9171
9172 2010-04-11  Bruno Haible  <bruno@clisp.org>
9173
9174         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
9175
9176 2010-04-11  Jim Meyering  <meyering@redhat.com>
9177
9178         maint.mk: don't include dist-check.mk
9179         * top/maint.mk: Remove bogus include directive.
9180
9181         maint.mk: improve empty-line-at-EOF check
9182         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
9183         solution, rather than tail+Perl-based one.  The latter would read
9184         a few kilobytes from the end of each file, and did not handle empty
9185         files properly.
9186
9187         maint.mk: print the elapsed time for each syntax-check rule
9188         * top/maint.mk (sc_m_rules_): Save start time in a file.
9189         (sc_z_rules_): New rules: remove temp file and print elapsed time.
9190         (local-check): Interpose the .z rules
9191
9192 2010-04-11  Jim Meyering  <meyering@redhat.com>
9193
9194         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
9195         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
9196         empty file with one that ends in an empty line.
9197
9198 2010-04-10  Bruno Haible  <bruno@clisp.org>
9199
9200         mkdir: Make it work on mingw64.
9201         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
9202         * lib/mkdir.c: Update comment.
9203         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
9204
9205 2010-04-10  Bruno Haible  <bruno@clisp.org>
9206
9207         Don't override improved macro from newer autoconf.
9208         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
9209         autoconf >= 2.62.
9210         Reported by Joel E. Denny <jdenny@clemson.edu>.
9211
9212 2010-04-10  Jim Meyering  <meyering@redhat.com>
9213
9214         maint.mk: new syntax-check rule: prohibit empty lines at end of file
9215         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
9216
9217         maint.mk: correct a diagnostic
9218         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
9219         in diagnostic; now use $prohibit.
9220
9221 2010-04-10  Bruno Haible  <address@hidden>
9222
9223         fchownat: Fix a C++ test error on Solaris 8.
9224         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
9225         the function does not exist.
9226
9227 2010-04-10  Bruno Haible  <bruno@clisp.org>
9228
9229         vasnprintf: Add more tests.
9230         * tests/test-vasnprintf-posix.c: Include <errno.h>.
9231         (test_function): Test converting an invalid wide string.
9232
9233         vasnprintf: Correct handling of unconvertible wide string arguments.
9234         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
9235         VASNPRINTF.
9236         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
9237         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
9238         smaller than the expected maximum need for the directive. Set errno to
9239         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
9240         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
9241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
9242         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
9243         * modules/vasnprintf (Files): Add m4/printf.m4.
9244         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9245
9246 2010-04-10  Bruno Haible  <bruno@clisp.org>
9247
9248         vasnprintf: Fix crash in %ls directive.
9249         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
9250         string is passed as argument to %ls, with no precision and no width.
9251         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9252
9253 2010-04-10  Bruno Haible  <bruno@clisp.org>
9254
9255         vasnprintf: Fix multiple test failures on mingw.
9256         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
9257         _snprintf, or snwprintf, not _snwprintf.
9258
9259 2010-04-10  Bruno Haible  <bruno@clisp.org>
9260
9261         write: Fix a C++ test error on mingw.
9262         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
9263
9264 2010-04-10  Bruno Haible  <bruno@clisp.org>
9265
9266         vasnprintf test: Reduce code duplication.
9267         * tests/test-vasnprintf.c (test_function): New function, extracted from
9268         test_vasnprintf.
9269         (test_vasnprintf, test_asnprintf): Invoke it.
9270
9271 2010-04-10  Bruno Haible  <bruno@clisp.org>
9272
9273         strnlen: Fix warning in C++ mode on MacOS X.
9274         * lib/string.in.h (strnlen): Use the modern idiom.
9275         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
9276         defining strnlen as a macro already in <config.h>.
9277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9278         REPLACE_STRNLEN.
9279         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
9280         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9281
9282 2010-04-08  James Youngman  <jay@gnu.org>
9283
9284         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
9285         the example.
9286
9287 2010-04-09  Jim Meyering  <meyering@redhat.com>
9288
9289         maint.mk: print better diagnostic when there is no $(_hv_file)
9290         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
9291         announce that when $(_hv_file) (aka help-version) does not exist.
9292
9293         init.sh: run tr in the "C" locale to avoid multibyte interpretation
9294         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
9295         not try to interpret its random input bytes.  Jarno Rajahalme reported
9296         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
9297         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
9298         (mktempd_): Likewise, just in case.
9299
9300         ftruncate: add two years to projected module removal date: 2012
9301         * m4/ftruncate.m4: Adjust comments.
9302
9303         ftruncate: mark module as obsolete; even MinGW provides it, now
9304         * modules/ftruncate (Status): Obsolete.
9305         (Notice): Say that.
9306         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
9307         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
9308
9309 2010-04-08  Bruno Haible  <bruno@clisp.org>
9310
9311         Fix side effects from tests-related modules.
9312         * modules/dprintf-posix (Comment): New section.
9313         * modules/fprintf-posix (Comment): Likewise.
9314         * modules/obstack-printf-posix (Comment): Likewise.
9315         * modules/printf-posix (Comment): Likewise.
9316         * modules/snprintf-posix (Comment): Likewise.
9317         * modules/sprintf-posix (Comment): Likewise.
9318         * modules/vasnprintf-posix (Comment): Likewise.
9319         * modules/vasprintf-posix (Comment): Likewise.
9320         * modules/vdprintf-posix (Comment): Likewise.
9321         * modules/vfprintf-posix (Comment): Likewise.
9322         * modules/vprintf-posix (Comment): Likewise.
9323         * modules/vsnprintf-posix (Comment): Likewise.
9324         * modules/vsprintf-posix (Comment): Likewise.
9325         * modules/xprintf-posix (Comment): Likewise.
9326         * modules/xvasprintf-posix (Comment): Likewise.
9327         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
9328         * modules/floorf-tests (Depends-on): Likewise.
9329         * modules/round-tests (Depends-on): Likewise.
9330         * modules/roundf-tests (Depends-on): Likewise.
9331         * modules/trunc-tests (Depends-on): Likewise.
9332         * modules/truncf-tests (Depends-on): Likewise.
9333         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
9334         'fprintf-posix' module is not present.
9335         * tests/test-floorf2.c (check): Likewise.
9336         * tests/test-trunc2.c (check): Likewise.
9337         * tests/test-truncf2.c (check): Likewise.
9338         * tests/test-round2.c (equal): Likewise.
9339         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9340
9341 2010-04-07  Karl Berry  <karl@gnu.org>
9342
9343         * config/srclist.txt,
9344         * config/srclistvars.sh,
9345         * config/srclist-update: doc fixes.
9346
9347 2010-04-07  Jim Meyering  <meyering@redhat.com>
9348
9349         maint.mk: add a PATH crosschecking syntax-check rule
9350         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
9351         Useful if you use a test like the one in help-version (coreutils,
9352         diffutils, grep, gzip) that ensures $(VERSION) matches what is
9353         printed by prog --version.
9354
9355 2010-04-06  Bruno Haible  <bruno@clisp.org>
9356
9357         Fix link error on mingw.
9358         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
9359         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
9360
9361 2010-04-06  Bruno Haible  <bruno@clisp.org>
9362
9363         Assume rmdir exists.
9364         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
9365
9366 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
9367
9368         doc: update users.txt
9369         * users.txt: Add gcal.
9370
9371 2010-04-06  Jim Meyering  <meyering@redhat.com>
9372
9373         init.sh: simply unset TMPDIR rather than risking env -i
9374         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
9375         although it probably works fine on all Unix-based systems, some
9376         systems (Cygwin?) cannot tolerate a totally cleared environment.
9377         Suggestion from Eric Blake.
9378
9379 2010-04-06  Jim Meyering  <meyering@redhat.com>
9380
9381         init.sh: portability fix: use env's POSIX-specified -i option not -u
9382         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
9383         than unportable env -u.  Solaris 5.11's env lacks support for -u.
9384
9385 2010-04-05  Bruno Haible  <bruno@clisp.org>
9386
9387         btowc: Work around Cygwin 1.7.2 bug.
9388         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
9389         does not map NUL to 0.
9390         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
9391
9392 2010-04-05  Bruno Haible  <bruno@clisp.org>
9393
9394         Make the multithread modules work on Cygwin 1.7.2.
9395         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
9396         imported symbols can be declared weak, so that it returns "no" on
9397         Cygwin 1.7.2.
9398
9399 2010-04-05  Bruno Haible  <bruno@clisp.org>
9400
9401         Use the module 'strncat'.
9402         * modules/unistr/u8-strncat (Depends-on): Add strncat.
9403
9404         Tests for module 'strncat'.
9405         * modules/strncat-tests: New file.
9406         * tests/test-strncat.c: New file.
9407
9408         New module 'strncat'.
9409         * lib/string.in.h (strncat): New declaration.
9410         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
9411         * m4/strncat.m4: New file, based on m4/memchr.m4.
9412         * modules/strncat: New file.
9413         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
9414         is declared.
9415         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
9416         REPLACE_STRNCAT.
9417         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
9418         REPLACE_STRNCAT.
9419         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
9420         module.
9421         * tests/test-string-c++.cc: Check signature of strncat.
9422
9423 2010-04-05  Jim Meyering  <meyering@redhat.com>
9424
9425         xstrtoumax-tests: convert to use init.sh
9426         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
9427         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9428         Use Exit, not exit.
9429         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9430
9431         xstrtoimax-tests: convert to use init.sh
9432         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
9433         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9434         Use Exit, not exit.
9435         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9436
9437 2010-04-05  Bruno Haible  <bruno@clisp.org>
9438
9439         sys_socket: Avoid #define replacements in C++ mode.
9440         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
9441         warning to the function if possible, rather than #defining the symbol
9442         to a dysfunctional alias.
9443
9444 2010-04-05  Bruno Haible  <bruno@clisp.org>
9445
9446         fseeko: Fix C++ test error on mingw.
9447         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
9448         gl_FUNC_FSEEKO.
9449         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
9450         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
9451         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
9452         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
9453
9454 2010-04-05  Bruno Haible  <bruno@clisp.org>
9455
9456         duplocale: Improve test output.
9457         * tests/test-duplocale.c (main): Print reason for skipped test.
9458
9459 2010-04-05  Bruno Haible  <bruno@clisp.org>
9460
9461         Assume rmdir exists.
9462         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
9463         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
9464
9465 2010-04-05  Bruno Haible  <bruno@clisp.org>
9466
9467         Fix link error on Solaris 8 with cc.
9468         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
9469
9470 2010-04-05  Bruno Haible  <bruno@clisp.org>
9471
9472         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9473         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
9474
9475 2010-04-05  Bruno Haible  <bruno@clisp.org>
9476
9477         vasprintf: Update documentation.
9478         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
9479
9480 2010-04-05  Bruno Haible  <bruno@clisp.org>
9481
9482         ptsname: Improve test.
9483         * tests/test-ptsname.c (main): Also try the various master names of BSD
9484         systems.
9485
9486 2010-04-05  Bruno Haible  <bruno@clisp.org>
9487
9488         memchr: Avoid a possible C++ test error.
9489         * lib/string.in.h (memchr): Provide declaration if function is missing.
9490         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
9491         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
9492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
9493         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
9494
9495 2010-04-05  Bruno Haible  <bruno@clisp.org>
9496
9497         strtok_r: Improve idiom.
9498         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
9499         AC_LIBOBJ is used.
9500
9501 2010-04-05  Bruno Haible  <bruno@clisp.org>
9502
9503         strdup: Improve idiom.
9504         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
9505         AC_LIBOBJ is used.
9506         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
9507         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
9508         when AC_LIBOBJ is used.
9509
9510 2010-04-05  Bruno Haible  <bruno@clisp.org>
9511
9512         mbsinit, mbrtowc, wcrtomb: Improve idioms.
9513         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
9514         don't set REPLACE_MBSINIT to 1.
9515         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
9516         don't set REPLACE_MBRTOWC to 1.
9517         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
9518         exist, don't set REPLACE_MBSRTOWCS to 1.
9519         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
9520         exist, don't set REPLACE_MBSNRTOWCS to 1.
9521         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
9522         don't set REPLACE_WCRTOMB to 1.
9523         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
9524         exist, don't set REPLACE_WCSRTOMBS to 1.
9525         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
9526         exist, don't set REPLACE_WCSNRTOMBS to 1.
9527
9528 2010-04-05  Bruno Haible  <bruno@clisp.org>
9529
9530         ldexpl: Improve idiom.
9531         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
9532         make sure to set HAVE_DECL_LDEXPL to 0.
9533
9534 2010-04-05  Jim Meyering  <meyering@redhat.com>
9535
9536         xstrtol-tests: convert to use init.sh
9537         * modules/xstrtol-tests (Files): Add tests/init.sh.
9538         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9539         Use Exit, not exit.
9540         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9541
9542         atexit-tests: convert to use init.sh
9543         * modules/atexit-tests (Files): Add tests/init.sh.
9544         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9545         Use Exit, not exit.
9546         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9547
9548         init.sh: fix typo
9549         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
9550
9551         init.sh: make it easier for a test script to write to the tty, ...
9552         when using automake's parallel-tests mode.
9553         * tests/init.sh (stderr_fileno_): Define overridable variable.
9554         (warn_): New function, to use it.
9555         (fail_, skip_, framework_failure_): Use warn_.
9556
9557 2010-04-04  Bruno Haible  <bruno@clisp.org>
9558
9559         btowc: Avoid warning.
9560         * lib/btowc.c: Include <stdlib.h>.
9561         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
9562
9563 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9564             Bruno Haible  <bruno@clisp.org>
9565
9566         wchar: Port to NetBSD 1.5.
9567         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
9568         * lib/wctype.in.h (WEOF): Likewise.
9569
9570 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9571             Bruno Haible  <bruno@clisp.org>
9572
9573         Port extended stdio to NetBSD 1.5.
9574         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
9575         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
9576         older.
9577
9578 2010-04-04  Bruno Haible  <bruno@clisp.org>
9579
9580         string: Remove unused substitution.
9581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
9582         HAVE_DECL_STRERROR.
9583         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
9584
9585 2010-04-04  Bruno Haible  <bruno@clisp.org>
9586
9587         strtod: Avoid a possible C++ test error.
9588         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
9589         set REPLACE_STRTOD.
9590
9591 2010-04-04  Bruno Haible  <bruno@clisp.org>
9592
9593         strerror: Update documentation.
9594         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
9595
9596 2010-04-04  Bruno Haible  <bruno@clisp.org>
9597
9598         stdio: Fix some C++ test errors on Solaris 8 with GCC.
9599         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
9600         _GL_CXXALIAS_SYS_CAST.
9601
9602 2010-04-04  Bruno Haible  <bruno@clisp.org>
9603
9604         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9605         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
9606         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
9607         REPLACE_FREXPL to 1.
9608         * doc/posix-functions/frexpl.texi: Update documentation.
9609
9610 2010-04-04  Bruno Haible  <bruno@clisp.org>
9611
9612         math: Fix some C++ test errors on Solaris 8 and Cygwin.
9613         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
9614
9615 2010-04-04  Bruno Haible  <bruno@clisp.org>
9616
9617         Implement nanosleep for native Windows.
9618         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
9619
9620 2010-04-04  Bruno Haible  <bruno@clisp.org>
9621
9622         math: Fix some C++ test errors on Solaris 8.
9623         * lib/math.in.h (truncf, trunc): Use simpler idiom.
9624
9625 2010-04-04  Bruno Haible  <bruno@clisp.org>
9626
9627         math: Fix some C++ test errors on Cygwin.
9628         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
9629         truncl): Provide declaration if the system does not have it.
9630         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
9631         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
9632         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
9633         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
9634         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
9635         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
9636         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
9637         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
9638         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
9639         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
9640         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
9641         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
9642         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
9643         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
9644         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
9645         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
9646         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
9647         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9648         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9649         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
9650         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9651         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9652
9653 2010-04-04  Bruno Haible  <bruno@clisp.org>
9654
9655         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
9656         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9657         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9658         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9659         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9660         * m4/isinf.m4 (gl_ISINF): Likewise.
9661         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9662
9663 2010-04-04  Bruno Haible  <bruno@clisp.org>
9664
9665         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
9666         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9667
9668 2010-04-04  Bruno Haible  <bruno@clisp.org>
9669
9670         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
9671         * modules/tmpfile (configure.ac): Update.
9672
9673         tmpfile: Fix C++ test error on mingw.
9674         * lib/stdio.in.h (tmpfile): New declaration.
9675         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
9676         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
9677         * modules/tmpfile (Depends-on): Add stdio.
9678         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
9679         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
9680         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
9681         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
9682         REPLACE_TMPFILE.
9683         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
9684
9685 2010-04-04  Bruno Haible  <bruno@clisp.org>
9686
9687         ioctl: Fix C++ test error on mingw.
9688         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
9689         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
9690         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
9691
9692 2010-04-03  Bruno Haible  <bruno@clisp.org>
9693
9694         wcwidth: Fix C++ test error on mingw.
9695         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
9696         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
9697         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
9698
9699 2010-04-03  Bruno Haible  <bruno@clisp.org>
9700
9701         nanosleep: Fix C++ test error on mingw.
9702         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
9703         * lib/time.in.h (nanosleep): Use modern idiom.
9704         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
9705         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
9706         REPLACE_NANOSLEEP to 1.
9707         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
9708         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
9709
9710 2010-04-03  Bruno Haible  <bruno@clisp.org>
9711
9712         strptime: Fix C++ test error on mingw.
9713         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
9714         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
9715         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
9716         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
9717         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
9718         not REPLACE_STRPTIME.
9719         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
9720         REPLACE_STRPTIME.
9721
9722 2010-04-03  Bruno Haible  <bruno@clisp.org>
9723
9724         timegm: Fix C++ test error on mingw.
9725         * lib/time.in.h (timegm): Use modern idiom.
9726         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
9727         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
9728         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
9729         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
9730
9731 2010-04-03  Bruno Haible  <bruno@clisp.org>
9732
9733         timegm: Assume declaration if function exists.
9734         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
9735         if it exists. Don't clobber ac_cv_func_timegm.
9736
9737 2010-04-03  Bruno Haible  <bruno@clisp.org>
9738
9739         time_r: Fix C++ test error on mingw.
9740         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
9741         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
9742         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
9743         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
9744         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
9745
9746 2010-04-03  Bruno Haible  <bruno@clisp.org>
9747
9748         time_r: Minor updates.
9749         * modules/time_r (Description): Mention the provided functions.
9750         * lib/time_r.c: Don't include <string.h>.
9751         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
9752         * doc/posix-functions/localtime_r.texi: Likewise.
9753
9754 2010-04-03  Bruno Haible  <bruno@clisp.org>
9755
9756         time: Fix regression introduced on 2010-03-08.
9757         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
9758         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
9759
9760 2010-04-03  Jim Meyering  <meyering@redhat.com>
9761
9762         maint.mk: don't silently disable project-specific syntax-check rules
9763         * top/maint.mk (_prohibit_regexp): Define, to help people realize
9764         that they need to convert their project-specific syntax-check rules
9765         to use the new _sc_search_regexp.
9766
9767 2010-04-03  Bruno Haible  <bruno@clisp.org>
9768
9769         fchdir: Fix regression introduced on 2010-03-08.
9770         * lib/unistd.in.h (fchdir): Fix declaration.
9771         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
9772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
9773         REPLACE_FCHDIR.
9774         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
9775         REPLACE_FCHDIR.
9776
9777 2010-04-03  Bruno Haible  <bruno@clisp.org>
9778
9779         getpagesize: Fix C++ test error on mingw.
9780         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
9781         system does not declare the function.
9782         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
9783         declared.
9784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9785         HAVE_DECL_GETPAGESIZE.
9786         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
9787
9788 2010-04-03  Bruno Haible  <bruno@clisp.org>
9789
9790         stdio: Make C++ tests work on mingw.
9791         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
9792         does not declare the function.
9793
9794 2010-04-03  Bruno Haible  <bruno@clisp.org>
9795
9796         ftello: Fix C++ test error on mingw.
9797         * lib/stdio.in.h (ftello): Use modern idiom.
9798         * lib/ftello.c (ftello): Renamed from rpl_ftello.
9799         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
9800         is missing and that it needs to be replaced.
9801         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
9802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
9803         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
9804
9805 2010-04-03  Bruno Haible  <bruno@clisp.org>
9806
9807         fseeko: Fix C++ test error on mingw.
9808         * lib/stdio.in.h (fseeko): Use modern idiom.
9809         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
9810         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
9811         is missing and that it needs to be replaced.
9812         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
9813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
9814         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
9815
9816 2010-04-03  Bruno Haible  <bruno@clisp.org>
9817
9818         mkstemp: Fix C++ test error on mingw.
9819         * lib/stdlib.in.h (mkstemp): Use modern idiom.
9820         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
9821         function is missing and that it needs to be replaced.
9822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
9823         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
9824
9825 2010-04-03  Bruno Haible  <bruno@clisp.org>
9826
9827         stpncpy: Fix C++ test error on mingw.
9828         * lib/string.in.h (stpncpy): Use modern idiom.
9829         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
9830         function is missing and that it needs to be replaced.
9831         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9832         REPLACE_STPNCPY.
9833         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
9834
9835 2010-04-03  Bruno Haible  <bruno@clisp.org>
9836
9837         sys_stat: Fix C++ test error on mingw.
9838         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
9839         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
9840
9841 2010-04-03  Bruno Haible  <bruno@clisp.org>
9842
9843         pty: Update doc.
9844         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
9845
9846 2010-04-03  Bruno Haible  <bruno@clisp.org>
9847
9848         unistd: Fix C++ test error on mingw.
9849         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
9850
9851 2010-04-03  Bruno Haible  <bruno@clisp.org>
9852
9853         Update doc regarding mingw.
9854         * doc/glibc-functions/openpty.texi: Update regarding mingw.
9855         * doc/glibc-functions/login_tty.texi: Likewise.
9856         * doc/glibc-functions/forkpty.texi: Likewise.
9857
9858 2010-04-03  Bruno Haible  <bruno@clisp.org>
9859
9860         stdlib: Avoid compilation failure of c-strtold on mingw.
9861         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
9862
9863 2010-04-03  Bruno Haible  <bruno@clisp.org>
9864
9865         locale: Make C++ tests work on Cygwin and mingw.
9866         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
9867         cannot provide the function.
9868         Reported by Simon Josefsson.
9869
9870 2010-04-03  Bruno Haible  <bruno@clisp.org>
9871
9872         localename: Port to MacOS X 10.6.
9873         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
9874         memory layout of the locales in MacOS X 10.6 as well.
9875         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
9876
9877 2010-04-02  Bruno Haible  <bruno@clisp.org>
9878
9879         gnulib-tool: Ensure that long-running tests are executed last.
9880         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
9881         running tests after the one for the other tests.
9882
9883 2010-04-02  Bruno Haible  <bruno@clisp.org>
9884
9885         gnulib-tool: Ensure the tests in the main directory are executed first.
9886         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
9887         start with the current directory.
9888
9889 2010-04-02  Bruno Haible  <bruno@clisp.org>
9890
9891         Tests for module 'havelib', moved here from GNU gettext.
9892         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
9893         modifications.
9894         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
9895         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
9896         with modifications.
9897         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
9898         modifications.
9899         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
9900         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
9901         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
9902         with modifications.
9903         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
9904         with modifications.
9905         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
9906         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
9907         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
9908         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
9909         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
9910         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
9911         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
9912         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
9913         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
9914         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
9915         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
9916         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
9917         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
9918         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
9919         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
9920         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
9921         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
9922         with modifications.
9923         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
9924         with modifications.
9925         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
9926         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
9927         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
9928         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
9929         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
9930         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
9931         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
9932         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
9933         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
9934         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
9935         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
9936         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
9937         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
9938         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
9939         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
9940         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
9941         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
9942         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
9943         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
9944         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
9945         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
9946         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
9947         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
9948         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
9949         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
9950         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
9951         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
9952         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
9953         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
9954         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
9955         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
9956         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
9957         * tests/havelib/rpathx/rpathx.c: New file, from
9958         gettext/autoconf-lib-link.
9959         * tests/havelib/rpathx/Makefile.am: New file, from
9960         gettext/autoconf-lib-link.
9961         * tests/havelib/rpathx/configure.ac: New file, from
9962         gettext/autoconf-lib-link with modifications.
9963         * tests/havelib/rpathy/rpathy.c: New file, from
9964         gettext/autoconf-lib-link.
9965         * tests/havelib/rpathy/Makefile.am: New file, from
9966         gettext/autoconf-lib-link.
9967         * tests/havelib/rpathy/configure.ac: New file, from
9968         gettext/autoconf-lib-link with modifications.
9969         * tests/havelib/rpathz/rpathz.c: New file, from
9970         gettext/autoconf-lib-link.
9971         * tests/havelib/rpathz/Makefile.am: New file, from
9972         gettext/autoconf-lib-link.
9973         * tests/havelib/rpathz/configure.ac: New file, from
9974         gettext/autoconf-lib-link with modifications.
9975         * tests/havelib/rpathlx/usex.c: New file, from
9976         gettext/autoconf-lib-link.
9977         * tests/havelib/rpathlx/Makefile.am: New file, from
9978         gettext/autoconf-lib-link.
9979         * tests/havelib/rpathlx/configure.ac: New file, from
9980         gettext/autoconf-lib-link with modifications.
9981         * tests/havelib/rpathly/usey.c: New file, from
9982         gettext/autoconf-lib-link.
9983         * tests/havelib/rpathly/Makefile.am: New file, from
9984         gettext/autoconf-lib-link.
9985         * tests/havelib/rpathly/configure.ac: New file, from
9986         gettext/autoconf-lib-link with modifications.
9987         * tests/havelib/rpathlz/usez.c: New file, from
9988         gettext/autoconf-lib-link.
9989         * tests/havelib/rpathlz/Makefile.am: New file, from
9990         gettext/autoconf-lib-link.
9991         * tests/havelib/rpathlz/configure.ac: New file, from
9992         gettext/autoconf-lib-link with modifications.
9993         * tests/havelib/rpathlyx/usey.c: New file, from
9994         gettext/autoconf-lib-link.
9995         * tests/havelib/rpathlyx/Makefile.am: New file, from
9996         gettext/autoconf-lib-link.
9997         * tests/havelib/rpathlyx/configure.ac: New file, from
9998         gettext/autoconf-lib-link with modifications.
9999         * tests/havelib/rpathlzyx/usez.c: New file, from
10000         gettext/autoconf-lib-link.
10001         * tests/havelib/rpathlzyx/Makefile.am: New file, from
10002         gettext/autoconf-lib-link.
10003         * tests/havelib/rpathlzyx/configure.ac: New file, from
10004         gettext/autoconf-lib-link with modifications.
10005         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
10006         with modifications.
10007
10008 2010-04-02  Bruno Haible  <bruno@clisp.org>
10009
10010         gnulib-tool: Create distributed built sources also for the tests.
10011         * gnulib-tool (func_create_testdir): Also generate distributed built
10012         sources in the tests directory.
10013
10014 2010-04-02  Bruno Haible  <bruno@clisp.org>
10015
10016         gnulib-tool: Obey user's environment variables.
10017         * gnulib-tool (func_create_testdir): When creating built sources,
10018         respect the environment variables for autoconf, automake, etc. given by
10019         the user.
10020
10021 2010-04-02  Bruno Haible  <bruno@clisp.org>
10022
10023         gnulib-tool: Provide the value of --m4-base to modules.
10024         * gnulib-tool (func_import, func_create_testdir): Emit a definition
10025         of gl_m4_base.
10026
10027 2010-04-02  Eric Blake  <eblake@redhat.com>
10028
10029         maint.mk: fix some fallout
10030         * NEWS: Document the incompatible change, and its effect on cfg.mk.
10031         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
10032
10033 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
10034
10035         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
10036         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
10037         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
10038         (sc_cast_of_x_alloc_return_value): Likewise.
10039         (sc_cast_of_alloca_return_value): Likewise.
10040         (sc_space_tab): Likewise.
10041         (sc_prohibit_atoi_atof): Likewise.
10042         (sc_prohibit_magic_number_exit): Likewise.
10043         (sc_error_exit_success): Likewise.
10044         (sc_file_system): Likewise.
10045         (sc_prohibit_have_config_h): Likewise.
10046         (sc_require_config_h): Likewise.
10047         (sc_prohibit_HAVE_MBRTOWC): Likewise.
10048         (sc_obsolete_symbols): Likewise.
10049         (sc_changelog): Likewise.
10050         (sc_program_name): Likewise.
10051         (sc_the_the): Likewise.
10052         (sc_trailing_blank): Likewise.
10053         (sc_two_space_separator_in_usage): Likewise.
10054         (sc_useless_cpp_parens): Likewise.
10055         (sc_GPL_version): Likewise.
10056         (sc_GFDL_version): Likewise.
10057         (sc_texinfo_acronym): Likewise.
10058         (sc_prohibit_cvs_keyword): Likewise.
10059         (sc_prohibit_stat_st_blocks): Likewise.
10060         (sc_prohibit_S_IS_definition): Likewise.
10061         (sc_redundant_const): Likewise.
10062         (sc_makefile_TAB_only_indentation): Likewise.
10063         (sc_m4_quote_check): Likewise.
10064         (sc_makefile_path_separator_check): Likewise.
10065         (sc_copyright_check): Likewise.
10066         (sc_Wundef_boolean): Likewise.
10067         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10068
10069         maint.mk: match 0 or more whitespace-before-function-call '('
10070         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
10071         that have zero or two-and-more spaces between the function name
10072         and the open parenthesis.
10073         (sc_error_message_warn_fatal): Likewise.
10074         (sc_error_message_uppercase): Likewise.
10075         (sc_error_message_period): Likewise.
10076
10077 2010-03-31  Eric Blake  <eblake@redhat.com>
10078
10079         maint.mk: check for [ as well as test
10080         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
10081         Based on a libvirt report by Matthias Bolte.
10082
10083         gnumakefile: don't squelch _version output
10084         * top/GNUmakefile (_version): Create one-shot dependency rather
10085         than using $(shell) when version must be regenerated.
10086         (_autoreconf): Run verbosely, by default.
10087
10088         sys_time: avoid compiler warnings
10089         * lib/sys_time.in.h (includes): Ensure gcc pragma is
10090         unconditional, fixing regression from 2010-03-29.
10091         Reported by Simon Josefsson.
10092
10093 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
10094
10095         maint.mk: s/_header_without_use/_sc_header_without_use/
10096         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
10097         (sc_prohibit_assert_without_use): Use the new name.
10098         (sc_prohibit_close_stream_without_use): Likewise.
10099         (sc_prohibit_getopt_without_use): Likewise.
10100         (sc_prohibit_quotearg_without_use): Likewise.
10101         (sc_prohibit_quote_without_use): Likewise.
10102         (sc_prohibit_long_options_without_use): Likewise.
10103         (sc_prohibit_inttostr_without_use): Likewise.
10104         (sc_prohibit_ignore_value_without_use): Likewise.
10105         (sc_prohibit_error_without_use): Likewise.
10106         (sc_prohibit_xalloc_without_use): Likewise.
10107         (sc_prohibit_hash_without_use): Likewise.
10108         (sc_prohibit_hash_pjw_without_use): Likewise.
10109         (sc_prohibit_safe_read_without_use): Likewise.
10110         (sc_prohibit_argmatch_without_use): Likewise.
10111         (sc_prohibit_canonicalize_without_use): Likewise.
10112         (sc_prohibit_root_dev_ino_without_use): Likewise.
10113         (sc_prohibit_openat_without_use): Likewise.
10114         (sc_prohibit_c_ctype_without_use): Likewise.
10115         (sc_prohibit_signal_without_use): Likewise.
10116         (sc_prohibit_intprops_without_use): Likewise.
10117
10118 2010-03-30  Eric Blake  <eblake@redhat.com>
10119
10120         maint: improve module indicators
10121         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
10122         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
10123         columns, and avoid extra macro expansion.
10124
10125         fdopendir: work around FreeBSD bug
10126         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10127         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
10128         * modules/dirent (Makefile.am): Substitute it.
10129         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
10130         declaration.
10131         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
10132         fix.
10133         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10134
10135 2010-03-29  Bruno Haible  <bruno@clisp.org>
10136
10137         Emit #pragma system_header after the inclusion guard, not before.
10138         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
10139         guard that spans the entire file, not before. This enables an
10140         optimization in GCC's preprocessor.
10141         * lib/ctype.in.h: Likewise.
10142         * lib/dirent.in.h: Likewise.
10143         * lib/errno.in.h: Likewise.
10144         * lib/float.in.h: Likewise.
10145         * lib/getopt.in.h: Likewise.
10146         * lib/iconv.in.h: Likewise.
10147         * lib/langinfo.in.h: Likewise.
10148         * lib/locale.in.h: Likewise.
10149         * lib/math.in.h: Likewise.
10150         * lib/netdb.in.h: Likewise.
10151         * lib/netinet_in.in.h: Likewise.
10152         * lib/pty.in.h: Likewise.
10153         * lib/sched.in.h: Likewise.
10154         * lib/se-selinux.in.h: Likewise.
10155         * lib/search.in.h: Likewise.
10156         * lib/spawn.in.h: Likewise.
10157         * lib/stdarg.in.h: Likewise.
10158         * lib/stdint.in.h: Likewise.
10159         * lib/string.in.h: Likewise.
10160         * lib/strings.in.h: Likewise.
10161         * lib/sys_file.in.h: Likewise.
10162         * lib/sys_ioctl.in.h: Likewise.
10163         * lib/sys_time.in.h: Likewise.
10164         * lib/sys_times.in.h: Likewise.
10165         * lib/sys_utsname.in.h: Likewise.
10166         * lib/sys_wait.in.h: Likewise.
10167         * lib/sysexits.in.h: Likewise.
10168         * lib/wctype.in.h: Likewise.
10169
10170 2010-03-28  James Youngman  <jay@gnu.org>
10171
10172         save-cwd: don't leak a file descriptor when the caller execs.
10173         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
10174         saved file descriptor.
10175         * modules/save-cwd (Depends-on): Depend on cloexec.
10176
10177 2010-03-29  Bruno Haible  <bruno@clisp.org>
10178
10179         Remove vestiges of fts-lgpl module.
10180         * lib/fts_.h: Assume GNULIB_FTS is 1.
10181         * lib/fts.c: Likewise.
10182         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10183
10184 2010-03-28  Bruno Haible  <bruno@clisp.org>
10185
10186         Fix definition of tests witness macro.
10187         * gnulib-tool (func_import): Fix definition of witness macro.
10188
10189 2010-03-28  Bruno Haible  <bruno@clisp.org>
10190
10191         Fix ioctl's protoype on glibc systems.
10192         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
10193         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
10194         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
10195         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
10196         signature. If not, arrange to replace the ioctl function.
10197         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10198         REPLACE_IOCTL.
10199         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
10200         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
10201         Reported by Ludovic Courtès <ludo@gnu.org>.
10202
10203 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
10204
10205         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
10206         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
10207         made it so grep -r --include=GLOB* ... did not work.
10208
10209 2010-03-26  Jim Meyering  <meyering@redhat.com>
10210             Eric Blake  <eblake@redhat.com>
10211
10212         maint.mk: prohibit use of test's -o and -a operators
10213         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
10214
10215 2010-03-28  Bruno Haible  <bruno@clisp.org>
10216
10217         Remove unused GNULIB_XYZ macro definitions.
10218         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
10219         invocation.
10220
10221 2010-03-28  Bruno Haible  <bruno@clisp.org>
10222
10223         Mark privileged tests modules.
10224         * modules/idpriv-drop-tests (Status): New section.
10225         * modules/idpriv-droptemp-tests (Status): New section.
10226
10227 2010-03-28  Bruno Haible  <bruno@clisp.org>
10228
10229         Split C++ tests into separate tests modules.
10230         * modules/dirent-c++-tests: New file, extracted from
10231         modules/dirent-tests.
10232         * modules/dirent-tests: Depend on it.
10233         * modules/fcntl-h-c++-tests: New file, extracted from
10234         modules/fcntl-h-tests.
10235         * modules/fcntl-h-tests: Depend on it.
10236         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
10237         * modules/glob-tests: Depend on it.
10238         * modules/iconv-h-c++-tests: New file, extracted from
10239         modules/iconv-h-tests.
10240         * modules/iconv-h-tests: Depend on it.
10241         * modules/langinfo-c++-tests: New file, extracted from
10242         modules/langinfo-tests.
10243         * modules/langinfo-tests: Depend on it.
10244         * modules/locale-c++-tests: New file, extracted from
10245         modules/locale-tests.
10246         * modules/locale-tests: Depend on it.
10247         * modules/math-c++-tests: New file, extracted from modules/math-tests.
10248         * modules/math-tests: Depend on it.
10249         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
10250         * modules/pty-tests: Depend on it.
10251         * modules/search-c++-tests: New file, extracted from
10252         modules/search-tests.
10253         * modules/search-tests: Depend on it.
10254         * modules/signal-c++-tests: New file, extracted from
10255         modules/signal-tests.
10256         * modules/signal-tests: Depend on it.
10257         * modules/spawn-c++-tests: New file, extracted from
10258         modules/spawn-tests.
10259         * modules/spawn-tests: Depend on it.
10260         * modules/stdio-c++-tests: New file, extracted from
10261         modules/stdio-tests.
10262         * modules/stdio-tests: Depend on it.
10263         * modules/stdlib-c++-tests: New file, extracted from
10264         modules/stdlib-tests.
10265         * modules/stdlib-tests: Depend on it.
10266         * modules/string-c++-tests: New file, extracted from
10267         modules/string-tests.
10268         * modules/string-tests: Depend on it.
10269         * modules/sys_ioctl-c++-tests: New file, extracted from
10270         modules/sys_ioctl-tests.
10271         * modules/sys_ioctl-tests: Depend on it.
10272         * modules/sys_select-c++-tests: New file, extracted from
10273         modules/sys_select-tests.
10274         * modules/sys_select-tests: Depend on it.
10275         * modules/sys_socket-c++-tests: New file, extracted from
10276         modules/sys_socket-tests.
10277         * modules/sys_socket-tests: Depend on it.
10278         * modules/sys_stat-c++-tests: New file, extracted from
10279         modules/sys_stat-tests.
10280         * modules/sys_stat-tests: Depend on it.
10281         * modules/sys_time-c++-tests: New file, extracted from
10282         modules/sys_time-tests.
10283         * modules/sys_time-tests: Depend on it.
10284         * modules/time-c++-tests: New file, extracted from modules/time-tests.
10285         * modules/time-tests: Depend on it.
10286         * modules/unistd-c++-tests: New file, extracted from
10287         modules/unistd-tests.
10288         * modules/unistd-tests: Depend on it.
10289         * modules/wchar-c++-tests: New file, extracted from
10290         modules/wchar-tests.
10291         * modules/wchar-tests: Depend on it.
10292         * modules/wctype-c++-tests: New file, extracted from
10293         modules/wctype-tests.
10294         * modules/wctype-tests: Depend on it.
10295         Reported by Simon Josefsson.
10296
10297 2010-03-28  Bruno Haible  <bruno@clisp.org>
10298
10299         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
10300         * gnulib-tool (func_exists_module): New function, extracted from
10301         func_verify_module.
10302         (func_verify_module): Use it.
10303         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
10304         'foo' only if 'foo' exists.
10305         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
10306         module.
10307
10308 2010-03-28  Bruno Haible  <bruno@clisp.org>
10309
10310         gnulib-tool: Add support for special categories of tests.
10311         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
10312         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
10313         (func_usage): Document them.
10314         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
10315         inc_unportable_tests, inc_all_tests): New variables.
10316         (func_acceptable): Consider these variables.
10317         (func_modules_transitive_closure): Make it work when the 'Status' field
10318         consists of multiple words.
10319         (func_import): Store and restore the values of inc_cxx_tests,
10320         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
10321         inc_all_tests in gnulib-comp.m4.
10322         (func_create_testdir): Set inc_all_tests to true.
10323         * doc/gnulib.texi (Extra tests modules): New section.
10324         Suggested by Jim Meyering.
10325
10326 2010-03-28  Bruno Haible  <bruno@clisp.org>
10327
10328         ansi-c++-opt: Allow turning off the C++ build by default.
10329         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
10330         gl_CXX_CHOICE_DEFAULT_NO is defined.
10331         Requested by Eric Blake.
10332
10333 2010-03-28  Bruno Haible  <bruno@clisp.org>
10334
10335         unistd: Avoid #define replacements in C++ mode.
10336         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10337         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10338         setsockopt, shutdown, select): In C++, attach a warning to the function
10339         if possible, rather than #defining the symbol to a dysfunctional alias.
10340         Reported by John W. Eaton <jwe@gnu.org>.
10341
10342 2010-03-28  Bruno Haible  <bruno@clisp.org>
10343
10344         Fix link errors on mingw.
10345         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
10346         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
10347         $(LIBSOCKET).
10348         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
10349         $(LIBSOCKET).
10350
10351 2010-03-28  Bruno Haible  <bruno@clisp.org>
10352             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10353
10354         lib-ignore: Determine different options for different compilers.
10355         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
10356         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
10357         Add comments.
10358         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
10359         * NEWS: Mention the change.
10360
10361 2010-03-27  Bruno Haible  <bruno@clisp.org>
10362
10363         Remove unused GNULIB_XYZ macro definitions.
10364         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10365         * modules/fseek (configure.ac): Likewise.
10366         * modules/ioctl (configure.ac): Likewise.
10367         * modules/open (configure.ac): Likewise.
10368         * modules/stdlib-safer (configure.ac): Likewise.
10369
10370 2010-03-27  Bruno Haible  <bruno@clisp.org>
10371
10372         Add a remark about certain modules.
10373         * modules/malloc (Comment): New section.
10374         * modules/realloc (Comment): Likewise.
10375         * modules/sigpipe (Comment): Likewise.
10376
10377 2010-03-27  Bruno Haible  <bruno@clisp.org>
10378
10379         Resolve conflict between the two kinds of module indicators.
10380         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
10381         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
10382         * modules/canonicalize (configure.ac): Invoke
10383         gl_MODULE_INDICATOR_FOR_TESTS.
10384         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
10385         GNULIB_XYZ.
10386         * tests/test-dirent-c++.cc: Likewise.
10387         * tests/test-dirent-safer.c: Likewise.
10388         * tests/test-dup2.c: Likewise.
10389         * tests/test-fchdir.c: Likewise.
10390         * tests/test-fcntl-h-c++.cc: Likewise.
10391         * tests/test-getopt.c: Likewise.
10392         * tests/test-getopt.h: Likewise.
10393         * tests/test-langinfo-c++.cc: Likewise.
10394         * tests/test-locale-c++.cc: Likewise.
10395         * tests/test-math-c++.cc: Likewise.
10396         * tests/test-pty-c++.cc: Likewise.
10397         * tests/test-search-c++.cc: Likewise.
10398         * tests/test-signal-c++.cc: Likewise.
10399         * tests/test-spawn-c++.cc: Likewise.
10400         * tests/test-stdio-c++.cc: Likewise.
10401         * tests/test-stdlib-c++.cc: Likewise.
10402         * tests/test-string-c++.cc: Likewise.
10403         * tests/test-sys_ioctl-c++.cc: Likewise.
10404         * tests/test-sys_select-c++.cc: Likewise.
10405         * tests/test-sys_socket-c++.cc: Likewise.
10406         * tests/test-sys_stat-c++.cc: Likewise.
10407         * tests/test-sys_time-c++.cc: Likewise.
10408         * tests/test-time-c++.cc: Likewise.
10409         * tests/test-unistd-c++.cc: Likewise.
10410         * tests/test-wchar-c++.cc: Likewise.
10411         * tests/uninorm/test-u8-nfc.c: Likewise.
10412         * tests/uninorm/test-u8-nfd.c: Likewise.
10413         * tests/uninorm/test-u8-nfkc.c: Likewise.
10414         * tests/uninorm/test-u8-nfkd.c: Likewise.
10415         * tests/uninorm/test-u16-nfc.c: Likewise.
10416         * tests/uninorm/test-u16-nfd.c: Likewise.
10417         * tests/uninorm/test-u16-nfkc.c: Likewise.
10418         * tests/uninorm/test-u16-nfkd.c: Likewise.
10419         * tests/uninorm/test-u32-nfc.c: Likewise.
10420         * tests/uninorm/test-u32-nfc-big.c: Likewise.
10421         * tests/uninorm/test-u32-nfd.c: Likewise.
10422         * tests/uninorm/test-u32-nfd-big.c: Likewise.
10423         * tests/uninorm/test-u32-nfkc.c: Likewise.
10424         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
10425         * tests/uninorm/test-u32-nfkd.c: Likewise.
10426         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
10427         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10428
10429 2010-03-27  Bruno Haible  <bruno@clisp.org>
10430
10431         Distinguish two kinds of module indicators.
10432         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
10433         gl_MODULE_INDICATOR.
10434         (gl_MODULE_INDICATOR): New macro.
10435         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
10436         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
10437         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10438         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10439         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10440         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10441         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10442         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10443         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10444         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10445         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10446         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10447         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10448         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10449         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10450         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10451         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10452         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10453         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10454         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10455         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10456         * modules/cloexec (configure.ac): Likewise.
10457         * modules/getopt-gnu (configure.ac): Likewise.
10458         * modules/uninorm/u8-normalize (configure.ac): Likewise.
10459         * modules/uninorm/u16-normalize (configure.ac): Likewise.
10460         * modules/uninorm/u32-normalize (configure.ac): Likewise.
10461         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
10462
10463 2010-03-27  Bruno Haible  <bruno@clisp.org>
10464
10465         New module description field 'Comment'.
10466         * gnulib-tool: New option --extract-comment.
10467         (func_usage): Document it.
10468         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
10469         (func_get_comment): New function.
10470         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
10471
10472 2010-03-27  Bruno Haible  <bruno@clisp.org>
10473
10474         Addendum to 2010-02-07 commit.
10475         * gnulib-tool (func_usage): Document --extract-applicability option.
10476
10477 2010-03-27  Bruno Haible  <bruno@clisp.org>
10478
10479         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
10480         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
10481         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
10482         rather than link errors.
10483
10484 2010-03-27  Bruno Haible  <bruno@clisp.org>
10485
10486         Avoid side effects from tests-related modules on the compilation of lib.
10487         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
10488         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
10489         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
10490         parameter. Emit into AM_CPPFLAGS a definition of the designated C
10491         macro.
10492         (func_import): Define a witness macro. Assign it a value that depends
10493         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
10494         tests-related modules.
10495         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
10496         Reported by Jim Meyering.
10497
10498 2010-03-27  Bruno Haible  <bruno@clisp.org>
10499
10500         Factorize common .m4 code.
10501         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
10502         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
10503         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
10504         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
10505         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10506         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
10507         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
10508         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10509         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10510         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10511         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
10512         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10513         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10514         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10515         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10516         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
10517         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10518         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10519         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10520         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
10521         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
10522         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10523         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10524         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10525         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10526         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10527         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
10528         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
10529         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
10530         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10531         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10532         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10533
10534 2010-03-27  Bruno Haible  <bruno@clisp.org>
10535
10536         Fix a compilation error on Cygwin with g++ >= 4.3.
10537         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
10538         if it is undefined or if we alias it to chmod.
10539         (lstat): Don't warn about the use of this function if it is undefined
10540         or if we alias it to stat.
10541         Reported by Simon Josefsson.
10542
10543 2010-03-27  Bruno Haible  <bruno@clisp.org>
10544
10545         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
10546         * modules/getlogin (configure.ac): Update.
10547
10548         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
10549         * modules/getlogin_r (configure.ac): Update.
10550
10551         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
10552         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
10553         * modules/inet_ntop (configure.ac): Update.
10554
10555         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
10556         * modules/inet_pton (configure.ac): Update.
10557
10558         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
10559         * modules/mbslen (configure.ac): Update.
10560
10561         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
10562         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
10563         * modules/forkpty (configure.ac): Update.
10564         * modules/openpty (configure.ac): Update.
10565
10566 2010-03-26  Simon Josefsson  <simon@josefsson.org>
10567
10568         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
10569         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
10570
10571 2010-03-25  Eric Blake  <eblake@redhat.com>
10572
10573         maint: use pragma consistently across replacement headers
10574         * lib/ctype.in.h (system_header): Hoist for consistent placement.
10575         * lib/dirent.in.h (system_header): Likewise.
10576         * lib/errno.in.h (system_header): Likewise.
10577         * lib/float.in.h (system_header): Likewise.
10578         * lib/getopt.in.h (system_header): Likewise.
10579         * lib/iconv.in.h (system_header): Likewise.
10580         * lib/inttypes.in.h (system_header): Likewise.
10581         * lib/langinfo.in.h (system_header): Likewise.
10582         * lib/locale.in.h (system_header): Likewise.
10583         * lib/math.in.h (system_header): Likewise.
10584         * lib/netdb.in.h (system_header): Likewise.
10585         * lib/netinet_in.in.h (system_header): Likewise.
10586         * lib/pty.in.h (system_header): Likewise.
10587         * lib/sched.in.h (system_header): Likewise.
10588         * lib/se-selinux.in.h (system_header): Likewise.
10589         * lib/search.in.h (system_header): Likewise.
10590         * lib/spawn.in.h (system_header): Likewise.
10591         * lib/stdarg.in.h (system_header): Likewise.
10592         * lib/stdint.in.h (system_header): Likewise.
10593         * lib/string.in.h (system_header): Likewise.
10594         * lib/strings.in.h (system_header): Likewise.
10595         * lib/sys_file.in.h (system_header): Likewise.
10596         * lib/sys_ioctl.in.h (system_header): Likewise.
10597         * lib/sys_socket.in.h (system_header): Likewise.
10598         * lib/sys_times.in.h (system_header): Likewise.
10599         * lib/sys_utsname.in.h (system_header): Likewise.
10600         * lib/sys_wait.in.h (system_header): Likewise.
10601         * lib/sysexits.in.h (system_header): Likewise.
10602         * lib/unistd.in.h (system_header): Likewise.
10603         * lib/wctype.in.h (system_header): Likewise.
10604
10605         arpa/inet: fix mingw compilation warning
10606         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
10607         Reported by Matthew Bolte.
10608
10609 2010-03-25  Bruno Haible  <bruno@clisp.org>
10610
10611         Avoid collision between gnulib wrapper and libintl wrapper.
10612         * lib/printf.c (printf): Don't define if a printf wrapper is already
10613         defined in intl/printf.c.
10614         Reported by Michel Boaventura <michel@michelboaventura.com>.
10615
10616 2010-03-25  Bruno Haible  <bruno@clisp.org>
10617
10618         Use ANSI C.
10619         * lib/readutmp.h (getutent): Provide ANSI C prototype.
10620
10621 2010-03-25  Bruno Haible  <bruno@clisp.org>
10622
10623         Minor formatting changes.
10624         * lib/acosl.c: Insert space before function argument list.
10625         * lib/argz.c: Likewise.
10626         * lib/asinl.c: Likewise.
10627         * lib/expl.c: Likewise.
10628         * lib/gen-uni-tables.c: Likewise.
10629         * lib/gettext.h: Likewise.
10630         * lib/glthread/lock.h: Likewise.
10631         * lib/tanl.c: Likewise.
10632         * lib/uniname/uniname.c: Likewise.
10633         * tests/test-idpriv-drop.c: Likewise.
10634         * tests/test-idpriv-droptemp.c: Likewise.
10635         * tests/test-lock.c: Likewise.
10636         * tests/test-tls.c: Likewise.
10637         * lib/argp-help.c: Insert space before function-like macro argument
10638         list.
10639         * lib/memcmp.c: Likewise.
10640         * tests/test-base64.c: Likewise.
10641         * lib/localename.c: Insert space before sizeof's argument list.
10642         * lib/safe-alloc.h: Likewise.
10643         * lib/file-set.h: Insert space before macro argument list.
10644         * tests/test-argp.c: Likewise.
10645         * lib/argp-namefrob.h: Insert space before function parameter list.
10646         * lib/getaddrinfo.c: Likewise.
10647         * lib/netdb.in.h: Likewise.
10648         * lib/parse-duration.h: Likewise.
10649         * lib/parse-duration.c: Likewise.
10650         * lib/poll.c: Likewise.
10651         * lib/select.c: Likewise.
10652         * lib/trim.h: Likewise.
10653         * tests/test-usleep.c: Likewise.
10654         * lib/ldexpl.c: Insert space before function parameter list and before
10655         function argument list.
10656         * lib/logl.c: Likewise.
10657         * lib/sqrtl.c: Likewise.
10658         * lib/trim.c: Likewise.
10659         * lib/cosl.c: Use GNU style indentation. Insert space before function
10660         argument list.
10661         * lib/sinl.c: Likewise.
10662         * lib/tsearch.c: Insert space after 'for'.
10663         Reported by Jim Meyering.
10664
10665 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
10666
10667         * maint.mk (sc_Wundef_boolean): Check for the presence of the
10668         config header before grepping, as it's not present before
10669         autoreconf/configure are run.  Reported by Simon Josefsson.
10670
10671 2010-03-23  Bruno Haible  <bruno@clisp.org>
10672
10673         pt_chown: Make it work with automake < 1.11.
10674         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
10675         Reported by Simon Josefsson.
10676
10677 2010-03-23  Bruno Haible  <bruno@clisp.org>
10678
10679         pt_chown: Don't depend on GPLed modules.
10680         * lib/pt_chown.c: Don't include idpriv.h.
10681         (main): Don't drop privileges.
10682         * modules/pt_chown (Depends-on): Remove idpriv-drop.
10683         Reported by Simon Josefsson.
10684
10685 2010-03-24  Simon Josefsson  <simon@josefsson.org>
10686
10687         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
10688         suggestions from karl@freefriends.org (Karl Berry).
10689
10690 2010-03-22  Eric Blake  <eblake@redhat.com>
10691
10692         gethostname: further tweaks
10693         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
10694         are overriding gethostname.
10695         Suggested by Bruno Haible.
10696
10697 2010-03-21  Bruno Haible  <bruno@clisp.org>
10698
10699         Fix comments.
10700         * lib/forkpty.c (rpl_forkpty): Fix comment.
10701         * lib/openpty.c (rpl_openpty): Likewise.
10702         Reported by Eric Blake.
10703
10704 2010-03-22  Eric Blake  <eblake@redhat.com>
10705
10706         gethostname: fix build on mingw
10707         * lib/unistd.in.h (includes): Work around fact that mingw
10708         <winsock2.h> re-includes <unistd.h>, by avoiding any
10709         redeclarations if we are being included by <winsock2.h>.
10710         Reported by Matthias Bolte.
10711
10712 2010-03-21  Bruno Haible  <bruno@clisp.org>
10713
10714         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10715         * lib/forkpty.c (forkpty): New replacement function, from glibc with
10716         modifications.
10717         * lib/pty.in.h (forkpty): Update declaration. Add comments.
10718         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
10719         provide the replacement.
10720         * modules/forkpty (Depends-on): Add openpty, login_tty.
10721         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
10722         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
10723         * doc/glibc-functions/forkpty.texi: More supported platforms.
10724         * config/srclist.txt: Add forkpty.c (commented).
10725
10726 2010-03-21  Bruno Haible  <bruno@clisp.org>
10727
10728         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
10729         (Makefile.am): Verify that PTY_LIB is defined.
10730
10731         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
10732
10733 2010-03-21  Bruno Haible  <bruno@clisp.org>
10734
10735         Tests for module 'login_tty'.
10736         * modules/login_tty-tests: New file.
10737         * tests/test-login_tty.c: New file.
10738
10739         New module 'login_tty'.
10740         * lib/login_tty.c: New file.
10741         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
10742         * modules/login_tty: New file.
10743         * doc/glibc-functions/login_tty.texi: Mention the new module.
10744
10745 2010-03-21  Bruno Haible  <bruno@clisp.org>
10746
10747         login_tty: Documentation.
10748         * doc/glibc-functions/login_tty.texi: New file.
10749         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
10750
10751 2010-03-21  Bruno Haible  <bruno@clisp.org>
10752
10753         pty: Consistent macro naming.
10754         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
10755         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
10756         * modules/pty (configure.ac): Update.
10757
10758 2010-03-21  Bruno Haible  <bruno@clisp.org>
10759
10760         Tests for openpty: Make stricter.
10761         * tests/test-openpty.c (main): Add test of canonical processing and
10762         erase.
10763         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
10764
10765         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10766         * lib/openpty.c (openpty): New replacement function.
10767         * lib/pty.in.h: Include <termios.h>.
10768         (openpty): Update declaration. Add comments.
10769         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
10770         is not declared, arrange to provide the replacement. Check for _getpty
10771         and posix_openpt.
10772         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
10773         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
10774         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
10775         * modules/pty-tests (test_pty_c___LDADD): New variable.
10776         * doc/glibc-functions/openpty.texi: More supported platforms.
10777
10778 2010-03-21  Bruno Haible  <bruno@clisp.org>
10779
10780         setenv: Tweaks.
10781         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
10782         the test program.
10783         * doc/posix-functions/setenv.texi: Update platforms list.
10784
10785 2010-03-21  Bruno Haible  <bruno@clisp.org>
10786
10787         New module 'unlockpt'.
10788         * lib/unlockpt.c: New file, from glibc with modifications.
10789         * m4/unlockpt.m4: New file.
10790         * modules/unlockpt: New file.
10791         * lib/stdlib.in.h (unlockpt): New declaration.
10792         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
10793         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
10794         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
10795         HAVE_UNLOCKPT.
10796         * doc/posix-functions/unlockpt.texi: Mention the new module.
10797         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
10798         * config/srclist.txt: Add unlockpt.c (commented).
10799
10800 2010-03-21  Jim Meyering  <meyering@redhat.com>
10801
10802         maint.mk: prohibit inclusion of "intprops.h" without use
10803         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
10804
10805 2010-03-21  Bruno Haible  <bruno@clisp.org>
10806
10807         New module 'grantpt'.
10808         * lib/grantpt.c: New file, from glibc with modifications.
10809         * m4/grantpt.m4: New file.
10810         * modules/grantpt: New file.
10811         * lib/stdlib.in.h (grantpt): New declaration.
10812         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
10813         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
10814         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
10815         HAVE_GRANTPT.
10816         * doc/posix-functions/grantpt.texi: Mention the new module.
10817         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
10818         * config/srclist.txt: Add grantpt.c (commented).
10819
10820 2010-03-21  Bruno Haible  <bruno@clisp.org>
10821
10822         New module 'pt_chown'.
10823         * lib/pt_chown.c: New file, from glibc with modifications.
10824         * lib/pty-private.h: New file, from glibc with modifications.
10825         * modules/pt_chown: New file.
10826         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
10827
10828 2010-03-21  Bruno Haible  <bruno@clisp.org>
10829
10830         Tests for module 'ptsname'.
10831         * modules/ptsname-tests: New file.
10832         * tests/test-ptsname.c: New file.
10833
10834         New module 'ptsname'.
10835         * lib/ptsname.c: New file, from glibc with modifications.
10836         * m4/ptsname.m4: New file.
10837         * modules/ptsname: New file.
10838         * lib/stdlib.in.h (ptsname): New declaration.
10839         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
10840         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
10841         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
10842         HAVE_PTSNAME.
10843         * doc/posix-functions/ptsname.texi: Mention the new module.
10844         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
10845         * config/srclist.txt: Add ptsname.c (commented).
10846
10847 2010-03-21  Bruno Haible  <bruno@clisp.org>
10848
10849         Tests for module 'ttyname_r'.
10850         * modules/ttyname_r-tests: New file.
10851         * tests/test-ttyname_r.c: New file.
10852
10853         New module 'ttyname_r'.
10854         * lib/ttyname_r.c: New file.
10855         * m4/ttyname_r.m4: New file.
10856         * modules/ttyname_r: New file.
10857         * lib/unistd.in.h (ttyname_r): New declaration.
10858         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
10859         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
10860         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
10861         HAVE_TTYNAME_R.
10862         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
10863         * doc/posix-functions/ttyname_r.texi: Mention the new module.
10864
10865 2010-03-20  Bruno Haible  <bruno@clisp.org>
10866
10867         signal: Undefine macro definitions in C++ mode.
10868         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
10869         sigfillset): Undefine macro definitions from the system header in C++
10870         mode.
10871         Reported by John W. Eaton <jwe@gnu.org>.
10872
10873 2010-03-20  Bruno Haible  <bruno@clisp.org>
10874
10875         Ensure no #include statements inside extern "C" { ... }.
10876         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
10877         contain #include statements.
10878         * lib/time.in.h: Likewise.
10879
10880 2010-03-20  Bruno Haible  <bruno@clisp.org>
10881
10882         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
10883         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
10884         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
10885         Reported by John W. Eaton <jwe@gnu.org>.
10886
10887 2010-03-20  Bruno Haible  <bruno@clisp.org>
10888
10889         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
10890         Reported by Jim Meyering.
10891
10892 2010-03-20  Bruno Haible  <bruno@clisp.org>
10893
10894         pipe: Set errno upon failure.
10895         * lib/pipe.h: Specify that when -1 is returned, errno is set.
10896         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
10897         errno value in error message.
10898
10899 2010-03-20  Bruno Haible  <bruno@clisp.org>
10900             Jim Meyering  <meyering@redhat.com>
10901
10902         lchown: Avoid "unused variable" warning.
10903         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
10904
10905 2010-03-20  Bruno Haible  <bruno@clisp.org>
10906
10907         Work around unlink() bug on MacOS X 10.5.6.
10908         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
10909         attempting to unlink a parent directory.
10910         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
10911         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
10912         activate for the replacement function.
10913         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
10914
10915 2010-03-20  Bruno Haible  <bruno@clisp.org>
10916
10917         Fix link errors on Solaris 8.
10918         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
10919         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
10920
10921 2010-03-19  Jim Meyering  <meyering@redhat.com>
10922
10923         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
10924         The _LIBC implementation of build_range_exp correctly honors the
10925         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
10926         However, the non-_LIBC implementation would ignore that syntax-bit
10927         flag and return REG_ERANGE unconditionally.
10928         This change makes it honor that flag.
10929         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
10930         Make two pointer parameters "const".
10931         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
10932         (parse_bracket_exp): Update caller.
10933
10934         regex.m4: correct the reversed range endpoint ([b-a]) test
10935         * m4/regex.m4: When requiring that [b-a] evoke failure,
10936         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
10937         test pass once again for x86-based systems.
10938
10939 2010-03-19  Bruno Haible  <bruno@clisp.org>
10940
10941         scandir: Fix link error on Solaris 8.
10942         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
10943         macros.
10944
10945 2010-03-19  Bruno Haible  <bruno@clisp.org>
10946
10947         getusershell: Fix documentation.
10948         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
10949         module.
10950         * doc/glibc-functions/setusershell.texi: Likewise.
10951
10952         getusershell: Provide declaration, missing on Solaris 9.
10953         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
10954         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
10955         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
10956         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
10957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10958         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
10959         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
10960         HAVE_GETUSERSHELL.
10961         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
10962
10963 2010-03-19  Bruno Haible  <bruno@clisp.org>
10964
10965         wctype: Provide iswblank function.
10966         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
10967         exists and is fine.
10968         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
10969         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
10970         * tests/test-wctype.c (main): Re-enable the iswblank tests.
10971         * doc/posix-functions/iswblank.texi: Update.
10972
10973 2010-03-19  Bruno Haible  <bruno@clisp.org>
10974
10975         Tests of module 'pty' in C++ mode.
10976         * modules/pty-tests: New file.
10977         * tests/test-pty-c++.cc: New file.
10978         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10979
10980 2010-03-19  Eric Blake  <eblake@redhat.com>
10981
10982         logb: fix documentation
10983         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
10984         1.5 declaration bug.
10985
10986         forkpty, openpty: prefer glibc's const-safe prototype
10987         * lib/forkpty.c (rpl_forkpty): New file.
10988         * lib/openpty.c (rpl_openpty): Likewise.
10989         * modules/forkpty (Files): Distribute it.
10990         * modules/openpty (Files): Likewise.
10991         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
10992         check...
10993         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
10994         replacement for for non-const BSD signature.
10995         * modules/pty (Makefile.am): Substitute witnesses.
10996         * lib/pty.in.h (forkpty, openpty): Declare replacements.
10997         * tests/test-forkpty.c: Update signature check.
10998         * tests/test-openpty.c: Likewise.
10999         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
11000         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11001
11002         forkpty, openpty: split functions into new modules
11003         * modules/pty (Makefile.am): Substitute new witnesses.
11004         (Libraries): Move library detection...
11005         * modules/forkpty: ...into new module.
11006         * modules/openpty: Another new module.
11007         * modules/pty-tests: Rename and split...
11008         * modules/forkpty-tests: ...to this...
11009         * modules/openpty-tests: ...and this.
11010         * tests/test-pty.c: Rename and split...
11011         * tests/test-forkpty.c: ...to this...
11012         * tests/test-openpty.c: ...and this.
11013         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
11014         (gl_PTY): Split library searching...
11015         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
11016         (gl_FORKPTY, gl_OPENPTY): New macros.
11017         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
11018         * NEWS: Mention the split.
11019         * MODULES.html.sh (Misc): Document the modules.
11020         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
11021         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11022
11023         pty: improve replacement header
11024         * lib/pty.in.h: New file.
11025         * modules/pty (Files): Ship it.
11026         (Makefile.am): Always build replacement.
11027         * m4/pty.m4: Rename...
11028         * m4/pty_h.m4: ...to this.
11029         (gl_PTY): Modernize setting of witness macros; update check of
11030         forkpty to take proper advantage of cache.
11031         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
11032
11033         getopt: avoid compiler warning
11034         * lib/getopt.c (attribute_hidden): Remove unused macro.
11035
11036 2010-03-18  Bruno Haible  <bruno@clisp.org>
11037
11038         Fix link errors on Solaris 8.
11039         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
11040         * modules/search-tests (test_search_c___LDADD): Likewise.
11041         * modules/signal-tests (test_signal_c___LDADD): Likewise.
11042         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
11043         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
11044         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
11045         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
11046         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
11047         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
11048
11049 2010-03-18  Bruno Haible  <bruno@clisp.org>
11050
11051         Fix bug introduced on 2010-03-14.
11052         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
11053         (gl_SPAWN_H): Require it.
11054         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
11055         Reported by Simon Josefsson.
11056
11057 2010-03-18  Bruno Haible  <bruno@clisp.org>
11058
11059         Fix typo introduced on 2009-12-31.
11060         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
11061         posix_spawn_file_actions_adddup2.
11062
11063 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
11064         and Eric Blake  <eblake@redhat.com>
11065
11066         test-vc-list-files-git: make more robust
11067         * tests/test-vc-list-files-git.sh: Unset problematic environment
11068         variables.  Chain commands together.
11069
11070 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
11071
11072         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
11073         `AC_CHECK_DECL' invocation.
11074
11075 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
11076
11077         * lib/inttostr.c (inttostr): Make sure the invocation of verify
11078         appears before executable statements. Suggested by Petr Sumbera
11079         <Petr.Sumbera@Sun.COM>.
11080
11081 2010-03-14  Bruno Haible  <bruno@clisp.org>
11082
11083         * tests/test-flock.c (test_exclusive): Comment out a test that causes
11084         portability problems. Instead use a simpler test.
11085         (main): Check that invalid arguments are rejected only on Linux.
11086
11087 2010-03-14  Bruno Haible  <bruno@clisp.org>
11088
11089         Fix bug introduced on 2009-12-31.
11090         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
11091         gl_PREREQ_SYS_H_WINSOCK2 always.
11092         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
11093         SYS_SOCKET_H variable.
11094         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
11095         Update comments.
11096         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
11097         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11098         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11099         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11100         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11101
11102 2010-03-14  Bruno Haible  <bruno@clisp.org>
11103
11104         Fix values returned by sinl, cosl.
11105         * lib/trigl.h: Add specification comments.
11106         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
11107         that combines the values from the precomputed table with the values of
11108         the Chebyshev polynomials.
11109
11110 2010-03-14  Bruno Haible  <bruno@clisp.org>
11111
11112         Fix compilation error when modules 'posix_spawn[p]' are not used.
11113         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
11114         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
11115
11116 2010-03-14  Bruno Haible  <bruno@clisp.org>
11117
11118         Fix compilation error on mingw when module 'time_r' is not used.
11119         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
11120         is 1.
11121         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
11122         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11123         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
11124         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
11125
11126 2010-03-14  Bruno Haible  <bruno@clisp.org>
11127
11128         Fix compilation error with Sun C.
11129         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
11130         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
11131         instead of GCC specific ULONG_LONG_MAX.
11132         * lib/xstrtoll.c: Likewise.
11133         * lib/xstrtoull.c: Likewise.
11134
11135 2010-03-13  Bruno Haible  <bruno@clisp.org>
11136
11137         Allow the user to disable C++ code and tests.
11138         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
11139         (gl_PROG_ANSI_CXX): Require it.
11140
11141 2010-03-13  Bruno Haible  <bruno@clisp.org>
11142
11143         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
11144         cases.
11145
11146 2010-03-13  Bruno Haible  <bruno@clisp.org>
11147
11148         Test that gnulib does not break the standard C++ headers.
11149         * tests/test-locale-c++2.cc: New file.
11150         * modules/locale-tests (Files): Add it.
11151         (Makefile.am): Compile it for test-locale-c++.
11152         * tests/test-math-c++2.cc: New file.
11153         * modules/math-tests (Files): Add it.
11154         (Makefile.am): Compile it for test-math-c++.
11155         * tests/test-signal-c++2.cc: New file.
11156         * modules/signal-tests (Files): Add it.
11157         (Makefile.am): Compile it for test-signal-c++.
11158         * tests/test-stdio-c++2.cc: New file.
11159         * modules/stdio-tests (Files): Add it.
11160         (Makefile.am): Compile it for test-stdio-c++.
11161         * tests/test-stdlib-c++2.cc: New file.
11162         * modules/stdlib-tests (Files): Add it.
11163         (Makefile.am): Compile it for test-stdlib-c++.
11164         * tests/test-string-c++2.cc: New file.
11165         * modules/string-tests (Files): Add it.
11166         (Makefile.am): Compile it for test-string-c++.
11167         * tests/test-time-c++2.cc: New file.
11168         * modules/time-tests (Files): Add it.
11169         (Makefile.am): Compile it for test-time-c++.
11170         Reported by John W. Eaton <jwe@gnu.org>.
11171
11172 2010-03-13  Bruno Haible  <bruno@clisp.org>
11173
11174         * gnulib-tool (func_usage): Clarify which options are available for
11175         --create-testdir and --create-megatestdir.
11176
11177 2010-03-13  Bruno Haible  <bruno@clisp.org>
11178
11179         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
11180         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
11181         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
11182         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11183         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
11184         when appropriate.
11185         Reported by Jim Meyering.
11186
11187 2010-03-12  Simon Josefsson  <simon@josefsson.org>
11188
11189         * gnulib-tool (func_import): Explain origin of code.
11190
11191 2010-03-12  Bruno Haible  <bruno@clisp.org>
11192
11193         Fix problem with automake's definition of CXXLINK.
11194         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
11195         Reported by Simon Josefsson and Ludovic Courtès.
11196
11197 2010-03-12  Bruno Haible  <bruno@clisp.org>
11198
11199         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
11200         stable releases.
11201
11202 2010-03-11  Bruno Haible  <bruno@clisp.org>
11203
11204         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
11205         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
11206         whether the system provides one variant or multiple variants of the
11207         function.
11208         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
11209         C++ compilers.
11210         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
11211         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
11212         Reported by Jim Meyering.
11213
11214 2010-03-09  Simon Josefsson  <simon@josefsson.org>
11215
11216         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
11217
11218 2010-03-08  Bruno Haible  <bruno@clisp.org>
11219
11220         gnulib-tool: Add support for --libtool in --create-testdir.
11221         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
11222         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
11223
11224 2010-03-08  Eric Blake  <eblake@redhat.com>
11225
11226         gnulib-tool.texi: mention possibility of git submodule
11227         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
11228         submodules.
11229         * doc/.gitignore: Ignore another generated file.
11230
11231 2010-03-08  Karl Berry  <karl@gnu.org>
11232
11233         * doc/gnulib-tool.texi (VCS Issues): Mention third option
11234         of committing gnulib files while skipping others.
11235
11236 2010-03-07  Bruno Haible  <bruno@clisp.org>
11237
11238         Tests of module 'wctype' in C++ mode.
11239         * tests/test-wctype-c++.cc: New file.
11240         * modules/wctype-tests (Files): Add it and tests/signature.h.
11241         (Depends-on): Add ansi-c++-opt.
11242         (Makefile.am): Arrange to compile and run test-wctype-c++.
11243
11244         Tests of module 'wchar' in C++ mode.
11245         * tests/test-wchar-c++.cc: New file.
11246         * modules/wchar-tests (Files): Add it and tests/signature.h.
11247         (Depends-on): Add ansi-c++-opt.
11248         (Makefile.am): Arrange to compile and run test-wchar-c++.
11249         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
11250         gl_MODULE_INDICATOR.
11251
11252         Tests of module 'unistd' in C++ mode.
11253         * tests/test-unistd-c++.cc: New file.
11254         * modules/unistd-tests (Files): Add it and tests/signature.h.
11255         (Depends-on): Add ansi-c++-opt.
11256         (Makefile.am): Arrange to compile and run test-unistd-c++.
11257         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
11258         gl_MODULE_INDICATOR.
11259
11260         Tests of module 'time' in C++ mode.
11261         * tests/test-time-c++.cc: New file.
11262         * modules/time-tests (Files): Add it and tests/signature.h.
11263         (Depends-on): Add ansi-c++-opt.
11264         (Makefile.am): Arrange to compile and run test-time-c++.
11265         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11266
11267         Tests of module 'sys_time' in C++ mode.
11268         * tests/test-sys_time-c++.cc: New file.
11269         * modules/sys_time-tests (Files): Add it and tests/signature.h.
11270         (Depends-on): Add ansi-c++-opt.
11271         (Makefile.am): Arrange to compile and run test-sys_time-c++.
11272         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
11273         gl_MODULE_INDICATOR.
11274
11275         Tests of module 'sys_stat' in C++ mode.
11276         * tests/test-sys_stat-c++.cc: New file.
11277         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
11278         (Depends-on): Add ansi-c++-opt.
11279         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
11280         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
11281         gl_MODULE_INDICATOR.
11282
11283         Tests of module 'sys_socket' in C++ mode.
11284         * tests/test-sys_socket-c++.cc: New file.
11285         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
11286         (Depends-on): Add ansi-c++-opt.
11287         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
11288         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
11289         gl_MODULE_INDICATOR.
11290
11291         Tests of module 'sys_select' in C++ mode.
11292         * tests/test-sys_select-c++.cc: New file.
11293         * modules/sys_select-tests (Files): Add it and tests/signature.h.
11294         (Depends-on): Add ansi-c++-opt.
11295         (Makefile.am): Arrange to compile and run test-sys_select-c++.
11296         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
11297         gl_MODULE_INDICATOR.
11298
11299         Tests of module 'sys_ioctl' in C++ mode.
11300         * tests/test-sys_ioctl-c++.cc: New file.
11301         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
11302         (Depends-on): Add ansi-c++-opt.
11303         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
11304         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
11305         gl_MODULE_INDICATOR.
11306
11307         Tests of module 'string' in C++ mode.
11308         * tests/test-string-c++.cc: New file.
11309         * modules/string-tests (Files): Add it and tests/signature.h.
11310         (Depends-on): Add ansi-c++-opt.
11311         (Makefile.am): Arrange to compile and run test-string-c++.
11312         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
11313         gl_MODULE_INDICATOR.
11314
11315         Tests of module 'stdlib' in C++ mode.
11316         * tests/test-stdlib-c++.cc: New file.
11317         * modules/stdlib-tests (Files): Add it and tests/signature.h.
11318         (Depends-on): Add ansi-c++-opt.
11319         (Makefile.am): Arrange to compile and run test-stdlib-c++.
11320         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
11321         gl_MODULE_INDICATOR.
11322
11323         Tests of module 'stdio' in C++ mode.
11324         * tests/test-stdio-c++.cc: New file.
11325         * modules/stdio-tests (Files): Add it and tests/signature.h.
11326         (Depends-on): Add ansi-c++-opt.
11327         (Makefile.am): Arrange to compile and run test-stdio-c++.
11328         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
11329         gl_MODULE_INDICATOR.
11330
11331         Tests of module 'spawn' in C++ mode.
11332         * tests/test-spawn-c++.cc: New file.
11333         * modules/spawn-tests (Files): Add it and tests/signature.h.
11334         (Depends-on): Add ansi-c++-opt.
11335         (Makefile.am): Arrange to compile and run test-spawn-c++.
11336         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
11337         gl_MODULE_INDICATOR.
11338
11339         Tests of module 'signal' in C++ mode.
11340         * tests/test-signal-c++.cc: New file.
11341         * modules/signal-tests (Files): Add it and tests/signature.h.
11342         (Depends-on): Add ansi-c++-opt.
11343         (Makefile.am): Arrange to compile and run test-signal-c++.
11344         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
11345         gl_MODULE_INDICATOR.
11346
11347         Tests of module 'search' in C++ mode.
11348         * tests/test-search-c++.cc: New file.
11349         * modules/search-tests (Files): Add it and tests/signature.h.
11350         (Depends-on): Add ansi-c++-opt.
11351         (Makefile.am): Arrange to compile and run test-search-c++.
11352         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
11353         gl_MODULE_INDICATOR.
11354
11355         Tests of module 'math' in C++ mode.
11356         * tests/test-math-c++.cc: New file.
11357         * modules/math-tests (Files): Add it and tests/signature.h.
11358         (Depends-on): Add ansi-c++-opt.
11359         (Makefile.am): Arrange to compile and run test-math-c++.
11360         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11361
11362         Tests of module 'locale' in C++ mode.
11363         * tests/test-locale-c++.cc: New file.
11364         * modules/locale-tests (Files): Add it and tests/signature.h.
11365         (Depends-on): Add ansi-c++-opt.
11366         (Makefile.am): Arrange to compile and run test-locale-c++.
11367         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
11368         gl_MODULE_INDICATOR.
11369
11370         Tests of module 'langinfo' in C++ mode.
11371         * tests/test-langinfo-c++.cc: New file.
11372         * modules/langinfo-tests (Files): Add it and tests/signature.h.
11373         (Depends-on): Add ansi-c++-opt.
11374         (Makefile.am): Arrange to compile and run test-langinfo-c++.
11375         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
11376         gl_MODULE_INDICATOR.
11377
11378         Tests of module 'iconv-h' in C++ mode.
11379         * tests/test-iconv-h-c++.cc: New file.
11380         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
11381         (Depends-on): Add ansi-c++-opt.
11382         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
11383
11384         Tests of module 'glob' in C++ mode.
11385         * tests/test-glob-c++.cc: New file.
11386         * modules/glob-tests (Files): Add it.
11387         (Depends-on): Add ansi-c++-opt.
11388         (Makefile.am): Arrange to compile and run test-glob-c++.
11389
11390         Tests of module 'fcntl-h' in C++ mode.
11391         * tests/test-fcntl-h-c++.cc: New file.
11392         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
11393         (Depends-on): Add ansi-c++-opt.
11394         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
11395         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
11396         gl_MODULE_INDICATOR.
11397
11398         Tests of module 'dirent' in C++ mode.
11399         * tests/test-dirent-c++.cc: New file.
11400         * modules/dirent-tests (Files): Add it and tests/signature.h.
11401         (Depends-on): Add ansi-c++-opt.
11402         (Makefile.am): Arrange to compile and run test-dirent-c++.
11403         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
11404         gl_MODULE_INDICATOR.
11405
11406         New module 'ansi-c++-opt'.
11407         * modules/ansi-c++-opt: New file.
11408         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
11409
11410         Document C++ namespace mode.
11411         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
11412
11413         wctype: Avoid #define replacements in C++ mode.
11414         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
11415         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
11416         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
11417         In C++, define a namespaced alias symbol.
11418         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
11419         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
11420         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
11421         rule.
11422
11423         wchar: Avoid #define replacements in C++ mode.
11424         * lib/wchar.in.h: Include c++defs.h.
11425         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
11426         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
11427         symbol.
11428         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
11429         * modules/wchar (Depends-on): Add c++defs.
11430         (Makefile.am): Update wchar.h rule.
11431
11432         unistd: Avoid #define replacements in C++ mode.
11433         * lib/unistd.in.h: Include c++defs.h.
11434         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
11435         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
11436         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
11437         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
11438         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
11439         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
11440         symbol.
11441         (environ): Update.
11442         * modules/unistd (Depends-on): Add c++defs.
11443         (Makefile.am): Update unistd.h rule.
11444
11445         time: Avoid #define replacements in C++ mode.
11446         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
11447         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
11448         define a namespaced alias symbol.
11449         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
11450         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
11451         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
11452         * modules/time (Depends-on): Add c++defs, warn-on-use.
11453         (Makefile.am): Update time.h rule.
11454         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11455         * modules/nanosleep (configure.ac): Likewise.
11456         * modules/strptime (configure.ac): Likewise.
11457         * modules/timegm (configure.ac): Likewise.
11458
11459         sys_time: Avoid #define replacements in C++ mode.
11460         * lib/sys_time.in.h: Include c++defs.h.
11461         (gettimeofday): In C++, define a namespaced alias symbol.
11462         * modules/sys_time (Depends-on): Add c++defs.
11463         (Makefile.am): Update sys/time.h rule.
11464
11465         sys_stat: Avoid #define replacements in C++ mode.
11466         * lib/sys_stat.in.h: Include c++defs.h.
11467         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
11468         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
11469         namespaced alias symbol.
11470         In C++, define a namespaced alias symbol.
11471         * modules/sys_stat (Depends-on): Add c++defs.
11472         (Makefile.am): Update sys/stat.h rule.
11473
11474         sys_socket: Avoid #define replacements in C++ mode.
11475         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
11476         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
11477         definitions also when the system has a <sys/socket.h>.
11478         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11479         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
11480         In C++, define a namespaced alias symbol.
11481         * modules/sys_socket (Depends-on): Add c++defs.
11482         (Makefile.am): Update sys/socket.h rule.
11483
11484         sys_select: Avoid #define replacements in C++ mode.
11485         * lib/sys_select.in.h: Include c++defs.h. Enable the function
11486         definitions also when the system has a <sys/select.h>.
11487         (select): In C++, define a namespaced alias symbol.
11488         * modules/sys_select (Depends-on): Add c++defs.
11489         (Makefile.am): Update sys/select.h rule.
11490
11491         sys_ioctl: Avoid #define replacements in C++ mode.
11492         * lib/sys_ioctl.in.h: Include c++defs.h.
11493         (ioctl): In C++, define a namespaced alias symbol.
11494         * modules/sys_ioctl (Depends-on): Add c++defs.
11495         (Makefile.am): Update sys/ioctl.h rule.
11496
11497         string: Avoid #define replacements in C++ mode.
11498         * lib/string.in.h: Include c++defs.h.
11499         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
11500         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
11501         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
11502         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
11503         strsignal, strverscmp): In C++, define a namespaced alias symbol.
11504         * modules/string (Depends-on): Add c++defs.
11505         (Makefile.am): Update string.h rule.
11506
11507         stdlib: Avoid #define replacements in C++ mode.
11508         * lib/stdlib.in.h: Include c++defs.h.
11509         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
11510         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
11511         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
11512         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
11513         symbol.
11514         * modules/stdlib (Depends-on): Add c++defs.
11515         (Makefile.am): Update stdlib.h rule.
11516
11517         stdio: Avoid #define replacements in C++ mode.
11518         * lib/stdio.in.h: Include c++defs.h.
11519         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
11520         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
11521         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
11522         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
11523         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
11524         namespaced alias symbol.
11525         * modules/stdio (Depends-on): Add c++defs.
11526         (Makefile.am): Update stdio.h rule.
11527
11528         spawn: Avoid #define replacements in C++ mode.
11529         * lib/spawn.in.h: Include c++defs.h.
11530         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11531         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11532         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11533         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11534         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11535         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11536         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11537         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
11538         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
11539         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11540         In C++, define a namespaced alias symbol.
11541         * modules/spawn (Depends-on): Add c++defs.
11542         (Makefile.am): Update spawn.h rule.
11543
11544         signal: Avoid #define replacements in C++ mode.
11545         * lib/signal.in.h: Include c++defs.h.
11546         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11547         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
11548         namespaced alias symbol.
11549         * modules/signal (Depends-on): Add c++defs.
11550         (Makefile.am): Update signal.h rule.
11551
11552         search: Avoid #define replacements in C++ mode.
11553         * lib/search.in.h: Include c++defs.h.
11554         (_gl_search_compar_fn, _gl_search_action_fn): New types.
11555         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
11556         symbol.
11557         * modules/search (Depends-on): Add c++defs.
11558         (Makefile.am): Update search.h rule.
11559
11560         math: Avoid #define replacements in C++ mode.
11561         * lib/math.in.h: Include c++defs.h.
11562         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
11563         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
11564         trunc, truncl): In C++, define a namespaced alias symbol.
11565         * modules/math (Depends-on): Add c++defs.
11566         (Makefile.am): Update math.h rule.
11567
11568         locale: Avoid #define replacements in C++ mode.
11569         * lib/locale.in.h: Include c++defs.h.
11570         (duplocale): In C++, define a namespaced alias symbol.
11571         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
11572         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
11573         * modules/locale (Depends-on): Add c++defs.
11574         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
11575
11576         langinfo: Avoid #define replacements in C++ mode.
11577         * lib/langinfo.in.h: Include c++defs.h.
11578         (nl_langinfo): In C++, define a namespaced alias symbol.
11579         * modules/langinfo (Depends-on): Add c++defs.
11580         (Makefile.am): Update langinfo.h rule.
11581
11582         iconv-h: Avoid #define replacements in C++ mode.
11583         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
11584         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
11585         symbol.
11586         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
11587         whenever iconv is present.
11588         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
11589         (Makefile.am): Update iconv.h rule.
11590
11591         glob: Avoid #define replacements in C++ mode.
11592         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
11593         (_gl_glob_errfunc_fn): New type.
11594         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
11595         symbol.
11596         * modules/glob (Depends-on): Add c++defs, warn-on-use.
11597         (Makefile.am): Update glob.h rule.
11598
11599         fcntl-h: Avoid #define replacements in C++ mode.
11600         * lib/fcntl.in.h: Include c++defs.h.
11601         (fcntl, open, openat): In C++, define a namespaced alias symbol.
11602         * modules/fcntl-h (Depends-on): Add c++defs.
11603         (Makefile.am): Update fcntl.h rule.
11604
11605         dirent: Avoid #define replacements in C++ mode.
11606         * lib/dirent.in.h: Include c++defs.h.
11607         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
11608         namespaced alias symbol.
11609         (dirfd): Update declaration.
11610         * modules/dirent (Depends-on): Add c++defs.
11611         (Makefile.am): Update dirent.h rule.
11612
11613         ctype: Make it usable in C++ code.
11614         * lib/ctype.in.h: Include c++defs.h.
11615         (isblank): Declare as extern "C".
11616         * modules/ctype (Depends-on): Add c++defs.
11617         (Makefile.am): Update ctype.h rule.
11618
11619         New module 'c++defs'.
11620         * modules/c++defs: New file.
11621         * build-aux/c++defs.h: New file.
11622         Reported by John W. Eaton <jwe@gnu.org>.
11623
11624 2010-03-07  Bruno Haible  <bruno@clisp.org>
11625
11626         logb: Provide missing declaration for Cygwin.
11627         * lib/math.in.h (logb): New declaration.
11628         * m4/logb.m4: New file.
11629         * modules/logb (Files): Add m4/logb.m4.
11630         (Depends-on): Add math.
11631         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
11632         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
11633         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
11634         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
11635         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
11636
11637 2010-03-07  Bruno Haible  <bruno@clisp.org>
11638
11639         Fix test-cond link error.
11640         * tests/test-cond.c: Include <stdio.h>.
11641
11642 2010-03-07  Bruno Haible  <bruno@clisp.org>
11643
11644         Fix test-dirent-safer link error.
11645         * modules/dirent-safer-tests (Makefile.am): Define
11646         test_dirent_safer_LDADD.
11647
11648 2010-03-07  Bruno Haible  <bruno@clisp.org>
11649
11650         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
11651         among default module list.
11652
11653 2010-03-07  Bruno Haible  <bruno@clisp.org>
11654
11655         Fix link error on platforms with GNU libiconv.
11656         * modules/unistr/u8-strcoll-tests (Makefile): Define
11657         test_u8_strcoll_LDADD.
11658         * modules/unistr/u16-strcoll-tests (Makefile): Define
11659         test_u16_strcoll_LDADD.
11660         * modules/unistr/u32-strcoll-tests (Makefile): Define
11661         test_u32_strcoll_LDADD.
11662
11663 2010-03-07  Bruno Haible  <bruno@clisp.org>
11664
11665         Use POSIX declarations for socket functions.
11666         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
11667         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
11668         rpl_sendto): Change declaration to match POSIX.
11669         * lib/connect.c (rpl_connect): Likewise.
11670         * lib/accept.c (rpl_accept): Likewise.
11671         * lib/bind.c (rpl_bind): Likewise.
11672         * lib/getpeername.c (rpl_getpeername): Likewise.
11673         * lib/getsockname.c (rpl_getsockname): Likewise.
11674         * lib/recv.c (rpl_recv): Likewise.
11675         * lib/send.c (rpl_send): Likewise.
11676         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11677         * lib/sendto.c (rpl_sendto): Likewise.
11678
11679 2010-03-06  Bruno Haible  <bruno@clisp.org>
11680
11681         Clarify access, euidaccess, faccessat.
11682         * doc/posix-functions/faccessat.texi: Mention security problem under
11683         "Other problems", not "Portability problems".
11684         * doc/posix-functions/access.texi: Likewise. Mention a related security
11685         problem.
11686         * doc/glibc-functions/euidaccess.texi: Mention security problems.
11687         * lib/euidaccess.c: Add comments about platforms.
11688         * lib/unistd.in.h (access, euidaccess): Add warnings.
11689
11690 2010-03-07  Bruno Haible  <bruno@clisp.org>
11691
11692         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
11693         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
11694         (POSIX_SPAWN_SETSCHEDULER): Likewise.
11695         (POSIX_SPAWN_USEVFORK): Define in a way that works when
11696         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11697         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
11698         declare when POSIX_SPAWN_SETSCHEDULER is zero.
11699         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
11700         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
11701         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
11702         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
11703         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
11704         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
11705         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
11706         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
11707         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
11708         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
11709         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
11710         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
11711         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
11712         Likewise.
11713         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
11714         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
11715         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
11716         Likewise.
11717         * tests/test-spawn.c (main): Make it work when
11718         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11719
11720 2010-03-07  Bruno Haible  <bruno@clisp.org>
11721
11722         Fix incorrect Makefile.am generation in German locale.
11723         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11724         Execute sed command with character range in C locale.
11725
11726 2010-03-06  Bruno Haible  <bruno@clisp.org>
11727
11728         Tests for module 'iconv-h'.
11729         * modules/iconv-h-tests: New file.
11730         * tests/test-iconv-h.c: New file.
11731
11732         New module 'iconv-h'.
11733         * modules/iconv-h: New file.
11734         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
11735         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
11736         (configure.ac): Remove gl_ICONV_H.
11737         (Makefile.am): Remove rule for iconv.h.
11738
11739 2010-03-06  Bruno Haible  <bruno@clisp.org>
11740
11741         More consistent naming of *.m4 files.
11742         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
11743         * modules/wctype (Files): Update.
11744
11745         More consistent naming of *.m4 files.
11746         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
11747         * modules/wchar (Files): Update.
11748
11749 2010-03-06  Jim Meyering  <meyering@redhat.com>
11750
11751         euidaccess: relax license to LGPLv2+
11752         * modules/euidaccess (License): Relax to LGPLv2+.
11753
11754 2010-03-06  Bruno Haible  <bruno@clisp.org>
11755
11756         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
11757         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
11758         (Makefile.am): Augment lib_SOURCES instead.
11759
11760 2010-03-04  Jim Meyering  <meyering@redhat.com>
11761
11762         utime: remove obsolete module
11763         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
11764         unnecessary for years, and has been marked as obsolete for 10 months.
11765         * modules/utime: Remove file.
11766         * lib/utime.c: Remove file.
11767         * m4/utime.m4: Remove file.
11768         * m4/utimes-null.m4: Remove file.
11769         * doc/posix-functions/utime.texi (utime): Remove reference to
11770         the module.  Move the sole "fixed by gnulib" item into the
11771         "problems not fixed by Gnulib" list.
11772         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
11773
11774 2010-03-05  Simon Josefsson  <simon@josefsson.org>
11775
11776         * modules/exit (License): Relax license to LGPLv2+.
11777         (Status): Mark as obsolete.
11778         * NEWS: Mention deprecated 'exit' module.
11779         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
11780         of now obsolete 'exit'.
11781
11782 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11783
11784         fts-lgpl: remove unused module
11785         * modules/fts-lgpl: Remove.
11786         * MODULES.html.sh (func_all_modules): Adjust.
11787         * check-module (find_included_lib_files): Adjust.
11788         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
11789
11790 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
11791
11792         copy-acl: enhance Solaris ACL error handling
11793         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
11794         * lib/set-mode-acl.c (qset_acl): Likewise.
11795
11796 2010-03-02  Bruno Haible  <bruno@clisp.org>
11797
11798         spawn: Don't override the system defined values on FreeBSD 8.
11799         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
11800         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
11801         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
11802         if HAVE_POSIX_SPAWN is 1.
11803         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
11804
11805 2010-03-01  Bruno Haible  <bruno@clisp.org>
11806
11807         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
11808         regarding Automake.
11809
11810 2010-02-25  Bruno Haible  <bruno@clisp.org>
11811
11812         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
11813         * gnulib-tool: Define 'echo' as a function only before the ksh alias
11814         setting, not afterwards.
11815         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11816
11817 2010-02-24  Eric Blake  <eblake@redhat.com>
11818
11819         bootstrap, git-version-gen: use timestamp
11820         * build-aux/git-version-gen (scriptversion): Force UTC.
11821         * build-aux/bootstrap (scriptversion): New variable.
11822
11823         bootstrap: allow older git
11824         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
11825         older than 1.6.4.  Requested by the libvirt project.
11826
11827 2010-02-23  Eric Blake  <eblake@redhat.com>
11828
11829         warn-on-use: work with old autoconf
11830         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
11831         AS_VAR semantics of autoconf 2.60.
11832         Reported by Bruno Haible.
11833
11834         bootstrap: improve some comments
11835         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
11836         clarification comments.
11837
11838         gettimeofday: provide correct function
11839         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
11840         when replacement is declared, otherwise provide gettimeofday.
11841         Reported by Michael Goffioul.
11842
11843 2010-02-23  Jim Meyering  <meyering@redhat.com>
11844
11845         lib-ignore: relax license to "unlimited", not LGPLv2+
11846         * modules/lib-ignore (License): Relax to "unlimited".
11847
11848 2010-02-23  Jim Meyering  <meyering@redhat.com>
11849
11850         lib-ignore: relax license to LGPLv2+
11851         * modules/lib-ignore (License): Relax to LGPLv2+.
11852
11853 2010-02-22  Eric Blake  <eblake@redhat.com>
11854
11855         lseek: avoid bash 3.2 broken pipe bug
11856         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
11857         warning from bash 3.2.
11858         Reported by Ben Pfaff, with analysis from Bruno Haible.
11859
11860         bootstrap: support non-FSF copyright holder
11861         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
11862         bootstrap.conf override of COPYRIGHT_HOLDER.
11863         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
11864
11865         bootstrap: interoperate with gettext 0.14.1
11866         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
11867
11868         bootstrap: allow for alternate submodule location
11869         * build-aux/bootstrap (gnulib_path): New variable; use instead of
11870         hardcoding submodule location.
11871         (gnulib_mk): Allow direct use of Makefile.am.
11872
11873         bootstrap: use GNULIB_SRCDIR to reduce disk usage
11874         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
11875         rather than reconfiguring where the submodule points.
11876
11877         gettimeofday: restore support for platforms that lack function
11878         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
11879         replacement if function is missing.
11880         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
11881         * modules/sys_time (Makefile.am): Substitute it.
11882         * lib/sys_time.in.h (gettimeofday): Check it.
11883         Reported by Michael Goffioul.
11884
11885 2010-02-21  Bruno Haible  <bruno@clisp.org>
11886
11887         * lib/stdio.in.h (obstack_printf): Fix typo.
11888
11889 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
11890
11891         vc-list-files: use bzr ls's -R option
11892         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
11893         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
11894
11895 2010-02-21  Jim Meyering  <meyering@redhat.com>
11896
11897         init.sh: fix EXEEXT shims to work also for names like test-prog
11898         * tests/init.sh: Re-exec a better shell, when needed.
11899         If the current shell lacks support for posix $(...), an init.sh-using
11900         test will now try to find a shell that supports that.  If EXEEXT is
11901         nonempty, we also require support for hyphen-in-alias-name and shell
11902         substitutions like ${var#glob}.  Failure to find such a shell results
11903         in a skipped test.
11904
11905 2010-02-21  Bruno Haible  <bruno@clisp.org>
11906
11907         Really work around around "broken pipe" error message from bash 3.2.
11908         * gnulib-tool (func_reset_sigpipe): Remove function.
11909         (echo): In bash 3.2, define to a function that uses printf.
11910         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
11911
11912 2010-02-20  Bruno Haible  <bruno@clisp.org>
11913
11914         Restore support for automake 1.9.6 with autoconf 2.61.
11915         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
11916         Reported by James Youngman <jay@gnu.org>.
11917
11918 2010-02-20  Bruno Haible  <bruno@clisp.org>
11919
11920         Improve *printf warning condition.
11921         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
11922         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
11923         and the function is overridden due to SIGPIPE emulation.
11924
11925 2010-02-20  Bruno Haible  <bruno@clisp.org>
11926
11927         * lib/stdio.in.h: Tweak comments.
11928
11929 2010-02-19  Bruno Haible  <bruno@clisp.org>
11930
11931         Make it easier to find modules. New gnulib-tool option '--find'.
11932         * gnulib-tool: New option --find.
11933         (func_usage): Document it.
11934         (func_sanitize_modulelist): New function, extracted from
11935         func_all_modules.
11936         (func_all_modules): Invoke it.
11937         * doc/gnulib-tool.texi (Which modules?): New node.
11938
11939 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
11940
11941         * lib/sys_select.in.h: Provide select replacement even if
11942         sys/select.h exists on a system, for Interix.
11943
11944 2010-02-18  Jim Meyering  <meyering@redhat.com>
11945
11946         init.sh: don't use $(...) just yet
11947         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
11948         to accommodate e.g., Solaris' /bin/sh.
11949
11950 2010-02-17  Bruno Haible  <bruno@clisp.org>
11951
11952         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
11953         Reported by Ludovic Courtès <ludo@gnu.org>.
11954
11955 2010-02-16  Simon Josefsson  <simon@josefsson.org>
11956
11957         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
11958         linking with -lintl.
11959
11960 2010-02-17  Simon Josefsson  <simon@josefsson.org>
11961
11962         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
11963         if not provided by the system's netdb.h.  Reported by
11964         ludo@gnu.org (Ludovic Courtès).
11965
11966 2010-02-15  Jim Meyering  <meyering@redhat.com>
11967
11968         init.sh: improve portability and efficiency
11969         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
11970         "dummy" in a for loop.
11971         Use '!', not '^' to select the complement of a character set used
11972         in a "case" statement.
11973         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
11974         Suggestions from Eric Blake.
11975
11976         init.sh: automatically accommodate programs with the .exe suffix
11977         Automatically arrange for an invocation of "prog" to execute the
11978         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
11979         may use the simpler "prog", yet still work when built on a system
11980         that requires specifying the added suffix.
11981         Do this by constructing a function named "prog" that invokes
11982         "prog.exe" for each .exe file in selected directories.
11983         * tests/init.sh (find_exe_basenames_): New function.
11984         (create_exe_shim_functions_): New function.
11985         (path_prepend_): Use it.
11986
11987         maint.mk: mark syntax-check sc_*.m rules as .PHONY
11988         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
11989         "make -t syntax-check" doesn't create a ton of sc_*.m files.
11990
11991 2010-02-14  Jim Meyering  <meyering@redhat.com>
11992
11993         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
11994         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
11995         (sc_prohibit_hash_pjw_without_use): New rule.
11996
11997         maint.mk: allow the default upload destination dir to be overridden
11998         * top/maint.mk (upload_dest_dir_): Define with a default that
11999         preserves the status quo.
12000         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
12001         Reported by Peter Simons.
12002
12003         maint.mk: prohibit inclusion of "hash.h" without_use
12004         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
12005
12006 2010-02-10  Jim Meyering  <meyering@redhat.com>
12007
12008         maint.mk: prohibit inclusion of "ignore-value.h" without_use
12009         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
12010
12011 2010-02-09  Eric Blake  <ebb9@byu.net>
12012         and Bruno Haible  <bruno@clisp.org>
12013
12014         obstack-printf-posix: ensure declaration
12015         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
12016         extracted from gl_FUNC_OBSTACK_PRINTF.
12017         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
12018         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
12019         Likewise.
12020         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
12021         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
12022         0.
12023
12024 2010-02-08  Bruno Haible  <bruno@clisp.org>
12025
12026         gnulib-tool: Fix typo in 2010-02-07 commit.
12027         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
12028         Reported by Eric Blake.
12029
12030 2010-02-07  Bruno Haible  <bruno@clisp.org>
12031
12032         gnulib-tool: Fix up caching patches.
12033         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
12034         option --no-cache. Use associative arrays when supported by the shell.
12035         (sed_comments): New variable.
12036         (modcache): Renamed from do_cache.
12037         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
12038         abbreviate unnecessarily.
12039         (have_associative): New variable.
12040         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
12041         way also for ksh and zsh.
12042         (func_init_sed_convert_to_cache_statements): New function, extracted
12043         from func_cache_lookup_module. Add support for associative arrays.
12044         Don't set the c_MODULE_cached variable here. Ignore all lines before
12045         the first field header. Remove only the final newline, not all trailing
12046         newlines. Support empty fields correctly. Limit the use of 'eval' to
12047         assignments.
12048         (func_get_description, func_get_status, func_get_notice,
12049         func_get_applicability, func_get_filelist, func_get_dependencies,
12050         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
12051         func_get_automake_snippet, func_get_include_directive,
12052         func_get_link_directive, func_get_license, func_get_maintainer):
12053         Update documentation. List the unoptimized code first. Add support for
12054         associative arrays. Limit the use of 'eval' to assignments.
12055         (func_get_applicability): Undo stylistic pessimisations.
12056         (func_get_automake_snippet, func_get_include_directive): Reduce code
12057         duplication.
12058         (func_modules_transitive_closure, func_modules_add_dummy,
12059         func_modules_notice, func_modules_to_filelist, func_add_file,
12060         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
12061         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
12062         func_create_testdir, func_create_megatestdir): Update documentation.
12063
12064 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12065
12066         * gnulib-tool (func_cache_lookup_module): Store the module name
12067         belonging to the cache variable; error out if two different
12068         module names map to the same cache variable name.
12069
12070 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12071
12072         gnulib-tool: Make caching optional.
12073         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
12074         Update matching short versions of --no-changelog.
12075         (func_usage): Update.
12076         (sed_extract_cache_prog): Renamed from ...
12077         (sed_extract_prog): ... this; revert to old extraction script.
12078         (func_get_description, func_get_status)
12079         (func_get_notice, func_get_applicability, func_get_filelist)
12080         (func_get_dependencies, func_get_autoconf_early_snippet)
12081         (func_get_autoconf_snippet, func_get_automake_snippet)
12082         (func_get_include_directive, func_get_link_directive)
12083         (func_get_license, func_get_maintainer): If $do_cache is false,
12084         use old, non-caching extraction scripts.
12085         Suggestion by Bruno Haible.
12086
12087 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12088
12089         gnulib-tool: cache module metainformation.
12090         * gnulib-tool (sed_extract_prog): Match newline before each
12091         header, and rewrite header to a shell variable suffix.
12092         (func_cache_var, func_cache_lookup_module): New functions,
12093         to turn a module name into a cache variable prefix, and to
12094         look up and cache module metainformation.
12095         (func_get_description, func_get_status)
12096         (func_get_notice, func_get_applicability, func_get_filelist)
12097         (func_get_dependencies, func_get_autoconf_early_snippet)
12098         (func_get_autoconf_snippet, func_get_automake_snippet)
12099         (func_get_include_directive, func_get_link_directive)
12100         (func_get_license, func_get_maintainer): Use
12101         func_cache_lookup_module.
12102
12103 2010-02-07  Bruno Haible  <bruno@clisp.org>
12104
12105         fnctl: Fix missing dependency.
12106         * modules/fcntl (Depends-on): Add getdtablesize.
12107         Reported by John W. Eaton <jwe@gnu.org>.
12108
12109 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12110
12111         Argp: fix recognition of short alias options.
12112
12113         * lib/argp-parse.c (convert_options): Fix improper use of
12114         `|' between character values.
12115         * tests/test-argp.c (group1_option): New alias option
12116         --read (-r).
12117         (group1_parser): Special handling for 'r'.
12118         (test15): New test case.
12119         (test_fun): Add test15.
12120         * tests/test-argp-2.sh: Update expected --help and --usage
12121         outputs.
12122
12123 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12124
12125         * tests/test-argp.c: Fix indentation.
12126
12127 2010-02-04  Eric Blake  <ebb9@byu.net>
12128
12129         gettimeofday: expose type of second argument
12130         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
12131         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
12132         * tests/test-gettimeofday.c: Use it to silence warning.
12133         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
12134         the issue.
12135
12136 2010-02-03  Jim Meyering  <meyering@redhat.com>
12137
12138         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
12139         * lib/regcomp.c (TYPE_SIGNED): Define.
12140         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
12141
12142         regcomp.c: avoid a new -Wshadow warning
12143         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
12144
12145 2010-02-01  Jim Meyering  <meyering@redhat.com>
12146
12147         removing useless parentheses in cpp #define directives
12148         For motivation, see commit c0221df4, "define STREQ(a,b)
12149         consistently, removing useless parentheses"
12150         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
12151         * lib/mountlist.c (MNT_IGNORE): Likewise.
12152         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
12153
12154 2010-02-01  Eric Blake  <ebb9@byu.net>
12155
12156         sys_time: use link-warning
12157         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
12158         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
12159         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
12160         * modules/sys_time (Depends-on): Add warn-on-use.
12161         (Makefile.am): Always build replacement.
12162         (configure.ac): Update substitutions.
12163         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
12164         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
12165         bother with SYS_TIME_H.
12166         * modules/gettimeofday (configure.ac): Declare indicator.
12167         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
12168         in use.
12169
12170         closein-tests: silence compiler warning
12171         * tests/test-closein.c (main): Ignore fread result.
12172         * modules/closein-tests (Depends-on): Add ignore-value.
12173
12174         tests: silence warning about system return
12175         * tests/test-areadlink-with-size.c (main): Ignore system result.
12176         * tests/test-areadlink.c (main): Likewise.
12177         * tests/test-areadlinkat-with-size.c (main): Likewise.
12178         * tests/test-areadlinkat.c (main): Likewise.
12179         * tests/test-canonicalize-lgpl.c (main): Likewise.
12180         * tests/test-canonicalize.c (main): Likewise.
12181         * tests/test-chown.c (main): Likewise.
12182         * tests/test-fchownat.c (main): Likewise.
12183         * tests/test-fdutimensat.c (main): Likewise.
12184         * tests/test-fstatat.c (main): Likewise.
12185         * tests/test-futimens.c (main): Likewise.
12186         * tests/test-lchown.c (main): Likewise.
12187         * tests/test-link.c (main): Likewise.
12188         * tests/test-linkat.c (main): Likewise.
12189         * tests/test-lstat.c (main): Likewise.
12190         * tests/test-mkdir.c (main): Likewise.
12191         * tests/test-mkdirat.c (main): Likewise.
12192         * tests/test-mkfifo.c (main): Likewise.
12193         * tests/test-mkfifoat.c (main): Likewise.
12194         * tests/test-mknod.c (main): Likewise.
12195         * tests/test-readlink.c (main): Likewise.
12196         * tests/test-remove.c (main): Likewise.
12197         * tests/test-rename.c (main): Likewise.
12198         * tests/test-renameat.c (main): Likewise.
12199         * tests/test-rmdir.c (main): Likewise.
12200         * tests/test-symlink.c (main): Likewise.
12201         * tests/test-symlinkat.c (main): Likewise.
12202         * tests/test-unlink.c (main): Likewise.
12203         * tests/test-unlinkat.c (main): Likewise.
12204         * tests/test-utimens.c (main): Likewise.
12205         * tests/test-utimensat.c (main): Likewise.
12206         * modules/areadlink-tests (Depends-on): Add ignore-value.
12207         * modules/areadlink-with-size-tests (Depends-on): Likewise.
12208         * modules/areadlinkat-tests (Depends-on): Likewise.
12209         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
12210         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
12211         * modules/canonicalize-tests (Depends-on): Likewise.
12212         * modules/chown-tests (Depends-on): Likewise.
12213         * modules/fdutimensat-tests (Depends-on): Likewise.
12214         * modules/futimens-tests (Depends-on): Likewise.
12215         * modules/lchown-tests (Depends-on): Likewise.
12216         * modules/link-tests (Depends-on): Likewise.
12217         * modules/linkat-tests (Depends-on): Likewise.
12218         * modules/lstat-tests (Depends-on): Likewise.
12219         * modules/mkdir-tests (Depends-on): Likewise.
12220         * modules/mkfifo-tests (Depends-on): Likewise.
12221         * modules/mkfifoat-tests (Depends-on): Likewise.
12222         * modules/mknod-tests (Depends-on): Likewise.
12223         * modules/openat-tests (Depends-on): Likewise.
12224         * modules/readlink-tests (Depends-on): Likewise.
12225         * modules/remove-tests (Depends-on): Likewise.
12226         * modules/rename-tests (Depends-on): Likewise.
12227         * modules/renameat-tests (Depends-on): Likewise.
12228         * modules/rmdir-tests (Depends-on): Likewise.
12229         * modules/symlink-tests (Depends-on): Likewise.
12230         * modules/symlinkat-tests (Depends-on): Likewise.
12231         * modules/unlink-tests (Depends-on): Likewise.
12232         * modules/utimens-tests (Depends-on): Likewise.
12233         * modules/utimensat-tests (Depends-on): Likewise.
12234
12235 2010-01-31  Bruno Haible  <bruno@clisp.org>
12236
12237         Perform the same test for many <math.h> functions.
12238         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
12239         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
12240         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
12241         of gl_MATHFUNC.
12242         * modules/acos (configure.ac): Likewise.
12243         * modules/asin (configure.ac): Likewise.
12244         * modules/atan (configure.ac): Likewise.
12245         * modules/atan2 (configure.ac): Likewise.
12246         * modules/cbrt (configure.ac): Likewise.
12247         * modules/copysign (configure.ac): Likewise.
12248         * modules/cos (configure.ac): Likewise.
12249         * modules/cosh (configure.ac): Likewise.
12250         * modules/erf (configure.ac): Likewise.
12251         * modules/erfc (configure.ac): Likewise.
12252         * modules/exp (configure.ac): Likewise.
12253         * modules/fmod (configure.ac): Likewise.
12254         * modules/hypot (configure.ac): Likewise.
12255         * modules/j0 (configure.ac): Likewise.
12256         * modules/j1 (configure.ac): Likewise.
12257         * modules/jn (configure.ac): Likewise.
12258         * modules/lgamma (configure.ac): Likewise.
12259         * modules/log (configure.ac): Likewise.
12260         * modules/log10 (configure.ac): Likewise.
12261         * modules/log1p (configure.ac): Likewise.
12262         * modules/pow (configure.ac): Likewise.
12263         * modules/remainder (configure.ac): Likewise.
12264         * modules/sin (configure.ac): Likewise.
12265         * modules/sinh (configure.ac): Likewise.
12266         * modules/tan (configure.ac): Likewise.
12267         * modules/tanh (configure.ac): Likewise.
12268         * modules/y0 (configure.ac): Likewise.
12269         * modules/y1 (configure.ac): Likewise.
12270         * modules/yn (configure.ac): Likewise.
12271         Suggested by Paolo Bonzini.
12272
12273 2010-01-31  Bruno Haible  <bruno@clisp.org>
12274
12275         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
12276
12277 2010-01-31  Bruno Haible  <bruno@clisp.org>
12278
12279         Work around getdelim() bug on FreeBSD 8.0.
12280         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
12281         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
12282         not work.
12283         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
12284         is 1.
12285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
12286         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
12287         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
12288         a non-zero size.
12289         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
12290
12291 2010-01-31  Bruno Haible  <bruno@clisp.org>
12292
12293         Work around getline() bug on FreeBSD 8.0.
12294         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
12295         and a non-zero size.
12296         * tests/test-getline.c (main): Likewise.
12297         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
12298         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
12299
12300 2010-01-28  Eric Blake  <ebb9@byu.net>
12301
12302         regex: fix build failure
12303         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
12304         platforms.
12305
12306 2010-01-28  Jim Meyering  <meyering@redhat.com>
12307
12308         regex: do not ignore memory allocation failure
12309         * lib/regex_internal.c (create_cd_newstate): Detect
12310         re_node_set_init_copy failure.   Extracted from glibc commit
12311         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12312
12313         regex: sync more white-space changes from libc
12314         * lib/regex_internal.c: White-space only changes.
12315         * lib/regexec.c: Likewise.
12316
12317         regex: add many uses of __attribute_warn_unused_result__
12318         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
12319         * lib/regexec.c: Likewise.
12320         Extracted from a messy glibc commit.
12321
12322         regcomp.c: spelling and merge-artifact from glibc
12323         * lib/regcomp.c: Merge remainder of glibc's
12324         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12325
12326         regcomp.c: sync white-space changes from glibc
12327         * lib/regcomp.c: Merge to accommodate white space
12328         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12329
12330         regcomp.c: do not ignore internal return values
12331         * lib/regcomp.c: Do not ignore internal return values.
12332         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
12333         but without its white-space changes and spelling fixes.
12334
12335         regex_internal.h: define __attribute_warn_unused_result__
12336         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
12337
12338         maint: add a syntax-check rule to check for vulnerable Makefile.in
12339         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
12340
12341 2010-01-27  Jim Meyering  <meyering@redhat.com>
12342
12343         ncftpput-ftp: clean up spaces
12344         * build-aux/ncftpput-ftp: Make Copyright line consistent.
12345         Remove trailing blanks.
12346
12347 2010-01-27  Simon Josefsson  <simon@josefsson.org>
12348
12349         * build-aux/git-version-gen: Fix copyright statement.
12350         * build-aux/gnupload: Likewise.
12351         * tests/test-arcfour.c: Likewise.
12352         * tests/test-arctwo.c: Likewise.
12353         * tests/test-count-one-bits.c: Likewise.
12354         * tests/test-crc.c: Likewise.
12355         * tests/test-des.c: Likewise.
12356         * tests/test-gc-arcfour.c: Likewise.
12357         * tests/test-gc-arctwo.c: Likewise.
12358         * tests/test-gc-des.c: Likewise.
12359         * tests/test-gc-hmac-md5.c: Likewise.
12360         * tests/test-gc-hmac-sha1.c: Likewise.
12361         * tests/test-gc-md2.c: Likewise.
12362         * tests/test-gc-md4.c: Likewise.
12363         * tests/test-gc-md5.c: Likewise.
12364         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12365         * tests/test-gc-rijndael.c: Likewise.
12366         * tests/test-gc-sha1.c: Likewise.
12367         * tests/test-gc.c: Likewise.
12368         * tests/test-gethostname.c: Likewise.
12369         * tests/test-gettimeofday.c: Likewise.
12370         * tests/test-hash.c: Likewise.
12371         * tests/test-hmac-md5.c: Likewise.
12372         * tests/test-hmac-sha1.c: Likewise.
12373         * tests/test-md2.c: Likewise.
12374         * tests/test-md4.c: Likewise.
12375         * tests/test-md5.c: Likewise.
12376         * tests/test-memchr.c: Likewise.
12377         * tests/test-memchr2.c: Likewise.
12378         * tests/test-memcmp.c: Likewise.
12379         * tests/test-memmem.c: Likewise.
12380         * tests/test-memrchr.c: Likewise.
12381         * tests/test-rawmemchr.c: Likewise.
12382         * tests/test-read-file.c: Likewise.
12383         * tests/test-rijndael.c: Likewise.
12384         * tests/test-sockets.c: Likewise.
12385         * tests/test-strchrnul.c: Likewise.
12386         * tests/test-strstr.c: Likewise.
12387         * tests/test-strtod.c: Likewise.
12388         * build-aux/ncftpput-ftp: Likewise.
12389
12390 2010-01-26  Eric Blake  <ebb9@byu.net>
12391
12392         ignore-value: update recommended header name
12393         * modules/ignore-value (Include): Only use <> for headers that
12394         exist in glibc.
12395
12396 2010-01-26  Jim Meyering  <meyering@redhat.com>
12397
12398         test-userspec.c: avoid compiler warnings
12399         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
12400         and "initialization discards qualifiers..." warnings.
12401         Put the first "uid" in its own scope, and make char* members "const".
12402
12403 2010-01-25  Bruno Haible  <bruno@clisp.org>
12404
12405         gnulib-tool: Make warning diagnostics consistent.
12406         * gnulib-tool (func_warning): New function.
12407         Use it everywhere where gnulib-tool produces output to stderr and it is
12408         not a fatal error.
12409
12410 2010-01-25  Bruno Haible  <bruno@clisp.org>
12411
12412         Fix test dependencies.
12413         * modules/xstrtol-tests (Depends-on): Add inttypes.
12414         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
12415
12416 2010-01-25 Pádraig Brady <P@draigBrady.com>
12417
12418         syntax-check: detect incorrect boolean macro values in config.h
12419         * modules/maintainer-makefile (configure.ac): Parameterize the location
12420         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
12421         The logic is from Eric Blake and the location indicated by Jim Meyering.
12422         Note the more natural CONFIG_HEADER name is prohibited by automake
12423         for backwards compatibility reasons.
12424         * top/maint.mk (sc_Wundef_boolean): New rule.
12425
12426 2010-01-25  Jim Meyering  <meyering@redhat.com>
12427
12428         bootstrap: detect MacOS 10.6's shasum, too
12429         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
12430         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
12431
12432 2010-01-23  Jim Meyering  <meyering@redhat.com>
12433
12434         xstrtoll: new module
12435         * modules/xstrtoll: New file.
12436         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
12437         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
12438         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
12439         ./configure fails if you use this module and lack "long long".
12440         * modules/xstrtoll-tests: New module.
12441         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
12442         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
12443         new init.sh-based test framework.
12444
12445 2010-01-24  Bruno Haible  <bruno@clisp.org>
12446
12447         Tests for module 'yn'.
12448         * modules/yn-tests: New file.
12449         * tests/test-yn.c: New file.
12450
12451         Tests for module 'y1'.
12452         * modules/y1-tests: New file.
12453         * tests/test-y1.c: New file.
12454
12455         Tests for module 'y0'.
12456         * modules/y0-tests: New file.
12457         * tests/test-y0.c: New file.
12458
12459         Tests for module 'tanh'.
12460         * modules/tanh-tests: New file.
12461         * tests/test-tanh.c: New file.
12462
12463         Tests for module 'tan'.
12464         * modules/tan-tests: New file.
12465         * tests/test-tan.c: New file.
12466
12467         Tests for module 'sqrt'.
12468         * modules/sqrt-tests: New file.
12469         * tests/test-sqrt.c: New file.
12470
12471         Tests for module 'sinh'.
12472         * modules/sinh-tests: New file.
12473         * tests/test-sinh.c: New file.
12474
12475         Tests for module 'sin'.
12476         * modules/sin-tests: New file.
12477         * tests/test-sin.c: New file.
12478
12479         Tests for module 'rint'.
12480         * modules/rint-tests: New file.
12481         * tests/test-rint.c: New file.
12482
12483         Tests for module 'remainder'.
12484         * modules/remainder-tests: New file.
12485         * tests/test-remainder.c: New file.
12486
12487         Tests for module 'pow'.
12488         * modules/pow-tests: New file.
12489         * tests/test-pow.c: New file.
12490
12491         Tests for module 'nextafter'.
12492         * modules/nextafter-tests: New file.
12493         * tests/test-nextafter.c: New file.
12494
12495         Tests for module 'modf'.
12496         * modules/modf-tests: New file.
12497         * tests/test-modf.c: New file.
12498
12499         Tests for module 'logb'.
12500         * modules/logb-tests: New file.
12501         * tests/test-logb.c: New file.
12502
12503         Tests for module 'log1p'.
12504         * modules/log1p-tests: New file.
12505         * tests/test-log1p.c: New file.
12506
12507         Tests for module 'log10'.
12508         * modules/log10-tests: New file.
12509         * tests/test-log10.c: New file.
12510
12511         Tests for module 'log'.
12512         * modules/log-tests: New file.
12513         * tests/test-log.c: New file.
12514
12515         Tests for module 'lgamma'.
12516         * modules/lgamma-tests: New file.
12517         * tests/test-lgamma.c: New file.
12518
12519         Tests for module 'ldexp'.
12520         * modules/ldexp-tests: New file.
12521         * tests/test-ldexp.c: New file.
12522
12523         Tests for module 'jn'.
12524         * modules/jn-tests: New file.
12525         * tests/test-jn.c: New file.
12526
12527         Tests for module 'j1'.
12528         * modules/j1-tests: New file.
12529         * tests/test-j1.c: New file.
12530
12531         Tests for module 'j0'.
12532         * modules/j0-tests: New file.
12533         * tests/test-j0.c: New file.
12534
12535         Tests for module 'hypot'.
12536         * modules/hypot-tests: New file.
12537         * tests/test-hypot.c: New file.
12538
12539         Tests for module 'fmod'.
12540         * modules/fmod-tests: New file.
12541         * tests/test-fmod.c: New file.
12542
12543         Tests for module 'fabs'.
12544         * modules/fabs-tests: New file.
12545         * tests/test-fabs.c: New file.
12546
12547         Tests for module 'exp'.
12548         * modules/exp-tests: New file.
12549         * tests/test-exp.c: New file.
12550
12551         Tests for module 'erfc'.
12552         * modules/erfc-tests: New file.
12553         * tests/test-erfc.c: New file.
12554
12555         Tests for module 'erf'.
12556         * modules/erf-tests: New file.
12557         * tests/test-erf.c: New file.
12558
12559         Tests for module 'cosh'.
12560         * modules/cosh-tests: New file.
12561         * tests/test-cosh.c: New file.
12562
12563         Tests for module 'cos'.
12564         * modules/cos-tests: New file.
12565         * tests/test-cos.c: New file.
12566
12567         Tests for module 'copysign'.
12568         * modules/copysign-tests: New file.
12569         * tests/test-copysign.c: New file.
12570
12571         Tests for module 'cbrt'.
12572         * modules/cbrt-tests: New file.
12573         * tests/test-cbrt.c: New file.
12574
12575         Tests for module 'atan2'.
12576         * modules/atan2-tests: New file.
12577         * tests/test-atan2.c: New file.
12578
12579         Tests for module 'atan'.
12580         * modules/atan-tests: New file.
12581         * tests/test-atan.c: New file.
12582
12583         Tests for module 'asin'.
12584         * modules/asin-tests: New file.
12585         * tests/test-asin.c: New file.
12586
12587         Tests for module 'acos'.
12588         * modules/acos-tests: New file.
12589         * tests/test-acos.c: New file.
12590
12591 2010-01-24  Bruno Haible  <bruno@clisp.org>
12592
12593         Fix tests for common <math.h> functions.
12594         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
12595         code snippet that references the function pointer, rather than merely
12596         calling the function. Substitute the FUNC_LIBM variable.
12597         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
12598         * modules/acos (configure.ac): Likewise.
12599         * modules/asin (configure.ac): Likewise.
12600         * modules/atan (configure.ac): Likewise.
12601         * modules/atan2 (configure.ac): Likewise.
12602         * modules/cbrt (configure.ac): Likewise.
12603         * modules/copysign (configure.ac): Likewise.
12604         * modules/cos (configure.ac): Likewise.
12605         * modules/cosh (configure.ac): Likewise.
12606         * modules/erf (configure.ac): Likewise.
12607         * modules/erfc (configure.ac): Likewise.
12608         * modules/exp (configure.ac): Likewise.
12609         * modules/fabs (configure.ac): Likewise.
12610         * modules/fmod (configure.ac): Likewise.
12611         * modules/hypot (configure.ac): Likewise.
12612         * modules/j0 (configure.ac): Likewise.
12613         * modules/j1 (configure.ac): Likewise.
12614         * modules/jn (configure.ac): Likewise.
12615         * modules/ldexp (configure.ac): Likewise.
12616         * modules/lgamma (configure.ac): Likewise.
12617         * modules/log (configure.ac): Likewise.
12618         * modules/log10 (configure.ac): Likewise.
12619         * modules/log1p (configure.ac): Likewise.
12620         * modules/logb (configure.ac): Likewise.
12621         * modules/modf (configure.ac): Likewise.
12622         * modules/nextafter (configure.ac): Likewise.
12623         * modules/pow (configure.ac): Likewise.
12624         * modules/remainder (configure.ac): Likewise.
12625         * modules/rint (configure.ac): Likewise.
12626         * modules/sin (configure.ac): Likewise.
12627         * modules/sinh (configure.ac): Likewise.
12628         * modules/tan (configure.ac): Likewise.
12629         * modules/tanh (configure.ac): Likewise.
12630         * modules/y0 (configure.ac): Likewise.
12631         * modules/y1 (configure.ac): Likewise.
12632         * modules/yn (configure.ac): Likewise.
12633
12634 2010-01-24  Bruno Haible  <bruno@clisp.org>
12635
12636         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
12637         * tests/test-acosl.c (x): New variable.
12638         (main): Store argument in x and fetch it from x.
12639         * tests/test-asinl.c (x): New variable.
12640         (main): Store argument in x and fetch it from x.
12641         * tests/test-atanl.c (x): New variable.
12642         (main): Store argument in x and fetch it from x.
12643         * tests/test-cosl.c (x): New variable.
12644         (main): Store argument in x and fetch it from x.
12645         * tests/test-expl.c (x): New variable.
12646         (main): Store argument in x and fetch it from x.
12647         * tests/test-logl.c (x): New variable.
12648         (main): Store argument in x and fetch it from x.
12649         * tests/test-sinl.c (x): New variable.
12650         (main): Store argument in x and fetch it from x.
12651         * tests/test-sqrtl.c (x): New variable.
12652         (main): Store argument in x and fetch it from x.
12653         * tests/test-tanl.c (x): New variable.
12654         (main): Store argument in x and fetch it from x.
12655
12656 2010-01-24  Bruno Haible  <bruno@clisp.org>
12657
12658         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
12659         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
12660         assignments to the initial TESTS_ENVIRONMENT.
12661         * doc/gnulib.texi (Unit test modules): Document it.
12662         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
12663         TESTS_ENVIRONMENT.
12664         * modules/btowc-tests (Makefile.am): Likewise.
12665         * modules/c-stack-tests (Makefile.am): Likewise.
12666         * modules/c-strcase-tests (Makefile.am): Likewise.
12667         * modules/copy-file-tests (Makefile.am): Likewise.
12668         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
12669         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
12670         * modules/mbrtowc-tests (Makefile.am): Likewise.
12671         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12672         * modules/mbscasestr-tests (Makefile.am): Likewise.
12673         * modules/mbschr-tests (Makefile.am): Likewise.
12674         * modules/mbscspn-tests (Makefile.am): Likewise.
12675         * modules/mbsinit-tests (Makefile.am): Likewise.
12676         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12677         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
12678         * modules/mbspbrk-tests (Makefile.am): Likewise.
12679         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12680         * modules/mbsrchr-tests (Makefile.am): Likewise.
12681         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
12682         * modules/mbsspn-tests (Makefile.am): Likewise.
12683         * modules/mbsstr-tests (Makefile.am): Likewise.
12684         * modules/nl_langinfo-tests (Makefile.am): Likewise.
12685         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
12686         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12687         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12688         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12689         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12690         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
12691         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12692         * modules/wcrtomb-tests (Makefile.am): Likewise.
12693         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
12694         * modules/wcsrtombs-tests (Makefile.am): Likewise.
12695         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
12696         assignments from TESTS_ENVIRONMENT.
12697         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
12698         augmentation.
12699         * modules/argp-version-etc-tests (Makefile.am): Likewise.
12700         * modules/atexit-tests (Makefile.am): Likewise.
12701         * modules/binary-io-tests (Makefile.am): Likewise.
12702         * modules/closein-tests (Makefile.am): Likewise.
12703         * modules/dprintf-posix-tests (Makefile.am): Likewise.
12704         * modules/exclude-tests (Makefile.am): Likewise.
12705         * modules/fflush-tests (Makefile.am): Likewise.
12706         * modules/fpending-tests (Makefile.am): Likewise.
12707         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12708         * modules/freadahead-tests (Makefile.am): Likewise.
12709         * modules/freadptr-tests (Makefile.am): Likewise.
12710         * modules/freadseek-tests (Makefile.am): Likewise.
12711         * modules/fseek-tests (Makefile.am): Likewise.
12712         * modules/fseeko-tests (Makefile.am): Likewise.
12713         * modules/ftell-tests (Makefile.am): Likewise.
12714         * modules/ftello-tests (Makefile.am): Likewise.
12715         * modules/idpriv-drop-tests (Makefile.am): Likewise.
12716         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
12717         * modules/lseek-tests (Makefile.am): Likewise.
12718         * modules/parse-duration-tests (Makefile.am): Likewise.
12719         * modules/perror-tests (Makefile.am): Likewise.
12720         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
12721         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
12722         * modules/pipe-tests (Makefile.am): Likewise.
12723         * modules/pread-tests (Makefile.am): Likewise.
12724         * modules/printf-posix-tests (Makefile.am): Likewise.
12725         * modules/select-tests (Makefile.am): Likewise.
12726         * modules/sigpipe-tests (Makefile.am): Likewise.
12727         * modules/tsearch-tests (Makefile.am): Likewise.
12728         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
12729         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
12730         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12731         * modules/uniwidth/width-tests (Makefile.am): Likewise.
12732         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
12733         * modules/version-etc-tests (Makefile.am): Likewise.
12734         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12735         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12736         * modules/xalloc-die-tests (Makefile.am): Likewise.
12737         * modules/xprintf-posix-tests (Makefile.am): Likewise.
12738         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12739         * modules/xstrtol-tests (Makefile.am): Likewise.
12740         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12741         * modules/yesno-tests (Makefile.am): Likewise.
12742         Suggested by Jim Meyering.
12743
12744 2010-01-24  Bruno Haible  <bruno@clisp.org>
12745
12746         More documentation.
12747         * doc/gnulib.texi (Writing modules): New chapter.
12748         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
12749         the new chapter.
12750
12751 2010-01-24  Jim Meyering  <meyering@redhat.com>
12752
12753         maint.mk: do not prepend "./" after filtering
12754         * top/maint.mk (_prepend_srcdir_prefix): New variable
12755         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
12756         "./" when $(srcdir) is ".".
12757
12758         define STREQ(a,b) consistently, removing useless parentheses
12759         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
12760         since the only risk is that "a" or "b" contains an unparenthesized
12761         comma, but if either did that, STREQ would have 3 or more arguments.
12762         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
12763         * lib/fts.c (STREQ): Remove unnecessary parentheses.
12764         * lib/hash-triple.c (STREQ): Likewise.
12765         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
12766         * lib/getugroups.c (STREQ): Likewise.
12767
12768 2010-01-23  Jim Meyering  <meyering@redhat.com>
12769
12770         maint.mk: fix syntax-check in a non-srcdir build directory
12771         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
12772         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
12773
12774 2010-01-22  Jim Meyering  <meyering@redhat.com>
12775
12776         userspec: add unit tests
12777         * tests/test-userspec.c: New file.
12778         * modules/userspec-tests: Likewise.
12779
12780 2010-01-21  Jim Meyering  <meyering@redhat.com>
12781
12782         maint.mk: handle source file names containing "." robustly
12783         * top/maint.mk (_dot_escaped_srcdir): Define.
12784         (VC_LIST): Use it in LHS of sed substitution.
12785
12786 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
12787
12788         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
12789         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
12790         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
12791         from a non-srcdir build.
12792
12793 2010-01-20  Eric Blake  <ebb9@byu.net>
12794
12795         warn-on-use: use instead of link-warning
12796         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
12797         * modules/unistd (Depends-on, Makefile.am): Likewise.
12798         * modules/arpa_inet (Depends-on): Replace link-warning with
12799         warn-on-use.
12800         (Makefile.am): Update rules accordingly.
12801         * modules/ctype (Depends-on, Makefile.am): Likewise.
12802         * modules/dirent (Depends-on, Makefile.am): Likewise.
12803         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
12804         * modules/inttypes (Depends-on, Makefile.am): Likewise.
12805         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12806         * modules/locale (Depends-on, Makefile.am): Likewise.
12807         * modules/math (Depends-on, Makefile.am): Likewise.
12808         * modules/search (Depends-on, Makefile.am): Likewise.
12809         * modules/signal (Depends-on, Makefile.am): Likewise.
12810         * modules/spawn (Depends-on, Makefile.am): Likewise.
12811         * modules/stdlib (Depends-on, Makefile.am): Likewise.
12812         * modules/string (Depends-on, Makefile.am): Likewise.
12813         * modules/strings (Depends-on, Makefile.am): Likewise.
12814         * modules/sys_file (Depends-on, Makefile.am): Likewise.
12815         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
12816         * modules/sys_select (Depends-on, Makefile.am): Likewise.
12817         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
12818         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
12819         * modules/sys_times (Depends-on, Makefile.am): Likewise.
12820         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12821         * modules/wchar (Depends-on, Makefile.am): Likewise.
12822         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
12823         should be poisoned.
12824         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
12825         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
12826         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
12827         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12828         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12829         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12830         * m4/math_h.m4 (gl_MATH_H): Likewise.
12831         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12832         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12833         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12834         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12835         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12836         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12837         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12838         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
12839         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12840         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12841         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12842         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12843         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12844         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12845         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12846         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12847         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
12848         GL_LINK_WARNING.
12849         * lib/ctype.in.h: Likewise.
12850         * lib/dirent.in.h: Likewise.
12851         * lib/fcntl.in.h: Likewise.
12852         * lib/inttypes.in.h: Likewise.
12853         * lib/langinfo.in.h: Likewise.
12854         * lib/locale.in.h: Likewise.
12855         * lib/math.in.h: Likewise.
12856         * lib/search.in.h: Likewise.
12857         * lib/signal.in.h: Likewise.
12858         * lib/spawn.in.h: Likewise.
12859         * lib/stdio.in.h: Likewise.
12860         * lib/stdlib.in.h: Likewise.
12861         * lib/string.in.h: Likewise.
12862         * lib/strings.in.h: Likewise.
12863         * lib/sys_file.in.h: Likewise.
12864         * lib/sys_ioctl.in.h: Likewise.
12865         * lib/sys_select.in.h: Likewise.
12866         * lib/sys_socket.in.h: Likewise.
12867         * lib/sys_stat.in.h: Likewise.
12868         * lib/sys_times.in.h: Likewise.
12869         * lib/sys_utsname.in.h: Likewise.
12870         * lib/unistd.in.h: Likewise.
12871         * lib/wchar.in.h: Likewise.
12872
12873 2010-01-20  Bruno Haible  <bruno@clisp.org>
12874
12875         Avoid duplicate -lm.
12876         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
12877         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
12878         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
12879         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
12880         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
12881         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
12882         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
12883         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
12884         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
12885         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
12886         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
12887         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12888         Reported by Paolo Bonzini.
12889
12890 2010-01-19  Bruno Haible  <bruno@clisp.org>
12891
12892         langinfo, nl_langinfo: Relicense under LGPLv2+.
12893         * modules/langinfo (License): Change to LGPLv2+.
12894         * modules/nl_langinfo (License): Likewise.
12895         Patch by David Lutterkort <lutter@redhat.com>.
12896
12897 2010-01-19  Bruno Haible  <bruno@clisp.org>
12898
12899         Avoid compilation error with cc on OSF/1 5.1.
12900         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
12901         statement, not before.
12902         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12903
12904 2010-01-18  Bruno Haible  <bruno@clisp.org>
12905
12906         Avoid a link error due to the __printf__ symbol.
12907         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
12908         and 2.6.x.
12909         (__format__, __printf__): Remove definitions.
12910         * lib/argp-fmtstream.h: Likewise.
12911         * lib/argp.h: Likewise.
12912         * lib/error.h: Likewise.
12913         * lib/vasnprintf.h: Likewise.
12914         * lib/xprintf.h: Likewise.
12915         * lib/xvasprintf.h: Likewise.
12916         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12917
12918 2010-01-18  Bruno Haible  <bruno@clisp.org>
12919
12920         Tests for module 'tanl'.
12921         * modules/tanl-tests: New file.
12922         * tests/test-tanl.c: New file.
12923
12924         Tests for module 'sqrtl'.
12925         * modules/sqrtl-tests: New file.
12926         * tests/test-sqrtl.c: New file.
12927
12928         Tests for module 'sinl'.
12929         * modules/sinl-tests: New file.
12930         * tests/test-sinl.c: New file.
12931
12932         Tests for module 'logl'.
12933         * modules/logl-tests: New file.
12934         * tests/test-logl.c: New file.
12935
12936         Tests for module 'expl'.
12937         * modules/expl-tests: New file.
12938         * tests/test-expl.c: New file.
12939
12940         Tests for module 'cosl'.
12941         * modules/cosl-tests: New file.
12942         * tests/test-cosl.c: New file.
12943
12944         Tests for module 'atanl'.
12945         * modules/atanl-tests: New file.
12946         * tests/test-atanl.c: New file.
12947
12948         Tests for module 'asinl'.
12949         * modules/asinl-tests: New file.
12950         * tests/test-asinl.c: New file.
12951
12952         Tests for module 'acosl'.
12953         * modules/acosl-tests: New file.
12954         * tests/test-acosl.c: New file.
12955
12956         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12957         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
12958         tanl): Use the standard gnulib idiom.
12959         * lib/cosl.c: Don't include trigl.c and sincosl.c.
12960         * lib/sinl.c: Likewise.
12961         * lib/tanl.c: Don't include trigl.c.
12962         (kernel_tanl): Make static.
12963         * lib/sincosl.c: Include trigl.h first.
12964         * lib/trigl.c: Likewise.
12965         * m4/acosl.m4: New file.
12966         * m4/asinl.m4: New file.
12967         * m4/atanl.m4: New file.
12968         * m4/cosl.m4: New file.
12969         * m4/expl.m4: New file.
12970         * m4/logl.m4: New file.
12971         * m4/sinl.m4: New file.
12972         * m4/sqrtl.m4: New file.
12973         * m4/tanl.m4: New file.
12974         * m4/mathl.m4: Remove file.
12975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
12976         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12977         Don't initialize GNULIB_MATHL.
12978         * modules/acosl: New file.
12979         * modules/asinl: New file.
12980         * modules/atanl: New file.
12981         * modules/cosl: New file.
12982         * modules/expl: New file.
12983         * modules/logl: New file.
12984         * modules/sinl: New file.
12985         * modules/sqrtl: New file.
12986         * modules/tanl: New file.
12987         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
12988         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
12989         substitute GNULIB_MATHL.
12990         * modules/mathl: Rewritten.
12991         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
12992         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
12993         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
12994         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
12995         * doc/posix-functions/expl.texi: Mention the 'expl' module.
12996         * doc/posix-functions/logl.texi: Mention the 'logl' module.
12997         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
12998         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
12999         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
13000
13001 2010-01-18  Bruno Haible  <bruno@clisp.org>
13002
13003         sqrt: Make gl_FUNC_SQRT requirable.
13004         * m4/sqrt.m4: New file.
13005         * modules/sqrt (Files): Add it.
13006         (configure.ac): Invoke gl_FUNC_SQRT.
13007
13008 2010-01-18  Bruno Haible  <bruno@clisp.org>
13009
13010         New modules for common <math.h> functions.
13011         * m4/mathfunc.m4: New file.
13012         * modules/acos: New file.
13013         * modules/asin: New file.
13014         * modules/atan: New file.
13015         * modules/atan2: New file.
13016         * modules/cbrt: New file.
13017         * modules/copysign: New file.
13018         * modules/cos: New file.
13019         * modules/cosh: New file.
13020         * modules/erf: New file.
13021         * modules/erfc: New file.
13022         * modules/exp: New file.
13023         * modules/fabs: New file.
13024         * modules/fmod: New file.
13025         * modules/hypot: New file.
13026         * modules/j0: New file.
13027         * modules/j1: New file.
13028         * modules/jn: New file.
13029         * modules/ldexp: New file.
13030         * modules/lgamma: New file.
13031         * modules/log: New file.
13032         * modules/log10: New file.
13033         * modules/log1p: New file.
13034         * modules/logb: New file.
13035         * modules/modf: New file.
13036         * modules/nextafter: New file.
13037         * modules/pow: New file.
13038         * modules/remainder: New file.
13039         * modules/rint: New file.
13040         * modules/sin: New file.
13041         * modules/sinh: New file.
13042         * modules/sqrt: New file.
13043         * modules/tan: New file.
13044         * modules/tanh: New file.
13045         * modules/y0: New file.
13046         * modules/y1: New file.
13047         * modules/yn: New file.
13048         * doc/posix-functions/acos.texi: Mention the 'acos' module.
13049         * doc/posix-functions/asin.texi: Mention the 'asin' module.
13050         * doc/posix-functions/atan.texi: Mention the 'atan' module.
13051         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
13052         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
13053         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
13054         * doc/posix-functions/cos.texi: Mention the 'cos' module.
13055         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
13056         * doc/posix-functions/erf.texi: Mention the 'erf' module.
13057         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
13058         * doc/posix-functions/exp.texi: Mention the 'exp' module.
13059         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
13060         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
13061         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
13062         * doc/posix-functions/j0.texi: Mention the 'j0' module.
13063         * doc/posix-functions/j1.texi: Mention the 'j1' module.
13064         * doc/posix-functions/jn.texi: Mention the 'jn' module.
13065         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
13066         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
13067         * doc/posix-functions/log.texi: Mention the 'log' module.
13068         * doc/posix-functions/log10.texi: Mention the 'log10' module.
13069         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
13070         * doc/posix-functions/logb.texi: Mention the 'logb' module.
13071         * doc/posix-functions/modf.texi: Mention the 'modf' module.
13072         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
13073         * doc/posix-functions/pow.texi: Mention the 'pow' module.
13074         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
13075         * doc/posix-functions/rint.texi: Mention the 'rint' module.
13076         * doc/posix-functions/sin.texi: Mention the 'sin' module.
13077         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
13078         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
13079         * doc/posix-functions/tan.texi: Mention the 'tan' module.
13080         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
13081         * doc/posix-functions/y0.texi: Mention the 'y0' module.
13082         * doc/posix-functions/y1.texi: Mention the 'y1' module.
13083         * doc/posix-functions/yn.texi: Mention the 'yn' module.
13084
13085 2010-01-18  Jim Meyering  <meyering@redhat.com>
13086
13087         ignore-value: relax license to LGPLv2+
13088         * modules/ignore-value (License): Relax to LGPLv2+.
13089
13090         getdate: don't leak when TZ contains two or more '"'s
13091         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
13092         double quote in TZ after the first one.
13093
13094         readtokens: do not leak internal token_lengths buffer
13095         * lib/readtokens.c (readtokens): Free the local, lengths,
13096         when the supplied "token_lengths" parameter is NULL.
13097
13098 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13099
13100         Fix a couple of missing LIBTHREAD link failures on AIX.
13101         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
13102         $(LIBTHREAD).
13103         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
13104
13105         Link test-poll against INET_PTON_LIB.
13106         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
13107         for inet_pton on Solaris 10.
13108
13109 2010-01-17  Bruno Haible  <bruno@clisp.org>
13110
13111         unistdio/*-sprintf: Fix typo in module description.
13112         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
13113         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
13114         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
13115         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
13116         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
13117         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
13118         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
13119         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13120
13121 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13122
13123         gnulib-tool: fix filelist for AIX, HP-UX ksh.
13124         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
13125         variables in shell case patterns, for AIX and HP-UX ksh.
13126
13127         Split large sed scripts, for HP-UX sed.
13128         * modules/stdio: Split sed scripts around 50 sed commands,
13129         to avoid HP-UX limit of 99 commands, in the near future.
13130         * modules/string: Likewise.
13131         * modules/unistd: Likewise.
13132
13133         gnulib-tool: avoid writing in the current directory.
13134         * gnulib-tool (func_emit_lib_Makefile_am)
13135         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
13136         not in the current directory, so concurrent gnulib-tool
13137         instances do not interfere.
13138
13139 2010-01-16  Jim Meyering  <meyering@redhat.com>
13140
13141         doc: update users.txt
13142         * users.txt: Add grep.
13143         (diffutils, gzip): Update URLs.
13144
13145 2010-01-12  Bruno Haible  <bruno@clisp.org>
13146
13147         posix_spawn: Avoid test failure on Cygwin.
13148         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
13149         characters.
13150         Reported by Simon Josefsson.
13151
13152 2010-01-12  Bruno Haible  <bruno@clisp.org>
13153
13154         * tests/test-cond.c (main): When skipping the test, show the reason.
13155
13156 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13157
13158         * lib/striconv.c (str_cd_iconv): Avoid if before free.
13159
13160 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13161
13162         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
13163         VC_LIST_ALWAYS_EXCLUDE_REGEX.
13164
13165 2010-01-12  Eric Blake  <ebb9@byu.net>
13166
13167         build: guarantee AS_VAR_IF
13168         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
13169         (gl_AS_VAR_IF): Move...
13170         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
13171         Reported by Simon Josefsson.
13172
13173 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13174
13175         * lib/stdio.in.h: Fix typo.
13176
13177 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13178
13179         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
13180         libgpg-error.
13181
13182 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13183
13184         * tests/test-xalloc-die.sh: Use $EXEEXT.
13185
13186 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13187             Bruno Haible  <bruno@clisp.org>
13188
13189         getlogin, getlogin_r: Avoid test failure.
13190         * tests/test-getlogin.c: Include <stdio.h>.
13191         (main): Skip the test when the function fails because stdin is not a
13192         tty.
13193         * tests/test-getlogin_r.c: Include <stdio.h>.
13194         (main): Skip the test when the function fails because stdin is not a
13195         tty.
13196
13197 2010-01-11  Eric Blake  <ebb9@byu.net>
13198
13199         tests: avoid more large file warnings
13200         * tests/test-fflush.c: Avoid warning about ftell use.
13201         * tests/test-fseek.c: Avoid warning about fseek use.
13202
13203 2010-01-10  Bruno Haible  <bruno@clisp.org>
13204
13205         nproc: Work better on Linux when /proc and /sys are not mounted.
13206         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
13207         as lower bound when, on glibc/Linux systems,
13208         sysconf (_SC_NPROCESSORS_CONF) returns 1.
13209         Suggested by Pádraig Brady <P@draigbrady.com>.
13210         Reported by Dmitry V. Levin <ldv@altlinux.org>.
13211
13212         nproc: Refactor.
13213         * lib/nproc.c (num_processors_via_affinity_mask): New function,
13214         extracted from num_processors.
13215         (num_processors): Call it.
13216
13217 2010-01-11  Jim Meyering  <meyering@redhat.com>
13218
13219         utimecmp: avoid new warning from upcoming gcc-4.5.0
13220         * lib/utimecmp.c (BILLION): Define using #define rather than an
13221         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
13222
13223 2010-01-11  Eric Blake  <ebb9@byu.net>
13224
13225         math: add portability warnings for classification macros
13226         * modules/math (Depends-on): Add warn-on-use.
13227         (Makefile.am): Provide new substitutions.
13228         * m4/math_h.m4 (gl_MATH_H): Require inline.
13229         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
13230         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
13231         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
13232         implement warnings.
13233
13234         unistd: warn on use of environ without module
13235         * modules/unistd (Depends-on): Add warn-on-use.
13236         (Makefile.am): Provide new substitutions.
13237         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
13238         * lib/unistd.in.h (environ): Wrap with a warning helper function.
13239
13240         stdio: warn on suspicious uses
13241         * modules/stdio (Depends-on): Add warn-on-use.
13242         (Makefile.am): Provide new substitutions.
13243         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
13244         fseeko.
13245         * lib/stdio.in.h (gets): Always warn on use.
13246         (fseek, ftell): Adjust when warnings are issued, and honor
13247         _GL_NO_LARGE_FILES as a way to silence the warning.
13248         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
13249         any warning about large file offsets.
13250         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
13251         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
13252         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
13253         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
13254         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
13255         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
13256         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
13257         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
13258
13259         warn-on-use: new module
13260         * modules/warn-on-use: New file.
13261         * build-aux/warn-on-use.h: Likewise.
13262         * m4/warn-on-use.m4: Likewise.
13263         * MODULES.html.sh (Support for building): Mention it.
13264
13265 2010-01-10  Bruno Haible  <bruno@clisp.org>
13266
13267         Tests for module 'unistr/u32-strdup'.
13268         * modules/unistr/u32-strdup-tests: New file.
13269         * tests/unistr/test-u32-strdup.c: New file.
13270
13271         Tests for module 'unistr/u16-strdup'.
13272         * modules/unistr/u16-strdup-tests: New file.
13273         * tests/unistr/test-u16-strdup.c: New file.
13274
13275         Tests for module 'unistr/u8-strdup'.
13276         * modules/unistr/u8-strdup-tests: New file.
13277         * tests/unistr/test-u8-strdup.c: New file.
13278         * tests/unistr/test-strdup.h: New file.
13279
13280         Tests for module 'unistr/u32-strncmp'.
13281         * modules/unistr/u32-strncmp-tests: New file.
13282         * tests/unistr/test-u32-strncmp.c: New file.
13283
13284         Tests for module 'unistr/u16-strncmp'.
13285         * modules/unistr/u16-strncmp-tests: New file.
13286         * tests/unistr/test-u16-strncmp.c: New file.
13287
13288         Tests for module 'unistr/u8-strncmp'.
13289         * modules/unistr/u8-strncmp-tests: New file.
13290         * tests/unistr/test-u8-strncmp.c: New file.
13291         * tests/unistr/test-strncmp.h: New file.
13292
13293         Tests for module 'unistr/u32-strcoll'.
13294         * modules/unistr/u32-strcoll-tests: New file.
13295         * tests/unistr/test-u32-strcoll.c: New file.
13296
13297         Tests for module 'unistr/u16-strcoll'.
13298         * modules/unistr/u16-strcoll-tests: New file.
13299         * tests/unistr/test-u16-strcoll.c: New file.
13300
13301         Tests for module 'unistr/u8-strcoll'.
13302         * modules/unistr/u8-strcoll-tests: New file.
13303         * tests/unistr/test-u8-strcoll.c: New file.
13304
13305         Tests for module 'unistr/u32-strcmp'.
13306         * modules/unistr/u32-strcmp-tests: New file.
13307         * tests/unistr/test-u32-strcmp.c: New file.
13308         * tests/unistr/test-u32-strcmp.h: New file.
13309
13310         Tests for module 'unistr/u16-strcmp'.
13311         * modules/unistr/u16-strcmp-tests: New file.
13312         * tests/unistr/test-u16-strcmp.c: New file.
13313         * tests/unistr/test-u16-strcmp.h: New file.
13314
13315         Tests for module 'unistr/u8-strcmp'.
13316         * modules/unistr/u8-strcmp-tests: New file.
13317         * tests/unistr/test-u8-strcmp.c: New file.
13318         * tests/unistr/test-u8-strcmp.h: New file.
13319         * tests/unistr/test-strcmp.h: New file.
13320
13321         Tests for module 'unistr/u32-strncat'.
13322         * modules/unistr/u32-strncat-tests: New file.
13323         * tests/unistr/test-u32-strncat.c: New file.
13324
13325         Tests for module 'unistr/u16-strncat'.
13326         * modules/unistr/u16-strncat-tests: New file.
13327         * tests/unistr/test-u16-strncat.c: New file.
13328
13329         Tests for module 'unistr/u8-strncat'.
13330         * modules/unistr/u8-strncat-tests: New file.
13331         * tests/unistr/test-u8-strncat.c: New file.
13332         * tests/unistr/test-strncat.h: New file.
13333
13334         Tests for module 'unistr/u32-strcat'.
13335         * modules/unistr/u32-strcat-tests: New file.
13336         * tests/unistr/test-u32-strcat.c: New file.
13337
13338         Tests for module 'unistr/u16-strcat'.
13339         * modules/unistr/u16-strcat-tests: New file.
13340         * tests/unistr/test-u16-strcat.c: New file.
13341
13342         Tests for module 'unistr/u8-strcat'.
13343         * modules/unistr/u8-strcat-tests: New file.
13344         * tests/unistr/test-u8-strcat.c: New file.
13345         * tests/unistr/test-strcat.h: New file.
13346
13347         Tests for module 'unistr/u32-stpncpy'.
13348         * modules/unistr/u32-stpncpy-tests: New file.
13349         * tests/unistr/test-u32-stpncpy.c: New file.
13350
13351         Tests for module 'unistr/u16-stpncpy'.
13352         * modules/unistr/u16-stpncpy-tests: New file.
13353         * tests/unistr/test-u16-stpncpy.c: New file.
13354
13355         Tests for module 'unistr/u8-stpncpy'.
13356         * modules/unistr/u8-stpncpy-tests: New file.
13357         * tests/unistr/test-u8-stpncpy.c: New file.
13358         * tests/unistr/test-stpncpy.h: New file.
13359
13360         Tests for module 'unistr/u32-strncpy'.
13361         * modules/unistr/u32-strncpy-tests: New file.
13362         * tests/unistr/test-u32-strncpy.c: New file.
13363
13364         Tests for module 'unistr/u16-strncpy'.
13365         * modules/unistr/u16-strncpy-tests: New file.
13366         * tests/unistr/test-u16-strncpy.c: New file.
13367
13368         Tests for module 'unistr/u8-strncpy'.
13369         * modules/unistr/u8-strncpy-tests: New file.
13370         * tests/unistr/test-u8-strncpy.c: New file.
13371         * tests/unistr/test-strncpy.h: New file.
13372
13373         Tests for module 'unistr/u32-stpcpy'.
13374         * modules/unistr/u32-stpcpy-tests: New file.
13375         * tests/unistr/test-u32-stpcpy.c: New file.
13376
13377         Tests for module 'unistr/u16-stpcpy'.
13378         * modules/unistr/u16-stpcpy-tests: New file.
13379         * tests/unistr/test-u16-stpcpy.c: New file.
13380
13381         Tests for module 'unistr/u8-stpcpy'.
13382         * modules/unistr/u8-stpcpy-tests: New file.
13383         * tests/unistr/test-u8-stpcpy.c: New file.
13384         * tests/unistr/test-stpcpy.h: New file.
13385
13386         Tests for module 'unistr/u32-strcpy'.
13387         * modules/unistr/u32-strcpy-tests: New file.
13388         * tests/unistr/test-u32-strcpy.c: New file.
13389
13390         Tests for module 'unistr/u16-strcpy'.
13391         * modules/unistr/u16-strcpy-tests: New file.
13392         * tests/unistr/test-u16-strcpy.c: New file.
13393
13394         Tests for module 'unistr/u8-strcpy'.
13395         * modules/unistr/u8-strcpy-tests: New file.
13396         * tests/unistr/test-u8-strcpy.c: New file.
13397         * tests/unistr/test-strcpy.h: New file.
13398
13399         Tests for module 'unistr/u32-strnlen'.
13400         * modules/unistr/u32-strnlen-tests: New file.
13401         * tests/unistr/test-u32-strnlen.c: New file.
13402
13403         Tests for module 'unistr/u16-strnlen'.
13404         * modules/unistr/u16-strnlen-tests: New file.
13405         * tests/unistr/test-u16-strnlen.c: New file.
13406
13407         Tests for module 'unistr/u8-strnlen'.
13408         * modules/unistr/u8-strnlen-tests: New file.
13409         * tests/unistr/test-u8-strnlen.c: New file.
13410         * tests/unistr/test-strnlen.h: New file.
13411
13412         Tests for module 'unistr/u32-strlen'.
13413         * modules/unistr/u32-strlen-tests: New file.
13414         * tests/unistr/test-u32-strlen.c: New file.
13415
13416         Tests for module 'unistr/u16-strlen'.
13417         * modules/unistr/u16-strlen-tests: New file.
13418         * tests/unistr/test-u16-strlen.c: New file.
13419
13420         Tests for module 'unistr/u8-strlen'.
13421         * modules/unistr/u8-strlen-tests: New file.
13422         * tests/unistr/test-u8-strlen.c: New file.
13423
13424         Tests for module 'unistr/u32-prev'.
13425         * modules/unistr/u32-prev-tests: New file.
13426         * tests/unistr/test-u32-prev.c: New file.
13427
13428         Tests for module 'unistr/u16-prev'.
13429         * modules/unistr/u16-prev-tests: New file.
13430         * tests/unistr/test-u16-prev.c: New file.
13431
13432         Tests for module 'unistr/u8-prev'.
13433         * modules/unistr/u8-prev-tests: New file.
13434         * tests/unistr/test-u8-prev.c: New file.
13435
13436         Tests for module 'unistr/u32-next'.
13437         * modules/unistr/u32-next-tests: New file.
13438         * tests/unistr/test-u32-next.c: New file.
13439
13440         Tests for module 'unistr/u16-next'.
13441         * modules/unistr/u16-next-tests: New file.
13442         * tests/unistr/test-u16-next.c: New file.
13443
13444         Tests for module 'unistr/u8-next'.
13445         * modules/unistr/u8-next-tests: New file.
13446         * tests/unistr/test-u8-next.c: New file.
13447
13448         Tests for module 'unistr/u32-strmbtouc'.
13449         * modules/unistr/u32-strmbtouc-tests: New file.
13450         * tests/unistr/test-u32-strmbtouc.c: New file.
13451
13452         Tests for module 'unistr/u16-strmbtouc'.
13453         * modules/unistr/u16-strmbtouc-tests: New file.
13454         * tests/unistr/test-u16-strmbtouc.c: New file.
13455
13456         Tests for module 'unistr/u8-strmbtouc'.
13457         * modules/unistr/u8-strmbtouc-tests: New file.
13458         * tests/unistr/test-u8-strmbtouc.c: New file.
13459
13460         Tests for module 'unistr/u32-strmblen'.
13461         * modules/unistr/u32-strmblen-tests: New file.
13462         * tests/unistr/test-u32-strmblen.c: New file.
13463
13464         Tests for module 'unistr/u16-strmblen'.
13465         * modules/unistr/u16-strmblen-tests: New file.
13466         * tests/unistr/test-u16-strmblen.c: New file.
13467
13468         Tests for module 'unistr/u8-strmblen'.
13469         * modules/unistr/u8-strmblen-tests: New file.
13470         * tests/unistr/test-u8-strmblen.c: New file.
13471
13472         Tests for module 'unistr/u32-cpy-alloc'.
13473         * modules/unistr/u32-cpy-alloc-tests: New file.
13474         * tests/unistr/test-u32-cpy-alloc.c: New file.
13475
13476         Tests for module 'unistr/u16-cpy-alloc'.
13477         * modules/unistr/u16-cpy-alloc-tests: New file.
13478         * tests/unistr/test-u16-cpy-alloc.c: New file.
13479
13480         Tests for module 'unistr/u8-cpy-alloc'.
13481         * modules/unistr/u8-cpy-alloc-tests: New file.
13482         * tests/unistr/test-u8-cpy-alloc.c: New file.
13483         * tests/unistr/test-cpy-alloc.h: New file.
13484
13485         Tests for module 'unistr/u32-mbsnlen'.
13486         * modules/unistr/u32-mbsnlen-tests: New file.
13487         * tests/unistr/test-u32-mbsnlen.c: New file.
13488
13489         Tests for module 'unistr/u16-mbsnlen'.
13490         * modules/unistr/u16-mbsnlen-tests: New file.
13491         * tests/unistr/test-u16-mbsnlen.c: New file.
13492
13493         Tests for module 'unistr/u8-mbsnlen'.
13494         * modules/unistr/u8-mbsnlen-tests: New file.
13495         * tests/unistr/test-u8-mbsnlen.c: New file.
13496
13497         Tests for module 'unistr/u32-chr'.
13498         * modules/unistr/u32-chr-tests: New file.
13499         * tests/unistr/test-u32-chr.c: New file.
13500
13501         Tests for module 'unistr/u16-chr'.
13502         * modules/unistr/u16-chr-tests: New file.
13503         * tests/unistr/test-u16-chr.c: New file.
13504
13505         Tests for module 'unistr/u8-chr'.
13506         * modules/unistr/u8-chr-tests: New file.
13507         * tests/unistr/test-u8-chr.c: New file.
13508         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
13509
13510         Tests for module 'unistr/u32-cmp2'.
13511         * modules/unistr/u32-cmp2-tests: New file.
13512         * tests/unistr/test-u32-cmp2.c: New file.
13513
13514         Tests for module 'unistr/u16-cmp2'.
13515         * modules/unistr/u16-cmp2-tests: New file.
13516         * tests/unistr/test-u16-cmp2.c: New file.
13517
13518         Tests for module 'unistr/u8-cmp2'.
13519         * modules/unistr/u8-cmp2-tests: New file.
13520         * tests/unistr/test-u8-cmp2.c: New file.
13521         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
13522
13523         Tests for module 'unistr/u32-cmp'.
13524         * modules/unistr/u32-cmp-tests: New file.
13525         * tests/unistr/test-u32-cmp.c: New file.
13526
13527         Tests for module 'unistr/u16-cmp'.
13528         * modules/unistr/u16-cmp-tests: New file.
13529         * tests/unistr/test-u16-cmp.c: New file.
13530
13531         Tests for module 'unistr/u8-cmp'.
13532         * modules/unistr/u8-cmp-tests: New file.
13533         * tests/unistr/test-u8-cmp.c: New file.
13534         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
13535
13536         Tests for module 'unistr/u32-set'.
13537         * modules/unistr/u32-set-tests: New file.
13538         * tests/unistr/test-u32-set.c: New file.
13539
13540         Tests for module 'unistr/u16-set'.
13541         * modules/unistr/u16-set-tests: New file.
13542         * tests/unistr/test-u16-set.c: New file.
13543
13544         Tests for module 'unistr/u8-set'.
13545         * modules/unistr/u8-set-tests: New file.
13546         * tests/unistr/test-u8-set.c: New file.
13547         * tests/unistr/test-set.h: New file.
13548
13549         Tests for module 'unistr/u32-move'.
13550         * modules/unistr/u32-move-tests: New file.
13551         * tests/unistr/test-u32-move.c: New file.
13552
13553         Tests for module 'unistr/u16-move'.
13554         * modules/unistr/u16-move-tests: New file.
13555         * tests/unistr/test-u16-move.c: New file.
13556
13557         Tests for module 'unistr/u8-move'.
13558         * modules/unistr/u8-move-tests: New file.
13559         * tests/unistr/test-u8-move.c: New file.
13560         * tests/unistr/test-move.h: New file.
13561
13562         Tests for module 'unistr/u32-cpy'.
13563         * modules/unistr/u32-cpy-tests: New file.
13564         * tests/unistr/test-u32-cpy.c: New file.
13565
13566         Tests for module 'unistr/u16-cpy'.
13567         * modules/unistr/u16-cpy-tests: New file.
13568         * tests/unistr/test-u16-cpy.c: New file.
13569
13570         Tests for module 'unistr/u8-cpy'.
13571         * modules/unistr/u8-cpy-tests: New file.
13572         * tests/unistr/test-u8-cpy.c: New file.
13573         * tests/unistr/test-cpy.h: New file.
13574
13575 2010-01-09  Bruno Haible  <bruno@clisp.org>
13576
13577         Tests for module 'unistr/u32-uctomb'.
13578         * modules/unistr/u32-uctomb-tests: New file.
13579         * tests/unistr/test-u32-uctomb.c: New file.
13580
13581         Tests for module 'unistr/u16-uctomb'.
13582         * modules/unistr/u16-uctomb-tests: New file.
13583         * tests/unistr/test-u16-uctomb.c: New file.
13584
13585         Tests for module 'unistr/u8-uctomb'.
13586         * modules/unistr/u8-uctomb-tests: New file.
13587         * tests/unistr/test-u8-uctomb.c: New file.
13588
13589         Tests for module 'unistr/u32-mbtoucr'.
13590         * modules/unistr/u32-mbtoucr-tests: New file.
13591         * tests/unistr/test-u32-mbtoucr.c: New file.
13592
13593         Tests for module 'unistr/u16-mbtoucr'.
13594         * modules/unistr/u16-mbtoucr-tests: New file.
13595         * tests/unistr/test-u16-mbtoucr.c: New file.
13596
13597         Tests for module 'unistr/u8-mbtoucr'.
13598         * modules/unistr/u8-mbtoucr-tests: New file.
13599         * tests/unistr/test-u8-mbtoucr.c: New file.
13600
13601         Tests for module 'unistr/u32-mbtouc'.
13602         * modules/unistr/u32-mbtouc-tests: New file.
13603         * tests/unistr/test-u32-mbtouc.c: New file.
13604
13605         Tests for module 'unistr/u16-mbtouc'.
13606         * modules/unistr/u16-mbtouc-tests: New file.
13607         * tests/unistr/test-u16-mbtouc.c: New file.
13608
13609         Tests for module 'unistr/u8-mbtouc'.
13610         * modules/unistr/u8-mbtouc-tests: New file.
13611         * tests/unistr/test-u8-mbtouc.c: New file.
13612
13613         Tests for module 'unistr/u32-mbtouc-unsafe'.
13614         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
13615         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
13616         * tests/unistr/test-u32-mbtouc.h: New file.
13617
13618         Tests for module 'unistr/u16-mbtouc-unsafe'.
13619         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
13620         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
13621         * tests/unistr/test-u16-mbtouc.h: New file.
13622
13623         Tests for module 'unistr/u8-mbtouc-unsafe'.
13624         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
13625         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
13626         * tests/unistr/test-u8-mbtouc.h: New file.
13627
13628         Tests for module 'unistr/u32-mblen'.
13629         * modules/unistr/u32-mblen-tests: New file.
13630         * tests/unistr/test-u32-mblen.c: New file.
13631
13632         Tests for module 'unistr/u16-mblen'.
13633         * modules/unistr/u16-mblen-tests: New file.
13634         * tests/unistr/test-u16-mblen.c: New file.
13635
13636         Tests for module 'unistr/u8-mblen'.
13637         * modules/unistr/u8-mblen-tests: New file.
13638         * tests/unistr/test-u8-mblen.c: New file.
13639
13640         Tests for module 'unistr/u32-to-u16'.
13641         * modules/unistr/u32-to-u16-tests: New file.
13642         * tests/unistr/test-u32-to-u16.c: New file.
13643
13644         Tests for module 'unistr/u32-to-u8'.
13645         * modules/unistr/u32-to-u8-tests: New file.
13646         * tests/unistr/test-u32-to-u8.c: New file.
13647
13648         Tests for module 'unistr/u16-to-u32'.
13649         * modules/unistr/u16-to-u32-tests: New file.
13650         * tests/unistr/test-u16-to-u32.c: New file.
13651
13652         Tests for module 'unistr/u16-to-u8'.
13653         * modules/unistr/u16-to-u8-tests: New file.
13654         * tests/unistr/test-u16-to-u8.c: New file.
13655
13656         Tests for module 'unistr/u8-to-u32'.
13657         * modules/unistr/u8-to-u32-tests: New file.
13658         * tests/unistr/test-u8-to-u32.c: New file.
13659
13660         Tests for module 'unistr/u8-to-u16'.
13661         * modules/unistr/u8-to-u16-tests: New file.
13662         * tests/unistr/test-u8-to-u16.c: New file.
13663
13664         Tests for module 'unistr/u32-check'.
13665         * modules/unistr/u32-check-tests: New file.
13666         * tests/unistr/test-u32-check.c: New file.
13667
13668         Tests for module 'unistr/u16-check'.
13669         * modules/unistr/u16-check-tests: New file.
13670         * tests/unistr/test-u16-check.c: New file.
13671
13672         Tests for module 'unistr/u8-check'.
13673         * modules/unistr/u8-check-tests: New file.
13674         * tests/unistr/test-u8-check.c: New file.
13675
13676         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
13677         (category_equals): New function.
13678         (main): Add more tests.
13679         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
13680
13681         * tests/unictype/test-bidi_byname.c (main): Add more tests.
13682
13683 2010-01-10  Bruno Haible  <bruno@clisp.org>
13684
13685         unistr/u*-strcoll: Try harder to distinguish different strings.
13686         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
13687         compare s1 and s2 to see if they are different.
13688
13689 2010-01-10  Bruno Haible  <bruno@clisp.org>
13690
13691         unistr/u*-stpncpy: Fix the return value.
13692         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
13693         description of the return value consistent with stpncpy in glibc.
13694         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
13695         written non-NUL unit.
13696
13697 2010-01-10  Bruno Haible  <bruno@clisp.org>
13698
13699         unistr/u*-next: Add missing dependencies.
13700         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
13701         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
13702         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
13703
13704 2010-01-10  Bruno Haible  <bruno@clisp.org>
13705
13706         unistr/u8-mbsnlen: Fix return value for incomplete character.
13707         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
13708         u8_mblen.
13709         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
13710         Remove unistr/u8-mblen.
13711         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
13712         u16_mblen.
13713         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
13714         Remove unistr/u16-mblen.
13715
13716 2010-01-10  Bruno Haible  <bruno@clisp.org>
13717
13718         wchar: Fix compilation error when <wchar.h> is used from coreutils.
13719         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
13720         Reported by Brian Gough <bjg@gnu.org> and
13721         Chris Clayton <chris2553@googlemail.com> via
13722         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
13723
13724 2010-01-09  Bruno Haible  <bruno@clisp.org>
13725
13726         unistr/u16-to-u32: Reject invalid input.
13727         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
13728         u16_mbtouc.
13729         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
13730         Remove unistr/u16-mbtouc.
13731
13732         unistr/u16-to-u8: Reject invalid input.
13733         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
13734         u16_mbtouc.
13735         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
13736         Remove unistr/u16-mbtouc.
13737
13738         unistr/u8-to-u32: Reject invalid input.
13739         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
13740         u8_mbtouc.
13741         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
13742         Remove unistr/u8-mbtouc.
13743
13744         unistr/u8-to-u16: Reject invalid input.
13745         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
13746         u8_mbtouc.
13747         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
13748         Remove unistr/u8-mbtouc.
13749
13750 2010-01-09  Bruno Haible  <bruno@clisp.org>
13751
13752         Tests for module 'getlogin'.
13753         * modules/getlogin-tests: New file.
13754         * tests/test-getlogin.c: New file.
13755
13756         New module 'getlogin'.
13757         * lib/unistd.in.h (getlogin): New declaration.
13758         * lib/getlogin.c: New file.
13759         * m4/getlogin.m4: New file.
13760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
13761         HAVE_GETLOGIN.
13762         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
13763         HAVE_GETLOGIN.
13764         * modules/getlogin: New file.
13765         * doc/posix-functions/getlogin.texi: Mention the new module.
13766         Reported by John W. Eaton <jwe@gnu.org>.
13767
13768 2010-01-09  Bruno Haible  <bruno@clisp.org>
13769
13770         getlogin_r: Support for native Windows.
13771         * lib/getlogin_r.c: Include <windows.h>
13772         (getlogin_r): Implement for native Windows.
13773         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
13774         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
13775         via John W. Eaton <jwe@gnu.org>.
13776
13777 2010-01-09  Bruno Haible  <bruno@clisp.org>
13778
13779         getlogin_r: Small fixes.
13780         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
13781         succeeds.
13782         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
13783         before testing whether getlogin_r is declared. No need to set
13784         HAVE_DECL_GETLOGIN_R to 1.
13785         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
13786
13787 2010-01-09  Bruno Haible  <bruno@clisp.org>
13788
13789         * lib/unistd.in.h (getlogin_r): Add comment.
13790
13791 2010-01-09  Bruno Haible  <bruno@clisp.org>
13792
13793         Tests for module 'getlogin_r'.
13794         * modules/getlogin_r-tests: New file.
13795         * tests/test-getlogin_r.c: New file.
13796
13797 2010-01-09  Jim Meyering  <meyering@redhat.com>
13798
13799         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
13800         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
13801         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
13802
13803 2010-01-08  Simon Josefsson  <simon@josefsson.org>
13804
13805         * lib/dup2.c (rpl_dup2): Improve comment.
13806
13807 2010-01-08  Eric Blake  <ebb9@byu.net>
13808
13809         maint.mk: allow packages to add makefile @@ exceptions
13810         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
13811         (sc_makefile_check): Rename...
13812         (sc_makefile_at_at_check): ...to this, and use hook.
13813
13814         dup2: work around mingw bug
13815         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
13816         Reported by Simon Josefsson.
13817
13818 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
13819
13820         glob: Fix C++ compilation.
13821         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
13822         C++.
13823
13824 2010-01-07  Bruno Haible  <bruno@clisp.org>
13825
13826         Fix indentation of wctype.in.h, broken since 2007-01-06.
13827         * lib/wctype.in.h: Fix indentation of preprocessor directives.
13828
13829 2010-01-07  Bruno Haible  <bruno@clisp.org>
13830
13831         mbslen: Avoid collision with system function.
13832         * lib/string.in.h [MirBSD]: Include <wchar.h>.
13833         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
13834         * m4/mbslen.m4: New file.
13835         * modules/mbslen (Files): Add it.
13836         (configure.ac): Invoke gl_MBSLEN.
13837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
13838         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
13839         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
13840         via Ian Beckwith <ianb@erislabs.net>.
13841
13842 2010-01-07  Bruno Haible  <bruno@clisp.org>
13843
13844         dirent: Document the last fix.
13845         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
13846
13847 2010-01-07  Bruno Haible  <bruno@clisp.org>
13848
13849         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
13850         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
13851         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
13852         va_list are defined.
13853         * doc/posix-headers/stdio.texi: Document the bug of missing types.
13854         Reported by Eric Blake.
13855
13856 2010-01-07  Bruno Haible  <bruno@clisp.org>
13857
13858         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
13859         * modules/xlist (Depends-on): Add 'list',
13860         * modules/xoset (Depends-on): Add 'oset'.
13861         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13862
13863 2010-01-07  Bruno Haible  <bruno@clisp.org>
13864
13865         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
13866         * doc/posix-functions/strncasecmp.texi: Likewise.
13867
13868 2010-01-07  Bruno Haible  <bruno@clisp.org>
13869
13870         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
13871
13872 2010-01-07  John W. Eaton  <jwe@octave.org>
13873
13874         wctype: allow C++ use
13875         * lib/wctype.in.h: Add extern "C" block for C++.
13876
13877 2010-01-06  Eric Blake  <ebb9@byu.net>
13878
13879         maint.mk: detect incorrect GFDL usage
13880         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
13881
13882 2010-01-06  Jim Meyering  <meyering@redhat.com>
13883         and Eric Blake  <ebb9@byu.net>
13884
13885         maint.mk: ignore multi-line copyright in NEWS
13886         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
13887
13888 2010-01-06  Eric Blake  <ebb9@byu.net>
13889
13890         select: add missing dependency
13891         * modules/select-tests (Depends-on): Move sockets dependency...
13892         * modules/select (Depends-on): ...here.
13893         Reported by Ian Beckwith.
13894
13895         doc: regenerate INSTALL
13896         * doc/INSTALL: Reflect recent autoconf update.
13897         * doc/INSTALL.ISO: Likewise.
13898         * doc/INSTALL.UTF-8: Likewise.
13899
13900         pread: fix compilation on glibc
13901         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
13902         Reported by Ralf Wildenhues.
13903
13904         dirent: fix test failure
13905         * lib/dirent.in.h (includes): Guarantee ino_t.
13906         Reported by Ralf Wildenhues.
13907
13908 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
13909
13910         linkat, renameat: avoid bad free
13911         * lib/at-func2.c (at_func2): Fix typo.
13912         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
13913
13914 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13915
13916         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
13917         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
13918         to avoid failure of symlink test later.
13919
13920 2010-01-06  Eric Blake  <ebb9@byu.net>
13921
13922         stdio, unistd: guarantee ssize_t
13923         * lib/unistd.in.h (includes): Ensure that types required by POSIX
13924         2008 are exposed when needed.
13925         * lib/stdio.in.h (includes): Likewise.
13926         Reported by Ralf Wildenhues.
13927
13928 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
13929
13930         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
13931         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
13932         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
13933
13934 2010-01-06  Jim Meyering  <meyering@redhat.com>
13935
13936         readtokens: this module *does* require xalloc.h
13937         It uses only functions that were omitted by the old syntax-check rule.
13938         * lib/readtokens.c: Include "xalloc.h" once again.
13939         * modules/readtokens (Depends-on): Add xalloc.
13940         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
13941
13942 2010-01-05  Eric Blake  <ebb9@byu.net>
13943
13944         maint: support 'make announcement' from a VPATH build
13945         * top/maint.mk (announcement): Look for correct NEWS file.
13946
13947 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
13948
13949         utimens (fdutimens): ignore a negative FD, per contract
13950         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
13951         when we have a valid file descriptor.  Otherwise, using a brand
13952         new glibc (with just-patched futimens that now fails with EBADF)
13953         would cause this function to fail with ENOSYS.
13954         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
13955         See also http://bugzilla.redhat.com/552320.
13956
13957 2010-01-05  Eric Blake  <ebb9@byu.net>
13958
13959         strcase: document what it provides
13960         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
13961         gnulib module.
13962         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
13963         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
13964
13965 2010-01-05  Jim Meyering  <meyering@redhat.com>
13966
13967         maint: remove useless inclusions of "xalloc.h"
13968         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
13969         * lib/readtokens.c: Likewise.
13970         * lib/same.c: Likewise.
13971         * modules/getloadavg (Depends-on): Remove xalloc.
13972         * modules/readtokens: Likewise.
13973         * modules/same: Likewise.
13974
13975         maint.mk: include 4 more function names in alloca.h-checking regexp
13976         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
13977         regexp.  Before, we would give a false-positive (saying alloca.h
13978         is included unnecessarily) when the only uses involved omitted symbols.
13979
13980         xalloc.h: use consistent formatting
13981         * lib/xalloc.h: Move declarations to start in the first column.
13982
13983 2010-01-05  Eric Blake  <ebb9@byu.net>
13984
13985         mkdir: avoid xalloc
13986         * lib/mkdir.c (includes): Drop unused header.
13987         Reported by John W. Eaton.
13988
13989 2010-01-04  Jim Meyering  <meyering@redhat.com>
13990
13991         nl_langinfo: avoid configure-time syntax error
13992         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
13993         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
13994         the empty string.  Don't let that provoke a shell syntax error.
13995
13996         regcomp, regexec, fnmatch: avoid array bounds read error
13997         * lib/regcomp.c (build_equiv_class): From glibc:
13998         Use only the low 24 bits of a findidx return value as an index
13999         into the weights array.  Patch by Ulrich Drepper:
14000         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
14001         * lib/regexec.c (check_node_accept_bytes): Likewise.
14002         * lib/fnmatch_loop.c (FCT): Likewise.
14003
14004         regcomp: skip collseq lookup when there are no rules
14005         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
14006         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
14007
14008         regcomp: recognize ill-formed { } expressions
14009         * lib/regcomp.c (parse_dup_op): From glibc:
14010         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
14011
14012         regcomp: fix typo in comment
14013         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
14014         s/satisfy/satisfies/.
14015
14016         regcomp: sync from glibc: remove dead store
14017         * lib/regcomp.c (duplicate_node_closure): Remove useless
14018         search_duplicated_node call and dead store.
14019
14020         regcomp: sync from glibc; always use nl_langinfo
14021         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
14022         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
14023         * modules/regex (Depends-on): Add nl_langinfo.
14024
14025 2010-01-04  Eric Blake  <ebb9@byu.net>
14026
14027         fdopendir: fix configure test
14028         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
14029
14030 2010-01-01  Bruno Haible  <bruno@clisp.org>
14031
14032         wchar: Remove unused configure check.
14033         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
14034
14035 2010-01-01  Eric Blake  <ebb9@byu.net>
14036
14037         headers: make check of system header explicit
14038         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
14039         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
14040         ourselves.
14041         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14042         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14043         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
14044         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
14045         internals.
14046         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
14047         missing.
14048         Suggested by Bruno Haible.
14049
14050 2010-01-01  Jim Meyering  <meyering@redhat.com>
14051
14052         ChangeLog: tweak to eliminate unnecessary copyright line
14053         * ChangeLog: Remove a copyright line that was mistakenly updated
14054         by today's update-copyright run.  Reported by Eric Blake.
14055
14056         test-update-copyright: don't let envvar setting cause test failure
14057         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14058
14059 2010-01-01  Bruno Haible  <bruno@clisp.org>
14060
14061         localename: Avoid gcc warning.
14062         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
14063         function if it is not used.
14064
14065 2010-01-01  Jim Meyering  <meyering@redhat.com>
14066
14067         update nearly all FSF copyright year lists to include 2010
14068         Use the same procedure as for 2009, outlined in
14069         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
14070
14071         version-etc: set COPYRIGHT_YEAR to 2010
14072         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
14073
14074 2009-12-31  Eric Blake  <ebb9@byu.net>
14075
14076         doc: correct availability of cygwin 1.5.x getopt
14077         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
14078         variables.
14079         * doc/posix-functions/opterr.texi (opterr): Likewise.
14080         * doc/posix-functions/optind.texi (optind): Likewise.
14081         * doc/posix-functions/optopt.texi (optopt): Likewise.
14082         * doc/posix-functions/tzname.texi (tzname): Likewise.
14083
14084         openat: update maintainer
14085         * modules/openat (Maintainer): Add myself.
14086
14087         utimens: avoid shadowing warning
14088         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
14089         buffers into one, to avoid shadowing, as well as avoiding a
14090         redundant stat.
14091         Reported by Jim Meyering.
14092
14093         test-dup2: avoid compiler warning
14094         * tests/test-dup2.c (is_inheritable): Only define if used.
14095
14096 2010-01-01  Bruno Haible  <bruno@clisp.org>
14097
14098         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
14099         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
14100         defined, use wctomb instead of wcrtomb.
14101
14102 2010-01-01  Bruno Haible  <bruno@clisp.org>
14103
14104         iconv: Reject native Solaris iconv.
14105         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
14106         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
14107
14108 2009-12-31  Bruno Haible  <bruno@clisp.org>
14109
14110         * tests/test-signal.c (main): Remove test of 'SIG'.
14111
14112 2009-12-31  Bruno Haible  <bruno@clisp.org>
14113
14114         spawn: Fix incomplete fix.
14115         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
14116         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
14117         warnings for GNULIB_POSIXCHECK again.
14118         Reported by Eric Blake.
14119
14120 2009-12-31  Bruno Haible  <bruno@clisp.org>
14121
14122         Avoid namespace pollution on glibc systems.
14123         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
14124         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
14125         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
14126         glibc systems.
14127
14128 2009-12-31  Bruno Haible  <bruno@clisp.org>
14129
14130         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
14131         (gl_REPLACE_WCHAR_H): Turn into a no-op.
14132         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
14133         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
14134         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
14135         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
14136         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
14137
14138 2009-12-31  Bruno Haible  <bruno@clisp.org>
14139
14140         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
14141         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
14142         afterwards.
14143
14144 2009-12-31  Bruno Haible  <bruno@clisp.org>
14145
14146         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
14147         SYS_UTSNAME_H.
14148
14149 2009-12-31  Bruno Haible  <bruno@clisp.org>
14150
14151         spawn: Fix misapplied patch.
14152         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
14153         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
14154         warnings for GNULIB_POSIXCHECK.
14155
14156 2009-12-31  Bruno Haible  <bruno@clisp.org>
14157
14158         times: Update after sys_times changed.
14159         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
14160         * modules/times (Files): Add it.
14161         (configure.ac): Invoke gl_FUNC_TIMES.
14162
14163 2009-12-31  Bruno Haible  <bruno@clisp.org>
14164
14165         Use AC_C_INLINE where necessary.
14166         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
14167         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14168         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
14169         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
14170         * m4/mbfile.m4 (gl_MBFILE): Likewise.
14171         * m4/mbiter.m4 (gl_MBITER): Likewise.
14172         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14173         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14174         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
14175         * modules/u64 (configure.ac): Likewise.
14176
14177 2009-12-31  Bruno Haible  <bruno@clisp.org>
14178
14179         Use AC_C_INLINE instead of module 'inline' where possible.
14180         * modules/inline (Description): Clarify purpose.
14181         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
14182         * modules/count-one-bits (Depends-on): Remove inline.
14183         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
14184         * modules/openat (Depends-on): Remove inline.
14185         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
14186         instead of depending on module 'inline'.
14187         * modules/filevercmp (Depends-on, configure.ac): Likewise.
14188         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
14189         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
14190         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
14191         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
14192         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
14193         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
14194         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
14195         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
14196         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
14197         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
14198         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
14199         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
14200         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
14201         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
14202         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
14203         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
14204         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
14205         Likewise.
14206         * modules/unictype/property-ascii-hex-digit (Depends-on,
14207         configure.ac): Likewise.
14208         * modules/unictype/property-bidi-arabic-digit (Depends-on,
14209         configure.ac): Likewise.
14210         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
14211         configure.ac): Likewise.
14212         * modules/unictype/property-bidi-block-separator (Depends-on,
14213         configure.ac): Likewise.
14214         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
14215         configure.ac): Likewise.
14216         * modules/unictype/property-bidi-common-separator (Depends-on,
14217         configure.ac): Likewise.
14218         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
14219         Likewise.
14220         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
14221         configure.ac): Likewise.
14222         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
14223         configure.ac): Likewise.
14224         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
14225         configure.ac): Likewise.
14226         * modules/unictype/property-bidi-european-digit (Depends-on,
14227         configure.ac): Likewise.
14228         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
14229         configure.ac): Likewise.
14230         * modules/unictype/property-bidi-left-to-right (Depends-on,
14231         configure.ac): Likewise.
14232         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
14233         configure.ac): Likewise.
14234         * modules/unictype/property-bidi-other-neutral (Depends-on,
14235         configure.ac): Likewise.
14236         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
14237         Likewise.
14238         * modules/unictype/property-bidi-segment-separator (Depends-on,
14239         configure.ac): Likewise.
14240         * modules/unictype/property-bidi-whitespace (Depends-on,
14241         configure.ac): Likewise.
14242         * modules/unictype/property-combining (Depends-on, configure.ac):
14243         Likewise.
14244         * modules/unictype/property-composite (Depends-on, configure.ac):
14245         Likewise.
14246         * modules/unictype/property-currency-symbol (Depends-on,
14247         configure.ac): Likewise.
14248         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
14249         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
14250         Likewise.
14251         * modules/unictype/property-default-ignorable-code-point (Depends-on,
14252         configure.ac): Likewise.
14253         * modules/unictype/property-deprecated (Depends-on, configure.ac):
14254         Likewise.
14255         * modules/unictype/property-diacritic (Depends-on, configure.ac):
14256         Likewise.
14257         * modules/unictype/property-extender (Depends-on, configure.ac):
14258         Likewise.
14259         * modules/unictype/property-format-control (Depends-on, configure.ac):
14260         Likewise.
14261         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
14262         Likewise.
14263         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
14264         Likewise.
14265         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
14266         Likewise.
14267         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
14268         Likewise.
14269         * modules/unictype/property-hyphen (Depends-on, configure.ac):
14270         Likewise.
14271         * modules/unictype/property-id-continue (Depends-on, configure.ac):
14272         Likewise.
14273         * modules/unictype/property-id-start (Depends-on, configure.ac):
14274         Likewise.
14275         * modules/unictype/property-ideographic (Depends-on, configure.ac):
14276         Likewise.
14277         * modules/unictype/property-ids-binary-operator (Depends-on,
14278         configure.ac): Likewise.
14279         * modules/unictype/property-ids-trinary-operator (Depends-on,
14280         configure.ac): Likewise.
14281         * modules/unictype/property-ignorable-control (Depends-on,
14282         configure.ac): Likewise.
14283         * modules/unictype/property-iso-control (Depends-on, configure.ac):
14284         Likewise.
14285         * modules/unictype/property-join-control (Depends-on, configure.ac):
14286         Likewise.
14287         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
14288         Likewise.
14289         * modules/unictype/property-line-separator (Depends-on, configure.ac):
14290         Likewise.
14291         * modules/unictype/property-logical-order-exception (Depends-on,
14292         configure.ac): Likewise.
14293         * modules/unictype/property-lowercase (Depends-on, configure.ac):
14294         Likewise.
14295         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
14296         * modules/unictype/property-non-break (Depends-on, configure.ac):
14297         Likewise.
14298         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
14299         Likewise.
14300         * modules/unictype/property-numeric (Depends-on, configure.ac):
14301         Likewise.
14302         * modules/unictype/property-other-alphabetic (Depends-on,
14303         configure.ac): Likewise.
14304         * modules/unictype/property-other-default-ignorable-code-point
14305         (Depends-on, configure.ac): Likewise.
14306         * modules/unictype/property-other-grapheme-extend (Depends-on,
14307         configure.ac): Likewise.
14308         * modules/unictype/property-other-id-continue (Depends-on,
14309         configure.ac): Likewise.
14310         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
14311         Likewise.
14312         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
14313         Likewise.
14314         * modules/unictype/property-other-math (Depends-on, configure.ac):
14315         Likewise.
14316         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
14317         Likewise.
14318         * modules/unictype/property-paired-punctuation (Depends-on,
14319         configure.ac): Likewise.
14320         * modules/unictype/property-paragraph-separator (Depends-on,
14321         configure.ac): Likewise.
14322         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
14323         Likewise.
14324         * modules/unictype/property-pattern-white-space (Depends-on,
14325         configure.ac): Likewise.
14326         * modules/unictype/property-private-use (Depends-on, configure.ac):
14327         Likewise.
14328         * modules/unictype/property-punctuation (Depends-on, configure.ac):
14329         Likewise.
14330         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
14331         Likewise.
14332         * modules/unictype/property-radical (Depends-on, configure.ac):
14333         Likewise.
14334         * modules/unictype/property-sentence-terminal (Depends-on,
14335         configure.ac): Likewise.
14336         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
14337         Likewise.
14338         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
14339         * modules/unictype/property-terminal-punctuation (Depends-on,
14340         configure.ac): Likewise.
14341         * modules/unictype/property-titlecase (Depends-on, configure.ac):
14342         Likewise.
14343         * modules/unictype/property-unassigned-code-value (Depends-on,
14344         configure.ac): Likewise.
14345         * modules/unictype/property-unified-ideograph (Depends-on,
14346         configure.ac): Likewise.
14347         * modules/unictype/property-uppercase (Depends-on, configure.ac):
14348         Likewise.
14349         * modules/unictype/property-variation-selector (Depends-on,
14350         configure.ac): Likewise.
14351         * modules/unictype/property-white-space (Depends-on, configure.ac):
14352         Likewise.
14353         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
14354         Likewise.
14355         * modules/unictype/property-xid-start (Depends-on, configure.ac):
14356         Likewise.
14357         * modules/unictype/property-zero-width (Depends-on, configure.ac):
14358         Likewise.
14359         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
14360         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
14361         Likewise.
14362
14363 2009-12-31  Bruno Haible  <bruno@clisp.org>
14364
14365         Remove unnecessary AC_C_INLINE invocation.
14366         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
14367         since 2009-08-21.
14368
14369 2009-12-31  Jim Meyering  <meyering@redhat.com>
14370
14371         maint.mk: don't require explicit gpg_key_ID in cfg.mk
14372         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
14373         With this change, we can all remove the gpg_key_ID = ... definition
14374         from our respective cfg.mk files.
14375
14376         maint.mk: create announcement template in ~/, not in /tmp
14377         * top/maint.mk (emit_upload_commands): Adjust.
14378         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
14379         Remove temporary file, .ci-msg.
14380
14381 2009-12-31  Eric Blake  <ebb9@byu.net>
14382
14383         link-warning: always build headers with link warnings
14384         * modules/arpa_inet (Makefile.am): Always build replacement
14385         header.
14386         * modules/ctype (Makefile.am): Likewise.
14387         * modules/dirent (Makefile.am): Likewise.
14388         * modules/inttypes (Makefile.am): Likewise.
14389         * modules/langinfo (Makefile.am): Likewise.
14390         * modules/locale (Makefile.am): Likewise.
14391         * modules/spawn (Makefile.am): Likewise.
14392         * modules/sys_file (Makefile.am): Likewise.
14393         * modules/sys_ioctl (Makefile.am): Likewise.
14394         * modules/sys_select (Makefile.am): Likewise.
14395         * modules/sys_socket (Makefile.am): Likewise.
14396         * modules/sys_times (Makefile.am): Likewise.
14397         * modules/sys_utsname (Makefile.am): Likewise.
14398         * modules/sys_wait (Makefile.am): Likewise.
14399         * modules/wchar (Makefile.am): Likewise.
14400         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
14401         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
14402         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
14403         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
14404         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
14405         Likewise.
14406         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14407         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14408         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
14409         Likewise.
14410         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
14411         Likewise.
14412         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14413         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
14414         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
14415         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14416         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14417         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14418         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14419         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
14420         (gl_WCHAR_H_DEFAULTS): Likewise.
14421
14422 2009-12-31  Eric Blake  <ebb9@byu.net>
14423
14424         signal, spawn: use link warnings
14425         * lib/signal.in.h (sigset_t): Make unconditional.
14426         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
14427         (sigpending, sigprocmask, sigaction): Add link warnings.
14428         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
14429         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
14430         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
14431         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
14432         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
14433         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
14434         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
14435         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
14436         (posix_spawn_file_actions_destroy)
14437         (posix_spawn_file_actions_addopen)
14438         (posix_spawn_file_actions_addclose)
14439         (posix_spawn_file_actions_adddup2): Likewise.
14440         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
14441         * tests/test-signal.c (main): Enhance test.
14442
14443         spawn: improve wrapper support
14444         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
14445         (gl_SPAWN_H_DEFAULTS): New defaults.
14446         * modules/spawn (Makefile.am): Substitute them.
14447         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
14448         Only declare if missing or broken.
14449
14450         sys_times, sys_utsname: use include_next
14451         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
14452         header.
14453         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
14454         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14455         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14456         * modules/sys_times (Depends-on): Add include_next.
14457         (Makefile.am): Substitute additional values.
14458         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
14459         * lib/sys_times.in.h (includes): Include native header, if
14460         available.
14461         * lib/sys_utsname.in.h (includes): Likewise.
14462         * tests/test-sys_times.c (main): Enhance test.
14463
14464         fdutimensat: revert prior patch
14465         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
14466         utimens.h.
14467         Reported by Bruno Haible.
14468
14469 2009-12-30  Eric Blake  <ebb9@byu.net>
14470
14471         sys_wait: drop link-warning dependency
14472         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
14473         link-warning efforts.
14474         * lib/sys_wait.in.h: Likewise.
14475
14476         fdutimensat: remove bogus dependency
14477         * modules/fdutimensat (Depends-on): Drop inline.
14478
14479         unistd: fix typo
14480         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
14481
14482 2009-12-30  Bruno Haible  <bruno@clisp.org>
14483
14484         Fix compilation error with Solaris cc.
14485         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
14486         * lib/unicase/u16-is-invariant.c: Likewise.
14487         * lib/unicase/u32-is-invariant.c: Likewise.
14488         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14489
14490 2009-12-30  Bruno Haible  <bruno@clisp.org>
14491
14492         Fix test crash.
14493         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
14494         locales.
14495         Reported by Simon Josefsson <simon@josefsson.org>.
14496
14497 2009-12-30  Bruno Haible  <bruno@clisp.org>
14498
14499         Fix compilation error on most platforms.
14500         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
14501         Reported by Simon Josefsson <simon@josefsson.org>
14502         and Nelson H. F. Beebe <beebe@math.utah.edu>.
14503
14504 2009-12-30  Eric Blake  <ebb9@byu.net>
14505
14506         futimens, utimensat: work around ntfs-3g bug
14507         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
14508         a ctime bug is present, and expand workaround to cover ntfs-3g.
14509         * lib/utimens.c (fdutimens, lutimens): Likewise.
14510         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
14511         (validate_timespec): Adjust return value.
14512         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
14513         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14514         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
14515
14516 2009-12-29  Eric Blake  <ebb9@byu.net>
14517
14518         link-warning: make usage consistent
14519         * modules/ctype (Depends-on): Add link-warning.
14520         (Makefile.am): Update rules accordingly.
14521         * modules/langinfo (Depends-on, Makefile.am): Likewise.
14522         * modules/locale (Depends-on, Makefile.am): Likewise.
14523         * modules/sys_file (Makefile.am): Likewise.
14524         * modules/getopt-posix (Makefile.am): Delete unused link warning
14525         efforts.
14526         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
14527         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
14528         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
14529         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
14530
14531         stdio: remove unused variables
14532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
14533         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
14534         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14535
14536         tests: test more substitute headers
14537         * modules/ctype-tests: New file.
14538         * modules/dirent-tests: Likewise.
14539         * modules/spawn-tests: Likewise.
14540         * modules/sys_file-tests: Likewise.
14541         * modules/sys_ioctl-tests: Likewise.
14542         * modules/sys_wait-tests: Likewise.
14543         * tests/test-ctype.c: Likewise.
14544         * tests/test-dirent.c: Likewise.
14545         * tests/test-spawn.c: Likewise.
14546         * tests/test-sys_file.c: Likewise.
14547         * tests/test-sys_ioctl.c: Likewise.
14548         * tests/test-sys_wait.c: Likewise.
14549         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
14550         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
14551         whether or not flock is in use.
14552
14553         tests: remove License section from module
14554         * modules/arpa_inet-tests: Remove unneeded section.
14555         * modules/byteswap-tests: Likewise.
14556         * modules/ceilf-tests: Likewise.
14557         * modules/ceill-tests: Likewise.
14558         * modules/crypto/des-tests: Likewise.
14559         * modules/crypto/gc-arcfour-tests: Likewise.
14560         * modules/crypto/gc-arctwo-tests: Likewise.
14561         * modules/crypto/gc-des-tests: Likewise.
14562         * modules/crypto/gc-hmac-md5-tests: Likewise.
14563         * modules/crypto/gc-hmac-sha1-tests: Likewise.
14564         * modules/crypto/gc-md2-tests: Likewise.
14565         * modules/crypto/gc-md4-tests: Likewise.
14566         * modules/crypto/gc-md5-tests: Likewise.
14567         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
14568         * modules/crypto/gc-rijndael-tests: Likewise.
14569         * modules/crypto/gc-sha1-tests: Likewise.
14570         * modules/crypto/gc-tests: Likewise.
14571         * modules/crypto/md2-tests: Likewise.
14572         * modules/crypto/md4-tests: Likewise.
14573         * modules/fcntl-h-tests: Likewise.
14574         * modules/floorf-tests: Likewise.
14575         * modules/floorl-tests: Likewise.
14576         * modules/frexp-nolibm-tests: Likewise.
14577         * modules/frexp-tests: Likewise.
14578         * modules/frexpl-nolibm-tests: Likewise.
14579         * modules/frexpl-tests: Likewise.
14580         * modules/getaddrinfo-tests: Likewise.
14581         * modules/inttypes-tests: Likewise.
14582         * modules/isfinite-tests: Likewise.
14583         * modules/isinf-tests: Likewise.
14584         * modules/ldexpl-tests: Likewise.
14585         * modules/locale-tests: Likewise.
14586         * modules/math-tests: Likewise.
14587         * modules/netdb-tests: Likewise.
14588         * modules/netinet_in-tests: Likewise.
14589         * modules/printf-frexp-tests: Likewise.
14590         * modules/printf-frexpl-tests: Likewise.
14591         * modules/priv-set-tests: Likewise.
14592         * modules/random_r-tests: Likewise.
14593         * modules/round-tests: Likewise.
14594         * modules/roundf-tests: Likewise.
14595         * modules/roundl-tests: Likewise.
14596         * modules/search-tests: Likewise.
14597         * modules/select-tests: Likewise.
14598         * modules/signal-tests: Likewise.
14599         * modules/stdbool-tests: Likewise.
14600         * modules/stddef-tests: Likewise.
14601         * modules/stdint-tests: Likewise.
14602         * modules/stdio-tests: Likewise.
14603         * modules/stdlib-tests: Likewise.
14604         * modules/string-tests: Likewise.
14605         * modules/strings-tests: Likewise.
14606         * modules/sys_select-tests: Likewise.
14607         * modules/sys_socket-tests: Likewise.
14608         * modules/sys_stat-tests: Likewise.
14609         * modules/sys_time-tests: Likewise.
14610         * modules/sys_utsname-tests: Likewise.
14611         * modules/sysexits-tests: Likewise.
14612         * modules/time-tests: Likewise.
14613         * modules/trunc-tests: Likewise.
14614         * modules/truncf-tests: Likewise.
14615         * modules/truncl-tests: Likewise.
14616         * modules/tsearch-tests: Likewise.
14617         * modules/unistd-tests: Likewise.
14618         * modules/wchar-tests: Likewise.
14619         * modules/wctype-tests: Likewise.
14620
14621         tests: fix license on several tests
14622         * tests/test-des.c: Update to GPLv3+.
14623         * tests/test-flock.c: Likewise.
14624         * tests/test-fsync.c: Likewise.
14625         * tests/test-futimens.h: Likewise.
14626         * tests/test-gc-arcfour.c: Likewise.
14627         * tests/test-gc-arctwo.c: Likewise.
14628         * tests/test-gc-des.c: Likewise.
14629         * tests/test-gc-hmac-md5.c: Likewise.
14630         * tests/test-gc-hmac-sha1.c: Likewise.
14631         * tests/test-gc-md2.c: Likewise.
14632         * tests/test-gc-md4.c: Likewise.
14633         * tests/test-gc-md5.c: Likewise.
14634         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14635         * tests/test-gc-rijndael.c: Likewise.
14636         * tests/test-gc-sha1.c: Likewise.
14637         * tests/test-gc.c: Likewise.
14638         * tests/test-getcwd.c: Likewise.
14639         * tests/test-link.c: Likewise.
14640         * tests/test-link.h: Likewise.
14641         * tests/test-lutimens.h: Likewise.
14642         * tests/test-md2.c: Likewise.
14643         * tests/test-md4.c: Likewise.
14644         * tests/test-mkdir.h: Likewise.
14645         * tests/test-rename.c: Likewise.
14646         * tests/test-rename.h: Likewise.
14647         * tests/test-safe-alloc.c: Likewise.
14648         * tests/test-utimens-common.h: Likewise.
14649         * tests/test-utimens.h: Likewise.
14650
14651         maint: sync license texts
14652         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
14653         * doc/gpl-3.0.texi: Revert copyright year update.
14654         * doc/lgpl-3.0.texi: Likewise.
14655
14656 2009-12-29  Jim Meyering  <meyering@redhat.com>
14657
14658         update nearly all FSF copyright year lists to include 2009
14659         The files named by the following are exempted:
14660             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
14661               test -f "$dst" && { echo "$dst"; continue; }
14662               test -d "$dst" || continue
14663               echo "$dst"/$(basename "$src")
14664             done > exempt
14665             git ls-files tests/unictype >> exempt
14666         In the remaining files, convert to all-interval notation if
14667         - there is already at least one year interval like 2000-2003
14668         - the file is maintained by me
14669         - the file is in lib/uni*/, where that style already prevails
14670         Otherwise, use update-copyright's default.
14671
14672 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14673         and Eric Blake  <ebb9@byu.net>
14674
14675         tests: don't require debug system() to pass
14676         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
14677         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14678         * tests/test-unlink.h (test_unlink_func): Likewise.
14679         * tests/test-fstatat.c (main): ...into callers.
14680         * tests/test-lstat.c (main): Likewise.
14681         * tests/test-rmdir.c (main): Likewise.
14682         * tests/test-unlink.c (main): Likewise.
14683         * tests/test-unlinkat.c (main): Likewise.
14684         * tests/test-areadlink-with-size.c (main): Don't require a
14685         debug-only system call to pass, aiding cross-testing to mingw.
14686         * tests/test-areadlink.c (main): Likewise.
14687         * tests/test-areadlinkat-with-size.c (main): Likewise.
14688         * tests/test-areadlinkat.c (main): Likewise.
14689         * tests/test-canonicalize-lgpl.c (main): Likewise.
14690         * tests/test-canonicalize.c (main): Likewise.
14691         * tests/test-chown.c (main): Likewise.
14692         * tests/test-fchownat.c (main): Likewise.
14693         * tests/test-lchown.c (main): Likewise.
14694         * tests/test-fdutimensat.c (main): Likewise.
14695         * tests/test-futimens.c (main): Likewise.
14696         * tests/test-link.c (main): Likewise.
14697         * tests/test-linkat.c (main): Likewise.
14698         * tests/test-mkdir.c (main): Likewise.
14699         * tests/test-mkdirat.c (main): Likewise.
14700         * tests/test-mkfifo.c (main): Likewise.
14701         * tests/test-mkfifoat.c (main): Likewise.
14702         * tests/test-mknod.c (main): Likewise.
14703         * tests/test-readlink.c (main): Likewise.
14704         * tests/test-remove.c (main): Likewise.
14705         * tests/test-rename.c (main): Likewise.
14706         * tests/test-renameat.c (main): Likewise.
14707         * tests/test-symlink.c (main): Likewise.
14708         * tests/test-symlinkat.c (main): Likewise.
14709         * tests/test-utimens.c (main): Likewise.
14710         * tests/test-utimensat.c (main): Likewise.
14711
14712 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14713
14714         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
14715         on $(UNUSED_PARAMETER_H) to avoid build failure.
14716
14717 2009-12-28  Jim Meyering  <meyering@redhat.com>
14718
14719         update-copyright: you may specify a max. line length other than 72
14720         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14721
14722         maint: use consistent FSF copyright line syntax
14723         * lib/posixtm.c: Add missing comma in FSF copyright line.
14724         * lib/posixtm.h: Likewise.
14725         * lib/getugroups.c: Add missing ", Inc.".
14726
14727         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
14728         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
14729         FSF copyright line.  Remove trailing blanks.
14730
14731 2009-12-28  Eric Blake  <ebb9@byu.net>
14732
14733         test-dup2: reduce dependencies
14734         * modules/cloexec (Configure.ac): Set witness.
14735         * modules/dup2-tests (Depends-on): Drop cloexec.
14736         * tests/test-dup2.c (main): Skip portion of test if cloexec module
14737         not present.
14738         Suggested by Bruno Haible.
14739
14740 2009-12-26  Bruno Haible  <bruno@clisp.org>
14741
14742         Remove an unneeded dependency.
14743         * modules/fseterr (Depends-on): Remove dup2.
14744
14745 2009-12-26  Eric Blake  <ebb9@byu.net>
14746
14747         tests: use macros.h in more places
14748         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
14749         (ASSERT_STREAM): Provide default of stderr.
14750         * tests/test-dirent-safer.c: Include macros.h, using alternate
14751         stream for assertions.
14752         * tests/test-dup-safer.c: Likewise.
14753         * tests/test-freopen-safer.c: Likewise.
14754         * tests/test-getopt.c: Likewise.
14755         * tests/test-openat-safer.c: Likewise.
14756         * tests/test-pipe.c: Likewise.
14757         * tests/test-popen-safer.c: Likewise.
14758         * modules/dirent-safer-tests (Files): Include macros.h.
14759         * modules/unistd-safer-tests (Files): Likewise.
14760         * modules/freopen-safer-tests (Files): Likewise.
14761         * modules/getopt-posix-tests (Files): Likewise.
14762         * modules/openat-safer-tests (Files): Likewise.
14763         * modules/pipe-tests (Files): Likewise.
14764
14765 2009-12-26  Bruno Haible  <bruno@clisp.org>
14766
14767         javacomp: Portability fix.
14768         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
14769         that it also works on Solaris.
14770
14771 2009-12-26  Bruno Haible  <bruno@clisp.org>
14772
14773         localename: Fix storage allocation of gl_locale_name_thread's result.
14774         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
14775         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
14776         all platforms that have 'uselocale'.
14777         (gl_locale_name_thread_unsafe): New function, extracted from
14778         gl_locale_name_thread.
14779         (gl_locale_name_thread): Call struniq on all platforms that have
14780         'uselocale'.
14781         * tests/test-localename.c (test_locale_name_thread): Check that the
14782         resulting strings are permanently allocated.
14783         * modules/localename-tests (Depends-on): Add strdup.
14784
14785 2009-12-26  Bruno Haible  <bruno@clisp.org>
14786
14787         * tests/test-localename.c (categories): Fill in the strings.
14788
14789 2009-12-26  Jim Meyering  <meyering@redhat.com>
14790
14791         isdir: complete the removal of m4/isdir.m4
14792         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
14793
14794         isdir: clean up, since at least grep still uses it
14795         * lib/isdir.c: Include "isdir.h".
14796         (S_ISDIR): Remove now-unneeded definition.
14797         * modules/isdir (Files): Add lib/isdir.h.
14798         * lib/isdir.h: New file, with declaration.
14799         * m4/isdir.m4: Remove file -- unneeded.
14800
14801 2009-12-25  Bruno Haible  <bruno@clisp.org>
14802
14803         selinux-h: Make generated .h files standalone.
14804         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
14805         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
14806         * lib/se-selinux.in.h: Likewise.
14807         * modules/selinux-h (Depends-on): Add unused-parameter.
14808         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
14809         selinux/selinux.h and selinux/context.h.
14810         Suggested by Eric Blake.
14811
14812 2009-12-25  Bruno Haible  <bruno@clisp.org>
14813
14814         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
14815         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
14816         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
14817         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
14818         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
14819
14820 2009-12-24  Bruno Haible  <bruno@clisp.org>
14821
14822         openat: Fix warning.
14823         * lib/openat-proc.c: Include <unistd.h>.
14824
14825 2009-12-24  Bruno Haible  <bruno@clisp.org>
14826
14827         New module 'unused-parameter'.
14828         * build-aux/unused-parameter.h: New file, extracted from earlier
14829         gnulib-common.m4.
14830         * modules/unused-parameter: New file.
14831         * lib/unistr.h: Include unused-parameter.h.
14832         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
14833         _GL_UNUSED.
14834         * modules/unistr/base (Depends-on): Add unused-parameter.
14835
14836 2009-12-24  Bruno Haible  <bruno@clisp.org>
14837
14838         Add missing dependencies to 'extensions' module.
14839         * m4/extensions.m4: Add comment.
14840         * modules/accept4 (Depends-on): Add extensions.
14841         * modules/dup3 (Depends-on): Likewise.
14842         * modules/fcntl (Depends-on): Likewise.
14843         * modules/futimens (Depends-on): Likewise.
14844         * modules/mknod (Depends-on): Likewise.
14845         * modules/pipe2 (Depends-on): Likewise.
14846         * modules/stat-time (Depends-on): Likewise.
14847         * modules/strcasestr-simple (Depends-on): Likewise.
14848         * modules/strsignal (Depends-on): Likewise.
14849         * modules/utimensat (Depends-on): Likewise.
14850         * modules/localcharset (Depends-on): Likewise. Needed because of
14851         gl_FCNTL_O_FLAGS.
14852         * modules/wcrtomb (Depends-on): Likewise. Needed because of
14853         AC_TYPE_MBSTATE_T.
14854         * modules/wcsnrtombs (Depends-on): Likewise.
14855         * modules/wcsrtombs (Depends-on): Likewise.
14856
14857 2009-12-24  Bruno Haible  <bruno@clisp.org>
14858
14859         binary-io: Avoid gcc warning due to SET_BINARY.
14860         * lib/binary-io.h (SET_BINARY): Cast the result to void.
14861         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
14862
14863 2009-12-24  Bruno Haible  <bruno@clisp.org>
14864
14865         Avoid future namespace pollution on glibc systems.
14866         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
14867         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
14868         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
14869         glibc systems.
14870
14871 2009-12-24  Bruno Haible  <bruno@clisp.org>
14872
14873         Refactor common macros used in tests.
14874         * tests/macros.h: New file.
14875         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
14876         and/or <stdlib.h>, if appropriate.
14877         (ASSERT, SIZEOF): Remove macros.
14878         * tests/test-areadlink-with-size.c: Likewise.
14879         * tests/test-areadlinkat.c: Likewise.
14880         * tests/test-areadlinkat-with-size.c: Likewise.
14881         * tests/test-argmatch.c: Likewise.
14882         * tests/test-argv-iter.c: Likewise.
14883         * tests/test-array-mergesort.c: Likewise.
14884         * tests/test-array_list.c: Likewise.
14885         * tests/test-array_oset.c: Likewise.
14886         * tests/test-avltree_list.c: Likewise.
14887         * tests/test-avltree_oset.c: Likewise.
14888         * tests/test-avltreehash_list.c: Likewise.
14889         * tests/test-base64.c: Likewise.
14890         * tests/test-binary-io.c: Likewise.
14891         * tests/test-bitrotate.c: Likewise.
14892         * tests/test-btowc.c: Likewise.
14893         * tests/test-byteswap.c: Likewise.
14894         * tests/test-c-ctype.c: Likewise.
14895         * tests/test-c-stack.c: Likewise.
14896         * tests/test-c-strcasecmp.c: Likewise.
14897         * tests/test-c-strcasestr.c: Likewise.
14898         * tests/test-c-strncasecmp.c: Likewise.
14899         * tests/test-c-strstr.c: Likewise.
14900         * tests/test-canonicalize-lgpl.c: Likewise.
14901         * tests/test-canonicalize.c: Likewise.
14902         * tests/test-carray_list.c: Likewise.
14903         * tests/test-ceilf1.c: Likewise.
14904         * tests/test-ceilf2.c: Likewise.
14905         * tests/test-ceill.c: Likewise.
14906         * tests/test-chown.c: Likewise.
14907         * tests/test-cloexec.c: Likewise.
14908         * tests/test-copy-acl.c: Likewise.
14909         * tests/test-copy-file.c: Likewise.
14910         * tests/test-count-one-bits.c: Likewise.
14911         * tests/test-dprintf-posix.c: Likewise.
14912         * tests/test-dup2.c: Likewise.
14913         * tests/test-dup3.c: Likewise.
14914         * tests/test-duplocale.c: Likewise.
14915         * tests/test-fbufmode.c: Likewise.
14916         * tests/test-fchdir.c: Likewise.
14917         * tests/test-fchownat.c: Likewise.
14918         * tests/test-fcntl-safer.c: Likewise.
14919         * tests/test-fcntl.c: Likewise.
14920         * tests/test-fdopendir.c: Likewise.
14921         * tests/test-fdutimensat.c: Likewise.
14922         * tests/test-fflush2.c: Likewise.
14923         * tests/test-file-has-acl.c: Likewise.
14924         * tests/test-filevercmp.c: Likewise.
14925         * tests/test-flock.c: Likewise.
14926         * tests/test-floorf1.c: Likewise.
14927         * tests/test-floorf2.c: Likewise.
14928         * tests/test-floorl.c: Likewise.
14929         * tests/test-fnmatch.c: Likewise.
14930         * tests/test-fopen.h: Likewise.
14931         * tests/test-fpending.c: Likewise.
14932         * tests/test-fprintf-posix.c: Likewise.
14933         * tests/test-fpurge.c: Likewise.
14934         * tests/test-freadable.c: Likewise.
14935         * tests/test-freadahead.c: Likewise.
14936         * tests/test-freading.c: Likewise.
14937         * tests/test-freadptr.c: Likewise.
14938         * tests/test-freadptr2.c: Likewise.
14939         * tests/test-freadseek.c: Likewise.
14940         * tests/test-freopen.c: Likewise.
14941         * tests/test-frexp.c: Likewise.
14942         * tests/test-frexpl.c: Likewise.
14943         * tests/test-fseek.c: Likewise.
14944         * tests/test-fseeko.c: Likewise.
14945         * tests/test-fstatat.c: Likewise.
14946         * tests/test-fstrcmp.c: Likewise.
14947         * tests/test-fsync.c: Likewise.
14948         * tests/test-ftell.c: Likewise.
14949         * tests/test-ftello.c: Likewise.
14950         * tests/test-func.c: Likewise.
14951         * tests/test-futimens.c: Likewise.
14952         * tests/test-fwritable.c: Likewise.
14953         * tests/test-fwriting.c: Likewise.
14954         * tests/test-getcwd.c: Likewise.
14955         * tests/test-getdate.c: Likewise.
14956         * tests/test-getdelim.c: Likewise.
14957         * tests/test-getdtablesize.c: Likewise.
14958         * tests/test-getgroups.c: Likewise.
14959         * tests/test-getline.c: Likewise.
14960         * tests/test-getndelim2.c: Likewise.
14961         * tests/test-glob.c: Likewise.
14962         * tests/test-hash.c: Likewise.
14963         * tests/test-i-ring.c: Likewise.
14964         * tests/test-iconv-utf.c: Likewise.
14965         * tests/test-iconv.c: Likewise.
14966         * tests/test-idpriv-drop.c: Likewise.
14967         * tests/test-idpriv-droptemp.c: Likewise.
14968         * tests/test-inet_ntop.c: Likewise.
14969         * tests/test-inet_pton.c: Likewise.
14970         * tests/test-isblank.c: Likewise.
14971         * tests/test-isfinite.c: Likewise.
14972         * tests/test-isinf.c: Likewise.
14973         * tests/test-isnan.c: Likewise.
14974         * tests/test-isnand.h: Likewise.
14975         * tests/test-isnanf.h: Likewise.
14976         * tests/test-isnanl.h: Likewise.
14977         * tests/test-lchown.c: Likewise.
14978         * tests/test-ldexpl.c: Likewise.
14979         * tests/test-link.c: Likewise.
14980         * tests/test-linkat.c: Likewise.
14981         * tests/test-linked_list.c: Likewise.
14982         * tests/test-linkedhash_list.c: Likewise.
14983         * tests/test-localename.c: Likewise.
14984         * tests/test-lseek.c: Likewise.
14985         * tests/test-lstat.c: Likewise.
14986         * tests/test-mbmemcasecmp.c: Likewise.
14987         * tests/test-mbmemcasecoll.c: Likewise.
14988         * tests/test-mbrtowc.c: Likewise.
14989         * tests/test-mbscasecmp.c: Likewise.
14990         * tests/test-mbscasestr1.c: Likewise.
14991         * tests/test-mbscasestr2.c: Likewise.
14992         * tests/test-mbscasestr3.c: Likewise.
14993         * tests/test-mbscasestr4.c: Likewise.
14994         * tests/test-mbschr.c: Likewise.
14995         * tests/test-mbscspn.c: Likewise.
14996         * tests/test-mbsinit.c: Likewise.
14997         * tests/test-mbsncasecmp.c: Likewise.
14998         * tests/test-mbsnrtowcs.c: Likewise.
14999         * tests/test-mbspbrk.c: Likewise.
15000         * tests/test-mbspcasecmp.c: Likewise.
15001         * tests/test-mbsrchr.c: Likewise.
15002         * tests/test-mbsrtowcs.c: Likewise.
15003         * tests/test-mbsspn.c: Likewise.
15004         * tests/test-mbsstr1.c: Likewise.
15005         * tests/test-mbsstr2.c: Likewise.
15006         * tests/test-mbsstr3.c: Likewise.
15007         * tests/test-memchr.c: Likewise.
15008         * tests/test-memchr2.c: Likewise.
15009         * tests/test-memcmp.c: Likewise.
15010         * tests/test-memmem.c: Likewise.
15011         * tests/test-memrchr.c: Likewise.
15012         * tests/test-mkdir.c: Likewise.
15013         * tests/test-mkdirat.c: Likewise.
15014         * tests/test-mkfifo.c: Likewise.
15015         * tests/test-mkfifoat.c: Likewise.
15016         * tests/test-mknod.c: Likewise.
15017         * tests/test-nanosleep.c: Likewise.
15018         * tests/test-nl_langinfo.c: Likewise.
15019         * tests/test-obstack-printf.c: Likewise.
15020         * tests/test-open.c: Likewise.
15021         * tests/test-openat.c: Likewise.
15022         * tests/test-pipe-filter-gi1.c: Likewise.
15023         * tests/test-pipe-filter-gi2-main.c: Likewise.
15024         * tests/test-pipe-filter-ii1.c: Likewise.
15025         * tests/test-pipe-filter-ii2-main.c: Likewise.
15026         * tests/test-pipe2.c: Likewise.
15027         * tests/test-popen.h: Likewise.
15028         * tests/test-posixtm.c: Likewise.
15029         * tests/test-pread.c: Likewise.
15030         * tests/test-printf-frexp.c: Likewise.
15031         * tests/test-printf-frexpl.c: Likewise.
15032         * tests/test-printf-posix.c: Likewise.
15033         * tests/test-priv-set.c: Likewise.
15034         * tests/test-quotearg.c: Likewise.
15035         * tests/test-random_r.c: Likewise.
15036         * tests/test-rawmemchr.c: Likewise.
15037         * tests/test-rbtree_list.c: Likewise.
15038         * tests/test-rbtree_oset.c: Likewise.
15039         * tests/test-rbtreehash_list.c: Likewise.
15040         * tests/test-readlink.c: Likewise.
15041         * tests/test-remove.c: Likewise.
15042         * tests/test-rename.c: Likewise.
15043         * tests/test-renameat.c: Likewise.
15044         * tests/test-rmdir.c: Likewise.
15045         * tests/test-round1.c: Likewise.
15046         * tests/test-roundf1.c: Likewise.
15047         * tests/test-roundl.c: Likewise.
15048         * tests/test-safe-alloc.c: Likewise.
15049         * tests/test-sameacls.c: Likewise.
15050         * tests/test-set-mode-acl.c: Likewise.
15051         * tests/test-setenv.c: Likewise.
15052         * tests/test-sigaction.c: Likewise.
15053         * tests/test-signbit.c: Likewise.
15054         * tests/test-sleep.c: Likewise.
15055         * tests/test-snprintf-posix.c: Likewise.
15056         * tests/test-snprintf.c: Likewise.
15057         * tests/test-sprintf-posix.c: Likewise.
15058         * tests/test-stat-time.c: Likewise.
15059         * tests/test-stat.c: Likewise.
15060         * tests/test-strcasestr.c: Likewise.
15061         * tests/test-strchrnul.c: Likewise.
15062         * tests/test-strerror.c: Likewise.
15063         * tests/test-striconv.c: Likewise.
15064         * tests/test-striconveh.c: Likewise.
15065         * tests/test-striconveha.c: Likewise.
15066         * tests/test-strsignal.c: Likewise.
15067         * tests/test-strstr.c: Likewise.
15068         * tests/test-strtod.c: Likewise.
15069         * tests/test-strverscmp.c: Likewise.
15070         * tests/test-symlink.c: Likewise.
15071         * tests/test-symlinkat.c: Likewise.
15072         * tests/test-trunc1.c: Likewise.
15073         * tests/test-trunc2.c: Likewise.
15074         * tests/test-truncf1.c: Likewise.
15075         * tests/test-truncf2.c: Likewise.
15076         * tests/test-truncl.c: Likewise.
15077         * tests/test-uname.c: Likewise.
15078         * tests/test-unlink.c: Likewise.
15079         * tests/test-unlinkat.c: Likewise.
15080         * tests/test-unsetenv.c: Likewise.
15081         * tests/test-usleep.c: Likewise.
15082         * tests/test-utimens.c: Likewise.
15083         * tests/test-utimensat.c: Likewise.
15084         * tests/test-vasnprintf-posix.c: Likewise.
15085         * tests/test-vasnprintf-posix2.c: Likewise.
15086         * tests/test-vasnprintf.c: Likewise.
15087         * tests/test-vasprintf-posix.c: Likewise.
15088         * tests/test-vasprintf.c: Likewise.
15089         * tests/test-vdprintf-posix.c: Likewise.
15090         * tests/test-vfprintf-posix.c: Likewise.
15091         * tests/test-vprintf-posix.c: Likewise.
15092         * tests/test-vsnprintf-posix.c: Likewise.
15093         * tests/test-vsnprintf.c: Likewise.
15094         * tests/test-vsprintf-posix.c: Likewise.
15095         * tests/test-wcrtomb.c: Likewise.
15096         * tests/test-wcsnrtombs.c: Likewise.
15097         * tests/test-wcsrtombs.c: Likewise.
15098         * tests/test-wctype.c: Likewise.
15099         * tests/test-wcwidth.c: Likewise.
15100         * tests/test-xfprintf-posix.c: Likewise.
15101         * tests/test-xmemdup0.c: Likewise.
15102         * tests/test-xprintf-posix.c: Likewise.
15103         * tests/test-xvasprintf.c: Likewise.
15104         * tests/unicase/test-locale-language.c: Likewise.
15105         * tests/unicase/test-mapping-part1.h: Likewise.
15106         * tests/unicase/test-predicate-part1.h: Likewise.
15107         * tests/unicase/test-u8-casecmp.c: Likewise.
15108         * tests/unicase/test-u8-casecoll.c: Likewise.
15109         * tests/unicase/test-u8-casefold.c: Likewise.
15110         * tests/unicase/test-u8-is-cased.c: Likewise.
15111         * tests/unicase/test-u8-is-casefolded.c: Likewise.
15112         * tests/unicase/test-u8-is-lowercase.c: Likewise.
15113         * tests/unicase/test-u8-is-titlecase.c: Likewise.
15114         * tests/unicase/test-u8-is-uppercase.c: Likewise.
15115         * tests/unicase/test-u8-tolower.c: Likewise.
15116         * tests/unicase/test-u8-totitle.c: Likewise.
15117         * tests/unicase/test-u8-toupper.c: Likewise.
15118         * tests/unicase/test-u16-casecmp.c: Likewise.
15119         * tests/unicase/test-u16-casecoll.c: Likewise.
15120         * tests/unicase/test-u16-casefold.c: Likewise.
15121         * tests/unicase/test-u16-is-cased.c: Likewise.
15122         * tests/unicase/test-u16-is-casefolded.c: Likewise.
15123         * tests/unicase/test-u16-is-lowercase.c: Likewise.
15124         * tests/unicase/test-u16-is-titlecase.c: Likewise.
15125         * tests/unicase/test-u16-is-uppercase.c: Likewise.
15126         * tests/unicase/test-u16-tolower.c: Likewise.
15127         * tests/unicase/test-u16-totitle.c: Likewise.
15128         * tests/unicase/test-u16-toupper.c: Likewise.
15129         * tests/unicase/test-u32-casecmp.c: Likewise.
15130         * tests/unicase/test-u32-casecoll.c: Likewise.
15131         * tests/unicase/test-u32-casefold.c: Likewise.
15132         * tests/unicase/test-u32-is-cased.c: Likewise.
15133         * tests/unicase/test-u32-is-casefolded.c: Likewise.
15134         * tests/unicase/test-u32-is-lowercase.c: Likewise.
15135         * tests/unicase/test-u32-is-titlecase.c: Likewise.
15136         * tests/unicase/test-u32-is-uppercase.c: Likewise.
15137         * tests/unicase/test-u32-tolower.c: Likewise.
15138         * tests/unicase/test-u32-totitle.c: Likewise.
15139         * tests/unicase/test-u32-toupper.c: Likewise.
15140         * tests/unicase/test-ulc-casecmp.c: Likewise.
15141         * tests/unicase/test-ulc-casecoll.c: Likewise.
15142         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
15143         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
15144         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
15145         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
15146         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
15147         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
15148         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
15149         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
15150         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
15151         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
15152         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
15153         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
15154         * tests/unictype/test-bidi_byname.c: Likewise.
15155         * tests/unictype/test-bidi_name.c: Likewise.
15156         * tests/unictype/test-bidi_of.c: Likewise.
15157         * tests/unictype/test-bidi_test.c: Likewise.
15158         * tests/unictype/test-block_list.c: Likewise.
15159         * tests/unictype/test-block_of.c: Likewise.
15160         * tests/unictype/test-block_test.c: Likewise.
15161         * tests/unictype/test-categ_and.c: Likewise.
15162         * tests/unictype/test-categ_and_not.c: Likewise.
15163         * tests/unictype/test-categ_byname.c: Likewise.
15164         * tests/unictype/test-categ_name.c: Likewise.
15165         * tests/unictype/test-categ_none.c: Likewise.
15166         * tests/unictype/test-categ_of.c: Likewise.
15167         * tests/unictype/test-categ_or.c: Likewise.
15168         * tests/unictype/test-categ_test_withtable.c: Likewise.
15169         * tests/unictype/test-combining.c: Likewise.
15170         * tests/unictype/test-decdigit.c: Likewise.
15171         * tests/unictype/test-digit.c: Likewise.
15172         * tests/unictype/test-mirror.c: Likewise.
15173         * tests/unictype/test-numeric.c: Likewise.
15174         * tests/unictype/test-pr_byname.c: Likewise.
15175         * tests/unictype/test-pr_test.c: Likewise.
15176         * tests/unictype/test-predicate-part1.h: Likewise.
15177         * tests/unictype/test-scripts.c: Likewise.
15178         * tests/unictype/test-sy_c_ident.c: Likewise.
15179         * tests/unictype/test-sy_java_ident.c: Likewise.
15180         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
15181         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
15182         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
15183         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
15184         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
15185         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
15186         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
15187         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
15188         * tests/uninorm/test-canonical-decomposition.c: Likewise.
15189         * tests/uninorm/test-compat-decomposition.c: Likewise.
15190         * tests/uninorm/test-composition.c: Likewise.
15191         * tests/uninorm/test-decomposing-form.c: Likewise.
15192         * tests/uninorm/test-decomposition.c: Likewise.
15193         * tests/uninorm/test-u8-nfc.c: Likewise.
15194         * tests/uninorm/test-u8-nfd.c: Likewise.
15195         * tests/uninorm/test-u8-nfkc.c: Likewise.
15196         * tests/uninorm/test-u8-nfkd.c: Likewise.
15197         * tests/uninorm/test-u8-normcmp.c: Likewise.
15198         * tests/uninorm/test-u8-normcoll.c: Likewise.
15199         * tests/uninorm/test-u16-nfc.c: Likewise.
15200         * tests/uninorm/test-u16-nfd.c: Likewise.
15201         * tests/uninorm/test-u16-nfkc.c: Likewise.
15202         * tests/uninorm/test-u16-nfkd.c: Likewise.
15203         * tests/uninorm/test-u16-normcmp.c: Likewise.
15204         * tests/uninorm/test-u16-normcoll.c: Likewise.
15205         * tests/uninorm/test-u32-nfc.c: Likewise.
15206         * tests/uninorm/test-u32-nfd.c: Likewise.
15207         * tests/uninorm/test-u32-nfkc.c: Likewise.
15208         * tests/uninorm/test-u32-nfkd.c: Likewise.
15209         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15210         * tests/uninorm/test-u32-normcmp.c: Likewise.
15211         * tests/uninorm/test-u32-normcoll.c: Likewise.
15212         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
15213         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
15214         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
15215         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
15216         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
15217         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
15218         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
15219         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
15220         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
15221         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
15222         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
15223         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
15224         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
15225         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
15226         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
15227         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
15228         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
15229         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
15230         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
15231         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
15232         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
15233         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
15234         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
15235         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
15236         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
15237         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
15238         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
15239         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
15240         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
15241         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
15242         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
15243         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
15244         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
15245         * tests/uniwidth/test-u8-strwidth.c: Likewise.
15246         * tests/uniwidth/test-u8-width.c: Likewise.
15247         * tests/uniwidth/test-u16-strwidth.c: Likewise.
15248         * tests/uniwidth/test-u16-width.c: Likewise.
15249         * tests/uniwidth/test-u32-strwidth.c: Likewise.
15250         * tests/uniwidth/test-u32-width.c: Likewise.
15251         * tests/uniwidth/test-uc_width.c: Likewise.
15252         * tests/uniwidth/test-uc_width2.c: Likewise.
15253         * modules/acl-tests (Files): Add tests/macros.h.
15254         * modules/areadlink-tests (Files): Likewise.
15255         * modules/areadlink-with-size-tests (Files): Likewise.
15256         * modules/areadlinkat-tests (Files): Likewise.
15257         * modules/areadlinkat-with-size-tests (Files): Likewise.
15258         * modules/argmatch-tests (Files): Likewise.
15259         * modules/argv-iter-tests (Files): Likewise.
15260         * modules/array-list-tests (Files): Likewise.
15261         * modules/array-mergesort-tests (Files): Likewise.
15262         * modules/array-oset-tests (Files): Likewise.
15263         * modules/avltree-list-tests (Files): Likewise.
15264         * modules/avltree-oset-tests (Files): Likewise.
15265         * modules/avltreehash-list-tests (Files): Likewise.
15266         * modules/base64-tests (Files): Likewise.
15267         * modules/binary-io-tests (Files): Likewise.
15268         * modules/bitrotate-tests (Files): Likewise.
15269         * modules/btowc-tests (Files): Likewise.
15270         * modules/byteswap-tests (Files): Likewise.
15271         * modules/c-ctype-tests (Files): Likewise.
15272         * modules/c-stack-tests (Files): Likewise.
15273         * modules/c-strcase-tests (Files): Likewise.
15274         * modules/c-strcasestr-tests (Files): Likewise.
15275         * modules/c-strstr-tests (Files): Likewise.
15276         * modules/canonicalize-lgpl-tests (Files): Likewise.
15277         * modules/canonicalize-tests (Files): Likewise.
15278         * modules/carray-list-tests (Files): Likewise.
15279         * modules/ceilf-tests (Files): Likewise.
15280         * modules/ceill-tests (Files): Likewise.
15281         * modules/chown-tests (Files): Likewise.
15282         * modules/cloexec-tests (Files): Likewise.
15283         * modules/copy-file-tests (Files): Likewise.
15284         * modules/count-one-bits-tests (Files): Likewise.
15285         * modules/dprintf-posix-tests (Files): Likewise.
15286         * modules/dup2-tests (Files): Likewise.
15287         * modules/dup3-tests (Files): Likewise.
15288         * modules/duplocale-tests (Files): Likewise.
15289         * modules/fbufmode-tests (Files): Likewise.
15290         * modules/fchdir-tests (Files): Likewise.
15291         * modules/fcntl-safer-tests (Files): Likewise.
15292         * modules/fcntl-tests (Files): Likewise.
15293         * modules/fdopendir-tests (Files): Likewise.
15294         * modules/fdutimensat-tests (Files): Likewise.
15295         * modules/fflush-tests (Files): Likewise.
15296         * modules/filevercmp-tests (Files): Likewise.
15297         * modules/flock-tests (Files): Likewise.
15298         * modules/floorf-tests (Files): Likewise.
15299         * modules/floorl-tests (Files): Likewise.
15300         * modules/fnmatch-tests (Files): Likewise.
15301         * modules/fopen-safer-tests (Files): Likewise.
15302         * modules/fopen-tests (Files): Likewise.
15303         * modules/fpending-tests (Files): Likewise.
15304         * modules/fprintf-posix-tests (Files): Likewise.
15305         * modules/fpurge-tests (Files): Likewise.
15306         * modules/freadable-tests (Files): Likewise.
15307         * modules/freadahead-tests (Files): Likewise.
15308         * modules/freading-tests (Files): Likewise.
15309         * modules/freadptr-tests (Files): Likewise.
15310         * modules/freadseek-tests (Files): Likewise.
15311         * modules/freopen-tests (Files): Likewise.
15312         * modules/frexp-nolibm-tests (Files): Likewise.
15313         * modules/frexp-tests (Files): Likewise.
15314         * modules/frexpl-nolibm-tests (Files): Likewise.
15315         * modules/frexpl-tests (Files): Likewise.
15316         * modules/fseek-tests (Files): Likewise.
15317         * modules/fseeko-tests (Files): Likewise.
15318         * modules/fstrcmp-tests (Files): Likewise.
15319         * modules/fsync-tests (Files): Likewise.
15320         * modules/ftell-tests (Files): Likewise.
15321         * modules/ftello-tests (Files): Likewise.
15322         * modules/func-tests (Files): Likewise.
15323         * modules/futimens-tests (Files): Likewise.
15324         * modules/fwritable-tests (Files): Likewise.
15325         * modules/fwriting-tests (Files): Likewise.
15326         * modules/getcwd-tests (Files): Likewise.
15327         * modules/getdate-tests (Files): Likewise.
15328         * modules/getdelim-tests (Files): Likewise.
15329         * modules/getdtablesize-tests (Files): Likewise.
15330         * modules/getgroups-tests (Files): Likewise.
15331         * modules/getline-tests (Files): Likewise.
15332         * modules/getndelim2-tests (Files): Likewise.
15333         * modules/glob-tests (Files): Likewise.
15334         * modules/hash-tests (Files): Likewise.
15335         * modules/i-ring-tests (Files): Likewise.
15336         * modules/iconv-tests (Files): Likewise.
15337         * modules/iconv_open-utf-tests (Files): Likewise.
15338         * modules/idpriv-drop-tests (Files): Likewise.
15339         * modules/idpriv-droptemp-tests (Files): Likewise.
15340         * modules/inet_ntop-tests (Files): Likewise.
15341         * modules/inet_pton-tests (Files): Likewise.
15342         * modules/isblank-tests (Files): Likewise.
15343         * modules/isfinite-tests (Files): Likewise.
15344         * modules/isinf-tests (Files): Likewise.
15345         * modules/isnan-tests (Files): Likewise.
15346         * modules/isnand-nolibm-tests (Files): Likewise.
15347         * modules/isnand-tests (Files): Likewise.
15348         * modules/isnanf-nolibm-tests (Files): Likewise.
15349         * modules/isnanf-tests (Files): Likewise.
15350         * modules/isnanl-nolibm-tests (Files): Likewise.
15351         * modules/isnanl-tests (Files): Likewise.
15352         * modules/lchown-tests (Files): Likewise.
15353         * modules/ldexpl-tests (Files): Likewise.
15354         * modules/link-tests (Files): Likewise.
15355         * modules/linkat-tests (Files): Likewise.
15356         * modules/linked-list-tests (Files): Likewise.
15357         * modules/linkedhash-list-tests (Files): Likewise.
15358         * modules/localename-tests (Files): Likewise.
15359         * modules/lseek-tests (Files): Likewise.
15360         * modules/lstat-tests (Files): Likewise.
15361         * modules/mbmemcasecmp-tests (Files): Likewise.
15362         * modules/mbmemcasecoll-tests (Files): Likewise.
15363         * modules/mbrtowc-tests (Files): Likewise.
15364         * modules/mbscasecmp-tests (Files): Likewise.
15365         * modules/mbscasestr-tests (Files): Likewise.
15366         * modules/mbschr-tests (Files): Likewise.
15367         * modules/mbscspn-tests (Files): Likewise.
15368         * modules/mbsinit-tests (Files): Likewise.
15369         * modules/mbsncasecmp-tests (Files): Likewise.
15370         * modules/mbsnrtowcs-tests (Files): Likewise.
15371         * modules/mbspbrk-tests (Files): Likewise.
15372         * modules/mbspcasecmp-tests (Files): Likewise.
15373         * modules/mbsrchr-tests (Files): Likewise.
15374         * modules/mbsrtowcs-tests (Files): Likewise.
15375         * modules/mbsspn-tests (Files): Likewise.
15376         * modules/mbsstr-tests (Files): Likewise.
15377         * modules/memchr-tests (Files): Likewise.
15378         * modules/memchr2-tests (Files): Likewise.
15379         * modules/memcmp-tests (Files): Likewise.
15380         * modules/memmem-tests (Files): Likewise.
15381         * modules/memrchr-tests (Files): Likewise.
15382         * modules/mkdir-tests (Files): Likewise.
15383         * modules/mkfifo-tests (Files): Likewise.
15384         * modules/mkfifoat-tests (Files): Likewise.
15385         * modules/mknod-tests (Files): Likewise.
15386         * modules/nanosleep-tests (Files): Likewise.
15387         * modules/nl_langinfo-tests (Files): Likewise.
15388         * modules/obstack-printf-tests (Files): Likewise.
15389         * modules/open-tests (Files): Likewise.
15390         * modules/openat-tests (Files): Likewise.
15391         * modules/pipe-filter-gi-tests (Files): Likewise.
15392         * modules/pipe-filter-ii-tests (Files): Likewise.
15393         * modules/pipe2-tests (Files): Likewise.
15394         * modules/popen-safer-tests (Files): Likewise.
15395         * modules/popen-tests (Files): Likewise.
15396         * modules/posixtm-tests (Files): Likewise.
15397         * modules/pread-tests (Files): Likewise.
15398         * modules/printf-frexp-tests (Files): Likewise.
15399         * modules/printf-frexpl-tests (Files): Likewise.
15400         * modules/printf-posix-tests (Files): Likewise.
15401         * modules/priv-set-tests (Files): Likewise.
15402         * modules/quotearg-tests (Files): Likewise.
15403         * modules/random_r-tests (Files): Likewise.
15404         * modules/rawmemchr-tests (Files): Likewise.
15405         * modules/rbtree-list-tests (Files): Likewise.
15406         * modules/rbtree-oset-tests (Files): Likewise.
15407         * modules/rbtreehash-list-tests (Files): Likewise.
15408         * modules/readlink-tests (Files): Likewise.
15409         * modules/remove-tests (Files): Likewise.
15410         * modules/rename-tests (Files): Likewise.
15411         * modules/renameat-tests (Files): Likewise.
15412         * modules/rmdir-tests (Files): Likewise.
15413         * modules/round-tests (Files): Likewise.
15414         * modules/roundf-tests (Files): Likewise.
15415         * modules/roundl-tests (Files): Likewise.
15416         * modules/safe-alloc-tests (Files): Likewise.
15417         * modules/setenv-tests (Files): Likewise.
15418         * modules/sigaction-tests (Files): Likewise.
15419         * modules/signbit-tests (Files): Likewise.
15420         * modules/sleep-tests (Files): Likewise.
15421         * modules/snprintf-posix-tests (Files): Likewise.
15422         * modules/snprintf-tests (Files): Likewise.
15423         * modules/sprintf-posix-tests (Files): Likewise.
15424         * modules/stat-tests (Files): Likewise.
15425         * modules/stat-time-tests (Files): Likewise.
15426         * modules/strcasestr-tests (Files): Likewise.
15427         * modules/strchrnul-tests (Files): Likewise.
15428         * modules/strerror-tests (Files): Likewise.
15429         * modules/striconv-tests (Files): Likewise.
15430         * modules/striconveh-tests (Files): Likewise.
15431         * modules/striconveha-tests (Files): Likewise.
15432         * modules/strsignal-tests (Files): Likewise.
15433         * modules/strstr-tests (Files): Likewise.
15434         * modules/strtod-tests (Files): Likewise.
15435         * modules/strverscmp-tests (Files): Likewise.
15436         * modules/symlink-tests (Files): Likewise.
15437         * modules/symlinkat-tests (Files): Likewise.
15438         * modules/trunc-tests (Files): Likewise.
15439         * modules/truncf-tests (Files): Likewise.
15440         * modules/truncl-tests (Files): Likewise.
15441         * modules/uname-tests (Files): Likewise.
15442         * modules/unicase/cased-tests (Files): Likewise.
15443         * modules/unicase/ignorable-tests (Files): Likewise.
15444         * modules/unicase/locale-language-tests (Files): Likewise.
15445         * modules/unicase/tolower-tests (Files): Likewise.
15446         * modules/unicase/totitle-tests (Files): Likewise.
15447         * modules/unicase/toupper-tests (Files): Likewise.
15448         * modules/unicase/u8-casecmp-tests (Files): Likewise.
15449         * modules/unicase/u8-casecoll-tests (Files): Likewise.
15450         * modules/unicase/u8-casefold-tests (Files): Likewise.
15451         * modules/unicase/u8-is-cased-tests (Files): Likewise.
15452         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
15453         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
15454         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
15455         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
15456         * modules/unicase/u8-tolower-tests (Files): Likewise.
15457         * modules/unicase/u8-totitle-tests (Files): Likewise.
15458         * modules/unicase/u8-toupper-tests (Files): Likewise.
15459         * modules/unicase/u16-casecmp-tests (Files): Likewise.
15460         * modules/unicase/u16-casecoll-tests (Files): Likewise.
15461         * modules/unicase/u16-casefold-tests (Files): Likewise.
15462         * modules/unicase/u16-is-cased-tests (Files): Likewise.
15463         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
15464         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
15465         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
15466         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
15467         * modules/unicase/u16-tolower-tests (Files): Likewise.
15468         * modules/unicase/u16-totitle-tests (Files): Likewise.
15469         * modules/unicase/u16-toupper-tests (Files): Likewise.
15470         * modules/unicase/u32-casecmp-tests (Files): Likewise.
15471         * modules/unicase/u32-casecoll-tests (Files): Likewise.
15472         * modules/unicase/u32-casefold-tests (Files): Likewise.
15473         * modules/unicase/u32-is-cased-tests (Files): Likewise.
15474         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
15475         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
15476         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
15477         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
15478         * modules/unicase/u32-tolower-tests (Files): Likewise.
15479         * modules/unicase/u32-totitle-tests (Files): Likewise.
15480         * modules/unicase/u32-toupper-tests (Files): Likewise.
15481         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
15482         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
15483         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
15484         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
15485         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
15486         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
15487         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
15488         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
15489         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
15490         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
15491         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
15492         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
15493         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
15494         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
15495         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
15496         * modules/unictype/bidicategory-name-tests (Files): Likewise.
15497         * modules/unictype/bidicategory-of-tests (Files): Likewise.
15498         * modules/unictype/bidicategory-test-tests (Files): Likewise.
15499         * modules/unictype/block-list-tests (Files): Likewise.
15500         * modules/unictype/block-of-tests (Files): Likewise.
15501         * modules/unictype/block-test-tests (Files): Likewise.
15502         * modules/unictype/category-C-tests (Files): Likewise.
15503         * modules/unictype/category-Cc-tests (Files): Likewise.
15504         * modules/unictype/category-Cf-tests (Files): Likewise.
15505         * modules/unictype/category-Cn-tests (Files): Likewise.
15506         * modules/unictype/category-Co-tests (Files): Likewise.
15507         * modules/unictype/category-Cs-tests (Files): Likewise.
15508         * modules/unictype/category-L-tests (Files): Likewise.
15509         * modules/unictype/category-Ll-tests (Files): Likewise.
15510         * modules/unictype/category-Lm-tests (Files): Likewise.
15511         * modules/unictype/category-Lo-tests (Files): Likewise.
15512         * modules/unictype/category-Lt-tests (Files): Likewise.
15513         * modules/unictype/category-Lu-tests (Files): Likewise.
15514         * modules/unictype/category-M-tests (Files): Likewise.
15515         * modules/unictype/category-Mc-tests (Files): Likewise.
15516         * modules/unictype/category-Me-tests (Files): Likewise.
15517         * modules/unictype/category-Mn-tests (Files): Likewise.
15518         * modules/unictype/category-N-tests (Files): Likewise.
15519         * modules/unictype/category-Nd-tests (Files): Likewise.
15520         * modules/unictype/category-Nl-tests (Files): Likewise.
15521         * modules/unictype/category-No-tests (Files): Likewise.
15522         * modules/unictype/category-P-tests (Files): Likewise.
15523         * modules/unictype/category-Pc-tests (Files): Likewise.
15524         * modules/unictype/category-Pd-tests (Files): Likewise.
15525         * modules/unictype/category-Pe-tests (Files): Likewise.
15526         * modules/unictype/category-Pf-tests (Files): Likewise.
15527         * modules/unictype/category-Pi-tests (Files): Likewise.
15528         * modules/unictype/category-Po-tests (Files): Likewise.
15529         * modules/unictype/category-Ps-tests (Files): Likewise.
15530         * modules/unictype/category-S-tests (Files): Likewise.
15531         * modules/unictype/category-Sc-tests (Files): Likewise.
15532         * modules/unictype/category-Sk-tests (Files): Likewise.
15533         * modules/unictype/category-Sm-tests (Files): Likewise.
15534         * modules/unictype/category-So-tests (Files): Likewise.
15535         * modules/unictype/category-Z-tests (Files): Likewise.
15536         * modules/unictype/category-Zl-tests (Files): Likewise.
15537         * modules/unictype/category-Zp-tests (Files): Likewise.
15538         * modules/unictype/category-Zs-tests (Files): Likewise.
15539         * modules/unictype/category-and-not-tests (Files): Likewise.
15540         * modules/unictype/category-and-tests (Files): Likewise.
15541         * modules/unictype/category-byname-tests (Files): Likewise.
15542         * modules/unictype/category-name-tests (Files): Likewise.
15543         * modules/unictype/category-none-tests (Files): Likewise.
15544         * modules/unictype/category-of-tests (Files): Likewise.
15545         * modules/unictype/category-or-tests (Files): Likewise.
15546         * modules/unictype/category-test-withtable-tests (Files): Likewise.
15547         * modules/unictype/combining-class-tests (Files): Likewise.
15548         * modules/unictype/ctype-alnum-tests (Files): Likewise.
15549         * modules/unictype/ctype-alpha-tests (Files): Likewise.
15550         * modules/unictype/ctype-blank-tests (Files): Likewise.
15551         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
15552         * modules/unictype/ctype-digit-tests (Files): Likewise.
15553         * modules/unictype/ctype-graph-tests (Files): Likewise.
15554         * modules/unictype/ctype-lower-tests (Files): Likewise.
15555         * modules/unictype/ctype-print-tests (Files): Likewise.
15556         * modules/unictype/ctype-punct-tests (Files): Likewise.
15557         * modules/unictype/ctype-space-tests (Files): Likewise.
15558         * modules/unictype/ctype-upper-tests (Files): Likewise.
15559         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
15560         * modules/unictype/decimal-digit-tests (Files): Likewise.
15561         * modules/unictype/digit-tests (Files): Likewise.
15562         * modules/unictype/mirror-tests (Files): Likewise.
15563         * modules/unictype/numeric-tests (Files): Likewise.
15564         * modules/unictype/property-alphabetic-tests (Files): Likewise.
15565         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
15566         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
15567         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
15568         Likewise.
15569         * modules/unictype/property-bidi-block-separator-tests (Files):
15570         Likewise.
15571         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
15572         Likewise.
15573         * modules/unictype/property-bidi-common-separator-tests (Files):
15574         Likewise.
15575         * modules/unictype/property-bidi-control-tests (Files): Likewise.
15576         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
15577         Likewise.
15578         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
15579         Likewise.
15580         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
15581         Likewise.
15582         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
15583         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
15584         Likewise.
15585         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
15586         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
15587         Likewise.
15588         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
15589         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
15590         * modules/unictype/property-bidi-segment-separator-tests (Files):
15591         Likewise.
15592         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
15593         * modules/unictype/property-byname-tests (Files): Likewise.
15594         * modules/unictype/property-combining-tests (Files): Likewise.
15595         * modules/unictype/property-composite-tests (Files): Likewise.
15596         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
15597         * modules/unictype/property-dash-tests (Files): Likewise.
15598         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
15599         * modules/unictype/property-default-ignorable-code-point-tests (Files):
15600         Likewise.
15601         * modules/unictype/property-deprecated-tests (Files): Likewise.
15602         * modules/unictype/property-diacritic-tests (Files): Likewise.
15603         * modules/unictype/property-extender-tests (Files): Likewise.
15604         * modules/unictype/property-format-control-tests (Files): Likewise.
15605         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
15606         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
15607         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
15608         * modules/unictype/property-hex-digit-tests (Files): Likewise.
15609         * modules/unictype/property-hyphen-tests (Files): Likewise.
15610         * modules/unictype/property-id-continue-tests (Files): Likewise.
15611         * modules/unictype/property-id-start-tests (Files): Likewise.
15612         * modules/unictype/property-ideographic-tests (Files): Likewise.
15613         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
15614         * modules/unictype/property-ids-trinary-operator-tests (Files):
15615         Likewise.
15616         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
15617         * modules/unictype/property-iso-control-tests (Files): Likewise.
15618         * modules/unictype/property-join-control-tests (Files): Likewise.
15619         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
15620         * modules/unictype/property-line-separator-tests (Files): Likewise.
15621         * modules/unictype/property-logical-order-exception-tests (Files):
15622         Likewise.
15623         * modules/unictype/property-lowercase-tests (Files): Likewise.
15624         * modules/unictype/property-math-tests (Files): Likewise.
15625         * modules/unictype/property-non-break-tests (Files): Likewise.
15626         * modules/unictype/property-not-a-character-tests (Files): Likewise.
15627         * modules/unictype/property-numeric-tests (Files): Likewise.
15628         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
15629         * modules/unictype/property-other-default-ignorable-code-point-tests
15630         (Files): Likewise.
15631         * modules/unictype/property-other-grapheme-extend-tests (Files):
15632         Likewise.
15633         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
15634         * modules/unictype/property-other-id-start-tests (Files): Likewise.
15635         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
15636         * modules/unictype/property-other-math-tests (Files): Likewise.
15637         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
15638         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
15639         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
15640         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
15641         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
15642         * modules/unictype/property-private-use-tests (Files): Likewise.
15643         * modules/unictype/property-punctuation-tests (Files): Likewise.
15644         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
15645         * modules/unictype/property-radical-tests (Files): Likewise.
15646         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
15647         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
15648         * modules/unictype/property-space-tests (Files): Likewise.
15649         * modules/unictype/property-terminal-punctuation-tests (Files):
15650         Likewise.
15651         * modules/unictype/property-test-tests (Files): Likewise.
15652         * modules/unictype/property-titlecase-tests (Files): Likewise.
15653         * modules/unictype/property-unassigned-code-value-tests (Files):
15654         Likewise.
15655         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
15656         * modules/unictype/property-uppercase-tests (Files): Likewise.
15657         * modules/unictype/property-variation-selector-tests (Files): Likewise.
15658         * modules/unictype/property-white-space-tests (Files): Likewise.
15659         * modules/unictype/property-xid-continue-tests (Files): Likewise.
15660         * modules/unictype/property-xid-start-tests (Files): Likewise.
15661         * modules/unictype/property-zero-width-tests (Files): Likewise.
15662         * modules/unictype/scripts-tests (Files): Likewise.
15663         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
15664         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
15665         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
15666         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
15667         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
15668         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
15669         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
15670         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
15671         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
15672         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
15673         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
15674         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
15675         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
15676         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
15677         * modules/uninorm/composition-tests (Files): Likewise.
15678         * modules/uninorm/decomposing-form-tests (Files): Likewise.
15679         * modules/uninorm/decomposition-tests (Files): Likewise.
15680         * modules/uninorm/filter-tests (Files): Likewise.
15681         * modules/uninorm/nfc-tests (Files): Likewise.
15682         * modules/uninorm/nfd-tests (Files): Likewise.
15683         * modules/uninorm/nfkc-tests (Files): Likewise.
15684         * modules/uninorm/nfkd-tests (Files): Likewise.
15685         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
15686         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
15687         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
15688         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
15689         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
15690         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
15691         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
15692         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
15693         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
15694         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
15695         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
15696         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
15697         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
15698         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
15699         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
15700         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
15701         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
15702         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
15703         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
15704         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
15705         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
15706         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
15707         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
15708         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
15709         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
15710         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
15711         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
15712         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
15713         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
15714         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
15715         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
15716         * modules/uniwidth/u8-width-tests (Files): Likewise.
15717         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
15718         * modules/uniwidth/u16-width-tests (Files): Likewise.
15719         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
15720         * modules/uniwidth/u32-width-tests (Files): Likewise.
15721         * modules/uniwidth/width-tests (Files): Likewise.
15722         * modules/unlink-tests (Files): Likewise.
15723         * modules/unsetenv-tests (Files): Likewise.
15724         * modules/usleep-tests (Files): Likewise.
15725         * modules/utimens-tests (Files): Likewise.
15726         * modules/utimensat-tests (Files): Likewise.
15727         * modules/vasnprintf-posix-tests (Files): Likewise.
15728         * modules/vasnprintf-tests (Files): Likewise.
15729         * modules/vasprintf-posix-tests (Files): Likewise.
15730         * modules/vasprintf-tests (Files): Likewise.
15731         * modules/vdprintf-posix-tests (Files): Likewise.
15732         * modules/vfprintf-posix-tests (Files): Likewise.
15733         * modules/vprintf-posix-tests (Files): Likewise.
15734         * modules/vsnprintf-posix-tests (Files): Likewise.
15735         * modules/vsnprintf-tests (Files): Likewise.
15736         * modules/vsprintf-posix-tests (Files): Likewise.
15737         * modules/wcrtomb-tests (Files): Likewise.
15738         * modules/wcsnrtombs-tests (Files): Likewise.
15739         * modules/wcsrtombs-tests (Files): Likewise.
15740         * modules/wctype-tests (Files): Likewise.
15741         * modules/wcwidth-tests (Files): Likewise.
15742         * modules/xmemdup0-tests (Files): Likewise.
15743         * modules/xprintf-posix-tests (Files): Likewise.
15744         * modules/xvasprintf-tests (Files): Likewise.
15745
15746 2009-12-24  Eric Blake  <ebb9@byu.net>
15747
15748         test-nanosleep: fix typo
15749         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
15750         patch.
15751         Reported by Bruno Haible.
15752
15753 2009-12-24  Bruno Haible  <bruno@clisp.org>
15754
15755         Reduce namespace pollution on glibc systems.
15756         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
15757         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
15758         systems.
15759         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
15760         <getopt.h> on glibc systems.
15761         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
15762         systems.
15763         * lib/fcntl.c: Include <unistd.h> here instead.
15764
15765 2009-12-24  Bruno Haible  <bruno@clisp.org>
15766
15767         * lib/stdlib.in.h (includes): Fix typo in today's commit.
15768
15769 2009-12-24  Eric Blake  <ebb9@byu.net>
15770
15771         tests: add signature checks
15772         * tests/signature.h (SIGNATURE_CHECK): New file.
15773         * modules/atexit-tests (Files): Use it.
15774         * modules/btowc-tests (Files): Likewise.
15775         * modules/canonicalize-lgpl-tests (Files): Likewise.
15776         * modules/ceilf-tests (Files): Likewise.
15777         * modules/ceill-tests (Files): Likewise.
15778         * modules/chown-tests (Files): Likewise.
15779         * modules/dprintf-posix-tests (Files): Likewise.
15780         * modules/dup2-tests (Files): Likewise.
15781         * modules/dup3-tests (Files): Likewise.
15782         * modules/duplocale-tests (Files): Likewise.
15783         * modules/fchdir-tests (Files): Likewise.
15784         * modules/fcntl-tests (Files): Likewise.
15785         * modules/fdopendir-tests (Files): Likewise.
15786         * modules/fflush-tests (Files): Likewise.
15787         * modules/flock-tests (Files): Likewise.
15788         * modules/floorf-tests (Files): Likewise.
15789         * modules/floorl-tests (Files): Likewise.
15790         * modules/fnmatch-tests (Files): Likewise.
15791         * modules/fopen-tests (Files): Likewise.
15792         * modules/fprintf-posix-tests (Files): Likewise.
15793         * modules/freopen-tests (Files): Likewise.
15794         * modules/frexp-nolibm-tests (Files): Likewise.
15795         * modules/frexp-tests (Files): Likewise.
15796         * modules/frexpl-nolibm-tests (Files): Likewise.
15797         * modules/frexpl-tests (Files): Likewise.
15798         * modules/fseek-tests (Files): Likewise.
15799         * modules/fseeko-tests (Files): Likewise.
15800         * modules/fsync-tests (Files): Likewise.
15801         * modules/ftell-tests (Files): Likewise.
15802         * modules/ftello-tests (Files): Likewise.
15803         * modules/futimens-tests (Files): Likewise.
15804         * modules/getaddrinfo-tests (Files): Likewise.
15805         * modules/getcwd-tests (Files): Likewise.
15806         * modules/getdelim-tests (Files): Likewise.
15807         * modules/getdtablesize-tests (Files): Likewise.
15808         * modules/getgroups-tests (Files): Likewise.
15809         * modules/gethostname-tests (Files): Likewise.
15810         * modules/getline-tests (Files): Likewise.
15811         * modules/getopt-posix-tests (Files): Likewise.
15812         * modules/gettimeofday-tests (Files): Likewise.
15813         * modules/glob-tests (Files): Likewise.
15814         * modules/iconv-tests (Files): Likewise.
15815         * modules/inet_ntop-tests (Files): Likewise.
15816         * modules/inet_pton-tests (Files): Likewise.
15817         * modules/isblank-tests (Files): Likewise.
15818         * modules/lchown-tests (Files): Likewise.
15819         * modules/ldexpl-tests (Files): Likewise.
15820         * modules/link-tests (Files): Likewise.
15821         * modules/linkat-tests (Files): Likewise.
15822         * modules/lseek-tests (Files): Likewise.
15823         * modules/lstat-tests (Files): Likewise.
15824         * modules/mbrtowc-tests (Files): Likewise.
15825         * modules/mbsinit-tests (Files): Likewise.
15826         * modules/mbsnrtowcs-tests (Files): Likewise.
15827         * modules/mbsrtowcs-tests (Files): Likewise.
15828         * modules/memchr-tests (Files): Likewise.
15829         * modules/memcmp-tests (Files): Likewise.
15830         * modules/memmem-tests (Files): Likewise.
15831         * modules/memrchr-tests (Files): Likewise.
15832         * modules/mkdir-tests (Files): Likewise.
15833         * modules/mkfifo-tests (Files): Likewise.
15834         * modules/mkfifoat-tests (Files): Likewise.
15835         * modules/mknod-tests (Files): Likewise.
15836         * modules/nanosleep-tests (Files): Likewise.
15837         * modules/nl_langinfo-tests (Files): Likewise.
15838         * modules/obstack-printf-tests (Files): Likewise.
15839         * modules/open-tests (Files): Likewise.
15840         * modules/openat-tests (Files): Likewise.
15841         * modules/perror-tests (Files): Likewise.
15842         * modules/pipe2-tests (Files): Likewise.
15843         * modules/poll-tests (Files): Likewise.
15844         * modules/popen-tests (Files): Likewise.
15845         * modules/posix_spawn-tests (Files): Likewise.
15846         * modules/posix_spawnp-tests (Files): Likewise.
15847         * modules/pread-tests (Files): Likewise.
15848         * modules/printf-posix-tests (Files): Likewise.
15849         * modules/pty-tests (Files): Likewise.
15850         * modules/random_r-tests (Files): Likewise.
15851         * modules/rawmemchr-tests (Files): Likewise.
15852         * modules/readlink-tests (Files): Likewise.
15853         * modules/remove-tests (Files): Likewise.
15854         * modules/rename-tests (Files): Likewise.
15855         * modules/renameat-tests (Files): Likewise.
15856         * modules/rmdir-tests (Files): Likewise.
15857         * modules/round-tests (Files): Likewise.
15858         * modules/roundf-tests (Files): Likewise.
15859         * modules/roundl-tests (Files): Likewise.
15860         * modules/select-tests (Files): Likewise.
15861         * modules/setenv-tests (Files): Likewise.
15862         * modules/sigaction-tests (Files): Likewise.
15863         * modules/sleep-tests (Files): Likewise.
15864         * modules/snprintf-posix-tests (Files): Likewise.
15865         * modules/snprintf-tests (Files): Likewise.
15866         * modules/sprintf-posix-tests (Files): Likewise.
15867         * modules/stat-tests (Files): Likewise.
15868         * modules/strcasestr-tests (Files): Likewise.
15869         * modules/strchrnul-tests (Files): Likewise.
15870         * modules/strerror-tests (Files): Likewise.
15871         * modules/strsignal-tests (Files): Likewise.
15872         * modules/strstr-tests (Files): Likewise.
15873         * modules/strtod-tests (Files): Likewise.
15874         * modules/strverscmp-tests (Files): Likewise.
15875         * modules/symlink-tests (Files): Likewise.
15876         * modules/symlinkat-tests (Files): Likewise.
15877         * modules/times-tests (Files): Likewise.
15878         * modules/trunc-tests (Files): Likewise.
15879         * modules/truncf-tests (Files): Likewise.
15880         * modules/truncl-tests (Files): Likewise.
15881         * modules/tsearch-tests (Files): Likewise.
15882         * modules/uname-tests (Files): Likewise.
15883         * modules/unlink-tests (Files): Likewise.
15884         * modules/unsetenv-tests (Files): Likewise.
15885         * modules/usleep-tests (Files): Likewise.
15886         * modules/utimensat-tests (Files): Likewise.
15887         * modules/vasprintf-tests (Files): Likewise.
15888         * modules/vdprintf-posix-tests (Files): Likewise.
15889         * modules/vfprintf-posix-tests (Files): Likewise.
15890         * modules/vprintf-posix-tests (Files): Likewise.
15891         * modules/vsnprintf-posix-tests (Files): Likewise.
15892         * modules/vsnprintf-tests (Files): Likewise.
15893         * modules/vsprintf-posix-tests (Files): Likewise.
15894         * modules/wcrtomb-tests (Files): Likewise.
15895         * modules/wcsnrtombs-tests (Files): Likewise.
15896         * modules/wcsrtombs-tests (Files): Likewise.
15897         * modules/wcwidth-tests (Files): Likewise.
15898         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
15899         * tests/test-isinf.c (isinf): Likewise.
15900         * tests/test-isnan.c (isnan): Likewise.
15901         * tests/test-signbit.c (signbit): Likewise.
15902         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
15903         declaration, either as macro or with correct signature.
15904         (select): Ensure function under test is declared with correct
15905         signature in correct header.
15906         * tests/test-atexit.c (atexit): Likewise.
15907         * tests/test-btowc.c (btowc): Likewise.
15908         * tests/test-canonicalize-lgpl.c (realpath)
15909         (canonicalize_file_name): Likewise.
15910         * tests/test-ceilf1.c (ceilf): Likewise.
15911         * tests/test-ceill.c (ceill): Likewise.
15912         * tests/test-chown.c (chown): Likewise.
15913         * tests/test-dprintf-posix.c (dprintf): Likewise.
15914         * tests/test-dup2.c (dup2): Likewise.
15915         * tests/test-dup3.c (dup3): Likewise.
15916         * tests/test-duplocale.c (duplocale): Likewise.
15917         * tests/test-fchdir.c (fchdir): Likewise.
15918         * tests/test-fchownat.c (fchownat): Likewise.
15919         * tests/test-fcntl.c (fcntl): Likewise.
15920         * tests/test-fdopendir.c (fdopendir): Likewise.
15921         * tests/test-fflush.c (fflush): Likewise.
15922         * tests/test-flock.c (flock): Likewise.
15923         * tests/test-floorf1.c (floorf): Likewise.
15924         * tests/test-floorl.c (floorl): Likewise.
15925         * tests/test-fnmatch.c (fnmatch): Likewise.
15926         * tests/test-fopen.c (fopen): Likewise.
15927         * tests/test-fprintf-posix.c (fprintf): Likewise.
15928         * tests/test-freopen.c (freopen): Likewise.
15929         * tests/test-frexp.c (frexp): Likewise.
15930         * tests/test-frexpl.c (frexpl): Likewise.
15931         * tests/test-fseek.c (fseek): Likewise.
15932         * tests/test-fseeko.c (fseeko): Likewise.
15933         * tests/test-fstatat.c (fstatat): Likewise.
15934         * tests/test-fsync.c (fsync): Likewise.
15935         * tests/test-ftell.c (ftell): Likewise.
15936         * tests/test-ftello.c (ftello): Likewise.
15937         * tests/test-futimens.c (futimens): Likewise.
15938         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
15939         (gai_strerror): Likewise.
15940         * tests/test-getcwd.c (getcwd): Likewise.
15941         * tests/test-getdelim.c (getdelim): Likewise.
15942         * tests/test-getdtablesize.c (getdtablesize): Likewise.
15943         * tests/test-getgroups.c (getgroups): Likewise.
15944         * tests/test-gethostname.c (gethostname): Likewise.
15945         * tests/test-getline.c (getline): Likewise.
15946         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
15947         Likewise.
15948         * tests/test-gettimeofday.c (gettimeofday): Likewise.
15949         * tests/test-glob.c (glob, globfree): Likewise.
15950         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
15951         * tests/test-inet_ntop.c (inet_ntop): Likewise.
15952         * tests/test-inet_pton.c (inet_pton): Likewise.
15953         * tests/test-isblank.c (isblank): Likewise.
15954         * tests/test-lchown.c (lchown): Likewise.
15955         * tests/test-ldexpl.c (ldexpl): Likewise.
15956         * tests/test-link.c (link): Likewise.
15957         * tests/test-linkat.c (linkat): Likewise.
15958         * tests/test-lseek.c (lseek): Likewise.
15959         * tests/test-lstat.c (lstat): Likewise.
15960         * tests/test-mbrtowc.c (mbrtowc): Likewise.
15961         * tests/test-mbsinit.c (mbsinit): Likewise.
15962         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
15963         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
15964         * tests/test-memchr.c (memchr): Likewise.
15965         * tests/test-memcmp.c (memcmp): Likewise.
15966         * tests/test-memmem.c (memmem): Likewise.
15967         * tests/test-memrchr.c (memrchr): Likewise.
15968         * tests/test-mkdir.c (mkdir): Likewise.
15969         * tests/test-mkdirat.c (mkdirat): Likewise.
15970         * tests/test-mkfifo.c (mkfifo): Likewise.
15971         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
15972         * tests/test-mknod.c (mknod): Likewise.
15973         * tests/test-nanosleep.c (nanosleep): Likewise.
15974         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
15975         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
15976         Likewise.
15977         * tests/test-open.c (open): Likewise.
15978         * tests/test-openat.c (openat): Likewise.
15979         * tests/test-perror.c (perror): Likewise.
15980         * tests/test-pipe2.c (pipe2): Likewise.
15981         * tests/test-poll.c (poll): Likewise.
15982         * tests/test-popen.c (popen, pclose): Likewise.
15983         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
15984         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
15985         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
15986         (posix_spawn_file_actions_destroy)
15987         (posix_spawn_file_actions_addclose)
15988         (posix_spawn_file_actions_addopen)
15989         (posix_spawn_file_actions_adddup2): Likewise.
15990         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
15991         * tests/test-pread.c (pread): Likewise.
15992         * tests/test-printf-posix.c (printf): Likewise.
15993         * tests/test-pty.c (openpty, forkpty): Likewise.
15994         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
15995         (random_r): Likewise.
15996         * tests/test-rawmemchr.c (rawmemchr): Likewise.
15997         * tests/test-readlink.c (readlink): Likewise.
15998         * tests/test-remove.c (remove): Likewise.
15999         * tests/test-rename.c (rename): Likewise.
16000         * tests/test-renameat.c (renameat): Likewise.
16001         * tests/test-rmdir.c (rmdir): Likewise.
16002         * tests/test-round1.c (round): Likewise.
16003         * tests/test-roundf1.c (roundf): Likewise.
16004         * tests/test-roundl.c (roundl): Likewise.
16005         * tests/test-setenv.c (setenv): Likewise.
16006         * tests/test-sigaction.c (sigaction): Likewise.
16007         * tests/test-sleep.c (sleep): Likewise.
16008         * tests/test-snprintf.c (snprintf): Likewise.
16009         * tests/test-sprintf-posix.c (sprintf): Likewise.
16010         * tests/test-stat.c (stat): Likewise.
16011         * tests/test-stpncpy.c (stpncpy): Likewise.
16012         * tests/test-strcasestr.c (strcasestr): Likewise.
16013         * tests/test-strchrnul.c (strchrnul): Likewise.
16014         * tests/test-strerror.c (strerror): Likewise.
16015         * tests/test-strsignal.c (strsignal): Likewise.
16016         * tests/test-strstr.c (strstr): Likewise.
16017         * tests/test-strtod.c (strtod): Likewise.
16018         * tests/test-strverscmp.c (strverscmp): Likewise.
16019         * tests/test-symlink.c (symlink): Likewise.
16020         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
16021         * tests/test-times.c (times): Likewise.
16022         * tests/test-trunc1.c (trunc): Likewise.
16023         * tests/test-truncf1.c (truncf): Likewise.
16024         * tests/test-truncl.c (truncl): Likewise.
16025         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
16026         Likewise.
16027         * tests/test-uname.c (uname): Likewise.
16028         * tests/test-unlink.c (unlink): Likewise.
16029         * tests/test-unlinkat.c (unlinkat): Likewise.
16030         * tests/test-unsetenv.c (unsetenv): Likewise.
16031         * tests/test-usleep.c (usleep): Likewise.
16032         * tests/test-utimensat.c (utimensat): Likewise.
16033         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
16034         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
16035         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
16036         * tests/test-vprintf-posix.c (vprintf): Likewise.
16037         * tests/test-vsnprintf.c (vsnprintf): Likewise.
16038         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
16039         * tests/test-wcrtomb.c (wcrtomb): Likewise.
16040         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
16041         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
16042         * tests/test-wcwidth.c (wcwidth): Likewise.
16043
16044         build: pull in conditional headers during GNULIB_POSIXCHECK
16045         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
16046         definitions from any conditionally-included headers.
16047         * lib/stdlib.in.h (includes): Likewise.
16048         * lib/unistd.in.h (includes): Likewise.
16049
16050 2009-12-24  Bruno Haible  <bruno@clisp.org>
16051
16052         * tests/test-argv-iter.c: Include header file being tested immediately
16053         after config.h.
16054         * tests/test-base64.c: Likewise.
16055         * tests/test-flock.c: Likewise.
16056         * tests/test-fsync.c: Likewise.
16057         * tests/test-getdate.c: Likewise.
16058         * tests/test-getndelim2.c: Likewise.
16059         * tests/test-isfinite.c: Likewise.
16060         * tests/test-isinf.c: Likewise.
16061         * tests/test-strerror.c: Likewise.
16062         * tests/test-strsignal.c: Likewise.
16063
16064 2009-12-23  Eric Blake  <ebb9@byu.net>
16065
16066         unistd: work around cygwin bug
16067         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
16068         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
16069         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16070
16071 2009-12-23  Bruno Haible  <bruno@clisp.org>
16072
16073         localename: More tests.
16074         * tests/test-localename.c (SIZEOF): New macro.
16075         (categories): New variable.
16076         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
16077         test_locale_name_default): Add test w.r.t. thread locale.
16078         (test_locale_name_thread): New function.
16079         (main): Invoke it.
16080
16081         localename: Make aware of thread locale.
16082         * lib/localename.h (gl_locale_name_thread): New declaration.
16083         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
16084         behaviour with respect to thread locale.
16085         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
16086         <langinfo.h>, glthread/lock.h.
16087         (SIZE_BITS): New macro.
16088         (string_hash): New function.
16089         (struct hash_node): New type.
16090         (HASH_TABLE_SIZE): New macro.
16091         (struniq_hash_table, struniq_lock): New variables.
16092         (struniq): New function.
16093         (gl_locale_name_thread): New function.
16094         (gl_locale_name): Invoke it.
16095         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
16096         * modules/localename (Depends-on): Add lock.
16097         Reported by Mike Gran <spk121@yahoo.com>.
16098
16099 2009-12-23  Eric Blake  <ebb9@byu.net>
16100
16101         va-args: new module
16102         * modules/va-args: New file.
16103         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
16104         * MODULES.html.sh (Core language properties): Mention it.
16105
16106         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
16107         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
16108         named alias for __attribute__((__unused__)).
16109         * lib/chown.c: Update client.
16110         * lib/fchmodat.c: Likewise.
16111         * lib/fts.c: Likewise.
16112         * lib/getdate.y: Likewise.
16113         * lib/getgroups.c: Likewise.
16114         * lib/getopt.c: Likewise.
16115         * lib/getugroups.c: Likewise.
16116         * lib/mkdir.c: Likewise.
16117         * lib/mkfifo.c: Likewise.
16118         * lib/mkfifoat.c: Likewise.
16119         * lib/mknod.c: Likewise.
16120         * lib/mknodat.c: Likewise.
16121         * lib/readlink.c: Likewise.
16122         * lib/se-context.in.h: Likewise.
16123         * lib/se-selinux.in.h: Likewise.
16124         * lib/sockets.c: Likewise.
16125         * lib/symlink.c: Likewise.
16126         * lib/symlinkat.c: Likewise.
16127         * lib/unicodeio.c: Likewise.
16128         * lib/unistr.h: Likewise.
16129         * tests/test-areadlink.c: Likewise.
16130         * tests/test-areadlinkat.c: Likewise.
16131         * tests/test-filenamecat.c: Likewise.
16132         * tests/test-fseeko.c: Likewise.
16133         * tests/test-ftello.c: Likewise.
16134         * tests/test-getdate.c: Likewise.
16135         * tests/test-getgroups.c: Likewise.
16136         * tests/test-gethostname.c: Likewise.
16137         * tests/test-quotearg.c: Likewise.
16138         * tests/test-version-etc.c: Likewise.
16139         * tests/test-xalloc-die.c: Likewise.
16140         * tests/test-xfprintf-posix.c: Likewise.
16141         * tests/test-xprintf-posix.c: Likewise.
16142         * tests/test-xvasprintf.c: Likewise.
16143
16144         tests: avoid compiler warnings
16145         * tests/test-fcntl.c (main): Delete unused parameters.
16146         * tests/test-freopen-safer.c (main): Likewise.
16147         * tests/test-xalloc-die.c (main): Mark unused parameters.
16148         * tests/test-fseeko.c (main): Likewise.
16149         * tests/test-ftello.c (main): Likewise.
16150         * tests/test-nanosleep.c (main): Avoid declaration warning.
16151         * tests/test-sleep.c (main): Likewise.
16152         * tests/test-unsetenv.c (main): Silence warning about string
16153         literal.
16154         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16155
16156 2009-12-23  Bruno Haible  <bruno@clisp.org>
16157
16158         * tests/test-localename.c (test_locale_name): New function, extracted
16159         from main. Also test mixed situations.
16160         (test_locale_name_posix, test_locale_name_environ,
16161         test_locale_name_default): New functions.
16162         (main): Invoke them all.
16163         * modules/localename-tests (configure.ac): Test for newlocale.
16164
16165 2009-12-23  Bruno Haible  <bruno@clisp.org>
16166
16167         unistd: Ensure getcwd gets declared before being overridden.
16168         * lib/unistd.in.h: Conditionally include <io.h>.
16169
16170 2009-12-22  Bruno Haible  <bruno@clisp.org>
16171
16172         wchar: Diagnose broken combination of glibc and gcc versions and flags.
16173         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
16174         (gl_WCHAR_H): Invoke it.
16175         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
16176         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
16177         Reported by Karl Berry <karl@freefriends.org>.
16178
16179 2009-12-22  Eric Blake  <ebb9@byu.net>
16180
16181         math, unistd: avoid redundant includes
16182         * lib/math.in.h (isnan): No need to re-include <math.h>.
16183         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
16184
16185         getsubopt: work around cygwin bug
16186         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
16187         avoid conflicting with system getsubopt.
16188         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
16189         bug.
16190
16191         getopt: synchronize from glibc
16192         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
16193         parameter order.  Adjust all callers.
16194         (_getopt_internal_r, main): Adjust quoting in error messages.
16195         Drop considerations for outdated POSIX 1003.2 error message.
16196         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
16197         callers.
16198         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
16199
16200         test-getopt: test stderr behavior
16201         * modules/getopt-posix-tests (Depends-on): Add dup2.
16202         * tests/test-getopt.c (ASSERT): Avoid stderr.
16203         (main): Move stderr to a temporary file.
16204         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
16205         Instead, add parameter to inform caller if output occurred.
16206         (test_getopt): Adjust all existing tests to expect silence, and
16207         add new tests of leading ":".
16208         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16209         glibc shortcomings with leading "-:" or "+:" in optstring.
16210         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16211         Likewise.
16212         * doc/posix-functions/getopt.texi (getopt): Likewise.
16213
16214         test-getopt: enhance test
16215         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
16216         supports optind=0.
16217         * tests/test-getopt.c (OPTIND_MIN): Move...
16218         * tests/test-getopt.h (OPTIND_MIN): ...here.
16219         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
16220         Require that optind=0 works, since modern BSD supports it in
16221         addition to optreset, and since coreutils expects it.
16222         (test_getopt_long_only): New test.
16223         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16224         glibc shortcomings with 'W;', and enforcement of optind=0.
16225         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16226         Likewise.
16227
16228 2009-12-21  Bruno Haible  <bruno@clisp.org>
16229
16230         localename: Improvements for MacOS X and Cygwin.
16231         * lib/localename.h (gl_locale_name_environ): New declaration.
16232         * lib/localename.c (gl_locale_name_environ): New function, extracted from
16233         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
16234         (gl_locale_name_posix): Invoke it.
16235         (gl_locale_name_default): Add comments. Use Windows native API also on
16236         Cygwin.
16237
16238 2009-12-21  Bruno Haible  <bruno@clisp.org>
16239
16240         Update list of Win32 locale ids.
16241         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
16242         (LANG_SAMI): Renamed from LANG_SAAMI.
16243         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
16244         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
16245         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
16246         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
16247         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
16248         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
16249         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
16250         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
16251         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
16252         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
16253         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
16254         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
16255         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
16256         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
16257         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
16258         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
16259         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
16260         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
16261         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
16262         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
16263         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
16264         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
16265         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
16266         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
16267         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
16268         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
16269         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
16270         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
16271         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
16272         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
16273         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
16274         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
16275         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
16276         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
16277         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
16278         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
16279         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
16280         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
16281         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
16282         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
16283         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
16284         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
16285         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
16286         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
16287         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
16288         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
16289         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
16290         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
16291         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
16292         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
16293         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
16294         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
16295         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
16296         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
16297         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
16298         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
16299         Add more languages and countries for Sami, Sorbian. Add more countries
16300         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
16301         for Pashto. Change country for Syriac, Tswana.
16302
16303 2009-12-21  Eric Blake  <ebb9@byu.net>
16304
16305         test-utimens: avoid spurious failure
16306         * tests/test-chown.h (nap): Factor...
16307         * tests/nap.h: ...into new file.
16308         * tests/test-lchown.h (nap): Avoid duplication.
16309         * tests/test-utimens-common.h (nap): Use shared implementation,
16310         necessary on file systems with 1-second resolution.
16311         * modules/chown-tests (Files): Include new file.
16312         * modules/fdutimensat-tests (Files): Likewise.
16313         * modules/futimens-tests (Files): Likewise.
16314         * modules/lchown-tests (Files): Likewise.
16315         * modules/openat-tests (Files): Likewise.
16316         * modules/utimens-tests (Files): Likewise.
16317         * modules/utimensat-tests (Files): Likewise.
16318
16319 2009-12-19  Eric Blake  <ebb9@byu.net>
16320
16321         futimens, utimensat: work around Linux bug
16322         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
16323         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16324         * lib/utimensat.c (rpl_utimensat): Work around it.
16325         * lib/futimens.c (rpl_futimens): Adjust comment.
16326
16327         utimens: work around Linux ctime bug
16328         * lib/utimens.c (detect_ctime_bug): New helper function.
16329         (update_timespec): Differentiate between workaround needed for
16330         this bug vs. what is needed for systems that lack utimensat.
16331         (fdutimens, lutimens): Work around bug.
16332
16333         utimens: check for ctime update
16334         * tests/test-utimens-common.h (check_ctime): Define.
16335         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
16336         * tests/test-futimens.h (test_futimens): Likewise.
16337         * tests/test-lutimens.h (test_lutimens): Likewise.
16338         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16339         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16340
16341 2009-12-19  Bruno Haible  <bruno@clisp.org>
16342
16343         dprintf-posix: Check against memory leak fixed on 2009-12-15.
16344         * tests/test-dprintf-posix2.sh: New file.
16345         * tests/test-dprintf-posix2.c: New file.
16346         * modules/dprintf-posix-tests (Files): Add them.
16347         (configure.ac): Check for getrlimit and setrlimit.
16348         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16349
16350 2009-12-19  Bruno Haible  <bruno@clisp.org>
16351
16352         fprintf-posix: Check against memory leak fixed on 2009-12-15.
16353         * tests/test-fprintf-posix3.sh: New file.
16354         * tests/test-fprintf-posix3.c: New file.
16355         * modules/fprintf-posix-tests (Files): Add them.
16356         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16357
16358 2009-12-19  Eric Blake  <ebb9@byu.net>
16359
16360         dirfd: fix prototype
16361         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
16362         * lib/dirfd.c (dirfd): Likewise.
16363
16364         canonicalize: reduce memory usage
16365         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
16366         allocation to size.
16367         Reported by Solar Designer <solar@openwall.com>.
16368
16369 2009-12-19  Bruno Haible  <bruno@clisp.org>
16370
16371         New module attribute 'Applicability'.
16372         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
16373         * gnulib-tool: New option --extract-applicability.
16374         (func_usage): Document it.
16375         (sed_extract_prog): Recognize it.
16376         (func_get_applicability): New function.
16377         (func_import): Generalize handling of 'link-warning' module.
16378         * modules/link-warning (Applicability): New section.
16379         * modules/arg-nonnull (Applicability): New section.
16380         Repoted by Simon Josefsson <simon@josefsson.org>.
16381
16382 2009-12-19  Bruno Haible  <bruno@clisp.org>
16383
16384         fflush: tweak
16385         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
16386         * lib/fseeko.c (rpl_fseeko): Likewise.
16387
16388 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
16389
16390         * lib/gl_list.h: Fix typo in comment.
16391
16392 2009-12-16  Eric Blake  <ebb9@byu.net>
16393
16394         fcntl: use to simplify other modules
16395         * modules/cloexec (Depends-on): Add fcntl.
16396         * modules/fchdir (Depends-on): Likewise.
16397         * modules/fd-safer-flag (Depends-on): Likewise.
16398         * modules/unistd-safer (Depends-on): Likewise.
16399         * modules/dup3 (configure.ac): Set module indicator.
16400         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
16401         missing.
16402         * lib/fchdir.c (_gl_register_dup): Fix comment.
16403         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
16404         * lib/dup-safer.c (dup_safer): Likewise.
16405         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
16406         * lib/dup3.c (dup3): Likewise.
16407         * tests/test-fchdir.c (main): Enhance test.
16408         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
16409
16410         fcntl: port portions of fcntl to mingw
16411         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
16412         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
16413         replacement for mingw.
16414         * modules/fcntl (Description): Update.
16415         (Depends-on): Add dup2.
16416         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
16417         * modules/fcntl-h (Makefile.am): Substitute it.
16418         * lib/fcntl.in.h (fcntl): Update declaration.
16419         (F_DUPFD, F_GETFD): New macros, when needed.
16420         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16421         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
16422         * tests/test-fcntl.c (check_flags, main): Enhance test for items
16423         we now guarantee.
16424
16425         fcntl: work around cygwin bug in F_DUPFD
16426         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
16427         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
16428         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
16429         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
16430         * doc/posix-functions/fcntl.texi (fcntl): Document it.
16431
16432         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
16433         * modules/fcntl (Files): List new files.
16434         (configure.ac): Run a test.
16435         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
16436         * lib/fcntl.c (rpl_fcntl): Likewise.
16437         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
16438         (gl_FCNTL_H): Always replace fcntl.h.
16439         * modules/fcntl-h (Makefile.am): Substitute witnesses.
16440         * lib/fcntl.in.h (fcntl): Declare replacement.
16441         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
16442         needed, plus a witness.
16443         * doc/posix-functions/fcntl.texi (fcntl): Document this.
16444         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16445         * tests/test-fcntl.c: New file.
16446         * modules/fcntl-tests: Likewise.
16447
16448         binary-io: avoid potential compilation warning
16449         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
16450         directives.
16451
16452         fflush: avoid compilation error on NetBSD
16453         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
16454         between off_t and fpos_t, since the latter is sometimes a struct.
16455         * lib/fseeko.c (rpl_fseeko): Likewise.
16456         Reported by Alexander Nasonov <alnsn@yandex.ru>.
16457
16458 2009-12-15  Eric Blake  <ebb9@byu.net>
16459
16460         fcntl-h, stdio, sys_ioctl: fix declarations
16461         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
16462         function must not take arguments.
16463         * lib/sys_ioctl.in.h (ioctl): Likewise.
16464         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
16465         (open): Add a link warning.
16466
16467 2009-12-15  Jim Meyering  <meyering@redhat.com>
16468
16469         areadlink, areadlink-with-size: relax license to LGPLv2+
16470         * modules/areadlink (License): Relax to LGPLv2+.
16471         * modules/areadlink-with-size (License): Likewise.
16472
16473 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
16474             Bruno Haible  <bruno@clisp.org>
16475
16476         *printf: Fix memory leak.
16477         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
16478         * lib/vfprintf.c (vfprintf): Likewise.
16479         * lib/dprintf.c (dprintf): Likewise.
16480         * lib/vdprintf.c (vdprintf): Likewise.
16481
16482 2009-12-14  Eric Blake  <ebb9@byu.net>
16483
16484         accept4: adjust module dependencies
16485         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
16486
16487         utimens: one more try at avoiding compiler warning
16488         * lib/utimens.c (lutimens): Lower scope of result.
16489
16490 2009-12-13  Bruno Haible  <bruno@clisp.org>
16491
16492         Move the malloc checking from module 'list' to new module 'xlist'.
16493         * modules/xlist: New file.
16494         * lib/gl_xlist.h: New file.
16495         * lib/gl_xlist.c: New file.
16496         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
16497         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
16498         gl_list_add_last, gl_list_add_before, gl_list_add_after,
16499         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
16500         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
16501         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
16502         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
16503         gl_sortedlist_nx_add): New declarations.
16504         (struct gl_list_implementation): Rename and change methods accordingly.
16505         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
16506         (gl_list_nx_create): Renamed from gl_list_create.
16507         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16508         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16509         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16510         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16511         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16512         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16513         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16514         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16515         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
16516         gl_list_create_empty.
16517         (gl_list_nx_create): Renamed from gl_list_create.
16518         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16519         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16520         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16521         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16522         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16523         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16524         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16525         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16526         * lib/gl_array_list.c: Don't include xalloc.h.
16527         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
16528         NULL upon out-of-memory.
16529         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
16530         out-of-memory.
16531         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
16532         Change return type to 'int'.
16533         (gl_array_nx_set_at): Renamed from gl_array_set_at.
16534         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16535         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
16536         upon out-of-memory.
16537         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
16538         upon out-of-memory.
16539         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
16540         upon out-of-memory.
16541         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
16542         upon out-of-memory.
16543         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
16544         out-of-memory.
16545         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
16546         Update.
16547         (gl_array_list_implementation): Update.
16548         * lib/gl_carray_list.c: Don't include xalloc.h.
16549         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
16550         Return NULL upon out-of-memory.
16551         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
16552         out-of-memory.
16553         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
16554         Change return type to 'int'.
16555         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
16556         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16557         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
16558         upon out-of-memory.
16559         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
16560         upon out-of-memory.
16561         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
16562         out-of-memory.
16563         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
16564         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
16565         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
16566         Update.
16567         (gl_carray_list_implementation): Update.
16568         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
16569         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
16570         gl_linked_create_empty. Return NULL upon out-of-memory.
16571         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
16572         out-of-memory.
16573         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
16574         Change return type to 'int'. Return -1 upon out-of-memory.
16575         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
16576         out-of-memory.
16577         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
16578         upon out-of-memory.
16579         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
16580         upon out-of-memory.
16581         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
16582         NULL upon out-of-memory.
16583         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
16584         upon out-of-memory.
16585         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
16586         out-of-memory.
16587         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
16588         Update.
16589         * lib/gl_linked_list.c: Don't include xalloc.h.
16590         (gl_linked_list_implementation): Update.
16591         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
16592         (add_to_bucket): Change return type to 'int'.
16593         (gl_linkedhash_list_implementation): Update.
16594         * lib/gl_anytree_list1.h (free_subtree): New function.
16595         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
16596         gl_tree_create_empty. Return NULL upon out-of-memory.
16597         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
16598         Change return type to 'int'. Return -1 upon out-of-memory.
16599         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
16600         out-of-memory.
16601         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
16602         (gl_tree_remove_node): New function, moved here from
16603         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
16604         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
16605         Update.
16606         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
16607         malloc, not xmalloc. Return NULL upon out-of-memory.
16608         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16609         out-of-memory.
16610         (gl_tree_remove_node_from_tree): New function, extracted from
16611         gl_tree_remove_node.
16612         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16613         upon out-of-memory.
16614         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16615         out-of-memory.
16616         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16617         upon out-of-memory.
16618         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16619         upon out-of-memory.
16620         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16621         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
16622         not xmalloc. Return NULL upon out-of-memory.
16623         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16624         out-of-memory.
16625         (gl_tree_remove_node_from_tree): New function, extracted from
16626         gl_tree_remove_node.
16627         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16628         upon out-of-memory.
16629         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16630         out-of-memory.
16631         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16632         upon out-of-memory.
16633         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16634         upon out-of-memory.
16635         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16636         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
16637         gl_anytree_list1.h before gl_anyavltree_list2.h.
16638         (gl_avltree_list_implementation): Update.
16639         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
16640         gl_anytree_list1.h before gl_anyavltree_list2.h.
16641         (gl_rbtree_list_implementation): Update.
16642         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
16643         Change return type to 'int'. Return -1 upon out-of-memory. Use
16644         __builtin_expect.
16645         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
16646         (gl_avltreehash_list_implementation): Update.
16647         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
16648         (gl_rbtreehash_list_implementation): Update.
16649         * modules/array-list (Depends-on): Remove xalloc.
16650         * modules/carray-list (Depends-on): Likewise.
16651         * modules/linked-list (Depends-on): Likewise.
16652         * modules/linkedhash-list (Depends-on): Likewise.
16653         * modules/avltree-list (Depends-on): Likewise.
16654         * modules/rbtree-list (Depends-on): Likewise.
16655         * modules/avltreehash-list (Depends-on): Likewise.
16656         * modules/rbtreehash-list (Depends-on): Likewise.
16657
16658         * modules/xsublist: New file.
16659         * lib/gl_xsublist.h: New file.
16660         * lib/gl_xsublist.c: New file.
16661         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
16662         (gl_sublist_nx_create): New declaration.
16663         * lib/gl_sublist.c: Don't include xalloc.h.
16664         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
16665         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
16666         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
16667         Change return type to 'int'. Return -1 upon out-of-memory.
16668         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
16669         upon out-of-memory.
16670         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
16671         NULL upon out-of-memory.
16672         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
16673         upon out-of-memory.
16674         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
16675         NULL upon out-of-memory.
16676         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
16677         NULL upon out-of-memory.
16678         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
16679         upon out-of-memory.
16680         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
16681         (gl_sublist_list_implementation): Update.
16682         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
16683         upon out-of-memory.
16684         * modules/sublist (Depends-on): Remove xalloc.
16685
16686         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
16687         * tests/test-carray_list.c: Likewise.
16688         * tests/test-linked_list.c: Likewise.
16689         * tests/test-linkedhash_list.c: Likewise.
16690         * tests/test-avltree_list.c: Likewise.
16691         * tests/test-rbtree_list.c: Likewise.
16692         * tests/test-avltreehash_list.c: Likewise.
16693         * tests/test-rbtreehash_list.c: Likewise.
16694         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
16695         * modules/carray-list-tests (Makefile.am): Likewise.
16696         * modules/linked-list-tests (Makefile.am): Likewise.
16697         * modules/linkedhash-list-tests (Makefile.am): Likewise.
16698         * modules/avltree-list-tests (Makefile.am): Likewise.
16699         * modules/rbtree-list-tests (Makefile.am): Likewise.
16700         * modules/avltreehash-list-tests (Makefile.am): Likewise.
16701         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
16702
16703         * NEWS: Mention the changes.
16704
16705         * lib/clean-temp.c: Include gl_xlist.h.
16706         * modules/clean-temp (Depends-on): Add xlist.
16707
16708         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
16709         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
16710
16711         * tests/test-array_oset.c: Include gl_xlist.h.
16712         * modules/array-oset-tests (Depends-on): Add xlist.
16713
16714         Reported by José E. Marchesi <jemarch@gnu.org>.
16715
16716 2009-12-13  Bruno Haible  <bruno@clisp.org>
16717
16718         Move the malloc checking from module 'oset' to new module 'xoset'.
16719         * modules/xoset: New file.
16720         * lib/gl_xoset.h: New file.
16721         * lib/gl_xoset.c: New file.
16722         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
16723         declarations.
16724         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
16725         (struct gl_oset_implementation): Rename and change methods accordingly.
16726         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
16727         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16728         'int'. Mark as __warn_unused_result__.
16729         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
16730         gl_oset_create_empty.
16731         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16732         'int'.
16733         * lib/gl_array_oset.c: Don't include xalloc.h.
16734         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
16735         malloc, not xmalloc.
16736         (grow): Change return type to 'int'. Don't call xalloc_die.
16737         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
16738         to 'int'.
16739         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
16740         'int'.
16741         (gl_array_oset_implementation): Update.
16742         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
16743         gl_tree_create_empty.
16744         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
16745         'int'.
16746         * lib/gl_avltree_oset.c: Don't include xalloc.h.
16747         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16748         xmalloc.
16749         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16750         not xmalloc.
16751         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16752         xmalloc.
16753         (gl_avltree_oset_implementation): Update.
16754         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
16755         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16756         xmalloc.
16757         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16758         not xmalloc.
16759         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16760         xmalloc.
16761         (gl_rbtree_oset_implementation): Update.
16762         * modules/array-oset (Depends-on): Remove xalloc.
16763         * modules/avltree-oset (Depends-on): Likewise.
16764         * modules/rbtree-oset (Depends-on): Likewise.
16765         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
16766         * tests/test-avltree_oset.c: Likewise.
16767         * tests/test-rbtree_oset.c: Likewise.
16768         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
16769         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
16770         * modules/rbtree-oset-tests (Makefile.am): Likewise.
16771         * NEWS: Mention the change.
16772
16773 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
16774
16775         maint.mk: allow a project to override release-prep commands
16776         * top/maint.mk (alpha, beta, stable): Move release-preparatory
16777         commands into a new rule.
16778         (release-prep): New rule.
16779         (release-prep-hook): New overridable variable.
16780
16781 2009-12-13  Bruno Haible  <bruno@clisp.org>
16782
16783         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
16784
16785 2009-12-13  Jim Meyering  <meyering@redhat.com>
16786
16787         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
16788         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
16789
16790 2009-12-12  Bruno Haible  <bruno@clisp.org>
16791
16792         duplocale: Tweak.
16793         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
16794
16795 2009-12-12  Karl Berry  <karl@gnu.org>
16796
16797         * config/srclist.txt (strtoll.c): tab changes, no more sync.
16798
16799 2009-12-12  Bruno Haible  <bruno@clisp.org>
16800
16801         * m4/po.m4: Undo incorrect untabification.
16802
16803 2009-12-12  Bruno Haible  <bruno@clisp.org>
16804
16805         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
16806         * modules/c-strtod (Depends-on): Add locale.
16807         * modules/c-strtold (Depends-on): Likewise.
16808
16809 2009-12-12  Bruno Haible  <bruno@clisp.org>
16810
16811         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
16812
16813 2009-12-11  Eric Blake  <ebb9@byu.net>
16814
16815         setenv: relax requirement in light of POSIX ruling
16816         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
16817         not NULL.
16818         * tests/test-setenv.c (main): Relax test.
16819         * tests/test-unsetenv.c (main): Likewise.
16820         * doc/posix-functions/setenv.texi (setenv): Document this.
16821         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16822
16823 2009-12-11  Bruno Haible  <bruno@clisp.org>
16824
16825         New module 'fd-safer-flag'.
16826         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
16827         * lib/dup-safer.c (dup_safer_flag): Remove function.
16828         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
16829         * lib/fd-safer.c (fd_safer_flag): Remove function.
16830         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
16831         * modules/cloexec (configure.ac): Drop indicator macro.
16832         * modules/fd-safer-flag: New file.
16833         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
16834         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
16835         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
16836
16837 2009-12-11  Bruno Haible  <bruno@clisp.org>
16838
16839         Tests for module 'nl_langinfo'.
16840         * modules/nl_langinfo-tests: New file.
16841         * tests/test-nl_langinfo.sh: New file.
16842         * tests/test-nl_langinfo.c: New file.
16843
16844         New module 'nl_langinfo'.
16845         * lib/nl_langinfo.c: New file.
16846         * m4/nl_langinfo.m4: New file.
16847         * modules/nl_langinfo: New file.
16848         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
16849
16850 2009-12-11  Bruno Haible  <bruno@clisp.org>
16851
16852         Tests for module 'langinfo'.
16853         * modules/langinfo-tests: New file.
16854         * tests/test-langinfo.c: New file.
16855
16856         New module 'langinfo'.
16857         * lib/langinfo.in.h: New file.
16858         * m4/langinfo_h.m4: New file.
16859         * modules/langinfo: New file.
16860         * doc/posix-headers/langinfo.texi: Mention the new module.
16861
16862 2009-12-11  Bruno Haible  <bruno@clisp.org>
16863
16864         * lib/config.charset: Untabify.
16865
16866 2009-12-11  Bruno Haible  <bruno@clisp.org>
16867
16868         * modules/unistd-safer (configure.ac): Drop indicator macro.
16869
16870 2009-12-11  Bruno Haible  <bruno@clisp.org>
16871
16872         Move pipe2-safer code to its own file.
16873         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
16874         * lib/pipe-safer.c (pipe2_safer): Remove function.
16875         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
16876         (Makefile.am): Add it to lib_SOURCES.
16877
16878 2009-12-10  Bruno Haible  <bruno@clisp.org>
16879
16880         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
16881
16882 2009-12-10  Bruno Haible  <bruno@clisp.org>
16883
16884         Declare which arguments expect non-NULL values, for GCC and clang.
16885         * build-aux/arg-nonnull.h: New file.
16886         * modules/arg-nonnull: New file.
16887         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
16888         (inet_ntop, inet_pton): Use it.
16889         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
16890         (closedir, dirfd, opendir, scandir, alphasort): Use it.
16891         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
16892         (open, openat): Use it.
16893         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
16894         (fnmatch): Use it.
16895         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
16896         (getopt, getopt_long, getopt_long_only): Use it.
16897         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
16898         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
16899         Use it.
16900         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
16901         (iconv_open): Use it.
16902         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
16903         (strtoimax, strtoumax): Use it.
16904         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
16905         (duplocale): Use it.
16906         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
16907         (frexp, frexpl): Use it.
16908         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
16909         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
16910         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
16911         (tsearch, tfind, tdelete, twalk): Use it.
16912         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
16913         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16914         sigpending): Use it.
16915         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
16916         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16917         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16918         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16919         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16920         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16921         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16922         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16923         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16924         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16925         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16926         Use it.
16927         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
16928         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
16929         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
16930         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
16931         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
16932         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
16933         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
16934         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
16935         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
16936         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
16937         strtoull, unsetenv): Use it.
16938         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
16939         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16940         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16941         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
16942         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
16943         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
16944         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
16945         (strcasecmp, strncasecmp): Use it.
16946         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
16947         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
16948         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
16949         rpl_setsockopt): Use it.
16950         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
16951         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
16952         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
16953         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
16954         (gettimeofday): Use it.
16955         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
16956         (times): Use it.
16957         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
16958         (uname): Use it.
16959         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
16960         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
16961         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
16962         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
16963         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
16964         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
16965         unlinkat, write): Use it.
16966         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
16967         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
16968         * lib/argv-iter.h: Include arg-nonnull.h.
16969         (_ATTRIBUTE_NONNULL_): Remove macro.
16970         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
16971         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
16972         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
16973         optimization.
16974         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
16975         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
16976         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
16977         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
16978         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
16979         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
16980         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
16981         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
16982         * modules/arpa_inet (Depends-on): Add arg-nonnull.
16983         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
16984         * modules/dirent (Depends-on): Add arg-nonnull.
16985         (Makefile.am): Insert arg-nonnull.h into dirent.h.
16986         * modules/fcntl-h (Depends-on): Add arg-nonnull.
16987         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
16988         * modules/fnmatch (Depends-on): Add arg-nonnull.
16989         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
16990         * modules/getopt-posix (Depends-on): Add arg-nonnull.
16991         (Makefile.am): Insert arg-nonnull.h into getopt.h.
16992         * modules/glob (Depends-on): Add arg-nonnull.
16993         (Makefile.am): Insert arg-nonnull.h into glob.h.
16994         * modules/iconv_open (Depends-on): Add arg-nonnull.
16995         (Makefile.am): Insert arg-nonnull.h into iconv.h.
16996         * modules/inttypes (Depends-on): Add arg-nonnull.
16997         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
16998         * modules/locale (Depends-on): Add arg-nonnull.
16999         (Makefile.am): Insert arg-nonnull.h into locale.h.
17000         * modules/math (Depends-on): Add arg-nonnull.
17001         (Makefile.am): Insert arg-nonnull.h into math.h.
17002         * modules/netdb (Depends-on): Add arg-nonnull.
17003         (Makefile.am): Insert arg-nonnull.h into netdb.h.
17004         * modules/search (Depends-on): Add arg-nonnull.
17005         (Makefile.am): Insert arg-nonnull.h into search.h.
17006         * modules/signal (Depends-on): Add arg-nonnull.
17007         (Makefile.am): Insert arg-nonnull.h into signal.h.
17008         * modules/spawn (Depends-on): Add arg-nonnull.
17009         (Makefile.am): Insert arg-nonnull.h into spawn.h.
17010         * modules/stdio (Depends-on): Add arg-nonnull.
17011         (Makefile.am): Insert arg-nonnull.h into stdio.h.
17012         * modules/stdlib (Depends-on): Add arg-nonnull.
17013         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
17014         * modules/string (Depends-on): Add arg-nonnull.
17015         (Makefile.am): Insert arg-nonnull.h into string.h.
17016         * modules/strings (Depends-on): Add arg-nonnull.
17017         (Makefile.am): Insert arg-nonnull.h into strings.h.
17018         * modules/sys_socket (Depends-on): Add arg-nonnull.
17019         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
17020         * modules/sys_stat (Depends-on): Add arg-nonnull.
17021         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
17022         * modules/sys_time (Depends-on): Add arg-nonnull.
17023         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
17024         * modules/sys_times (Depends-on): Add arg-nonnull.
17025         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
17026         * modules/sys_utsname (Depends-on): Add arg-nonnull.
17027         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
17028         * modules/time (Depends-on): Add arg-nonnull.
17029         (Makefile.am): Insert arg-nonnull.h into time.h.
17030         * modules/unistd (Depends-on): Add arg-nonnull.
17031         (Makefile.am): Insert arg-nonnull.h into unistd.h.
17032         * modules/wchar (Depends-on): Add arg-nonnull.
17033         (Makefile.am): Insert arg-nonnull.h into wchar.h.
17034         * modules/argv-iter (Depends-on): Add arg-nonnull.
17035         * tests/test-canonicalize.c (null_ptr): New function.
17036         (main): Use it.
17037         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
17038         (main): Use it.
17039         * tests/test-memmem.c (null_ptr): New function.
17040         (main): Use it.
17041         Reported by Jim Meyering.
17042
17043 2009-12-10  Bruno Haible  <bruno@clisp.org>
17044
17045         Use spaces for indentation, not tabs.
17046         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17047         * m4/*.m4: Untabify.
17048         * build-aux/*.h: Untabify.
17049         * tests/**/*.[hc]: Untabify.
17050         * README: New section "Indent with spaces, not TABs", based on
17051         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
17052         * NEWS: Mention the change.
17053
17054 2009-12-10  Bruno Haible  <bruno@clisp.org>
17055
17056         pty test: Fix link error.
17057         * modules/pty-tests (Makefile.am): Add the default LDADD value to
17058         test_pty_LDADD.
17059
17060 2009-12-07  Simon Josefsson  <simon@josefsson.org>
17061
17062         * modules/pty: New file.
17063         * modules/pty-tests: New file.
17064         * m4/pty.m4: New file.
17065         * tests/test-pty.c: New file.
17066         * doc/glibc-headers/pty.texi: Modified.
17067         * doc/glibc-functions/forkpty.texi: Modified.
17068         * doc/glibc-functions/openpty.texi: Modified.
17069
17070 2009-12-10  Bruno Haible  <bruno@clisp.org>
17071
17072         Avoid syntax error in C++ mode.
17073         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
17074
17075 2009-12-10  Bruno Haible  <bruno@clisp.org>
17076
17077         Use sed with option -e.
17078         * gnulib-tool (func_version, func_emit_copyright_notice,
17079         func_emit_initmacro_end, func_import, func_create_testdir): Pass
17080         option -e to sed.
17081         * modules/link-warning (Makefile.am): Likewise.
17082
17083 2009-12-10  Jim Meyering  <meyering@redhat.com>
17084
17085         mgetgroups: do not write bytes beyond end of malloc'd buffer
17086         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
17087         username, we call getgroups with a one-element-shorter buffer,
17088         but still told it the length was original, max_n_groups.
17089
17090 2009-12-09  Eric Blake  <ebb9@byu.net>
17091
17092         cloexec: relax license
17093         * modules/cloexec (Maintainer): Add myself.
17094         (License): Use LGPL, not GPL.
17095
17096         link-warning: optimize generation
17097         * modules/link-warning (Makefile.am): Reduce process usage.
17098
17099 2009-12-09  Bruno Haible  <bruno@clisp.org>
17100
17101         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
17102         workaround was added on 2009-11-17.
17103
17104 2009-12-09  Jim Meyering  <meyering@redhat.com>
17105             Bruno Haible  <bruno@clisp.org>
17106
17107         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
17108         * modules/link-warning (Makefile.am): Make the comment-removing sed
17109         command more robust in the face of bootstrap-prepended comment lines.
17110
17111 2009-12-09  Bruno Haible  <bruno@clisp.org>
17112
17113         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
17114         most one group.
17115
17116 2009-12-09  Simon Josefsson <simon@josefsson.org>
17117             Bruno Haible  <bruno@clisp.org>
17118
17119         * build-aux/link-warning.h: Add copyright notice.
17120         * modules/link-warning (Makefile.am): Generate link-warning.h from
17121         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
17122         * NEWS: Mention change in link-warning module.
17123         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
17124         * modules/dirent (Makefile.am): Add dependency to dirent.h.
17125         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
17126         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
17127         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
17128         * modules/math (Makefile.am): Add dependency to math.h.
17129         * modules/search (Makefile.am): Add dependency to search.h.
17130         * modules/signal (Makefile.am): Add dependency to signal.h.
17131         * modules/spawn (Makefile.am): Add dependency to spawn.h.
17132         * modules/stdio (Makefile.am): Add dependency to stdio.h.
17133         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
17134         * modules/string (Makefile.am): Add dependency to string.h.
17135         * modules/strings (Makefile.am): Add dependency to strings.h.
17136         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
17137         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
17138         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
17139         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
17140         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
17141         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
17142         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
17143         * modules/unistd (Makefile.am): Add dependency to unistd.h.
17144         * modules/wchar (Makefile.am): Add dependency to wchar.h.
17145
17146 2009-12-09  Bruno Haible  <bruno@clisp.org>
17147
17148         fchdir: Optimize away rpl_fstat when possible.
17149         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
17150         REPLACE_OPEN_DIRECTORY.
17151         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
17152
17153 2009-12-09  Bruno Haible  <bruno@clisp.org>
17154
17155         * lib/fchdir.c: Update comment.
17156
17157 2009-12-09  Bruno Haible  <bruno@clisp.org>
17158
17159         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
17160
17161 2009-12-08  Eric Blake  <ebb9@byu.net>
17162
17163         fchdir: avoid memory leak on re-registration.
17164         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
17165
17166 2009-12-08  Jim Meyering  <meyering@redhat.com>
17167
17168         init.sh: avoid Solaris 10 /bin/sh portability problem
17169         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
17170         sourced script:
17171           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
17172           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
17173           bar
17174         tests/init.sh relied on that, accepting a --set-path=DIR argument,
17175         and two tests used that idiom.
17176         * tests/init.sh: Update suggested usage comments.
17177         (path_prepend_): New function, to be used in place
17178         of the --src-path=DIR option.
17179         (setup_): Move PATH-prepending code into path_prepend_.
17180         * tests/test-pread.sh: Adapt to new usage.
17181         * tests/test-xalloc-die.sh: Likewise.
17182
17183 2009-12-08  Simon Josefsson  <simon@josefsson.org>
17184
17185         * doc/gnulib.texi (Glibc pty.h): Add.
17186         * doc/glibc-functions/forkpty.texi: Add.
17187         * doc/glibc-functions/openpty.texi: Add.
17188         Suggested by Bruno Haible.
17189
17190 2009-12-08  Eric Blake  <ebb9@byu.net>
17191
17192         fchdir: fix logic bugs
17193         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
17194         * tests/test-fchdir.c (main): Enhance test.
17195         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
17196         is in use.
17197
17198         dup2: fix logic bugs
17199         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
17200         REPLACE_DUP2 to decide when rpl_dup2 is needed.
17201         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
17202         exists.
17203         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
17204
17205 2009-12-07  Eric Blake  <ebb9@byu.net>
17206
17207         unlink: fix m4 detection
17208         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
17209
17210         unistd-safer: add unit test
17211         * modules/unistd-safer-tests: New file.
17212         * tests/test-dup-safer.c: Likewise.
17213         * tests/test-cloexec.c (setmode): Avoid compiler warning.
17214         * tests/test-dup2.c (setmode): Likewise.
17215         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
17216
17217         cloexec: preserve text vs. binary across dup_cloexec
17218         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
17219         mode.
17220         * modules/dup2-tests (Depends-on): Add binary-io.
17221         * modules/cloexec-tests (Depends-on): Likewise.
17222         * tests/test-dup2.c (setmode, is_mode): New helpers.
17223         (main): Add tests that translation mode is preserved.
17224         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
17225         Reported by Bruno Haible.
17226
17227         mgetgroups: reduce duplicate listings
17228         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
17229         resulting array.
17230         * tests/test-chown.h (test_chown): Simplify client.
17231         * tests/test-lchown.h (test_lchown): Likewise.
17232
17233 2009-12-06  Bruno Haible  <bruno@clisp.org>
17234
17235         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
17236         value.
17237
17238 2009-12-06  Bruno Haible  <bruno@clisp.org>
17239
17240         * lib/progname.c: Include stdio.h, stdlib.h.
17241         (set_program_name): Reject a NULL argument.
17242
17243 2009-12-05  Eric Blake  <ebb9@byu.net>
17244
17245         pipe2-safer: new module
17246         * modules/pipe2-safer: New file.
17247         * lib/unistd-safer.h (pipe2_safer): New prototype.
17248         * lib/unistd--.h (pipe2): New wrapper.
17249         * lib/pipe-safer.c (pipe2_safer): New function.
17250         * modules/pipe (Depends-on): Add pipe2-safer.
17251         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
17252
17253         stdlib-safer: preserve cloexec flag for mkostemp[s]
17254         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
17255         fd_safer_flag.
17256
17257         unistd-safer: allow preservation of cloexec status via flag
17258         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
17259         prototypes.
17260         * lib/dup-safer.c (dup_safer_flag): New function.
17261         * lib/fd-safer.c (fd_safer_flag): Likewise.
17262         * modules/cloexec (configure.ac): Set witness.
17263
17264         test-dup2: enhance test
17265         * modules/dup2-tests (Depends-on): Add cloexec.
17266         * tests/test-dup2.c (main): Enhance test.
17267
17268         cloexec: add dup_cloexec
17269         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
17270         header and comments.
17271         * lib/cloexec.c (set_cloexec_flag): Add comments.
17272         (dup_cloexec): New function, with mingw implementation borrowed
17273         from...
17274         * lib/w32spawn.h (dup_noinherit): ...here.
17275         * modules/execute (Depends-on): Add cloexec.
17276         * modules/pipe (Depends-on): Likewise.
17277         * modules/cloexec (Depends-on): Add dup2.
17278         * modules/cloexec-tests (Files): New file.
17279         * tests/test-cloexec.c: Likewise.
17280
17281         test-xalloc-die: fix test for mingw
17282         * modules/xalloc-die-tests (Files): Add tests/init.sh.
17283         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
17284         directory and .exe suffix off argv[0] output.
17285
17286         test-fseeko: fix test for mingw
17287         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
17288         than undefining fseek, so test will pass on mingw.
17289
17290 2009-12-05  Bruno Haible  <bruno@clisp.org>
17291
17292         * lib/progname.h (set_program_name): Clarify specification.
17293         * lib/progname.c (set_program_name): Likewise.
17294         Reported by Jim Meyering.
17295
17296 2009-12-05  Jim Meyering  <meyering@redhat.com>
17297
17298         maint.mk: backslash-escape parens in default regexp
17299         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
17300         backslash-escape the literal parentheses.
17301
17302         maint.mk: news-date-check: use grep -E
17303         * top/maint.mk (today): Define a Make variable, not a...
17304         (news-date-check): ...shell variable.
17305         (news-date-regexp): Use the Make variable.
17306         Use grep's -E option.  Change the failing diagnostic to mention
17307         the variable, $(news-date-regexp).
17308
17309 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
17310
17311         maintainer-makefile: allow customization of NEWS entry format
17312         * top/maint.mk (news-date-regexp): New overridable variable.
17313         (news-date-check): Use it.
17314
17315 2009-12-04  Eric Blake  <ebb9@byu.net>
17316
17317         mgetgroups: add xgetgroups, and avoid ENOSYS failures
17318         * lib/mgetgroups.h (xgetgroups): New prototype.
17319         * lib/mgetgroups.c (xgetgroups): New wrapper.
17320         (mgetgroups): Handle ENOSYS.
17321         * modules/mgetgroups (Depends-on): Add realloc.
17322         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
17323
17324         mgetgroups: avoid argument promotion issues with -1
17325         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
17326         for invalid gid_t.
17327         * tests/test-chown.h (getegid, test_chown): Likewise.
17328         * tests/test-lchown.h (getegid, test_lchown): Likewise.
17329
17330 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
17331
17332         exclude: Fix header file problems.
17333         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
17334
17335 2009-12-01  Jim Meyering  <meyering@redhat.com>
17336
17337         fts: fts_open: do not let an empty string cause immediate failure
17338         This is required in support of GNU rm, for which the command
17339         "rm A '' B" must process and remove both A and B, in spite of
17340         the empty string argument.
17341         * lib/fts.c (fts_open): Do not let the presence of an empty string
17342         cause fts_open to fail immediately.  Most fts-using tools must be
17343         able to process all arguments, in order, and can be expected to
17344         diagnose such arguments themselves.
17345
17346 2009-11-30  Eric Blake  <ebb9@byu.net>
17347
17348         utimens: fix compilation error
17349         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
17350         Declare variable at right scope.
17351
17352 2009-11-29  Jim Meyering  <meyering@redhat.com>
17353
17354         bootstrap: handle perl-5.11's changed --version output
17355         * build-aux/bootstrap (get_version): Handle perl separately,
17356         since perl-5.11's --version output is different.
17357
17358 2009-11-28  Jim Meyering  <meyering@redhat.com>
17359
17360         userspec: depend on the inttostr module, too
17361         * modules/userspec (Depends-on): Add inttostr.
17362
17363         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
17364         * lib/userspec.c (parse_with_separator): Do not accept a user ID
17365         number of MAXUID when it evaluates to (uid_t) -1.
17366         Likewise for group ID.  Reported by Matt McCutchen in
17367         <http://savannah.gnu.org/bugs/?28113>
17368
17369         userspec: reformat to use spaces, not TABs
17370         * lib/userspec.c: Expand TABs to spaces.
17371         Add Emacs' "indent-tabs-mode: nil" hint.
17372
17373 2009-11-27  Eric Blake  <ebb9@byu.net>
17374
17375         getopt-gnu: flush out another BSD bug
17376         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
17377         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
17378         flush out BSD bug.
17379         * tests/test-getopt.h (test_getopt): End lists with NULL.
17380         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17381         (test_getopt_long_posix): Enhance test.
17382         * modules/getopt-posix-tests (Depends-on): Add stdbool.
17383         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
17384         getopt-gnu.
17385         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17386         Likewise.
17387
17388 2009-11-27  Simon Josefsson  <simon@josefsson.org>
17389
17390         * modules/idpriv-droptemp-tests (Notice): Fix text.
17391
17392 2009-11-27  Jim Meyering  <meyering@redhat.com>
17393
17394         test-xalloc-die: avoid spurious failure due to libtool argv difference
17395         In a libtool-enabled project, this test would fail due to a difference
17396         in the emitted program name, e.g.,
17397         -test-xalloc-die: memory exhausted
17398         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
17399         Use program to avoid that.
17400         * modules/xalloc-die-tests (Depends-on): Add progname.
17401         * tests/test-xalloc-die.c: Include progname.h".
17402         (program_name): Remove decl.
17403         (main): Call set_program_name.
17404         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
17405
17406 2009-11-26  Richard Jones  <rjones@redhat.com>
17407
17408         w32sock: leave win32 error in place.
17409         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
17410
17411 2009-11-26  Eric Blake  <ebb9@byu.net>
17412
17413         init.sh: suggest to use skip_ and fail_ functions in comments
17414         * tests/init.sh: Add a sentence.
17415
17416 2009-11-25  Bruno Haible  <bruno@clisp.org>
17417
17418         init.sh: add documentation in comments
17419         * tests/init.sh: Add some developer and user documentation.
17420
17421 2009-11-26  Jim Meyering  <meyering@redhat.com>
17422
17423         init.sh: accommodate even those who specify bogus srcdir manually
17424         * tests/init.sh: Normally, srcdir is guaranteed by automake and
17425         configure-time tests to be sanitized, so that there is no need to
17426         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
17427         (with no double quotes) suffices.  However, since tests may be
17428         invoked manually, and since you may explicitly set srcdir to the
17429         name of a directory containing spaces, do quote its uses here.
17430         * tests/test-pread.sh: Likewise.
17431         Suggested by Bruno Haible.
17432
17433         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
17434         * tests/test-pread.sh: Write no data into the pipe, because
17435         test-pread actually reads none.  This avoids a diagnostic,
17436         "bash: echo: write error: Broken pipe", that arises in the unusual
17437         event something is ignoring SIGPIPE, and might be interpreted
17438         as some sort of failure.  Reported by Bruno Haible.
17439
17440 2009-11-25  Jim Meyering  <meyering@redhat.com>
17441
17442         test-pread: cover failure with ESPIPE and EINVAL
17443         * tests/test-pread.c (main): Test for failure, too.
17444         * tests/test-pread.sh: Invoke with stdin on a pipe.
17445         Suggested by Eric Blake.
17446
17447         pread: improvement and fix
17448         * modules/pread (Depends-on): Depend on lseek, for portability to
17449         e.g., mingw.  Suggested by Eric Blake.
17450         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
17451
17452         unistd.in.h: correct declaration of pread
17453         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
17454         Reported by Richard W.M. Jones.
17455
17456         test-pread.sh: distribute the test script
17457         * modules/pread-tests (Files): Include test-pread.sh.
17458
17459         test-pread.sh: clean up
17460         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
17461         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
17462         That is unnecessary, since it's always ".".
17463         Suggestion from Eric Blake.
17464
17465         test-pread.sh: make executable
17466         * tests/test-pread.sh: Set executable bit.
17467         Reported by Eric Blake.
17468
17469         correct typo in test-pread.sh
17470         * tests/test-pread.sh: Add #! line.
17471
17472         test pread
17473         * tests/test-pread.c: New file.
17474         * tests/test-pread.sh: Likewise.
17475         * modules/pread-tests: Likewise.
17476
17477         pread: new module
17478         * modules/pread: New file.
17479         * lib/unistd.in.h (pread): Define/declare.
17480         * lib/pread.c (pread): New file.
17481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
17482         * modules/unistd (Makefile.am): Substitute witnesses.
17483         * doc/posix-functions/pread.texi (pread): Update.
17484         * MODULES.html.sh: Add pread.
17485
17486 2009-11-25  Jim Meyering  <meyering@redhat.com>
17487
17488         tests/init.sh: new file to be used via most *.sh tests
17489         * tests/init.sh: New file.
17490
17491 2009-11-25  Eric Blake  <ebb9@byu.net>
17492
17493         utimens: work around older Linux failure with symlinks
17494         * lib/utimens.c (lutimensat_works_really): New variable.
17495         (fdutimens, lutimens): Use it to manage kernels that support
17496         nanosecond times on files, but not on symlinks.
17497         Reported by OndÅ™ej Vašík.
17498
17499         utimes: fix configure grammar
17500         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
17501
17502 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
17503
17504         regex: Fix fastmap for multibyte character ranges.
17505         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
17506         characters when a multibyte character range is included.
17507
17508 2009-11-22  Andy Wingo  <wingo@pobox.com>
17509
17510         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
17511         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
17512
17513 2009-11-24  Bruno Haible  <bruno@clisp.org>
17514
17515         doc: Most *_l functions exist in MacOS X 10.5.
17516         * doc/posix-functions/duplocale.texi: Update platforms list.
17517         * doc/posix-functions/freelocale.texi: Likewise.
17518         * doc/posix-functions/newlocale.texi: Likewise.
17519         * doc/posix-functions/uselocale.texi: Likewise.
17520         * doc/posix-functions/isalnum_l.texi: Likewise.
17521         * doc/posix-functions/isalpha_l.texi: Likewise.
17522         * doc/posix-functions/isblank_l.texi: Likewise.
17523         * doc/posix-functions/iscntrl_l.texi: Likewise.
17524         * doc/posix-functions/isdigit_l.texi: Likewise.
17525         * doc/posix-functions/isgraph_l.texi: Likewise.
17526         * doc/posix-functions/islower_l.texi: Likewise.
17527         * doc/posix-functions/isprint_l.texi: Likewise.
17528         * doc/posix-functions/ispunct_l.texi: Likewise.
17529         * doc/posix-functions/isspace_l.texi: Likewise.
17530         * doc/posix-functions/isupper_l.texi: Likewise.
17531         * doc/posix-functions/iswalnum_l.texi: Likewise.
17532         * doc/posix-functions/iswalpha_l.texi: Likewise.
17533         * doc/posix-functions/iswblank_l.texi: Likewise.
17534         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17535         * doc/posix-functions/iswctype_l.texi: Likewise.
17536         * doc/posix-functions/iswdigit_l.texi: Likewise.
17537         * doc/posix-functions/iswgraph_l.texi: Likewise.
17538         * doc/posix-functions/iswlower_l.texi: Likewise.
17539         * doc/posix-functions/iswprint_l.texi: Likewise.
17540         * doc/posix-functions/iswpunct_l.texi: Likewise.
17541         * doc/posix-functions/iswspace_l.texi: Likewise.
17542         * doc/posix-functions/iswupper_l.texi: Likewise.
17543         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17544         * doc/posix-functions/isxdigit_l.texi: Likewise.
17545         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
17546         * doc/posix-functions/strcasecmp_l.texi: Likewise.
17547         * doc/posix-functions/strcoll_l.texi: Likewise.
17548         * doc/posix-functions/strfmon_l.texi: Likewise.
17549         * doc/posix-functions/strftime_l.texi: Likewise.
17550         * doc/posix-functions/strncasecmp_l.texi: Likewise.
17551         * doc/posix-functions/strxfrm_l.texi: Likewise.
17552         * doc/posix-functions/tolower_l.texi: Likewise.
17553         * doc/posix-functions/toupper_l.texi: Likewise.
17554         * doc/posix-functions/towctrans_l.texi: Likewise.
17555         * doc/posix-functions/towlower_l.texi: Likewise.
17556         * doc/posix-functions/towupper_l.texi: Likewise.
17557         * doc/posix-functions/wcscoll_l.texi: Likewise.
17558         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17559         * doc/posix-functions/wctrans_l.texi: Likewise.
17560         * doc/posix-functions/wctype_l.texi: Likewise.
17561         * doc/glibc-functions/strptime_l.texi: Likewise.
17562         * doc/glibc-functions/strtod_l.texi: Likewise.
17563         * doc/glibc-functions/strtof_l.texi: Likewise.
17564         * doc/glibc-functions/strtol_l.texi: Likewise.
17565         * doc/glibc-functions/strtold_l.texi: Likewise.
17566         * doc/glibc-functions/strtoll_l.texi: Likewise.
17567         * doc/glibc-functions/strtoul_l.texi: Likewise.
17568         * doc/glibc-functions/strtoull_l.texi: Likewise.
17569         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17570         * doc/glibc-functions/wcstod_l.texi: Likewise.
17571         * doc/glibc-functions/wcstof_l.texi: Likewise.
17572         * doc/glibc-functions/wcstol_l.texi: Likewise.
17573         * doc/glibc-functions/wcstold_l.texi: Likewise.
17574         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17575         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17576         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17577
17578 2009-11-24  Bruno Haible  <bruno@clisp.org>
17579
17580         duplocale: Fix logic bug.
17581         * lib/duplocale.c: Don't include <langinfo.h>.
17582         (_NL_LOCALE_NAME): Remove macro.
17583         (rpl_duplocale): Use setlocale instead of nl_langinfo.
17584         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
17585
17586 2009-11-23  Jim Meyering  <meyering@redhat.com>
17587
17588         test-update-copyright: don't hard-code /usr/bin/perl
17589         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
17590         perl to print the current year.  Gilles Espinasse reported that
17591         the replaced use of perl was hard-coded as /usr/bin/perl.
17592
17593 2009-11-23  Bruno Haible  <bruno@clisp.org>
17594
17595         duplocale: Add support for glibc 2.3.x.
17596         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
17597
17598 2009-11-22  Bruno Haible  <bruno@clisp.org>
17599
17600         vasnprintf: Tiny optimization.
17601         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
17602         MacOS X.
17603
17604 2009-11-22  Bruno Haible  <bruno@clisp.org>
17605
17606         Tests for module 'duplocale'.
17607         * modules/duplocale-tests: New file.
17608         * tests/test-duplocale.c: New file.
17609
17610         New module 'duplocale'.
17611         * m4/duplocale.m4: New file.
17612         * lib/locale.in.h (duplocale): New declaration.
17613         * lib/duplocale.c: New file.
17614         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
17615         gl_LOCALE_H_DEFAULTS): New macros.
17616         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
17617         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
17618         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
17619         REPLACE_DUPLOCALE.
17620         * modules/duplocale: New file.
17621         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
17622
17623 2009-11-22  Bruno Haible  <bruno@clisp.org>
17624
17625         * modules/locale-tests (configure.ac): Test for newlocale function.
17626         * tests/test-locale.c: When the system has extended locale functions,
17627         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
17628
17629         locale: Make locale_t available when possible.
17630         * lib/locale.in.h: Include <xlocale.h> when it exists.
17631         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
17632         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
17633         * modules/locale (Depends-on): Add extensions.
17634         (Makefile.am): Also substitute HAVE_XLOCALE_H.
17635         * doc/posix-headers/locale.texi: Document the problem with locale_t.
17636
17637 2009-11-22  Bruno Haible  <bruno@clisp.org>
17638
17639         Add comments.
17640         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
17641         invocation.
17642         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
17643         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17644         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17645
17646 2009-11-22  Bruno Haible  <bruno@clisp.org>
17647
17648         error: account for the possibility of freopen (stdout).
17649         * lib/error.c: Include <unistd.h>.
17650         (flush_stdout): New function, extracted from error and error_at_line.
17651         Determine stdout's fd dynamically.
17652         (error, error_at_line): Invoke flush_stdout.
17653         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
17654         * modules/error (Depends-on): Add unistd.
17655
17656 2009-11-22  Bruno Haible  <bruno@clisp.org>
17657
17658         diffseq: Add comment.
17659         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
17660
17661 2009-11-22  Jim Meyering  <meyering@redhat.com>
17662
17663         c-stack: avoid defining an unused static function
17664         * lib/c-stack.c (find_stack_direction): Do not define this function
17665         when it will not be used.
17666
17667         diffseq: avoid spurious gcc warnings
17668         * lib/diffseq.h (IF_LINT2): Define.
17669         (compareseq): Use it to initialize two members of "part".
17670         This avoids two used-uninitialized warnings.
17671
17672 2009-11-21  Jim Meyering  <meyering@redhat.com>
17673
17674         c-stack: avoid "ignoring return value of `write'" warning
17675         * lib/c-stack.c: Include "ignore-value.h".
17676         (die): Explicitly ignore each write return value.
17677         * modules/c-stack (Depends-on): Add ignore-value.
17678
17679 2009-11-21  Bruno Haible  <bruno@clisp.org>
17680
17681         diffseq: reduce scope of variable 'best'.
17682         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
17683         variable, earlier used for two different purposes.
17684
17685 2009-11-21  Jim Meyering  <meyering@redhat.com>
17686
17687         diffseq: remove useless assignment to "best"
17688         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
17689         assignment.  At that point "best" is already guaranteed to be zero.
17690
17691 2009-11-20  Eric Blake  <ebb9@byu.net>
17692
17693         build: mention ftp redirector in release announcements
17694         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
17695         values that used to come from cfg.mk; mention FTP redirect URL.
17696         * build-aux/announce-gen: Mention the mirror list.
17697         Suggested by Karl Berry.
17698
17699         nanosleep: improve port to mingw
17700         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
17701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
17702         LIB_NANOSLEEP, but only when needed.
17703         * modules/select (Link): Document LIBSOCKET.
17704         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
17705         enough.
17706
17707         nanosleep: work around cygwin bug
17708         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
17709         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
17710         bug.
17711         (getnow): Delete, not needed.
17712         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
17713         LIB_CLOCK_GETTIME.
17714         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
17715         clock-time, gettime.
17716         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
17717         bug.
17718         * modules/nanosleep-tests: New test.
17719         * tests/test-nanosleep.c: New file.
17720
17721         sleep: work around cygwin bug
17722         * lib/sleep.c (rpl_sleep): Work around the bug.
17723         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
17724         (gl_PREREQ_SLEEP): Delete unused macro.
17725         * modules/sleep (Depends-on): Add verify.
17726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17727         * modules/unistd (Makefile.am): Substitute witness.
17728         * lib/unistd.in.h (sleep): Update prototype.
17729         * doc/posix-functions/sleep.texi (sleep): Document the bug.
17730         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
17731         * modules/sleep-tests (Depends-on): Check for alarm.
17732
17733 2009-11-20  Jim Meyering  <meyering@redhat.com>
17734
17735         maint.mk: improve sc_prohibit_magic_number_exit
17736         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
17737         so it does not match uses like System.exit(1).
17738         Add comments showing how to correct all offenders.
17739
17740 2009-11-19  Eric Blake  <ebb9@byu.net>
17741
17742         xalloc-die-tests: add missing library
17743         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
17744
17745         test-xvasprintf: silence compiler warnings
17746         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
17747         empty string from gcc.
17748
17749 2009-11-19  Jim Meyering  <meyering@redhat.com>
17750
17751         xfreopen: new module, from coreutils
17752         * modules/xfreopen: New module.
17753         * lib/xfreopen.c: New file.
17754         * lib/xfreopen.h: New file.
17755         * MODULES.html.sh (File stream based Input/Output"): Add it.
17756
17757 2009-11-19  Eric Blake  <ebb9@byu.net>
17758
17759         manywarnings: depend on warnings
17760         * modules/manywarnings (Depends-on): Add warnings.
17761
17762         build: avoid compiler warnings
17763         * lib/select.c (rpl_select): Delete unused variable.
17764         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
17765
17766 2009-11-18  Eric Blake  <ebb9@byu.net>
17767
17768         tests: avoid false negative with --with-packager
17769         * tests/test-version-etc.sh: Discard packager information.
17770         * tests/test-argp-version-etc-1.sh: Likewise.
17771         Reported by Mike Frysinger.
17772
17773         utimens: fix regression on Solaris
17774         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
17775         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
17776         can only change fd timestamps via futimesat.  Instead, use an
17777         additional witness macro to avoid BSD bug.
17778         Reported by Jim Meyering.
17779
17780 2009-11-17  Eric Blake  <ebb9@byu.net>
17781
17782         usleep: use it to simplify tests
17783         * modules/stat-time-tests (Depends-on): Add usleep.
17784         (configure.ac): Drop usleep check.
17785         * modules/chown-tests (Depends-on, configure.ac): Likewise.
17786         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
17787         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
17788         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
17789         * modules/openat-tests (Depends-on, configure.ac): Likewise.
17790         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
17791         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
17792         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
17793         Likewise.
17794         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
17795         * tests/test-lchown.h (nap): Likewise.
17796         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
17797         * tests/test-stat-time.c (nap): Likewise.
17798         * tests/test-utimens-common.h (nap): Update comments.
17799
17800         usleep: new module
17801         * modules/usleep: New file.
17802         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
17803         * lib/usleep.c (usleep): Likewise.
17804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17805         * modules/unistd (Makefile.am): Substitute witnesses.
17806         * lib/unistd.in.h (usleep): Add declaration.
17807         * doc/pastposix-functions/usleep.texi (usleep): Document this.
17808         * MODULES.html.sh (Date and time): Likewise.
17809         * modules/usleep-tests (Depends-on): New test.
17810         * tests/test-usleep.c: New file.
17811
17812         chown: work around OpenBSD bug
17813         * lib/chown.c (rpl_chown): Work around the bug.
17814         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
17815         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
17816         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
17817         * modules/chown (Depends-on): Add stdbool.
17818         * modules/lchown (Depends-on): Likewise.
17819         * doc/posix-functions/chown.texi (chown): Document the bug.
17820         * doc/posix-functions/lchown.texi (lchown): Likewise.
17821         * tests/test-lchown.h (test_chown): Relax test.
17822
17823         mkstemp: avoid conflict with C++ keyword template
17824         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
17825         * lib/mkostemp.c (mkostemp): Likewise.
17826         * lib/mkostemps.c (mkostemps): Likewise.
17827         * lib/mkstemp.c (mkstemp): Likewise.
17828         * lib/mkstemps.c (mkstemps): Likewise.
17829
17830         xalloc-die-tests: optimize
17831         * tests/test-xalloc-die.sh: Reduce number of processes.
17832
17833 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17834
17835         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
17836         patch from ludo@gnu.org (Ludovic Courtès).
17837
17838 2009-11-17  Jim Meyering  <meyering@redhat.com>
17839
17840         version-etc: use proper license string
17841         * modules/version-etc (License): Use LGPL, not LGPLv3+.
17842         * modules/version-etc-fsf: Likewise.
17843
17844 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17845
17846         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
17847         printed to stdout.  Deal with EOL differences.
17848
17849 2009-11-17  Eric Blake  <ebb9@byu.net>
17850
17851         unsetenv: work around Solaris bug
17852         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
17853         * lib/unsetenv.c (rpl_unsetenv): Work around it.
17854         Reported by Jim Meyering.
17855
17856         vasnprintf: avoid compiler warnings
17857         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
17858         variables.
17859         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
17860
17861 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17862
17863         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
17864         settings since xalloc-die is no longer the self test,
17865         xalloc-die.sh is.
17866
17867 2009-11-17  Jim Meyering  <meyering@redhat.com>
17868
17869         test-xalloc-die.sh: make the code agree with the commit log
17870         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
17871         at the end, just in case you happen to have a test-xalloc-die
17872         program in some other PATH directory.
17873
17874         test-xalloc-die.sh: fix a portability bug
17875         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
17876         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
17877         Otherwise, argv[0] (as often seen in diagnostics) would be too
17878         system-dependent, sometimes with, and sometimes without the leading "./".
17879
17880         version-etc-fsf: relax license to LGPLv3+
17881         * modules/version-etc-fsf (License): Relax license.
17882
17883 2009-11-16  Eric Blake  <ebb9@byu.net>
17884
17885         xalloc-die-tests: avoid printing null pointer
17886         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
17887         shell script.
17888         * tests/test-xalloc-die.c (program_name): Declare.
17889         * tests/test-xalloc-die.sh (tmpfiles): New file.
17890
17891         setenv, unsetenv: work around various bugs
17892         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
17893         (setenv) [HAVE_SETENV]: Work around bugs.
17894         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
17895         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
17896         for bugs.
17897         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
17898         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
17899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
17900         * modules/stdlib (Makefile.am): Update substitutions.
17901         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
17902         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
17903         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17904         * modules/setenv-tests: New test.
17905         * modules/unsetenv-tests: Likewise.
17906         * tests/test-setenv.c: New file.
17907         * tests/test-unsetenv.c: Likewise.
17908
17909 2009-11-16  Jim Meyering  <meyering@redhat.com>
17910
17911         version-etc: relax license to LGPLv3+
17912         * modules/version-etc (License): Relax license.
17913
17914         better AC_REQUIRE expanded-before-required-warning avoidance
17915         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
17916         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
17917         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
17918         which is no longer needed.
17919
17920 2009-11-16  Eric Blake  <ebb9@byu.net>
17921
17922         test-freading: clean up temporary file
17923         * tests/test-freading.c (main): Remove file on success, and use
17924         ASSERT more liberally.
17925         Reported by Jim Meyering.
17926
17927 2009-11-16  Jim Meyering  <meyering@redhat.com>
17928
17929         avoid new AC_REQUIRE expanded-before-required warnings
17930         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
17931         merely using it.
17932         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
17933         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
17934
17935 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17936
17937         * tests/test-xalloc-die.c: New file.
17938         * modules/xalloc-die-tests: New file.
17939         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
17940         XFAIL_TESTS so it can be appended by modules.
17941
17942 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17943
17944         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
17945         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
17946
17947 2009-11-14  Eric Blake  <ebb9@byu.net>
17948
17949         fnmatch: avoid compiler warning
17950         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
17951         to silence compiler warning about mismatch signedness in ?:.
17952         Reported by Robert Millan.
17953
17954         intprops: add double-inclusion guard
17955         * lib/intprops.h: Allow idempotent includes.
17956         Suggested by Bruce Korb.
17957
17958         openat: detect Solaris fchownat bug
17959         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
17960         penalizing glibc chownat when only lchownat is broken.
17961         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
17962         trailing slash bugs.
17963         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
17964         * modules/openat-tests (Files): Include more files.
17965         (Depends-on): Add mgetgroups, sleep, stat-time.
17966         (configure.ac): Add additional checks.
17967         (Makefile.am): Build new test.
17968         * tests/test-fchownat.c: New file.
17969
17970         lchown: detect Solaris and FreeBSD bug
17971         * lib/lchown.c (rpl_lchown): Work around bug.
17972         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
17973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17974         * modules/unistd (Makefile.am): Populate it.
17975         * lib/unistd.in.h (lchown): Update declaration.
17976         * doc/posix-functions/lchown.texi (lchown): Document the bug.
17977         * modules/lchown-tests: New file.
17978         * tests/test-lchown.h (test_lchown): Likewise.
17979         * tests/test-lchown.c (main): Likewise.
17980
17981         chown: detect Solaris and FreeBSD bug
17982         * lib/chown.c (rpl_chown): Work around bug.
17983         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
17984         (gl_PREREQ_CHOWN): Delete.
17985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17986         * modules/unistd (Makefile.am): Populate it.
17987         * lib/unistd.in.h (chown): Update declaration.
17988         * lib/lchown.c (chown): Update client.
17989         * modules/lchown (Depends-on): Add lstat.
17990         * doc/posix-functions/chown.texi (chown): Document the bug.
17991         * doc/posix-functions/getgroups.texi (getgroups): Document
17992         getgroups pitfall.
17993         * modules/chown-tests: New file.
17994         * tests/test-chown.h (test_chown): Likewise.
17995         * tests/test-chown.c (main): Likewise.
17996
17997 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
17998
17999         gnulib-tool: correctly detect absence of m4 directories
18000         * gnulib-tool: Avoid extra newline on data passed to wc -l.
18001
18002 2009-11-14  Jim Meyering  <meyering@redhat.com>
18003
18004         maint.mk: Prohibit inclusion of "xalloc.h" without use.
18005         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18006
18007 2009-11-14  John W. Eaton  <jwe@gnu.org>
18008
18009         strftime.h: wrap funtion declaration in extern "C" block
18010         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
18011
18012 2009-11-13  Eric Blake  <ebb9@byu.net>
18013
18014         getgroups: avoid compiler warning
18015         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
18016
18017         getgroups: work around FreeBSD bug
18018         * lib/getgroups.c (rpl_getgroups): Work around the bug.
18019         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
18020         * doc/posix-functions/getgroups.texi (getgroups): Document it.
18021         * tests/test-getgroups.c (main): Fix buffer overrun.
18022
18023         getgroups: avoid compilation failure
18024         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
18025         * modules/getgroups (Depends-on): Add stdint.
18026
18027 2009-11-13  Jim Meyering  <meyering@redhat.com>
18028
18029         test-getgroups: avoid compilation failure
18030         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
18031
18032 2009-11-13  Eric Blake  <ebb9@byu.net>
18033
18034         mgetgroups: new module, taken from coreutils
18035         * modules/mgetgroups: New file.
18036         * lib/mgetgroups.h: Likewise.
18037         * lib/mgetgroups.c (mgetgroups): Likewise.
18038         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
18039         * MODULES.html.sh (Users and groups): Mention it.
18040
18041         getgroups: don't expose GETGROUPS_T to user
18042         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
18043         an element at a time if GETGROUPS_T is wrong size.
18044         * lib/getugroups.h (getugroups): Change signature.
18045         * lib/unistd.in.h (getgroups): Likewise.
18046         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
18047         signature needs fixing.
18048         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
18049         AC_TYPE_GETGROUPS.
18050         * modules/group-member (Depends-on): Add getgroups.
18051         * lib/group-member.c (group_info, get_group_info): Use gid_t.
18052         (group_member): Rely on getgroups replacement.
18053         * lib/getugroups.c (getugroups): Use gid_t.
18054         * tests/test-getgroups.c (main): Likewise.
18055         * NEWS: Mention the signature change.
18056         * doc/posix-functions/getgroups.texi (getgroups): Mention the
18057         problem with signature.
18058         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
18059         GETGROUPS_T is still useful for setgroups.
18060
18061         getgroups, getugroups: provide stubs for mingw
18062         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
18063         * lib/getugroups.c (getugroups): Likewise.
18064         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
18065         function.  Modernize replacement scheme.
18066         (gl_PREREQ_GETGROUPS): Delete.
18067         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
18068         * modules/getgroups (configure.ac): Declare witness.
18069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
18070         * modules/unistd (Depends-on): Substitute witness.
18071         * lib/unistd.in.h (getgroups): Declare replacement.
18072
18073         getgroups: avoid calling exit
18074         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
18075         drop xalloc.
18076         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
18077         dependencies.
18078         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
18079         exiting, in the rare case of malloc failure.
18080
18081         getgroups: fix logic error
18082         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
18083         has more than 20 groups.
18084         * modules/getgroups-tests: New test.
18085         * tests/test-getgroups.c: New file.
18086
18087 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18088
18089         * tests/test-base64.c: Improve.
18090
18091 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18092
18093         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
18094         Blake <ebb9@byu.net>.
18095
18096 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18097
18098         * tests/test-xvasprintf.c: Add %s%s related checks.
18099
18100 2009-11-12  Eric Blake  <ebb9@byu.net>
18101
18102         version-etc: match standards.texi style
18103         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
18104         and use <> only for URLs.
18105
18106 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
18107
18108         fts: do not fail on a submount during traversal
18109         * lib/fts.c (fts_build): Read the stat info again after opening
18110         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
18111         Original report at http://bugzilla.redhat.com/501848.
18112
18113 2009-11-12  Jim Meyering  <meyering@redhat.com>
18114
18115         bootstrap: sync from coreutils
18116         * build-aux/bootstrap (bootstrap_epilogue): New function.
18117         Use git_modules_config in one more place.  This make bootstrap's
18118         --gnulib-srcdir option more useful for testing.
18119
18120         bootstrap: generalize autoheader check
18121         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
18122         AC_CONFIG_HEADERS.
18123
18124 2009-11-11  Eric Blake  <ebb9@byu.net>
18125
18126         mkfifoat: use new modules for Solaris and BSD bugs
18127         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
18128         * lib/mkfifoat.c (mknodat): Split...
18129         * lib/mknodat.c (mknodat): ...into new file.
18130         * modules/mkfifoat (Files): Ship new file.
18131         (Depends-on): Add mkfifo, mknod.
18132         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
18133         (Depends-on): Add symlink.
18134         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
18135         redundant with test_mkfifo.h.
18136         (do_mkfifoat, do_mknodat): New helpers.
18137
18138         mknod: new module
18139         * modules/mknod: New file.
18140         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18141         * lib/mknod.c (mknod): Likewise.
18142         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
18143         defaults.
18144         * modules/sys_stat (Makefile.am): Substitute them.
18145         * lib/sys_stat.in.h (mknod): Declare replacement.
18146         * MODULES.html.sh (Support for systems lacking POSIX:2008):
18147         Document it.
18148         * doc/posix-functions/mknod.texi (mknod): Likewise.
18149         * modules/mknod-tests: New test.
18150         * tests/test-mknod.c: Likewise.
18151
18152         mkfifo: new module
18153         * modules/mkfifo: New file.
18154         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18155         * lib/mkfifo.c (mkfifo): Likewise.
18156         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
18157         defaults.
18158         * modules/sys_stat (Makefile.am): Substitute them.
18159         * lib/sys_stat.in.h (mkfifo): Declare replacement.
18160         * MODULES.html.sh (Support for systems lacking POSIX:2008):
18161         Document it.
18162         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
18163         * modules/mkfifo-tests: New test.
18164         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
18165         from test-mkfifoat.c.
18166         * tests/test-mkfifo.c: New file.
18167
18168         readlink: detect FreeBSD bug
18169         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
18170         slash on symlink.
18171         * doc/posix-functions/readlink.texi (readlink): Document the bug.
18172         * tests/test-readlink.h (test_readlink): Enhance test.
18173
18174         symlink: detect FreeBSD bug
18175         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
18176         slash on symlink.
18177         * doc/posix-functions/symlink.texi (symlink): Document the bug.
18178         * tests/test-symlink.h (test_symlink): Enhance test.
18179
18180 2009-11-10  Eric Blake  <ebb9@byu.net>
18181
18182         link: detect FreeBSD bug
18183         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
18184         symlink.
18185         * doc/posix-functions/link.texi (link): Document the bug.
18186         * tests/test-link.h (test_link): Enhance test.
18187         * tests/test-linkat.c (main): Update caller.
18188
18189         unlink, remove: detect FreeBSD bug
18190         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
18191         slash on symlink.
18192         * doc/posix-functions/unlink.texi (unlink): Document the bug.
18193         * doc/posix-functions/remove.texi (remove): Likewise.
18194         * tests/test-unlink.h (test_unlink): Enhance test.
18195         * tests/test-remove.c (main): Likewise.
18196
18197 2009-11-09  Eric Blake  <ebb9@byu.net>
18198
18199         rename: detect FreeBSD bug
18200         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
18201         slash on symlink.
18202         * modules/renameat-tests (Depends-on): Add filenamecat.
18203         * tests/test-rename.h (test_rename): Allow one more errno.
18204         * tests/test-renameat.c (main): Likewise.
18205         * doc/posix-functions/rename.texi (rename): Document the bug.
18206
18207         open: detect FreeBSD bug
18208         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
18209         symlink.
18210         * doc/posix-functions/open.texi (open): Document the bug.
18211         * doc/posix-functions/utimes.texi (utimes): Likewise.
18212         * tests/test-open.h (test_open): Add parameters, and test symlink
18213         handling.
18214         * tests/test-open.c (main): Adjust caller.
18215         * tests/test-fcntl-safer.c (main): Likewise.
18216         * modules/open-tests (Depends-on): Add stdbool, symlink.
18217         * modules/fcntl-safer-tests (Depends-on): Likewise.
18218         * tests/test-openat.c (main): Add test-open tests.
18219
18220         stat: detect FreeBSD bug
18221         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
18222         symlink.
18223         * doc/posix-functions/stat.texi (stat): Document the bug.
18224         * tests/test-stat.h (test_stat_func): Add argument.
18225         * tests/test-stat.c (main): Adjust caller.
18226         * tests/test-fstatat.c (main): Likewise.
18227         * modules/stat-tests (Depends-on): Add stdbool, symlink.
18228         Reported by Jim Meyering.
18229
18230 2009-11-09  James Youngman  <jay@gnu.org>
18231
18232         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
18233         * lib/strftime.c: Correct placement of #include "ignore-value.h".
18234
18235 2009-11-08  Jim Meyering  <meyering@redhat.com>
18236
18237         utimens: remove invalid futimesat call
18238         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
18239         It used the file descriptor of the target file as the DIR_FD
18240         parameter and NULL as the file name.  That caused failure with
18241         errno == EFAULT on FreeBSD-8.0-rc2
18242
18243 2009-11-07  Eric Blake  <ebb9@byu.net>
18244
18245         fflush, freadseek: use fseeko, not fseek
18246         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18247         (clear_ungetc_buffer): Avoid potential problems on large files.
18248         * lib/freadseek.c (freadseek): Likewise.
18249         * modules/freadseek (Depends-on): Add fseeko.
18250         * modules/fseek (configure.ac): Set a witness.
18251         * tests/test-fflush.c (main): Use fseeko.
18252         * tests/test-fpurge.c (fseek): Disable link warning.
18253         * tests/test-freadable.c (fseek): Likewise.
18254         * tests/test-freading.c (fseek): Likewise.
18255         * tests/test-fseeko.c (fseek): Likewise.
18256         * tests/test-ftell.c (fseek): Likewise.
18257         * tests/test-ftello.c (fseek): Likewise.
18258         * tests/test-fwritable.c (fseek): Likewise.
18259         * tests/test-fwriting.c (fseek): Likewise.
18260
18261 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18262
18263         * modules/memchr (Depends-on): Drop getpagesize dependency.
18264
18265 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18266
18267         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
18268         Reported by Ludovic Courtès.
18269         * build-aux/pmccabe2html: Improve example usage.
18270         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
18271
18272 2009-11-06  Jim Meyering  <meyering@redhat.com>
18273
18274         do-release-commit-and-tag: New module.
18275         Automate the release-commit and tag process.
18276         * build-aux/do-release-commit-and-tag: New script, from coreutils.
18277         * modules/do-release-commit-and-tag: New file.
18278         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18279
18280 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18281
18282         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
18283         because test-select.c uses inet_pton.
18284
18285 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18286
18287         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
18288         GETADDRINFO_LIB.  Bump serial number.
18289         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
18290         Suggested by Eric Blake <ebb9@byu.net>.
18291
18292 2009-11-05  Eric Blake  <ebb9@byu.net>
18293
18294         strtod: detect darwin bug
18295         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
18296         Reported by Leo Davis.
18297
18298         freopen-safer: new module
18299         * modules/freopen-safer: New module.
18300         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
18301         * lib/freopen-safer.c (freopen_safer): New file.
18302         * lib/stdio-safer.h (freopen_safer): New declaration.
18303         * lib/stdio--.h (freopen): New override.
18304         * MODULES.html.sh (File stream based Input/Output): Mention it.
18305         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
18306         freopen-safer module.
18307         * doc/posix-functions/stderr.texi (stderr): Likewise.
18308         * doc/posix-functions/stdin.texi (stdin): Likewise.
18309         * doc/posix-functions/stdout.texi (stdout): Likewise.
18310         * modules/freopen-safer-tests: New test.
18311         * tests/test-reopen-safer.c: New file.
18312
18313 2009-11-05  Jim Meyering  <meyering@redhat.com>
18314
18315         maint.mk: Prohibit inclusion of "close-stream.h" without use.
18316         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18317
18318 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18319
18320         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
18321
18322 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18323
18324         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
18325
18326 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18327
18328         Fix link error.
18329         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18330         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18331
18332 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18333
18334         * tests/test-func.c: Also test value of __func__.
18335
18336 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18337
18338         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
18339         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
18340
18341 2009-11-05  Bruno Haible  <bruno@clisp.org>
18342
18343         Fix link error.
18344         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18345         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18346         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
18347
18348 2009-11-05  Bruno Haible  <bruno@clisp.org>
18349
18350         Tests for module 'inet_pton'.
18351         * modules/inet_pton-tests: New file.
18352         * tests/test-inet_pton.c: New file.
18353
18354 2009-11-05  Bruno Haible  <bruno@clisp.org>
18355
18356         Tests for module 'inet_ntop'.
18357         * modules/inet_ntop-tests: New file.
18358         * tests/test-inet_ntop.c: New file.
18359
18360 2009-11-04  Eric Blake  <ebb9@byu.net>
18361
18362         stdlib-safer: wrap all mkstemp variants
18363         * modules/mkostemp (configure.ac): Set witness.
18364         * modules/mkostemps (configure.ac): Likewise.
18365         * modules/mkstemps (configure.ac): Likewise.
18366         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
18367         (mkstemps_safer): Wrap more functions.
18368         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
18369         wrapping.
18370         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
18371         (mkstemps_safer): Implement the wrappers.
18372
18373         mkstemps, mkostemps: new modules
18374         * modules/mkostemps: New module.
18375         * modules/mkstemps: Likewise.
18376         * lib/mkostemps.c (mkostemps): New file.
18377         * lib/mkstemps.c (mkstemps): Likewise.
18378         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
18379         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
18380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
18381         * modules/stdlib (Makefile.am): Substitute them.
18382         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
18383         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
18384         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18385         * doc/gnulib.texi (Glibc stdlib.h): Include them.
18386         * MODULES.html.sh (File system functions): Mention them.
18387
18388         tempname: resync from glibc
18389         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
18390         same values for __GT_FILE as glibc.  Abort even when assertions
18391         are disabled.
18392         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
18393         match its value otherwise.  Allow idempotent inclusion.
18394         * lib/mkdtemp.c (mkdtemp): Adjust caller.
18395         * lib/mkostemp.c (mkostemp): Likewise.
18396         * lib/mkstemp.c (mkstemp): Likewise.
18397         * lib/tmpfile.c (tmpfile): Likewise.
18398         * NEWS: Document this.
18399
18400         utimens: fix use of futimens on older Linux
18401         * lib/utimens.c (fdutimens): Use updated, rather than original,
18402         timespec to avoid bug in older Linux kernel.
18403         Reported by Simon Josefsson.
18404
18405 2009-11-04  Bruno Haible  <bruno@clisp.org>
18406
18407         Make num_processors more flexible and consistent.
18408         * lib/nproc.h (enum nproc_query): New type.
18409         (num_processors): Add a 'query' argument.
18410         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
18411         (num_processors): Add a 'query' argument. Test the value of the
18412         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
18413         mingw, count the number of CPUs available for the current process.
18414         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
18415         Check for sched_getaffinity and sched_getaffinity_np.
18416         * modules/nproc (Depends-on): Add c-ctype, extensions.
18417         * NEWS: Mention the change.
18418
18419 2009-11-03  Bruno Haible  <bruno@clisp.org>
18420
18421         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
18422
18423 2009-11-03  Jim Meyering  <meyering@redhat.com>
18424
18425         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
18426         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
18427         if it is defined.
18428
18429 2009-11-02  Eric Blake  <ebb9@byu.net>
18430
18431         mktime, timegm: share common declaration
18432         * lib/mktime-internal.h: New file.
18433         * lib/mktime.c: Use it rather than open-coding a declaration.
18434         * lib/timegm.c: Likewise.
18435         * modules/mktime (Files): Ship it.
18436         * modules/timegm (Files): Likewise.
18437         Suggested by Bruno Haible.
18438
18439         test-update-copyright: update test to match script changes
18440         * tests/test-update-copyright.sh: Avoid hard-coding perl
18441         location.  Don't update *.bak created by earlier runs.
18442
18443 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
18444             Simon Josefsson  <simon@josefsson.org>
18445             Bruno Haible  <bruno@clisp.org>
18446
18447         Fix link error on Solaris 8.
18448         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
18449         also in libnsl. Define also INET_PTON_LIB.
18450         * modules/inet_pton (Link): New section.
18451
18452 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18453             Bruno Haible  <bruno@clisp.org>
18454
18455         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
18456         * modules/inet_ntop (Link): New section.
18457         Reported by Boyan Kasarov <bkasarov@gmail.com>.
18458
18459 2009-11-02  Eric Blake  <ebb9@byu.net>
18460
18461         maint: avoid compiler warnings in m4 macros
18462         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
18463         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
18464
18465 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18466
18467         * m4/pmccabe2html.m4: Remove file.
18468         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
18469         function.  Change maintainer.
18470         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
18471         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
18472         Courtès).
18473
18474 2009-10-31  Eric Blake  <ebb9@byu.net>
18475
18476         fseeko: fix m4 regression
18477         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
18478         regression from 2009-10-27.
18479         Reported by Ralf Wildenhues.
18480
18481 2009-10-31  Jim Meyering  <meyering@redhat.com>
18482
18483         inttostr: aesthetics and improved (compile-time) safety
18484         Define inttype_is_signed rather than inttype_is_unsigned,
18485         since the sole use is via "#if inttype_is_signed".
18486         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
18487         inttype_is_unsigned.
18488         * lib/offtostr.c (inttype_is_signed): Likewise.
18489         * lib/uinttostr.c (inttype_is_signed): Likewise.
18490         * lib/umaxtostr.c (inttype_is_signed): Likewise.
18491         * lib/inttostr.c (inttostr): Use verify to cross-check the
18492         inttype_is_signed value and the signedness of the actual type.
18493         * modules/inttostr (Depends-on): Add verify.
18494
18495 2009-10-30  Eric Blake  <ebb9@byu.net>
18496
18497         build: avoid compiler warnings
18498         * lib/fchmodat.c (lchmod): Mark unused variables.
18499         * lib/getopt.c (_getopt_initialize): Likewise.
18500         * lib/mktime.c (__mktime_internal): Provide prototype.
18501         * lib/inttostr.c (inttostr): Avoid compiler warning even with
18502         older gcc that do not understand #pragma GCC diagnostic.
18503         * lib/uinttostr.c (inttype_is_unsigned): Define.
18504         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
18505
18506 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18507
18508         stat: fix compilation on AIX
18509         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
18510         only see struct stat64.
18511
18512 2009-10-30  Eric Blake  <ebb9@byu.net>
18513
18514         exclude: make more robust
18515         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
18516         rather than masking a coding bug.
18517         Suggested by Bruno Haible.
18518
18519 2009-10-30  Jim Meyering  <meyering@redhat.com>
18520
18521         perl scripts: remove #!/usr/bin/perl in favor of more portable...
18522         Rather than putting #!/usr/bin/perl on the first line,
18523         start with a variant of what's recommended by "man perlrun" that
18524         invokes the first "perl" program from your shell's search path.
18525         * build-aux/gitlog-to-changelog: Replace #!... as above.
18526         Add a "Local Variables" perl mode setting.
18527         Prompted by a patch from Ludovic Courtès.
18528         Improved by Eric Blake.
18529         * build-aux/useless-if-before-free: Likewise.
18530         * build-aux/announce-gen: Likewise.
18531         * build-aux/update-copyright: Likewise.
18532
18533 2009-10-29  Eric Blake  <ebb9@byu.net>
18534
18535         filenamecat-lgpl: adjust clients
18536         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
18537         filenamecat.
18538         * modules/renameat (Depends-on): Likewise.
18539
18540         filenamecat: split into filenamecat-lgpl
18541         * modules/filenamecat-lgpl: New module.
18542         * modules/filenamecat (Files): Move library-safe files into
18543         filenamecat-lgpl.
18544         (Depends-on): Add filenamecat-lgpl.
18545         (configure.ac): Declare witness.
18546         * lib/filenamecat.h (file_name_concat): Only declare when using
18547         GPL module.
18548         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
18549         Move...
18550         * lib/filenamecat-lgpl.c: ...into new file.
18551         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
18552         (gl_FILE_NAME_CONCAT): Use it.
18553         * MODULES.html.sh (File system functions): Mention new module.
18554
18555         argp: avoid memory leak
18556         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
18557         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
18558         base_name, since the latter malloc()s and can call exit().
18559         Leak introduced 2006-07-03.
18560
18561         dirname-lgpl: adjust clients that don't need full dirname
18562         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
18563         * modules/filenamecat (Depends-on): Likewise.
18564         * modules/linkat (Depends-on): Likewise.
18565         * modules/mkancesdirs (Depends-on): Likewise.
18566         * modules/mkdir (Depends-on): Likewise.
18567         * modules/openat (Depends-on): Likewise.
18568         * modules/savewd (Depends-on): Likewise.
18569         * modules/rename (Depends-on): Likewise.
18570         (License): Relax license.
18571         * modules/mkdir-tests (Depends-on): Drop progname.
18572         (Makefile.am): Delete unneeded LDADD.
18573         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
18574
18575         dirname: split into dirname-lgpl
18576         * modules/dirname-lgpl: New module.
18577         * modules/dirname (Files): Move library-safe files into
18578         dirname-lgpl.
18579         (Depends-on): Add dirname-lgpl.
18580         (configure.ac): Declare witness.
18581         * modules/double-slash-root (License): Relax license.
18582         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
18583         module.
18584         * lib/dirname.c (dir_len, mdir_name): Move...
18585         * lib/dirname-lgpl.c: ...into new file.
18586         * lib/basename.c (last_component, base_len): Move...
18587         * lib/basename-lgpl.c: ...into new file.
18588         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
18589         (gl_DIRNAME): Use it.
18590         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
18591         Mention new module.
18592         * modules/dirname-tests (Depends-on): Add progname.
18593         * tests/test-dirname.c (program_name): Delete.
18594
18595         mkdir: make safe for libraries
18596         * modules/mkdir (Depends-on): Drop xalloc.
18597         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
18598         exit.
18599
18600         tests: avoid some compiler warnings
18601         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
18602         literals.
18603         * tests/test-memchr.c (main): Avoid type mismatch.
18604         * tests/test-arpa_inet.c (main): Avoid unused parameters.
18605         * tests/test-base64.c (main): Likewise.
18606         * tests/test-getdelim.c (main): Likewise.
18607         * tests/test-gethostname.c (main): Likewise.
18608         * tests/test-getline.c (main): Likewise.
18609         * tests/test-netinet_in.c (main): Likewise.
18610         * tests/test-select.c (open_server_socket, main): Likewise.
18611         * tests/test-select-stdin.c (main): Likewise.
18612         * tests/test-sockets.c (main): Likewise.
18613         * tests/test-strsignal.c (main): Likewise.
18614         * tests/test-sys_select.c (main): Likewise.
18615         * tests/test-sys_socket.c (main): Likewise.
18616         * tests/test-u64.c (main): Likewise.
18617         * tests/test-xfprintf-posix.c (main): Likewise.
18618         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
18619
18620         sockets: avoid compiler warning
18621         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
18622
18623         maint: detect usage(1) and other suspicious exits
18624         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
18625
18626 2009-10-29  Jim Meyering  <meyering@redhat.com>
18627
18628         timespec: long-to-int truncation could make timespec_cmp malfunction
18629         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
18630         a multiple of 2^32 nanoseconds as no difference.
18631
18632 2009-10-28  Jim Meyering  <meyering@redhat.com>
18633
18634         fprintftime: wrap macro code argument in "do {...} while(0)"
18635         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
18636         cpy macro must be a statement that can be followed by a semicolon.
18637         Now that the else clause contains a comment and is hence longer
18638         than one line, I require curly braces.  That in turn requires
18639         that we wrap this code block in the standard do...while(0).
18640
18641         fprintftime: remove stray semicolon from previous change
18642         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
18643
18644         fprintftime: avoid a warning about ignored fwrite return value
18645         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
18646         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
18647         that is unsafe.
18648         * modules/fprintftime (Depends-on): Add ignore-value.
18649
18650         exclude: avoid an unwarranted warning
18651         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
18652
18653 2009-10-27  Eric Blake  <ebb9@byu.net>
18654
18655         fseek: avoid compilation failure when fflush is replaced
18656         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
18657         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
18658         module is in use.
18659         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
18660         module is not in use; since REPLACE_FSEEK worked otherwise.
18661         (GNULIB_FTELLO): Likewise for ftell.
18662         Reported by Ian Beckwith and others.
18663
18664 2009-10-27  Bruno Haible  <bruno@clisp.org>
18665
18666         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
18667         Reported by Jim Meyering.
18668
18669 2009-10-27  Jim Meyering  <jim@meyering.net>
18670             Bruno Haible  <bruno@clisp.org>
18671
18672         Avoid warning despite dropping the return value of fwrite.
18673         * lib/unicodeio.c: Include ignore-value.h.
18674         (fwrite_success_callback): Explicitly ignore fwrite's return value.
18675         * modules/unicodeio (Depends-on): Add ignore-value.
18676
18677 2009-10-26  Eric Blake  <ebb9@byu.net>
18678
18679         areadlinkat: fix fallback path
18680         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
18681         pointer and zero.
18682
18683 2009-10-22  Pádraig Brady  <P@draigBrady.com>
18684
18685         Use a better IO block size for modern systems
18686         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
18687         * lib/md2.c: Likewise.
18688         * lib/md4.c: Likewise.
18689         * lib/md5.c: Likewise.
18690         * lib/sha1.c: Likewise.
18691         * lib/sha256.c: Likewise.
18692         * lib/sha512.c: Likewise.
18693
18694 2009-10-22  Eric Blake  <ebb9@byu.net>
18695
18696         tests: avoid several compiler warnings
18697         * tests/test-getcwd.c (main): Avoid buffer underflow.
18698         * tests/test-getdate.c (main): String literals are not safe with
18699         putenv, so use setenv.  Declare unused argument.
18700         * modules/getdate-tests (Depends-on): Add setenv.
18701         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
18702         problems with string literals in char *.
18703         * tests/test-hash.c (main): Avoid shadowing declaration.
18704         (insert_new): Treat string literals as char const *.
18705         * tests/test-getopt.h (test_getopt): Likewise.
18706         (getopt_loop): Alter types to minimize casting elsewhere.
18707         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
18708         (test_getopt_long_posix): Likewise.
18709         (do_getopt_long): Add wrapper to minimize casting.
18710         * tests/test-atexit.c (clear_temp_file): Use void.
18711         * tests/test-areadlink-with-size.c (main): Declare unused
18712         arguments.
18713         * tests/test-areadlink.c (main): Likewise.
18714         * tests/test-areadlinkat-with-size.c (main): Likewise.
18715         * tests/test-areadlinkat.c (main): Likewise.
18716         * tests/test-canonicalize-lgpl.c (main): Likewise.
18717         * tests/test-canonicalize.c (main): Likewise.
18718         * tests/test-dirent-safer.c (main): Likewise.
18719         * tests/test-dirname.c (main): Likewise.
18720         * tests/test-dup2.c (main): Likewise.
18721         * tests/test-fchdir.c (main): Likewise.
18722         * tests/test-fcntl-h.c (main): Likewise.
18723         * tests/test-fcntl-safer.c (main): Likewise.
18724         * tests/test-fdopendir.c (main): Likewise.
18725         * tests/test-fdutimensat.c (main): Likewise.
18726         * tests/test-fflush.c (main): Likewise.
18727         * tests/test-filenamecat.c (main): Likewise.
18728         * tests/test-filevercmp.c (main): Likewise.
18729         * tests/test-fopen-safer.c (main): Likewise.
18730         * tests/test-fopen.c (main): Likewise.
18731         * tests/test-fpending.c (main): Likewise.
18732         * tests/test-fpurge.c (main): Likewise.
18733         * tests/test-freading.c (main): Likewise.
18734         * tests/test-fstatat.c (main): Likewise.
18735         * tests/test-fsync.c (main): Likewise.
18736         * tests/test-futimens.c (main): Likewise.
18737         * tests/test-getndelim2.c (main): Likewise.
18738         * tests/test-gettimeofday.c (main): Likewise.
18739         * tests/test-getopt.c (main): Likewise.
18740         * tests/test-i-ring.c (main): Likewise.
18741         * tests/test-inttypes.c (main): Likewise.
18742         * tests/test-link.c (main): Likewise.
18743         * tests/test-lstat.c (main): Likewise.
18744         * tests/test-math.c (main): Likewise.
18745         * tests/test-md5.c (main): Likewise.
18746         * tests/test-memchr2.c (main): Likewise.
18747         * tests/test-memrchr.c (main): Likewise.
18748         * tests/test-mkdir.c (main): Likewise.
18749         * tests/test-mkdirat.c (main): Likewise.
18750         * tests/test-mkfifoat.c (main): Likewise.
18751         * tests/test-open.c (main): Likewise.
18752         * tests/test-openat-safer.c (main): Likewise.
18753         * tests/test-openat.c (main): Likewise.
18754         * tests/test-quotearg.c (main): Likewise.
18755         * tests/test-rawmemchr.c (main): Likewise.
18756         * tests/test-readlink.c (main): Likewise.
18757         * tests/test-remove.c (main): Likewise.
18758         * tests/test-rename.c (main): Likewise.
18759         * tests/test-renameat.c (main): Likewise.
18760         * tests/test-rmdir.c (main): Likewise.
18761         * tests/test-sha1.c (main): Likewise.
18762         * tests/test-signal.c (main): Likewise.
18763         * tests/test-sigaction.c (main): Likewise.
18764         * tests/test-stat.c (main): Likewise.
18765         * tests/test-stat-time.c (main): Likewise.
18766         * tests/test-stddef.c (main): Likewise.
18767         * tests/test-stdint.c (main): Likewise.
18768         * tests/test-stdio.c (main): Likewise.
18769         * tests/test-stdlib.c (main): Likewise.
18770         * tests/test-strchrnul.c (main): Likewise.
18771         * tests/test-strerror.c (main): Likewise.
18772         * tests/test-string.c (main): Likewise.
18773         * tests/test-strtod.c (main): Likewise.
18774         * tests/test-strverscmp.c (main): Likewise.
18775         * tests/test-symlink.c (main): Likewise.
18776         * tests/test-symlinkat.c (main): Likewise.
18777         * tests/test-sys_stat.c (main): Likewise.
18778         * tests/test-sys_time.c (main): Likewise.
18779         * tests/test-time.c (main): Likewise.
18780         * tests/test-unistd.c (main): Likewise.
18781         * tests/test-unlink.c (main): Likewise.
18782         * tests/test-unlinkat.c (main): Likewise.
18783         * tests/test-utimens.c (main): Likewise.
18784         * tests/test-utimensat.c (main): Likewise.
18785         * tests/test-version-etc.c (main): Likewise.
18786         * tests/test-wchar.c (main): Likewise.
18787         * tests/test-wctype.c (main): Likewise.
18788         * tests/test-xprintf-posix.c (main): Likewise.
18789         * tests/test-posixtm.c (main): Likewise.
18790         (STREQ): Delete unused macro.
18791         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
18792         shadowed variables.
18793         * tests/test-memchr.c (main): Likewise.
18794
18795 2009-10-21  Eric Blake  <ebb9@byu.net>
18796
18797         areadlinkat: avoid failure on older glibc
18798         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
18799         rather than mis-comparing 0 against FUNC_RESULT of char*.
18800
18801 2009-10-21  Bruno Haible  <bruno@clisp.org>
18802
18803         * modules/stpncpy (License): Relicense under LGPLv2+.
18804         Reported by David Lutterkort <lutter@redhat.com>.
18805
18806 2009-10-20  Eric Blake  <ebb9@byu.net>
18807
18808         utimensat: work around Solaris 9 bug
18809         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
18810         has trailing slash bugs.
18811         * tests/test-lutimens.h (test_lutimens): Enhance test.
18812         * tests/test-utimens.h (test_utimens): Likewise.
18813         * doc/posix-functions/utime.texi (utime): Enhance documentation.
18814         * doc/posix-functions/utimes.texi (utimes): Likewise.
18815         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18816         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
18817         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
18818         * doc/posix-functions/futimens.texi (futimens): Likewise.
18819
18820         fdutimensat: new module
18821         * modules/fdutimensat: New file.
18822         * lib/fdutimensat.c (fdutimensat): Likewise.
18823         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
18824         * MODULES.html.sh (File system functions): Mention module.
18825         * modules/fdutimensat-tests: New test.
18826         * tests/test-fdutimensat.c: Likewise.
18827
18828         doc: regenerate INSTALL
18829         * doc/INSTALL: Reflect recent autoconf update.
18830         * doc/INSTALL.ISO: Likewise.
18831         * doc/INSTALL.UTF-8: Likewise.
18832
18833 2009-10-20  Pádraig Brady  <P@draigBrady.com>
18834
18835         acl: warn if ACL support is not detected
18836         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
18837
18838 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
18839
18840         * lib/nproc.h: Add extern "C" block for C++.
18841
18842 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
18843             Bruno Haible  <bruno@clisp.org>
18844
18845         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
18846         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
18847         * doc/posix-functions/isalpha.texi: Likewise.
18848         * doc/posix-functions/isblank.texi: Likewise.
18849         * doc/posix-functions/iscntrl.texi: Likewise.
18850         * doc/posix-functions/isdigit.texi: Likewise.
18851         * doc/posix-functions/isgraph.texi: Likewise.
18852         * doc/posix-functions/islower.texi: Likewise.
18853         * doc/posix-functions/isprint.texi: Likewise.
18854         * doc/posix-functions/ispunct.texi: Likewise.
18855         * doc/posix-functions/isspace.texi: Likewise.
18856         * doc/posix-functions/isupper.texi: Likewise.
18857         * doc/posix-functions/isxdigit.texi: Likewise.
18858
18859 2009-10-18  Bruno Haible  <bruno@clisp.org>
18860
18861         Tests for module 'isblank'.
18862         * modules/isblank-tests: New file.
18863         * tests/test-isblank.c: New file.
18864
18865         New module 'isblank'.
18866         * lib/isblank.c: New file.
18867         * m4/isblank.m4: New file.
18868         * modules/isblank: New file.
18869         * doc/posix-functions/isblank.texi: Mention the new module.
18870
18871 2009-10-18  Bruno Haible  <bruno@clisp.org>
18872
18873         New module 'ctype'.
18874         * lib/ctype.in.h: New file.
18875         * m4/ctype.m4: New file.
18876         * modules/ctype: New file.
18877         * doc/posix-headers/ctype.texi: Mention the new module.
18878
18879 2009-10-18  Jim Meyering  <meyering@redhat.com>
18880
18881         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
18882         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
18883         right after its initialization, rather than farther down.
18884         Keeping these in close proximity makes it easier to ensure
18885         that each such variable is initialized.  E.g.,
18886
18887             LIB_CLOCK_GETTIME=
18888             AC_SUBST([LIB_CLOCK_GETTIME])
18889
18890         This change also increments these serial numbers.
18891         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
18892         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18893         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18894
18895 2009-10-18  Bruno Haible  <bruno@clisp.org>
18896
18897         Don't let environment variables perturb build.
18898         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
18899         (gl_PREREQ_GETHRXTIME): ... not here.
18900
18901 2009-10-18  Bruno Haible  <bruno@clisp.org>
18902
18903         Avoid symlink attack in localcharset module.
18904         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
18905         (O_NOFOLLOW): Define fallback.
18906         (get_charset_aliases): Don't open the file if it is a symbolic link.
18907         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
18908         gl_FCNTL_H.
18909         (gl_FCNTL_H): Require it.
18910         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
18911         * modules/localcharset (Files): Add m4/fcntl_h.m4.
18912         Reported by Fergal Glynn <fglynn@veracode.com>.
18913
18914 2009-10-18  Bruno Haible  <bruno@clisp.org>
18915
18916         Implement nproc for mingw.
18917         * lib/nproc.c: Include <windows.h>
18918         (num_processors): On native Windows platforms, try GetSystemInfo.
18919
18920 2009-10-18  Bruno Haible  <bruno@clisp.org>
18921
18922         Implement nproc for IRIX.
18923         * lib/nproc.c: Include <sys/sysmp.h>.
18924         (num_processors): On IRIX systems, try sysmp.
18925         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
18926
18927 2009-10-18  Bruno Haible  <bruno@clisp.org>
18928
18929         Implement nproc for HP-UX.
18930         * lib/nproc.c: Include <sys/pstat.h>
18931         (num_processors): On HP-UX systems, try pstat_getdynamic.
18932         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
18933         pstat_getdynamic.
18934
18935 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
18936             Bruno Haible  <bruno@clisp.org>
18937
18938         Implement nproc for NetBSD, OpenBSD.
18939         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
18940         (ARRAY_SIZE): New macro.
18941         (num_processors): On BSD systems, try sysctl of HW_NCPU.
18942         * m4/nproc.m4: New file.
18943         * modules/nproc (Files): Add m4/nproc.m4.
18944         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
18945         (Makefile.am): Instead, augment lib_SOURCES.
18946
18947 2009-10-18  Bruno Haible  <bruno@clisp.org>
18948
18949         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
18950         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
18951         sys/param.h.
18952
18953 2009-10-16  Eric Blake  <ebb9@byu.net>
18954
18955         utimensat: new module
18956         * modules/utimensat: New file.
18957         * lib/utimensat.c (utimensat): Likewise.
18958         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18959         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
18960         so we can work around Linux bugs.
18961         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18962         * modules/sys_stat (Makefile.am): Substitute them.
18963         * lib/sys_stat.in.h (utimensat): Declare it.
18964         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18965         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18966         * modules/utimensat-tests: New test.
18967         * tests/test-utimensat.c: Likewise.
18968
18969         utimens: let lutimens work on non-symlinks
18970         * lib/utimens.c (lutimens): Fall back to utimens rather than
18971         failing with ENOSYS, when file is not a symlink.
18972         (utimens): Reduce redirection.
18973         * tests/test-lutimens.h (test_lutimens): Update test to cover
18974         non-symlinks.
18975         * tests/test-utimens.h (test_utimens): Update test to cover
18976         symlinks.
18977         * tests/test-utimens.c (main): Update caller.
18978
18979         utimens: cache whether utimensat syscall works
18980         * lib/utimens.c (utimensat_works_really): New cache variable.
18981         (fdutimens, lutimens): Use it to avoid failing syscall.
18982
18983         test-stat-time, test-utimens: improve portability
18984         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
18985         ext4 on alpha, and for cygwin.
18986         * tests/test-utimens-common.h: New file.
18987         (nap): Factor delays into single function.
18988         * tests/test-lutimens.h (test_lutimens): Use new header.
18989         * tests/test-futimens.h (test_futimens): Likewise.
18990         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
18991         timestamps to occur from same machine, as was done previously for
18992         test_utimens.
18993         * modules/utimens-tests (Files): Ship new file.
18994         * modules/futimens-tests (Files): Likewise.
18995         Reported in part by Jim Meyering.
18996
18997         sys_stat: sort replacement declarations
18998         * lib/sys_stat.in.h: Sort declarations.
18999         * lib/futimens.c (futimens): Fix typo.
19000
19001 2009-10-15  Jim Meyering  <meyering@redhat.com>
19002
19003         don't let environment settings perturb build
19004         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
19005         could cause a configure-time and/or build-time malfunction.
19006         Typically, a configure-time function-in-library test is performed
19007         via code like this:
19008
19009           LIB_VAR=
19010           AC_SUBST([LIB_VAR])
19011           prefix_saved_LIBS=$LIBS
19012             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
19013                        [test "$ac_cv_search_FUNC" = "none required" ||
19014                         LIB_VAR=$ac_cv_search_FUNC])
19015           LIBS=$prefix_saved_LIBS
19016
19017         However, in each of the files affected by this change, the LIB_VAR=
19018         initialization was omitted.  Thus, when set in the environment, its
19019         value would propagate into generated Makefiles when FUNC is not found
19020         in LIB_NAME.
19021         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
19022         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19024
19025 2009-10-14  Eric Blake  <ebb9@byu.net>
19026
19027         fchdir: avoid infinite recursion in mingw
19028         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
19029         recursing.
19030
19031         test-stat-time: port to mingw
19032         * tests/test-stat-time.c (force_unlink): Return a value.
19033         (test_ctime) [W32]: Fix compilation error.
19034         (nap): Don't call usleep with too large an argument.  Use
19035         force_unlink.
19036         * doc/pastposix-functions/usleep.texi (usleep): Document the
19037         portability issue.
19038
19039 2009-10-13  Jim Meyering  <meyering@redhat.com>
19040
19041         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
19042         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
19043         * modules/pipe-filter-ii: Likewise.
19044         * modules/sys_socket-tests: Likewise.
19045         * modules/tsearch-tests: Likewise.
19046         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
19047         (check): Depend on it.
19048
19049 2009-10-12  Eric Blake  <ebb9@byu.net>
19050
19051         utimens-tests: port to NFS file systems
19052         * tests/test-utimens.h (test_utimens): Refactor utimecmp
19053         comparisons to avoid spurious failures from timestamp drift
19054         between NFS machines.
19055
19056 2009-10-12  Eric Blake  <ebb9@byu.net>
19057
19058         stat-time-tests: minor cleanups
19059         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
19060         * tests/test-stat-time.c (nap): Separate assignment from call.
19061         Suggested by Paolo Bonzini and Bruno Haible.
19062
19063         sys_stat: guarantee struct timespec
19064         * lib/sys_stat.in.h (includes): Always include <time.h>
19065         * modules/sys_stat (Depends-on): Add time.
19066         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
19067         mode_t permission values.
19068         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
19069         get at subsecond timestamps.
19070
19071 2009-10-10  Eric Blake  <ebb9@byu.net>
19072
19073         futimens: new module
19074         * modules/futimens: New file.
19075         * lib/futimens.c (futimens): Likewise.
19076         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
19077         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
19078         we can work around Linux bugs.
19079         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19080         * modules/sys_stat (Makefile.am): Substitute them.
19081         * lib/sys_stat.in.h (futimens): Declare it.
19082         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19083         * doc/posix-functions/futimens.texi (futimens): Likewise.
19084         * modules/futimens-tests: New test.
19085         * tests/test-futimens.c: Likewise.
19086
19087         utimens: introduce fdutimens
19088         * lib/utimens.h (fdutimens): New prototype.
19089         * lib/utimens.c (gl_futimens): Move guts...
19090         (fdutimens): ...to new interface.
19091         * tests/test-utimens.c (do_fdutimens): Use it.
19092
19093         utimens: add UTIME_NOW and UTIME_OMIT support
19094         * lib/utimens.c (validate_timespec, update_timespec): New helper
19095         functions.
19096         (gl_futimens, lutimens): Use them.
19097         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
19098         stdbool, sys_stat.
19099         (Link): Mention resulting library dependency.
19100         * modules/utimecmp (Link): Likewise.
19101         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
19102         (Makefile.am): Pick up library dependency.
19103         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
19104         definition.
19105         * tests/test-sys_stat.c: Test the definitions.
19106         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
19107         * NEWS: Document library dependency.
19108
19109         utimecmp: support symlink timestamps
19110         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
19111         hashing when possible.  Use pathconf when available.
19112         (SYSCALL_RESOLUTION): Recognize tighter resolution.
19113         * modules/utimecmp (Depends-on): Add lstat.
19114
19115         utimens: add lutimens interface
19116         * lib/utimens.c (lutimens): New function.
19117         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
19118         * lib/utimens.h (lutimens): Declare new interface.
19119         * tests/test-utimens.c (main): Enhance test.
19120         * tests/test-lutimens.h (test_lutimens): New file.
19121         * modules/utimens-tests (Files): Distribute it.
19122         (Depends-on): Add symlink.
19123         (configure.ac): Check for usleep.
19124
19125         utimens: validate futimens usage
19126         * lib/utimens.c (gl_futimens): Require valid fd up front, using
19127         fewer syscalls on failure later on.  Avoid compiler warning on
19128         mingw.
19129         * modules/utimens (Depends-on): Add dup2.
19130
19131         utimens: add test
19132         * modules/utimens-tests: New test.
19133         * tests/test-utimens.h: New file.
19134         * tests/test-futimens.h: Likewise.
19135         * tests/test-utimens.c: Likewise.
19136
19137         doc: mention timestamp portability issues
19138         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
19139         instead.
19140         * doc/posix-functions/utime.texi (utime): Likewise.
19141         * doc/posix-functions/utimes.texi (utimes): Likewise.
19142         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
19143         instead.
19144         * doc/posix-functions/futimens.texi (futimens): Mention utimens
19145         module.
19146         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19147         Mention weakness with symlink timestamps.
19148         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
19149         to utimensat/futimens instead.
19150         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
19151
19152         test-dup2: enhance test
19153         * tests/test-dup2.c (main): Also check AT_FDCWD.
19154
19155         test-stat-time: avoid more spurious failures
19156         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
19157         xfs; and avoid race if the two timestamps cross quantization edge.
19158
19159         relocatable: prefer 'file system' over 'filesystem'
19160         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
19161         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
19162         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
19163         * doc/relocatable.texi (Enabling Relocatability): Likewise.
19164         * lib/relocatable.c (compute_curr_prefix): Likewise.
19165
19166 2009-10-10  Jim Meyering  <meyering@redhat.com>
19167
19168         stat-time-tests: check for the usleep function
19169         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
19170
19171 2009-10-10  Bruno Haible  <bruno@clisp.org>
19172
19173         * modules/xnanosleep: Put the Link section after the Include section.
19174
19175 2009-10-09  Eric Blake  <ebb9@byu.net>
19176
19177         dup2: work around FreeBSD 6.1 bug
19178         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
19179         * doc/posix-functions/dup2.texi (dup2): Document it.
19180         Reported by Nelson H. F. Beebe and Jim Meyering.
19181
19182         test-stat-time: port to buggy NFS clients
19183         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
19184         (test_ctime): Also skip test if mtime and ctime are skewed.
19185
19186         maint: prefer 'file system' over 'filesystem'
19187         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19188         * doc/posix-functions/lstat.texi (lstat): Likewise.
19189         * lib/file-has-acl.c (file_has_acl): Likewise.
19190         * lib/fwriteerror.c [TEST]: Likewise.
19191         * tests/test-areadlink.h (test_areadlink): Likewise.
19192         * tests/test-areadlinkat-with-size.c (main): Likewise.
19193         * tests/test-areadlinkat.c (main): Likewise.
19194         * tests/test-canonicalize-lgpl.c (main): Likewise.
19195         * tests/test-canonicalize.c (main): Likewise.
19196         * tests/test-fstatat.c (main): Likewise.
19197         * tests/test-linkat.c (main): Likewise.
19198         * tests/test-lstat.h (test_lstat_func): Likewise.
19199         * tests/test-mkdir.h (test_mkdir): Likewise.
19200         * tests/test-readlink.h (test_readlink): Likewise.
19201         * tests/test-remove.c (main): Likewise.
19202         * tests/test-rename.h (test_rename): Likewise.
19203         * tests/test-renameat.c (main): Likewise.
19204         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19205         * tests/test-symlink.h (test_symlink): Likewise.
19206         * tests/test-symlinkat.c (main): Likewise.
19207         * tests/test-unlink.h (test_unlink_func): Likewise.
19208         * tests/test-unlinkat.c (main): Likewise.
19209
19210         maint: make realtime library usage explicit
19211         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
19212         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
19213         * modules/settime (Link): Likewise.
19214         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
19215
19216         test-stat-time: speed up execution
19217         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
19218         warning on mingw.
19219         (nap): New helper function.
19220         (prepare_test): Use it to reduce sleep time.
19221         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
19222         execution.
19223         * modules/stat-time-tests (configure.ac): Check for usleep.
19224
19225 2009-10-09  Jim Meyering  <meyering@redhat.com>
19226
19227         selinux-h: always use getfilecon wrappers
19228         * lib/getfilecon.c: New file.
19229         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
19230         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
19231         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
19232         (fgetfilecon): Provide a stub.
19233         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
19234         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
19235         file unconditionally.
19236         When <selinux/selinux.h> is found, arrange to use wrappers.
19237         * modules/selinux-h (Files): Add getfilecon.c.
19238         (Makefile.am): Substitute include-next-related bits
19239         into the now-always-generated selinux/selinux.h file.
19240         * doc/glibc-functions/lgetfilecon.texi: New file.
19241         * doc/glibc-functions/fgetfilecon.texi: New file.
19242         * doc/glibc-functions/getfilecon.texi: New file.
19243         * doc/glibc-functions/getfilecon-desc.texi: New file.
19244         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
19245         which to pull in the new files.
19246         * MODULES.html.sh (Misc): Add selinux-h.
19247
19248 2009-10-08  Jim Meyering  <meyering@redhat.com>
19249
19250         unistd: fix comment typo
19251         * lib/unistd.in.h (euidaccess): Fix a comment typo.
19252
19253 2009-10-08  Eric Blake  <ebb9@byu.net>
19254
19255         areadlink: use SIZE_MAX consistently
19256         * modules/areadlink (Depends-on): Add stdint.
19257         * modules/areadlink-with-size (Depends-on): Likewise.
19258         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
19259         gives NULL; drop sys/types, since unistd gives size_t; and add
19260         stdint for SIZE_MAX.
19261         (SIZE_MAX): Rely on headers.
19262         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
19263         and add stdint.
19264         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
19265         (SIZE_MAX): Likewise.
19266         (INITIAL_BUF_SIZE): Turn into enum.
19267         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
19268
19269 2009-10-08  Jim Meyering  <meyering@redhat.com>
19270
19271         areadlinkat: avoid compilation failure
19272         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
19273         Fix typo in comment.
19274
19275 2009-10-07  Eric Blake  <ebb9@byu.net>
19276
19277         areadlinkat-with-size: new module
19278         * modules/areadlinkat-with-size: New module.
19279         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
19280         * lib/areadlink.h (areadlinkat): Declare it.
19281         * MODULES.html.sh (File system functions): Mention it.
19282         * modules/areadlinkat-with-size-tests: New test.
19283         * tests/test-areadlinkat-with-size.c: New file.
19284
19285         xreadlinkat: new module
19286         * modules/xreadlinkat: New module.
19287         * lib/xreadlinkat.c (xreadlinkat): New file.
19288         * lib/xreadlink.h (xreadlinkat): Declare it.
19289         * MODULES.html.sh (File system functions): Mention it.
19290
19291         areadlinkat: new module
19292         * lib/at-func.c (FUNC_FAIL): New define.
19293         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
19294         * modules/areadlinkat: New module.
19295         * lib/linkat.c (areadlinkat): Move...
19296         * lib/areadlinkat.c (areadlinkat): ...to new file.
19297         * lib/areadlink.h (areadlinkat): Declare it.
19298         * modules/linkat (Depends-on): Add areadlinkat.
19299         * MODULES.html.sh (File system functions): Mention it.
19300         * modules/areadlinkat-tests: New test.
19301         * tests/test-areadlinkat.c: New file.
19302
19303         areadlink, areadlink-with-size: add tests
19304         * modules/areadlink-tests: New test.
19305         * modules/areadlink-with-size-tests: Likewise.
19306         * tests/test-areadlink.h: New file.
19307         * tests/test-areadlink.c: Likewise.
19308         * tests/test-areadlink-with-size.c: Likewise.
19309
19310         maint: minor cleanups
19311         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
19312         _UNUSED_PARAMETER_ instead.
19313         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
19314         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
19315         * modules/linkat-tests (Files): Distribute test-link.h.
19316
19317         openat, utimens: whitespace cleanup
19318         * lib/openat.c: Prefer space throughout, rather than mix of 8
19319         spaces vs. tabs.
19320         * lib/at-func.c: Likewise.
19321         * lib/utimens.c: Likewise.
19322
19323         openat: avoid using wrong fd
19324         * lib/openat.c (openat_permissive): Reject user's fd if saving the
19325         working directory chooses same fd.
19326         * lib/at-func.c (AT_FUNC_NAME): Likewise.
19327
19328         mkdir, mkdirat: fix cygwin 1.5.x bug
19329         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
19330         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
19331         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
19332         bug.
19333         (gl_PREREQ_MKDIR): Delete unused macro.
19334         * modules/mkdir (Files): Track file rename.
19335         (configure.ac): Update macro name.
19336         * modules/openat (Depends-on): Add mkdir.
19337         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
19338
19339         mkdir, mkdirat: add tests
19340         * modules/mkdir-tests: New test.
19341         * tests/test-mkdir.h: New file.
19342         * tests/test-mkdir.c: Likewise.
19343         * tests/test-mkdirat.c: Likewise.
19344         * modules/openat-tests (Files): Add new files.
19345         (Makefile.am): Run new test.
19346
19347 2009-10-06  Eric Blake  <ebb9@byu.net>
19348
19349         doc: tweak *at function documentation
19350         * doc/posix-functions/faccessat.texi (faccessat): Mention
19351         known issue with replacement.
19352         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
19353         * doc/posix-functions/linkat.texi (linkat): Likewise.
19354         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
19355         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
19356         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19357         * doc/posix-functions/renameat.texi (renameat): Likewise.
19358         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19359
19360         openat: fix GNU/Hurd bug in unlinkat
19361         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
19362         broken.
19363         * doc/posix-functions/unlink.texi (unlink): Document this.
19364         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
19365
19366         fdopendir: fix GNU/Hurd bug
19367         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
19368         allowing non-directory fds.
19369         * lib/fdopendir.c (rpl_fdopendir): Work around it.
19370         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19371         * modules/dirent (Makefile.am): Substitute it.
19372         * lib/dirent.in.h (fdopendir): Declare replacement.
19373         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
19374         * tests/test-fdopendir.c (main): Test something other than
19375         /dev/null, since on Hurd that behaves like a directory.
19376
19377         test-symlink: port to GNU/Hurd
19378         * tests/test-symlink.h (test_symlink): Relax expected errno.
19379
19380         doc: tweak more cygwin information
19381         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
19382         now compatible with glibc.
19383         * doc/posix-functions/getopt.texi (getopt): Likewise.
19384
19385         getopt-gnu: add another test
19386         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
19387         guarantee behavior relied on by m4.
19388         * tests/test-getopt.c (main): Use it.
19389         * modules/getopt-posix-tests (Depends-on): Add setenv.
19390         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
19391
19392         getopt: fix compilation on darwin
19393         * lib/getopt.in.h (includes): Leave breadcrumbs during system
19394         include.
19395         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
19396         Reported by Ludovic Courtès.
19397
19398 2009-10-06  Bruno Haible  <bruno@clisp.org>
19399
19400         * modules/size_max (Description): Discourage its use.
19401         Reported by Simon Josefsson.
19402
19403 2009-10-06  Jim Meyering  <meyering@redhat.com>
19404
19405         linkat: avoid compilation failure
19406         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
19407
19408 2009-10-05  Eric Blake  <ebb9@byu.net>
19409
19410         linkat: support Linux 2.6.17
19411         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
19412         linkat on Linux, but allow cache variable override.
19413         * lib/linkat.c (rpl_linkat): Define override.
19414         * modules/linkat (Depends-on): Add symlinkat.
19415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
19416         * modules/unistd (Makefile.am): Substitute it.
19417         * lib/unistd.in.h (linkat): Declare replacement.
19418         Reported by Pádraig Brady.
19419
19420         quotearg: port test to systems with C.UTF-8 locale
19421         * tests/test-quotearg.c (struct result_strings): Add another
19422         member, differentiating between C.ASCII and C.UTF-8 handling.
19423         (compare_strings): Add parameter.
19424         (main): Adjust all callers.
19425
19426         getopt: avoid clash with FreeBSD _getopt_internal
19427         * lib/getopt.in.h (_getopt_internal): Override the name.
19428         * lib/getopt_int.h (includes): Pick up any overrides.
19429         Reported by Reuben Thomas.
19430
19431         hash: allow C89 compilation
19432         * lib/hash.c (check_tuning): Move declaration before statement.
19433         Reported by Reuben Thomas.
19434
19435 2009-10-05  Karl Berry  <karl@gnu.org>
19436
19437         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
19438
19439 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
19440             Bruno Haible  <bruno@clisp.org>
19441
19442         * lib/uname.c (uname): Use a table-driven algorithm to compute
19443         Windows NT versions.
19444
19445 2009-10-04  Bruno Haible  <bruno@clisp.org>
19446
19447         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
19448         program_invocation_short_name.
19449         * modules/progname (configure.ac): Test for presence of
19450         program_invocation_short_name.
19451         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
19452
19453 2009-10-04  Bruno Haible  <bruno@clisp.org>
19454
19455         * lib/progname.c (set_program_name): Fix comment.
19456         Reported by Jim Meyering.
19457
19458 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19459             Bruno Haible  <bruno@clisp.org>
19460
19461         * lib/uname.c: Include <string.h>.
19462         (uname): Do only one call to GetVersionEx in the common case.
19463
19464 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19465             Bruno Haible  <bruno@clisp.org>
19466
19467         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
19468         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
19469         (uname): Add support for Windows CE and various non-x86 CPU types.
19470
19471 2009-10-03  Bruno Haible  <bruno@clisp.org>
19472
19473         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
19474         invocation to tests/configure.ac.
19475         Reported by Ian Beckwith <ianb@erislabs.net>.
19476
19477 2009-10-02  Eric Blake  <ebb9@byu.net>
19478
19479         fchdir: avoid compiler warning
19480         * lib/fchdir.c (canonicalize_file_name)
19481         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
19482
19483         test-open: support mingw errno values
19484         * tests/test-open.h (test_open): Relax test.
19485         * tests/test-fopen.h (test_fopen): Likewise.
19486         * tests/test-openat-safer.c (main): Likewise.
19487
19488         open: fix opening directory on mingw
19489         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
19490
19491         test-open: on GNU/Hurd, /dev/null is a directory
19492         * tests/test-fopen.h (main): Rename...
19493         (test_fopen): ...to this.  Use a guaranteed non-directory when
19494         confirming open behavior on trailing slash.
19495         * tests/test-openat-safer.c (main): Likewise.
19496         * tests/test-open.h (main): Likewise....
19497         (test_open): ...to this.
19498         * tests/test-fopen.c (main): Adjust caller.
19499         * tests/test-fopen-safer.c (main): Likewise.
19500         * tests/test-open.c (main): Likewise.
19501         * tests/test-fcntl-safer.c (main): Likewise.
19502         Reported by Samuel Thibault.
19503
19504         rename, fchdir: don't ignore chdir failure
19505         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
19506         * lib/rename.c (rpl_rename) [W32]: Likewise.
19507         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
19508         an empty destination directory if source cannot be renamed,
19509         although there is still possibility for failure.
19510         * doc/posix-functions/rename.texi (rename): Document the race.
19511         Reported by Jim Meyering.
19512
19513         maint: cleanup whitespace in recent commits
19514         * lib/rename.c (rpl_rename): Remove tabs.
19515         * tests/test-link.h (test_link): Likewise.
19516         * lib/fchdir.c (get_name): Likewise.
19517         Reported by Jim Meyering.
19518
19519 2009-10-02  Ben Pfaff  <blp@gnu.org>
19520
19521         relocatable-prog-wrapper: Add missing dependency on
19522         double-slash-root.
19523         * modules/relocatable-prog-wrapper: Add dependency.
19524         Reported by Ian Beckwith <ianb@erislabs.net>.
19525
19526 2009-10-02  Eric Blake  <ebb9@byu.net>
19527
19528         renameat: fix Solaris bugs
19529         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
19530         needed fixing.
19531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
19532         * modules/stdio (Makefile.am): Substitute it.
19533         * lib/stdio.in.h (renameat): Declare replacement.
19534         * lib/renameat.c (rpl_renameat): Implement fix.
19535
19536         renameat: new module
19537         * modules/renameat: New file.
19538         * lib/renameat.c (renameat): Likewise.
19539         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
19540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19541         * modules/stdio (Makefile.am): Substitute them.
19542         * lib/stdio.in.h (renameat): Declare it.
19543         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19544         * doc/posix-functions/renameat.texi (renameat): Likewise.
19545         * modules/renameat-tests: New test.
19546         * tests/test-renameat.c: Likewise.
19547
19548         rename: fix mingw bugs
19549         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
19550         directory overwrite bugs.
19551
19552         rename: fix another cygwin 1.5 bug
19553         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
19554         checks.
19555         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
19556         unnecessary cygwin workarounds.  Also work around bug with moving
19557         full directory onto an empty one.
19558         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
19559
19560         rename-dest-slash: merge into rename module
19561         * modules/rename-dest-slash (Status): Mark obsolete.
19562         (Depends-on): Add rename.
19563         (Files): Let rename do it all.
19564         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
19565         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
19566         * m4/rename-dest-slash.m4: ...so this file can be deleted.
19567         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
19568         * lib/rename.c (rpl_rename): Update comments.
19569
19570         rename: fix cygwin 1.5.x bugs
19571         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
19572         * lib/rename.c (rpl_rename): Work around them.
19573         * modules/rename (Depends-on): Add same-inode.
19574
19575         rename: fix Solaris 10 bug
19576         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19577         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
19578         was the only bug.
19579
19580         rename: fix Solaris 9 bug
19581         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
19582         on non-directory.  Avoid calling exit.
19583         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
19584         strdup.
19585         * modules/rename-tests (Depends-on): Drop lstat.
19586         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19587         (gl_PREREQ_RENAME): Delete unused macro.
19588
19589         rename-dest-slash: fix NetBSD bug
19590         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
19591         links.
19592         * modules/rename-dest-slash (Depends-on): Add same-inode.
19593
19594         rename-tests: new test, exposes several platform bugs
19595         * modules/rename-tests: New file.
19596         * tests/test-rename.h: Likewise.
19597         * tests/test-rename.c: Likewise.
19598         * doc/posix-functions/rename.texi (rename): Improve documentation,
19599         including bugs that will eventually be fixed in gnulib.
19600
19601 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
19602
19603         * lib/uname.c: Include <stdlib.h>
19604         (uname): Assume version info is available.
19605
19606 2009-10-02  Jim Meyering  <meyering@redhat.com>
19607
19608         gnu-web-doc-update: correct --help output
19609         * build-aux/gnu-web-doc-update: Make --help output relevant.
19610
19611         gnu-web-doc-update: add standard options
19612         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
19613
19614         gnu-web-doc-update: New module.
19615         Use this script to automatically update the on-line web documentation
19616         for your GNU project at http://www.gnu.org/software/$pkg/manual/
19617         * modules/gnu-web-doc-update: New file, from coreutils.
19618         * build-aux/gnu-web-doc-update: New script.
19619
19620 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
19621
19622         link: LoadLibrary is not needed.
19623         * lib/link.c: Use GetModuleHandle.
19624
19625 2009-10-01  Eric Blake  <ebb9@byu.net>
19626
19627         getopt: bump serial number
19628         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
19629         change.
19630
19631         tests: tighten link, rmdir, and remove tests
19632         * tests/test-link.h (includes): No need to use <config.h> here.
19633         Clean up if directory hard link was created, otherwise test for
19634         trailing '.'.
19635         * tests/test-linkat.c (main): Simplify.
19636         * tests/test-remove.c (main): Enhance test for trailing '.'.
19637         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19638
19639 2009-10-01  Jim Meyering  <meyering@redhat.com>
19640
19641         maint.mk: requiring "make major" was annoying, for a "minor" release.
19642         What is intended is "stable", to contrast with alpha and beta,
19643         so require "make stable", not "make major".
19644         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
19645         (get_tool_versions): Likewise.
19646         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
19647
19648 2009-09-30  Ben Pfaff  <blp@gnu.org>
19649
19650         Fix broken build of replacement for Windows tmpfile().
19651         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
19652         flags argument added along with the 'mkostemp' module.
19653
19654 2009-09-28  Bruno Haible  <bruno@clisp.org>
19655
19656         Avoid identifier clash with POSIX function 'remove' defined as a macro.
19657         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
19658         to 'remove_elt'.
19659         (gl_list_remove): Update.
19660         * lib/gl_list.c (gl_list_remove): Update.
19661         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
19662         to 'remove_elt'.
19663         (gl_oset_remove): Update.
19664         * lib/gl_list.c (gl_oset_remove): Update.
19665         Reported by Eric Blake.
19666
19667 2009-09-28  Eric Blake  <ebb9@byu.net>
19668
19669         doc: mention yet more cygwin 1.7 status
19670         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
19671         cygwin.
19672         * doc/glibc-functions/execvpe.texi (execvpe): New file.
19673         * doc/gnulib.texi (Glibc unistd.h): Mention it.
19674
19675         argp: fix test failure
19676         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
19677         that are not upper-case.  Pass correct range to tolower.
19678
19679 2009-09-27  Jim Meyering  <meyering@redhat.com>
19680
19681         test-yesno: work around sparc-dash here-document infelicity
19682         Without this change, the literal \177 byte in a here document
19683         would make dash 0.5.5.1-3 access uninitialized memory.
19684         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
19685         Instead, use a marker, "@", and filter through tr to create the desired
19686         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
19687
19688 2009-09-27  Bruno Haible  <bruno@clisp.org>
19689
19690         Disable untested support for new flavours of ACLs on AIX.
19691         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
19692         progress.
19693         * lib/set-mode-acl.c (qset_acl): Likewise.
19694
19695 2008-12-07  Bruno Haible  <bruno@clisp.org>
19696
19697         Add support for new flavours of ACLs on AIX. (Untested.)
19698         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
19699         (file_has_acl): Add support for newer AIX.
19700         * lib/set-mode-acl.c (qset_acl): Likewise.
19701         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
19702         Rainer Tammer <tammer@tammer.net>.
19703
19704 2009-09-26  Eric Blake  <ebb9@byu.net>
19705
19706         argp: fix compilation of getopt
19707         * lib/getopt.in.h (includes): Use different guard than glibc.
19708         Reported by Sergey Poznyakoff.
19709
19710         doc: mention more cygwin 1.7 status
19711         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
19712         bug.
19713         * doc/posix-functions/execl.texi (execl): Likewise.
19714         * doc/posix-functions/execle.texi (execle): Likewise.
19715         * doc/posix-functions/execlp.texi (execlp): Likewise.
19716         * doc/posix-functions/execv.texi (execv): Likewise.
19717         * doc/posix-functions/execve.texi (execve): Likewise.
19718         * doc/posix-functions/execvp.texi (execvp): Likewise.
19719         * doc/glibc-functions/canonicalize_file_name.texi
19720         (canonicalize_file_name): Cygwin 1.7 now provides this.
19721         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
19722         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
19723         on AT_SYMLINK_NOFOLLOW.
19724
19725 2009-09-24  Eric Blake  <ebb9@byu.net>
19726
19727         test-linkat: make test more robust
19728         * tests/test-linkat.c (main): Avoid collision with EEXIST.
19729
19730         getopt: fix inclusion guards for cygwin
19731         * modules/getopt-posix (Depends-on): Add include-next.
19732         (Makefile.am): Substitute more items in replacement header.
19733         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
19734         <getopt.h>.
19735         * lib/getopt.in.h (includes): Use split inclusion guard, and
19736         prefer <getopt.h> over include <unistd.h> when one is present.
19737         (option): Also override name of 'struct option'.
19738
19739         same-inode: revert prior change; it is not yet ready
19740         * NEWS: Undo mention of this change.
19741         * lib/same-inode.h (same-inode.h): Undo tri-state change.
19742         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19743         * lib/cycle-check.c (cycle_check): Likewise.
19744         * lib/same.c (same_name): Likewise.
19745         * lib/at-func2.c (at_func2): Likewise.
19746
19747 2009-09-23  Eric Blake  <ebb9@byu.net>
19748
19749         linkat: new module
19750         * modules/linkat: New file.
19751         * lib/at-func2.c (at_func2): Likewise.
19752         * lib/linkat.c (linkat): Likewise.
19753         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19754         * lib/openat-priv.h (at_func2): Add declaration.
19755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19756         * modules/unistd (Makefile.am): Substitute them.
19757         * lib/unistd.in.h (linkat): Declare it.
19758         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19759         * doc/posix-functions/linkat.texi (linkat): Likewise.
19760         * doc/posix-functions/link.texi (link): Tweak wording.
19761         * tests/test-link.c (main): Move guts...
19762         * tests/test-link.h (test_link): ...into new file.
19763         * modules/linkat-tests: New test.
19764         * tests/test-linkat.c: Likewise.
19765         * modules/link-tests (Files): Ship new file.
19766         (Depends-on): Add stdbool.
19767
19768         dirname: add library-safe mdir_name
19769         * lib/dirname.h (mdir_name): New prototype.
19770         * lib/dirname.c (dir_name): Move guts...
19771         (mdir_name): ...to new function that avoids xalloc_die.
19772
19773         fchdir: another mingw fix
19774         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
19775         * lib/fchdir.c (get_name): New helper method; skips canonicalize
19776         on mingw (where it has not yet been ported), and make it optional
19777         elsewhere.
19778         (_gl_register_fd): Use it.
19779
19780         same-inode: make SAME_INODE tri-state, to port to mingw
19781         * NEWS: Mention this change.
19782         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
19783         st_ino always being 0.
19784         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19785         * lib/cycle-check.c (cycle_check): Likewise.
19786         * lib/same.c (same_name): Likewise.
19787
19788         lstat: avoid mingw compilation error
19789         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
19790         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
19791         lstat ourselves.
19792         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
19793         was adequate.
19794         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
19795         the checks for lstat.
19796         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
19797
19798         link: fix test failure on Solaris 9
19799         * lib/link.c (rpl_link): Don't assume link will catch bogus
19800         trailing slash on source.
19801
19802         test-symlinkat: enhance test
19803         * tests/test-readlink.c (main): Move guts...
19804         * tests/test-readlink.h (test_readlink): ...into new file.
19805         * tests/test-symlink.c (main): Move guts...
19806         * tests/test-symlink.h (test_symlink): ...into new file.
19807         * tests/test-symlinkat.c (main): Use new files for further
19808         coverage.
19809         (do_symlink, do_readlink): New helper functions.
19810         * modules/symlink-tests (Files): Ship new file.
19811         (Depends-on): Add stdbool.
19812         * modules/readlink-tests (Files): Ship new file.
19813         (Depends-on): Add stdbool.
19814         * modules/symlinkat-tests (Files): Use new files.
19815
19816 2009-09-23  Eric Blake  <ebb9@byu.net>
19817
19818         readlink: document portability issue with symlink length
19819         * doc/posix-functions/lstat.texi (lstat): Mention that some file
19820         systems have bogus st_size on symlinks, and mention the
19821         areadlink-with-size module.
19822         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19823         * doc/posix-functions/readlink.texi (readlink): Mention the
19824         areadlink module, and ERANGE failure.
19825         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19826         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
19827
19828         readlink: fix Solaris 9 bug with trailing slash
19829         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
19830         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
19831         * doc/posix-functions/readlink.texi (readlink): Document this.
19832         * modules/readlink-tests: New test.
19833         * tests/test-readlink.c: Likewise.
19834
19835         readlink: fix cygwin 1.5.x bug with return type
19836         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
19837         * lib/unistd.in.h (readlink): Use ssize_t.
19838         * lib/readlink.c (readlink): Likewise.
19839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19840         * modules/unistd (Makefile.am): Substitute it.
19841         * lib/unistd.in.h (readlink): Declare replacement.
19842         * doc/posix-functions/readlink.texi (readlink): Document this.
19843
19844         symlink: use throughout gnulib
19845         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
19846         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
19847         symlink is not used.
19848         * modules/symlinkat (Depends-on): Add symlink.
19849         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19850         * modules/canonicalize-tests (Depends-on): Likewise.
19851         * modules/lstat-tests (Depends-on): Likewise.
19852         * modules/openat-tests (Depends-on): Likewise.
19853         * modules/remove-tests (Depends-on): Likewise.
19854         * modules/rmdir-tests (Depends-on): Likewise.
19855         * modules/unlink-tests (Depends-on): Likewise.
19856         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
19857         * tests/test-canonicalize.c (symlink): Likewise.
19858         * tests/test-fstatat.c (symlink): Likewise.
19859         * tests/test-lstat.c (symlink): Likewise.
19860         * tests/test-remove.c (symlink): Likewise.
19861         * tests/test-rmdir.c (symlink): Likewise.
19862         * tests/test-unlink.c (symlink): Likewise.
19863         * tests/test-unlinkat.c (symlink): Likewise.
19864
19865         symlink: new module, for Solaris 9 bug
19866         * modules/symlink: New file.
19867         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19868         * lib/symlink.c: Likewise.
19869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
19870         * modules/unistd (Makefile.am): Substitute them.
19871         * lib/unistd.in.h (symlink): Declare replacement.
19872         * MODULES.html.sh (File system functions): Mention it.
19873         * doc/posix-functions/symlink.texi (symlink): Likewise.
19874         * modules/symlink-tests: New test.
19875         * tests/test-symlink.c: Likewise.
19876
19877 2009-09-23  Bruno Haible  <bruno@clisp.org>
19878
19879         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
19880         when needed.
19881         Test case: gnulib-tool --import --with-tests atexit inttypes.
19882         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
19883
19884 2009-09-23  Bruno Haible  <bruno@clisp.org>
19885
19886         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
19887         subcommand, not in a subshell.
19888
19889 2009-09-22  Eric Blake  <ebb9@byu.net>
19890
19891         unistd: sort replacement declarations
19892         * lib/unistd.in.h: Sort declarations.
19893
19894         open, openat: minor optimization
19895         * lib/open.c (open): If open succeeded, len is non-zero.
19896         * lib/openat.c (rpl_openat): Likewise.
19897
19898         link-follow: ensure correct result
19899         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
19900         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
19901         distinguish between possible failures.
19902
19903 2009-09-21  Eric Blake  <ebb9@byu.net>
19904
19905         fts: avoid compiler warning
19906         * lib/fts.c (dirent_inode_sort_may_be_useful)
19907         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
19908
19909 2009-09-19  Bruno Haible  <bruno@clisp.org>
19910
19911         * lib/progreloc.c (canonicalize_file_name): New declaration.
19912
19913 2009-09-19  Eric Blake  <ebb9@byu.net>
19914
19915         link: fix quoting
19916         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
19917
19918         openat: fix openat bugs on Solaris 9
19919         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
19920         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
19921         * modules/openat (Depends-on): Add open.
19922         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
19923         * modules/fcntl-h (Makefile.am): Substitute it.
19924         * lib/fcntl.in.h (openat): Declare replacement.
19925         * doc/posix-functions/openat.texi (openat): Document this.
19926
19927         openat: move fstatat and unlinkat into correct files
19928         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
19929         compiled.
19930         * lib/openat.c (fstatat, unlinkat): Move...
19931         * lib/fstatat.c (fstatat): ...into correct files.
19932         * lib/unlinkat.c (unlinkat): Likewise.
19933
19934         openat: fix unlinkat bugs on Solaris 9
19935         * lib/unlinkat.c (unlinkat): New file.
19936         * modules/openat (Depends-on): Add unlink.
19937         (Files): Distribute it.
19938         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
19939         trailing slash behavior is broken.
19940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19941         * modules/unistd (Makefile.am): Substitute it.
19942         * lib/unistd.in.h (unlinkat): Declare replacement.
19943         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
19944
19945         openat: fix fstatat bugs on Solaris 9
19946         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
19947         stat.
19948         * doc/posix-functions/fstatat.texi (fstatat): Document this.
19949
19950         test-unlinkat: enhance test, to expose Solaris 9 bug
19951         * tests/test-unlink.c (main): Factor guts...
19952         * tests/test-unlink.h (test_rmdir_func): ...into new file.
19953         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
19954         * tests/test-rmdir.c (main): Adjust caller.
19955         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
19956         (unlinker): New helper function.
19957         (rmdirat): Enhance check.
19958         * modules/rmdir-tests (Depends-on): Add stdbool.
19959         * modules/unlink-tests (Depends-on): Likewise.
19960         (Files): Add test-unlink.h.
19961         * modules/openat-tests (Files): Likewise.
19962         (Depends-on): Add unlinkdir.
19963
19964         test-fstatat: new test, to expose Solaris 9 bugs
19965         * tests/test-stat.c (main): Factor guts...
19966         * tests/test-stat.h (test_stat_func): ...into new file.
19967         * tests/test-lstat.c (main): Factor guts...
19968         * tests/test-lstat.h (test_lstat_func): ...into new file.
19969         * tests/test-fstatat.c: New file.
19970         * modules/stat-tests (Files): Add test-stat.h.
19971         * modules/lstat-tests (Files): Add test-lstat.h.
19972         (Depends-on): Add stdbool.
19973         * modules/openat-tests (Depends-on): Add pathmax.
19974         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
19975         (Makefile.am): Run new test.
19976
19977         remove: new module, for mingw and Solaris 9 bugs
19978         * modules/remove: New file.
19979         * lib/remove.c: Likewise.
19980         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
19981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19982         * modules/stdio (Makefile.am): Use them.
19983         * lib/stdio.in.h (remove): Declare replacement.
19984         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19985         * doc/posix-functions/remove.texi (remove): Likewise.
19986         * modules/remove-tests: New test.
19987         * tests/test-remove.c: Likewise.
19988
19989         unlink: new module, for Solaris 9 bug
19990         * modules/unlink: New file.
19991         * lib/unlink.c: Likewise.
19992         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19994         * modules/unistd (Makefile.am): Use them.
19995         * lib/unistd.in.h (stat): Declare replacement.
19996         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19997         * doc/posix-functions/unlink.texi (unlink): Likewise.
19998         * modules/unlink-tests: New test.
19999         * tests/test-unlink.c: Likewise.
20000
20001         lstat: fix Solaris 9 bug
20002         * lib/lstat.c (lstat): Also check for trailing slash on
20003         non-symlink, non-directories.  Use stat module to simplify logic.
20004         * doc/posix-functions/lstat.texi (lstat): Document it.
20005         * modules/lstat-tests (Depends-on): Add errno, same-inode.
20006         (configure.ac): Check for symlink.
20007         * tests/test-lstat.c (main): Add more tests.
20008
20009         stat: add as dependency to other modules
20010         * modules/chown (Depends-on): Add stat.
20011         * modules/euidaccess (Depends-on): Likewise.
20012         * modules/fchdir (Depends-on): Likewise.
20013         * modules/isdir (Depends-on): Likewise.
20014         * modules/link (Depends-on): Likewise.
20015         * modules/lstat (Depends-on): Likewise.
20016         * modules/mkdir-p (Depends-on): Likewise.
20017         * modules/modechange (Depends-on): Likewise.
20018         * modules/open (Depends-on): Likewise.
20019         * modules/readlink (Depends-on): Likewise.
20020         * modules/same (Depends-on): Likewise.
20021
20022         stat: fix Solaris 9 bug
20023         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
20024         slash.
20025         * lib/stat.c (rpl_stat): Work around it.
20026         * doc/posix-functions/stat.texi (stat): Update documentation.
20027
20028         stat: new module, for mingw bug
20029         * modules/stat: New file.
20030         * lib/stat.c: Likewise.
20031         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20032         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20033         * modules/sys_stat (Makefile.am): Use them.
20034         * lib/sys_stat.in.h (stat): Declare replacement.
20035         * lib/openat.c (fstatat): Deal with lstat and stat being function
20036         macros.
20037         * modules/openat (Depends-on): Add inline.
20038         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20039         * doc/posix-functions/stat.texi (stat): Likewise.
20040         * modules/stat-tests: New test.
20041         * tests/test-stat.c: Likewise.
20042
20043 2009-09-19  Jim Meyering  <meyering@redhat.com>
20044
20045         syntax-check: detect unnecessary inclusion of canonicalize.h
20046         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
20047
20048 2009-09-19  Eric Blake  <ebb9@byu.net>
20049
20050         canonicalize-lgpl: adjust clients to use correct header
20051         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20052         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
20053         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
20054         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
20055         * lib/progreloc.c (includes): Likewise.
20056
20057 2009-09-19  Jim Meyering  <meyering@redhat.com>
20058
20059         test-posixtm.c: correct a comment
20060         * tests/test-posixtm.c: Correct first-line comment.
20061         Spotted by Eric Blake.
20062
20063 2009-09-16  Jim Meyering  <meyering@redhat.com>
20064
20065         posixtm-tests: make T const-correct; add a test case
20066         * tests/test-posixtm.c (T): Declare const.
20067         Add a test for -(2^31+1).
20068         Remove useless can-succeed-only-in-2002 test.
20069
20070         posixtm-tests: adjust the sole failing test
20071         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
20072         expected output matches what mktime now produces.  Cross-checked via
20073         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
20074
20075         posixtm: move #ifdef'd tests into a new module
20076         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
20077         * tests/test-posixtm.c: ... this new file.
20078         * modules/posixtm-tests: New module.
20079
20080 2009-09-19  Eric Blake  <ebb9@byu.net>
20081
20082         openat: simplify use of at-func.c
20083         * lib/at-func.c (includes): Include prerequisites here, to
20084         simplify requirements on client files.
20085         * lib/openat-priv.h: Add double-inclusion guard.
20086         * lib/faccessat.c (includes): Simplify.
20087         * lib/fchmodat.c (includes): Likewise.
20088         * lib/fchownat.c (includes): Likewise.
20089         * lib/mkdirat.c (includes): Likewise.
20090         * lib/mkfifoat.c (includes): Likewise.
20091         * lib/symlinkat.c (includes): Likewise.
20092
20093         openat: allow return of fd 0
20094         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
20095         * modules/save-cwd (Depends-on): Replace fcntl-safer with
20096         unistd-safer.
20097         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
20098         <fcntl.h>; this module does not leak fds.
20099         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
20100         must be allowed to return 0, leaving openat_safer to add the
20101         safety.
20102         (openat_permissive): Avoid writing to just-opened fd 2 if
20103         restoring the current directory fails.
20104         * lib/openat-die.c (openat_restore_fail): Add comment.
20105         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
20106         (save_cwd): Guarantee safe fd, but without use of open_safer.
20107         * tests/test-openat.c: New test.
20108         * modules/openat-tests (Files, Makefile.am): Distribute and build
20109         new file.
20110
20111         relocatable-prog-wrapper: fix build
20112         * modules/relocatable-prog-wrapper (Files): Update name of
20113         canonicalize m4 file, broken on 2009-09-17.
20114         Reported by emad hajjar <aleppos@hotmail.com>.
20115
20116 2009-09-19  Bruno Haible  <bruno@clisp.org>
20117
20118         * lib/safe-alloc.h: Use the standard header with GPL copyright.
20119         * lib/safe-alloc.c: Likewise.
20120         Reported by Ian Beckwith <ianb@erislabs.net>.
20121
20122 2009-09-18  Bruno Haible  <bruno@clisp.org>
20123
20124         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
20125         Reported by <erobles@sensacd.com.mx>.
20126
20127 2009-09-17  Eric Blake  <ebb9@byu.net>
20128
20129         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
20130         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
20131         slashes when checking if last component is missing.
20132         * tests/test-canonicalize.c (main): Test this.
20133
20134         canonicalize, canonicalize-lgpl: honor // if distinct from /
20135         * modules/canonicalize (Files): Add double-slash-root.m4.
20136         * modules/canonicalize-lgpl (Files): Likewise.
20137         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20138         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
20139         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
20140         fallback definition.
20141         (canonicalize_filename_mode): Use it to protect //.
20142         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
20143         (__realpath): Likewise.
20144         * tests/test-canonicalize.c (main): Test this.
20145         * tests/test-canonicalize-lgpl.c (main): Likewise.
20146         * modules/canonicalize-tests (Depends-on): Add same-inode.
20147         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20148
20149         canonicalize-lgpl: fix glibc bug with trailing slash
20150         * m4/canonicalize-lgpl.m4: Move contents...
20151         * m4/canonicalize.m4: ...here.
20152         (gl_CANONICALIZE_LGPL): Factor realpath check...
20153         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
20154         glibc 2.3.5 bug, fixed 2005-04-27.
20155         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
20156         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
20157         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
20158         * modules/canonicalize-lgpl (Files): Manage file rename.
20159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20160         * modules/stdlib (Makefile.am): Substitute witness.
20161         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
20162         is needed.
20163         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
20164         replacement is required.
20165         * lib/canonicalize.c (canonicalize_file_name): Likewise.
20166         * doc/glibc-functions/canonicalize_file_name.texi
20167         (canonicalize_file_name): Document this.
20168         * doc/posix-functions/realpath.texi (realpath): Likewise.
20169
20170         canonicalize-lgpl: reject non-directory with trailing slash
20171         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
20172         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
20173         catches failures in glibc 2.3.5.
20174         * tests/test-canonicalize.c (main): Likewise.
20175
20176         canonicalize-lgpl: use native realpath if it works
20177         * lib/canonicalize-lgpl.c (realpath): Guard with
20178         FUNC_REALPATH_WORKS.
20179         * lib/stdlib.in.h (realpath): Make declaration optional based on
20180         HAVE_REALPATH.
20181         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
20182         native realpath works.
20183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20184         * modules/stdlib (Makefile.am): Substitute witness.
20185
20186         canonicalize, canonicalize-lgpl: use <stdlib.h>
20187         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
20188         (Include): Mention <stdlib.h>.
20189         (configure.ac): Mention functions we provide.
20190         * modules/canonicalize (configure.ac): Likewise.
20191         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
20192         realpath if canonicalize_file_name is missing.
20193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
20194         * modules/stdlib (Makefile.am): Substitute witnesses.
20195         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
20196         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
20197         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
20198         * NEWS: Document this.
20199         * doc/glibc-functions/canonicalize_file_name.texi
20200         (canonicalize_file_name): Likewise.
20201         * doc/posix-functions/realpath.texi (realpath): Likewise.
20202         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
20203
20204         test-canonicalize: consolidate into single C program
20205         * tests/test-canonicalize.sh: Delete; move setup into...
20206         * tests/test-canonicalize.c (main): ...the program, making it
20207         easier to run in debugger.  Add some tests.
20208         * modules/canonicalize-tests (Files): Remove unused file.
20209         (Depends-on): Add progname.
20210         (configure.ac, Makefile.am): Simplify.
20211
20212         test-canonicalize-lgpl: consolidate into single C program
20213         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
20214         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
20215         easier to run in debugger.  Add some tests.
20216         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
20217         (configure.ac, Makefile.am): Simplify.
20218
20219         canonicalize: avoid resolvepath
20220         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
20221         unnecessary checks.
20222         * lib/canonicalize.c (includes): Simplify.
20223         (canonicalize_file_name): Drop resolvepath implementation.
20224         * modules/canonicalize (Depends-on): Drop filenamecat.
20225
20226         canonicalize: don't lose errno
20227         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
20228         over calls to free.
20229
20230         canonicalize: simplify errno handling
20231         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
20232         assignment.
20233
20234         canonicalize, canonicalize-lgpl: update module dependencies
20235         * modules/canonicalize (Depends-on): Add extensions, lstat,
20236         pathmax, stdlib.
20237         (Files): Drop pathmax.h.
20238         (configure.ac): Adjust macro name.
20239         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
20240         lstat, stdlib, sys_stat.
20241         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
20242         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
20243         extensions.
20244         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
20245         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
20246         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
20247         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
20248         declaration, if available.
20249         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
20250         we can rely on the readlink module.
20251         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
20252         (includes): Use <unistd.h> unconditionally.
20253
20254 2009-09-17  Eric Blake  <ebb9@byu.net>
20255
20256         maint: make Include sections of modules consistent
20257         * modules/alloca: Use only header name; no need to list #include.
20258         * modules/alloca-opt: Likewise.
20259         * modules/arpa_inet: Likewise.
20260         * modules/canon-host: Likewise.
20261         * modules/configmake: Likewise.
20262         * modules/dirent: Likewise.
20263         * modules/eealloc: Likewise.
20264         * modules/environ: Likewise.
20265         * modules/fchdir: Likewise.
20266         * modules/fcntl: Likewise.
20267         * modules/fcntl-h: Likewise.
20268         * modules/gethrxtime: Likewise.
20269         * modules/gettime: Likewise.
20270         * modules/ignore-value: Likewise.
20271         * modules/inet_ntop: Likewise.
20272         * modules/inet_pton: Likewise.
20273         * modules/inttypes: Likewise.
20274         * modules/isnand-nolibm: Likewise.
20275         * modules/isnanf-nolibm: Likewise.
20276         * modules/mbchar: Likewise.
20277         * modules/mbfile: Likewise.
20278         * modules/mbiter: Likewise.
20279         * modules/mbuiter: Likewise.
20280         * modules/netdb: Likewise.
20281         * modules/netinet_in: Likewise.
20282         * modules/nproc: Likewise.
20283         * modules/pagealign_alloc: Likewise.
20284         * modules/poll: Likewise.
20285         * modules/printf-frexp: Likewise.
20286         * modules/pthread: Likewise.
20287         * modules/putenv: Likewise.
20288         * modules/random_r: Likewise.
20289         * modules/relocatable-prog: Likewise.
20290         * modules/search: Likewise.
20291         * modules/select: Likewise.
20292         * modules/selinux-h: Likewise.
20293         * modules/settime: Likewise.
20294         * modules/signal: Likewise.
20295         * modules/size_max: Likewise.
20296         * modules/socklen: Likewise.
20297         * modules/ssize_t: Likewise.
20298         * modules/stdarg: Likewise.
20299         * modules/stdbool: Likewise.
20300         * modules/stddef: Likewise.
20301         * modules/stdint: Likewise.
20302         * modules/stdio: Likewise.
20303         * modules/stdlib: Likewise.
20304         * modules/string: Likewise.
20305         * modules/strings: Likewise.
20306         * modules/sys_file: Likewise.
20307         * modules/sys_ioctl: Likewise.
20308         * modules/sys_select: Likewise.
20309         * modules/sys_socket: Likewise.
20310         * modules/sys_stat: Likewise.
20311         * modules/sys_time: Likewise.
20312         * modules/sys_times: Likewise.
20313         * modules/sys_utsname: Likewise.
20314         * modules/sys_wait: Likewise.
20315         * modules/sysexits: Likewise.
20316         * modules/time: Likewise.
20317         * modules/times: Likewise.
20318         * modules/tmpfile: Likewise.
20319         * modules/trim: Likewise.
20320         * modules/unistd: Likewise.
20321         * modules/wchar: Likewise.
20322         * modules/wctype: Likewise.
20323
20324 2009-09-17  Bruno Haible  <bruno@clisp.org>
20325
20326         Make getdate.y compile on QNX and NetBSD 5 / i386.
20327         * m4/getdate.m4 (gl_GETDATE): Conditionally define
20328         TIME_T_FITS_IN_LONG_INT.
20329         * lib/getdate.y (long_time_t): New type.
20330         (relative_time): Change type of 'seconds' field to long_time_t.
20331         (get_date): Update types of local variables. Check against overflow
20332         during conversion from long_time_t to time_t.
20333         Reported by Matt Kraai <kraai@ftbfs.org>
20334         and Hasso Tepper <hasso@netbsd.org>.
20335
20336 2009-09-17  Bruno Haible  <bruno@clisp.org>
20337
20338         * modules/COPYING: Update copyright years.
20339         * modules/README: Likeiwse.
20340         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
20341         Reported by Ian Beckwith <ianb@erislabs.net>.
20342
20343 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20344
20345         * users.txt: Update references for gnuit package.
20346
20347 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20348
20349         * m4/getdelim.m4: Fix typo in copyright line.
20350
20351 2009-09-17  Bruno Haible  <bruno@clisp.org>
20352
20353         * lib/atoll.c: Use the standard header with GPL copyright.
20354         * lib/argz.in.h: Likewise.
20355         * lib/glob.c: Likewise.
20356         * lib/glob-libc.h: Likewise.
20357         * lib/random_r.c: Likewise.
20358         * lib/siglist.h: Likewise.
20359         * lib/strsignal.c: Likewise.
20360         Reported by Ian Beckwith <ianb@erislabs.net>.
20361
20362 2009-09-17  Eric Blake  <ebb9@byu.net>
20363
20364         rmdir: ensure correct dependency order
20365         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
20366
20367 2009-09-17  Bruno Haible  <bruno@clisp.org>
20368
20369         Disable assertion that fails on NetBSD 5 / i386.
20370         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
20371         Reported by Sam Steingold <sds@gnu.org>
20372         and Hasso Tepper <hasso@netbsd.org>.
20373
20374 2009-09-16  Eric Blake  <ebb9@byu.net>
20375
20376         unlinkdir: port to mingw
20377         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
20378         on which no one can unlink a directory.
20379
20380         stdlib: sort witness names
20381         * modules/stdlib (Makefile.am): Sort replacements.
20382         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
20383         * lib/stdlib.in.h: Likewise.
20384
20385         parse-duration-tests: avoid link failure
20386         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
20387         LIBINTL.
20388         Reported by Tom G. Christensen.
20389
20390         openat-tests: ensure unlinkat behaves like rmdir
20391         * tests/test-rmdir.c (main): Factor guts...
20392         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
20393         * modules/rmdir-tests (Files): Ship new file.
20394         * modules/openat-tests: New test.
20395         * tests/test-unlinkat.c: Likewise.
20396
20397         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
20398         * modules/rmdir-errno (Status, Notice): Now obsolete.
20399
20400         rmdir: work around cygwin 1.5.x and mingw bugs
20401         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
20402         * lib/rmdir.c (rmdir): Work around it.
20403         * modules/rmdir (Status, Notice): No longer obsolete.
20404         (Files): Add dos.m4.
20405         (Depends-on): Add unistd.
20406         (configure.ac): Set witnesses.
20407         (License): Relax to LGPLv2+.
20408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
20409         * modules/unistd (Makefile.am): Substitute witnesses.
20410         * lib/unistd.in.h (rmdir): Declare replacement.
20411         * doc/posix-functions/rmdir.texi (rmdir): Document this.
20412         * modules/rmdir-tests: New tests.
20413         * tests/test-rmdir.c: Likewise.
20414
20415 2009-09-15  Eric Blake  <ebb9@byu.net>
20416
20417         fchdir: improve use of replacement functions
20418         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
20419         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
20420         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
20421         REPLACE_CLOSEDIR.
20422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
20423         * modules/sys_stat (Makefile.am): Substitute correct witness.
20424         * modules/dirent (Makefile.am): Likewise.
20425         * modules/unistd (Makefile.am): Likewise.
20426         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
20427         * lib/unistd.in.h (dup): Likewise.
20428         * lib/sys_stat.in.h (fstat): Likewise.
20429
20430         maint: ignore gnulib-tool temp files
20431         * .gitignore: Ignore files created during gnulib-tool --test.
20432
20433 2009-09-13  Jim Meyering  <meyering@redhat.com>
20434
20435         posixtm: don't reject a time that specify "60" as the number of seconds
20436         * lib/posixtm.c (posixtime): The code to reject invalid dates
20437         would also reject a time specified with the .60 suffix.
20438         But POSIX allows that, in order to accommodate leap seconds.
20439         So don't reject it.
20440         (main): Adjust tests accordingly.
20441         * modules/posixtm (Depends-on): Add stpcpy.
20442
20443 2009-09-11  Jim Meyering  <meyering@redhat.com>
20444
20445         announce-gen: include [$release_type] in emitted Subject:
20446         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
20447         e.g., [stable] in the emitted Subject: line.
20448
20449 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20450
20451         Remove obsolete macros from several modules.
20452         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
20453         obsolete Autoconf macros with their modern counterparts.
20454         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
20455         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
20456         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
20457         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
20458         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
20459         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20460         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20461         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20462         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20463         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
20464         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
20465         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20466         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
20467         * m4/sockets.m4 (gl_SOCKETS): Likewise.
20468         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
20469         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
20470         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
20471         * m4/time_r.m4 (gl_TIME_R): Likewise.
20472         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20473         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
20474         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20475
20476         Fix copyright header in build-aux scripts.
20477         * build-aux/git-version-gen: Fix copyright header to match GPLv3
20478         recommendation.
20479         * build-aux/ncftpput-ftp: Likewise.
20480         * build-aux/update-copyright: Likewise.
20481
20482 2009-09-09  Eric Blake  <ebb9@byu.net>
20483
20484         test-link: allow Linux choice of errno
20485         * tests/test-link.c (main): Relax test for alternate error.
20486
20487         strndup: fix improper m4 caching
20488         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
20489         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
20490         (gl_PREREQ_STRNDUP): Delete.
20491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
20492         * modules/string (Makefile.am): Substitute it.
20493         * lib/string.in.h (strndup): Modernize prototype.
20494
20495         getcwd: port to mingw
20496         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
20497         different from the POSIX assumptions made throughout the getcwd
20498         module; fortunately, the mingw getcwd does not need replacement.
20499         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
20500         * modules/getcwd-tests: New test.
20501         * tests/test-getcwd.c: Likewise.
20502
20503         link: fix platform bugs
20504         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
20505         * lib/link.c (link): Work around them.  Fix related mingw bug.
20506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
20507         * modules/unistd (Makefile.am): Substitute it.
20508         * lib/unistd.in.h (link): Declare replacement.
20509         * doc/posix-functions/link.texi (link): Document this.
20510         * modules/link (Depends-on): Add strdup-posix, sys_stat.
20511
20512         test-link: consolidate into single C program, test more cases
20513         * tests/test-link.sh: Delete.
20514         * tests/test-link.c: Test more error conditions.  Exposes bugs on
20515         at least Cygwin and Solaris.
20516         * modules/link-tests (Files): Remove unused file.
20517         (Depends-on): Add errno, sys_stat.
20518         (Makefile.am): Simplify.
20519
20520 2009-09-08  Bruno Haible  <bruno@clisp.org>
20521
20522         Work around towlower, towupper bug on mingw.
20523         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
20524         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
20525         * doc/posix-functions/towlower.texi: Mention the mingw bug.
20526         * doc/posix-functions/towupper.texi: Likewise.
20527         Reported by Eric Blake.
20528
20529 2009-09-08  Jim Meyering  <meyering@redhat.com>
20530
20531         build: don't try to run autoheader if we don't use it
20532         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
20533         is not used in configure.ac.
20534
20535 2009-09-08  Eric Blake  <ebb9@byu.net>
20536
20537         euidaccess: fix compilation error
20538         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
20539
20540         rawmemchr: relax license
20541         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
20542         okay.
20543         Reported by Jim Meyering.
20544
20545         mkfifoat: new module
20546         * modules/mkfifoat: New file.
20547         * lib/mkfifoat.c: Likewise.
20548         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
20549         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20550         * modules/sys_stat (Makefile.am): Use them.
20551         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
20552         * MODULES.html.sh (File system functions): Mention module.
20553         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20554         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20555         * modules/mkfifoat-tests: New test.
20556         * tests/test-mkfifoat.c: Likewise.
20557
20558         strchrnul: relax license
20559         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
20560         okay.
20561         Reported by Jim Meyering.
20562
20563 2009-09-08  Eric Blake  <ebb9@byu.net>
20564
20565         fstatat: fix compilation on Solaris
20566         * lib/fstatat.c (includes): Add fcntl.h.
20567         Reported by Pádraig Brady.
20568
20569 2009-09-07  Eric Blake  <ebb9@byu.net>
20570
20571         rename: modernize replacement
20572         * modules/rename (Depends-on): Add stdio.
20573         (configure.ac): Declare witness.
20574         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
20575         stdio take care of replacement.
20576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
20577         * modules/stdio (Makefile.am): Substitute them.
20578         * lib/stdio.in.h (rename): Declare replacement.
20579         * lib/rename.c (includes): Allow cross-compilation to non-windows
20580         machines.
20581         * doc/posix-functions/rename.texi (rename): Improve
20582         documentation.
20583
20584         stdio: sort witness names
20585         * modules/stdio (Makefile.am): Sort replacements.
20586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20587         * lib/stdio.in.h: Likewise.
20588
20589         getcwd: minor cleanups
20590         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
20591         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
20592
20593         openat: provide more convenience names
20594         * modules/faccessat (configure.ac): Add C witness.
20595         * lib/unistd.in.h (readlinkat): Fix typo.
20596         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
20597         convenience wrappers.
20598         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
20599         wrappers in syntax checks.
20600
20601 2009-09-06  Eric Blake  <ebb9@byu.net>
20602
20603         doc: fix comments in recent patches
20604         * lib/faccessat.c: Mention correct function.
20605         * lib/fchmodat.c: Likewise.
20606         * lib/fchownat.c: Likewise.
20607         * lib/symlinkat.c: Likewise.
20608         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
20609         constants.
20610
20611         faccessat, symlinkat: continue cleanup of previous patch
20612         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
20613         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20614         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
20615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
20616         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
20617         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
20618         set.
20619
20620 2009-09-06  Bruno Haible  <bruno@clisp.org>
20621
20622         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
20623         (fstatat): Declare if GNULIB_FSTATAT is set.
20624         (mkdirat): Declare if GNULIB_MKDIRAT is set.
20625         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
20626         (unlinkat): Declare if GNULIB_UNLINKAT is set.
20627         * modules/fcntl-h (Files): Remove m4/openat.m4.
20628         * modules/sys_stat (Files): Remove m4/openat.m4.
20629         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
20630         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
20631         * modules/unistd (Files): Remove m4/openat.m4.
20632         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
20633         GNULIB_OPENAT.
20634         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
20635         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
20636         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
20637         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
20638         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
20639         gl_OPENAT_DEFAULTS.
20640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
20641         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
20642         Don't require gl_OPENAT_DEFAULTS.
20643         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
20644         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
20645         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
20646         (gl_OPENAT_DEFAULTS): Remove macro.
20647
20648 2009-09-06  Bruno Haible  <bruno@clisp.org>
20649
20650         * modules/openat (configure.ac): Remove unneeded witness.
20651
20652 2009-09-06  Bruno Haible  <bruno@clisp.org>
20653
20654         Set errno to ENOSYS when a function is entirely unsupported.
20655         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
20656         EOPNOTSUPP.
20657         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20658         * modules/chown (Depends-on): Remove errno.
20659
20660 2009-09-06  Bruno Haible  <bruno@clisp.org>
20661
20662         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
20663
20664 2009-09-06  Bruno Haible  <bruno@clisp.org>
20665
20666         * lib/sys_stat.in.h: Fix preprocessor command indentation.
20667
20668 2009-09-06  Ben Pfaff  <blp@gnu.org>
20669             Bruno Haible  <bruno@clisp.org>
20670
20671         Work around a glibc bug in strtok_r.
20672         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
20673         Undefine if UNDEFINE_STRTOK_R is set.
20674         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
20675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20676         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
20677         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
20678         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
20679         UNDEFINE_STRTOK_R.
20680         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
20681
20682 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20683
20684         exclude: minor fix
20685         * lib/exclude.c: Include wctype.h
20686
20687 2009-09-06  Akim Demaille  <demaille@gostai.com>
20688
20689         bootstrap: improve error message
20690         * build-aux/bootstrap (find_tool): Upon failure, report the list
20691         of candidates.
20692         Honor the initial value of the envvar.
20693
20694 2009-09-05  Eric Blake  <ebb9@byu.net>
20695
20696         symlinkat: new module
20697         * modules/symlinkat: New file.
20698         * lib/symlinkat.c: Likewise.
20699         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
20700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20701         * modules/unistd (Makefile.am): Use them.
20702         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
20703         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
20704         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
20705         * MODULES.html.sh (File system functions): Mention module.
20706         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20707         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20708         * modules/symlinkat-tests: New test.
20709         * tests/test-symlinkat.c: Likewise.
20710
20711         test-openat-safer: add more checks
20712         * tests/test-openat-safer.c (main): Check more code paths.
20713
20714 2009-09-05  Jim Meyering  <meyering@redhat.com>
20715
20716         syntax-check: detect unnecessary inclusion of openat.h
20717         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
20718
20719 2009-09-05  Bruno Haible  <bruno@clisp.org>
20720
20721         Support towlower, towupper.
20722         * doc/posix-functions/towlower.texi: Mention module wctype.
20723         * doc/posix-functions/towupper.texi: Likewise.
20724         * lib/wctype.in.h (towlower, towupper): New functions.
20725         * tests/test-wctype.c: Include stdio.h, stdlib.h.
20726         (ASSERT): New macro.
20727         (e): New variable.
20728         (main): Test also towlower, towupper. Test WEOF argument.
20729         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20730
20731 2009-09-05  Bruno Haible  <bruno@clisp.org>
20732
20733         Fix conversion behaviour when the input is invalid.
20734         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
20735         mark occurring in first pass of indirect conversion.
20736         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
20737         input.
20738         Found by clang's static analyzer.
20739
20740 2009-09-05  Bruno Haible  <bruno@clisp.org>
20741
20742         * tests/test-striconveh.c (main): Test indirect conversion on platforms
20743         where direct conversion is possible.
20744
20745 2009-09-04  Eric Blake  <ebb9@byu.net>
20746
20747         openat: fail with ENOENT on empty name
20748         * lib/openat-proc.c (openat_proc_name): Special-case the empty
20749         buffer.
20750
20751         link-follow: fix logic bug in prior patch
20752         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
20753         reversed sense of yes and no in prior patch.  Avoid confusing
20754         compilation failure with desired semantics.
20755
20756         link-follow: accomodate mingw and cross-compilation
20757         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
20758         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
20759         cross-compilation results to -1, to make linkat easier to
20760         implement when cross-compiling.  Trivially support mingw.
20761         * modules/link-follow (configure.ac): Call new name.
20762         * NEWS: Mention this.
20763
20764 2009-09-03  Eric Blake  <ebb9@byu.net>
20765
20766         faccessat: compile replacement
20767         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
20768         needed.
20769
20770         fts: fix compilation error
20771         * lib/fts.c (includes): Re-add "openat.h", for
20772         openat_needs_fchdir.
20773
20774         faccessat: new module
20775         * modules/faccessat: New file.
20776         * lib/faccessat.c: Likewise.
20777         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20779         * modules/unistd (Makefile.am): Use it.
20780         * lib/unistd.in.h (faccessat): Declare it.
20781         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
20782         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
20783         * MODULES.html.sh (File system functions): Mention it.
20784         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
20785         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20786
20787         euidaccess: prefer POSIX over non-standard implementation
20788         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
20789         * lib/euidaccess.c (euidaccess): Use it if available.
20790
20791         openat: make template easier to use
20792         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
20793         AT_FUNC_F2 to be undefined.
20794         (VALIDATE_FLAG): New macro; use it to reject bad flags.
20795         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
20796         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
20797         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
20798         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
20799         Likewise.
20800         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
20801         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
20802         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
20803         Likewise.
20804
20805         openat: declare in POSIX headers
20806         * NEWS: Mention this.
20807         * modules/openat (configure.ac): Declare witnesses.
20808         (Depends-on): Add fcntl-h, sys_stat, unistd.
20809         (Include): Mention correct headers.
20810         * modules/fcntl-h (Depends-on): Add link-warning.
20811         (Files): Add openat.m4.
20812         (Makefile.am): Substitute witnesses.
20813         * modules/sys_stat (Files, Makefile.am): Likewise.
20814         * modules/unistd (Files, Makefile.am): Likewise.
20815         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
20816         (gl_OPENAT_DEFAULTS): New macro.
20817         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
20818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
20819         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
20820         (SYS_STAT_H): Remove unused variable.
20821         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
20822         * lib/fcntl--.h (includes): Remove unneeded header.
20823         * lib/openat-safer.c (includes): Likewise.
20824         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
20825         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
20826         appropriate headers.
20827         (__OPENAT_PREFIX): Delete.
20828         * lib/fcntl.in.h (openat): Provide declaration.
20829         (AT_FDCWD): Fix Solaris bug.
20830         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
20831         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
20832         * lib/fchmodat.c (includes):  Adjust to find declaration.
20833         * lib/fchownat.c (includes): Likewise.
20834         * lib/mkdirat.c (includes): Likewise.
20835         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
20836         still visible.
20837
20838 2009-09-02  Eric Blake  <ebb9@byu.net>
20839
20840         errno: use consistently
20841         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
20842         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
20843         * lib/canonicalize.c (ELOOP): Likewise.
20844         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
20845         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
20846         * lib/lchown.c (EOPNOTSUPP): Likewise.
20847         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
20848         * lib/savewd.c (ESTALE): Likewise.
20849         * lib/settime.c (ENOSYS): Likewise.
20850         * lib/utimens.c (ENOSYS): Likewise.
20851         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
20852         * lib/chdir-safer.c (ELOOP): Likewise.
20853         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
20854         * modules/c-stack (Depends-on): Add errno.
20855         * modules/canonicalize (Depends-on): Likewise.
20856         * modules/chdir-safer (Depends-on): Likewise.
20857         * modules/fdopendir (Depends-on): Likewise.
20858         * modules/inet_ntop (Depends-on): Likewise.
20859         * modules/inet_pton (Depends-on): Likewise.
20860         * modules/lchown (Depends-on): Likewise.
20861         * modules/openat (Depends-on): Likewise.
20862         * modules/savewd (Depends-on): Likewise.
20863         * modules/settime (Depends-on): Likewise.
20864         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
20865
20866         fts: avoid leaking fds
20867         * modules/fts (Depends-on): Add cloexec.
20868         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
20869         flag.
20870
20871         fts: make directory fds more robust
20872         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
20873         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
20874
20875         backupfile, chdir-long, fts, savedir: make safer
20876         * lib/backupfile.c (includes): Use "dirent--.h", since
20877         numbered_backup can write to stderr during readdir.
20878         * lib/savedir.c (includes): Likewise.
20879         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
20880         emulation can write to stderr on failure.
20881         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
20882         * lib/getcwd.c: Document why opendir_safer is unused.
20883         * lib/glob.c: Likewise.
20884         * lib/scandir.c: Likewise.
20885         * lib/openat-proc.c: Likewise, for open_safer.
20886         * modules/backupfile (Depends-on): Add dirent-safer.
20887         * modules/savedir (Depends-on): Likewise.
20888         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
20889         * modules/chdir-long (Depends-on): Add openat-safer.
20890
20891         openat-safer: new module
20892         * modules/openat-safer: New file.
20893         * lib/openat-safer.c: Likewise.
20894         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
20895         * lib/fcntl-safer.h (openat_safer): Declare.
20896         * lib/fcntl--.h (openat): Override.
20897         * MODULES.html.sh (File descriptor based I/O): Mention it.
20898         * lib/openat.h: Add double-inclusion guards.
20899         * lib/openat.c (includes): Only include "fcntl-safer.h", not
20900         "fcntl--.h", so we can implement openat.
20901         * modules/openat-safer-tests: New test.
20902         * tests/test-openat-safer.c: New file.
20903
20904         dirent-safer: new module
20905         * modules/dirent-safer: New file.
20906         * lib/dirent--.h: Likewise.
20907         * lib/dirent-safer.h: Likewise.
20908         * lib/opendir-safer.c: Likewise.
20909         * m4/dirent-safer.m4: Likewise.
20910         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
20911         * modules/dirent-safer-tests: New test.
20912         * tests/test-dirent-safer.c: New file.
20913         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
20914
20915         fdopendir: optimize on mingw
20916         * lib/unistd.in.h (_gl_directory_name): New prototype.
20917         * lib/fchdir.c (_gl_directory_name): Implement it.
20918         (fchdir): Use it to simplify implementation.
20919         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
20920         fchdir, when available, to avoid calling [f]chdir().
20921
20922         fdopendir: split into its own module
20923         * lib/openat.c (fdopendir): Move...
20924         * lib/fdopendir.c: ...into new file.
20925         * modules/fdopendir: New module.
20926         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
20927         * modules/openat (Depends-on): Add fdopendir.
20928         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
20929         fdopendir here.
20930         * modules/savedir (Depends-on): Only need fdopendir, not full
20931         openat.
20932         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
20933         * lib/openat.h (fdopendir): Drop prototype.
20934         * lib/dirent.in.h (fdopendir): Provide prototype.
20935         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
20936         * modules/dirent (Makefile.am): Substitute them.
20937         * MODULES.html.sh (File system functions): Mention it.
20938         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
20939         * modules/fdopendir-tests: New file.
20940         * tests/test-fdopendir.c: Likewise.
20941
20942         fchdir: use more consistent macro convention
20943         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
20944         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
20945         REPLACE_FCHDIR, rather than relying on config.h macros.
20946         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
20947         inside a single make-time REPLACE_FCHDIR block, rather than using
20948         the config.h FCHDIR_REPLACEMENT.
20949         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
20950         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
20951         Manage fstat replacement.
20952         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
20953         REPLACE_FCHDIR.
20954         * modules/sys_stat (Files): Add m4/unistd_h.m4.
20955         (Makefile.am): Substitute REPLACE_FCHDIR.
20956         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
20957         FCHDIR_REPLACEMENT.
20958         * lib/dup-safer.c (dup_safer): Likewise.
20959         * lib/dup2.c (rpl_dup2): Likewise.
20960         * lib/dup3.c (rpl_dup3): Likewise.
20961         * lib/open.c (rpl_open): Likewise.
20962
20963         fchdir: simplify error handling, and support dup3
20964         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
20965         stdbool, malloc-posix, realloc-posix.
20966         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
20967         (ensure_dirs_slot): Return false on allocation failure.
20968         (rpl_dup2): Delete.
20969         (_gl_register_dup): New function.
20970         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
20971         (_gl_register_fd): Close fd on allocation failure.
20972         * lib/fcntl.in.h (_gl_register_fd): Update signature.
20973         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
20974         prototype.
20975         (rpl_dup2_fchdir): Delete prototype.
20976         * lib/open.c (open): Update caller.
20977         * lib/dup2.c (dup2): Track fchdir metadata.
20978         * lib/dup3.c (dup3): Likewise.
20979         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
20980         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
20981
20982 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20983
20984         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
20985         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
20986         don't pass arguments to AC_OUTPUT.
20987
20988 2009-09-02  Bruno Haible  <bruno@clisp.org>
20989
20990         * modules/mkdtemp (License): Relicense under LGPLv2+.
20991         Reported by Paolo Bonzini.
20992
20993 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20994
20995         Replace uses of obsolete autoconf macros in Jim's modules.
20996         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
20997         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
20998         can evoke a warning from autoconf when run with -Wobsolete
20999         enabled.  They were declared obsolete for good reasons (see
21000         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
21001         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
21002         should not continue using the deprecated macros.
21003         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
21004         obsolete Autoconf macros with modern counterparts.
21005         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21006         * m4/dos.m4 (gl_AC_DOS): Likewise.
21007         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
21008         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
21009         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
21010         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
21011         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
21012         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
21013         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
21014         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
21015         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21016         Likewise.
21017         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21018         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21019         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
21020         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
21021         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
21022         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
21023
21024 2009-09-01  Eric Blake  <ebb9@byu.net>
21025
21026         fchdir: fix off-by-one bug in previous patch
21027         * lib/fchdir.c (rpl_fstat): Use correct bounds.
21028         (_gl_unregister_fd): Delete useless if.
21029
21030 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
21031
21032         maint.mk: sort the list of syntax-check rules
21033         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
21034         easier to get a sense of progress when the rules are run sequentially
21035         and take a long time.
21036
21037 2009-09-01  Simon Josefsson  <simon@josefsson.org>
21038
21039         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
21040         * modules/netinet_in: Likewise.
21041         * modules/sys_file: Likewise.
21042         * modules/sys_ioctl: Likewise.
21043         * modules/sys_select: Likewise.
21044         * modules/sys_socket: Likewise.
21045         * modules/sys_stat: Likewise.
21046         * modules/sys_time: Likewise.
21047         * modules/sys_times: Likewise.
21048         * modules/sys_utsname: Likewise.
21049         * modules/sys_wait: Likewise.
21050
21051 2009-09-01  Jim Meyering  <meyering@redhat.com>
21052
21053         fts: help ensure that return values are not ignored
21054         * lib/fts_.h (__GNUC_PREREQ): Define.
21055         (__attribute_warn_unused_result__): Define.
21056         (fts_children, fts_close, fts_open, fts_read): Declare with
21057         __attribute_warn_unused_result__.
21058
21059         fts: fts_close now fails also when closing a dir file descriptor fails
21060         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
21061         and propagate to caller, along with errno.
21062
21063         announce-gen: correct formatting in --help output
21064         * build-aux/announce-gen (usage): Move the one-line description in
21065         --help output "up", to where it belongs, just after Usage:.
21066
21067 2009-08-31  Eric Blake  <ebb9@byu.net>
21068
21069         fchdir: port to mingw
21070         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
21071         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
21072         opened, then use a substitute.
21073         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
21074         replacement.
21075         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
21076         (_gl_register_fd): No need to check stat if open already filters
21077         all directories.
21078         (fchdir): Fix error condition to match POSIX.
21079         * modules/fchdir (Depends-on): Add sys_stat.
21080         * doc/posix-functions/open.texi (open): Document the limitation.
21081         * modules/fchdir-tests: New file.
21082         * tests/test-fchdir.c: Likewise.
21083
21084         canonicalize: allow cross-testing from cygwin to mingw
21085         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
21086         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
21087         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
21088         Likewise.
21089         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
21090         target does not support symlinks.
21091         * tests/test-canonicalize-lgpl.sh: Likewise.
21092
21093         chown: avoid compilation warning on mingw
21094         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
21095         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
21096         mingw.
21097         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
21098         * modules/chown (Depends-on): Add errno.
21099
21100 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21101
21102         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
21103         command.
21104
21105 2009-08-31  Jim Meyering  <meyering@redhat.com>
21106
21107         canonicalize: remove useless initialization
21108         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
21109         initialization of local, "end".
21110
21111 2009-08-30  Bruno Haible  <bruno@clisp.org>
21112
21113         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
21114         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
21115         ENOSYS.
21116
21117 2009-08-30  Bruno Haible  <bruno@clisp.org>
21118
21119         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
21120         /usr/xpg4/bin/tr when it exists.
21121         * tests/test-pipe-filter-gi1.sh: Likewise.
21122
21123 2009-08-30  Bruno Haible  <bruno@clisp.org>
21124
21125         Work around deficient /usr/bin/id program on Solaris.
21126         * tests/test-file-has-acl.sh (ID): New variable.
21127         * tests/test-set-mode-acl.sh (ID): Likewise.
21128         * tests/test-copy-acl.sh (ID): Likewise.
21129         * tests/test-copy-file.sh (ID): Likewise.
21130
21131 2009-08-30  Bruno Haible  <bruno@clisp.org>
21132
21133         New module 'xstriconveh'.
21134         * lib/xstriconveh.h: New file.
21135         * lib/xstriconveh.c: New file.
21136         * modules/xstriconveh: New file.
21137
21138 2009-08-30  Bruno Haible  <bruno@clisp.org>
21139
21140         Make it easier to use mem_cd_iconveh.
21141         * lib/striconveh.h (iconveh_t): New type.
21142         (iconveh_open, iconveh_close): New declarations.
21143         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
21144         with a single 'const iconveh_t *' argument.
21145         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
21146         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
21147         with a single 'const iconveh_t *' argument.
21148         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
21149         * tests/test-striconveh.c (main): Update.
21150         * NEWS: Mention the change.
21151
21152 2009-08-30  Bruno Haible  <bruno@clisp.org>
21153
21154         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
21155         problem.
21156
21157 2009-08-30  Bruno Haible  <bruno@clisp.org>
21158
21159         Work around iconv_open problem on Solaris.
21160         * lib/iconv_open-solaris.gperf: New file.
21161         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
21162         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
21163         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
21164         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
21165         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
21166         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
21167
21168 2009-08-29  Jim Meyering  <meyering@redhat.com>
21169
21170         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
21171         * top/maint.mk (cvs-check): Remove target; it was just an alias
21172         to the better-named vc-diff-check.
21173         (maintainer-distcheck): Remove rule.  It was used only from
21174         the (alpha/beta/major) target, and all of its commands but one
21175         were coreutils-specific.
21176         (vc-dist): Remove rule.
21177         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
21178         Run vc-diff-check, not vc-dist.
21179         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
21180
21181 2009-08-27  Bruno Haible  <bruno@clisp.org>
21182
21183         * tests/test-bitrotate.c (main): Remove test that uses a shift count
21184         of 0.
21185
21186 2009-08-27  Bruno Haible  <bruno@clisp.org>
21187
21188         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
21189         compilers.
21190         * doc/func.texi: Document the SunPRO C bug.
21191
21192 2009-08-27  Bruno Haible  <bruno@clisp.org>
21193
21194         Fix link error on Solaris.
21195         * tests/test-parse-duration.c (xstrdup): Remove function.
21196
21197 2009-08-26  Pádraig Brady  <P@draigbrady.com>
21198
21199         ignore-value: handle pointer types, too
21200         * lib/ignore-value.h (__attribute__): Remove definition.
21201         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
21202         of a more concise and more-often effective "(void) i" statement.
21203         (ignore_ptr): New function to suppress warnings from functions that
21204         return pointers, and to make it explicit that one function doesn't
21205         handle all cases.
21206
21207 2009-08-25  Bruno Haible  <bruno@clisp.org>
21208
21209         dup2: work around a Linux bug.
21210         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
21211         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
21212         * doc/posix-functions/dup2.texi: Mention the Linux bug.
21213         Reported by Simon Josefsson.
21214
21215 2009-08-25  Jim Meyering  <meyering@redhat.com>
21216
21217         libguestfs uses gnulib
21218         * users.txt: Add libguestfs.
21219
21220 2009-08-24  Eric Blake  <ebb9@byu.net>
21221
21222         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
21223         * lib/pipe2.c (includes): Add binary-io.h.
21224         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
21225
21226 2009-08-24  Bruno Haible  <bruno@clisp.org>
21227
21228         Tolerate declared but missing accept4 syscall.
21229         * lib/accept4.c (accept4): Invoke original accept4 function first, if
21230         available.
21231         * lib/sys_socket.in.h (accept4): If the function is already present,
21232         override it.
21233         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
21234         * modules/accept4 (Makefile.am): Compile accept4.c always.
21235         Reported by Paolo Bonzini and Eric Blake.
21236
21237 2009-08-23  Bruno Haible  <bruno@clisp.org>
21238
21239         New module 'accept4'.
21240         * lib/sys_socket.in.h (accept4): New declaration.
21241         * lib/accept4.c: New file.
21242         * m4/accept4.m4: New file.
21243         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21244         GNULIB_ACCEPT4, HAVE_ACCEPT4.
21245         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
21246         HAVE_ACCEPT4.
21247         * modules/accept4: New file.
21248         * doc/glibc-functions/accept4.texi: Mention the new module.
21249
21250 2009-08-24  Jim Meyering  <meyering@redhat.com>
21251
21252         progname: also set global program_invocation_name, when possible
21253         Before this change, a libtool-enabled program that calls glibc's
21254         error function would report the program name as
21255         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
21256         * modules/progname (configure.ac): Check for a declaration of
21257         program_invocation_name.
21258         * lib/progname.c:  Include <errno.h>.
21259         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
21260         Set program_invocation_name.
21261
21262 2009-08-23  Bruno Haible  <bruno@clisp.org>
21263
21264         * lib/dup3.c: Include <string.h>.
21265
21266 2009-08-23  Bruno Haible  <bruno@clisp.org>
21267
21268         * lib/dup3.c (dup3): Test only once whether the system actually exists.
21269         * lib/pipe2.c (pipe2): Likewise.
21270         Suggested by Eric Blake.
21271
21272 2009-08-23  Bruno Haible  <bruno@clisp.org>
21273
21274         Tolerate declared but missing dup3 syscall.
21275         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
21276         * lib/unistd.in.h (dup3): If the function is already present,
21277         override it.
21278         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
21279         * modules/dup3 (Makefile.am): Compile dup3.c always.
21280         Reported by Paolo Bonzini.
21281
21282 2009-08-23  Bruno Haible  <bruno@clisp.org>
21283
21284         Tolerate declared but missing pipe2 syscall.
21285         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
21286         available.
21287         * lib/unistd.in.h (pipe2): If the function is already present,
21288         override it.
21289         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
21290         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
21291         Reported by Paolo Bonzini.
21292
21293 2009-08-23  Bruno Haible  <bruno@clisp.org>
21294
21295         * lib/pipe2.c (pipe2): Move #ifs inside function.
21296
21297 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21298
21299         quotearg: document limitations of quote_these_too
21300         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
21301         those limitations are created.
21302         * lib/quotearg.h (set_char_quoting): Document that digits and
21303         letters that are special after backslash are not permitted.
21304         (quotearg_char): Cross-reference set_char_quoting documentation.
21305
21306 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
21307
21308         quotearg: implement custom_quoting_style
21309         * lib/quotearg.c: (struct quoting_options): Add left_quote and
21310         right_quote fields.
21311         (set_custom_quoting): New public function.
21312         (quotearg_buffer_restyled): Add left_quote and right_quote
21313         arguments, handle them very much like locale quoting, and update
21314         all uses.
21315         (quotearg_n_custom): New public function.
21316         (quotearg_n_custom_mem): New public function.
21317         (quotearg_custom): New public function.
21318         (quotearg_custom_mem): New public function.
21319         * lib/quotearg.h: Prototype and document new public functions.
21320         (enum quoting_style): For escape_quoting_style and
21321         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
21322         ignored even though they're otherwise like c_quoting_style.
21323         Add custom_quoting_style member and document with comparison to
21324         clocale_quoting_style.
21325         * tests/test-quotearg.c (custom_quotes): New array.
21326         (custom_results): New array.
21327         (main): Extend to test custom quoting.
21328
21329 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21330
21331         quotearg: fix right quote escaping when it's in quote_these_too
21332         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
21333         quote, be sure to prepend only one backslash.
21334         * tests/test-quotearg.c (use_quote_double_quotes): New function.
21335         (main): Test it.
21336
21337 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21338
21339         quotearg-tests: test escaping of embedded locale quotes
21340         * tests/test-quotearg.c (struct result_strings): Add member for
21341         new input.
21342         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
21343         (inputs): Add new input.
21344         (results_g): Add expected results.
21345         (flag_results): Likewise.
21346         (locale_results): Likewise.
21347         (compare_strings): Check those.
21348
21349 2009-08-23  Bruno Haible  <bruno@clisp.org>
21350
21351         Tests for module 'dup3'.
21352         * modules/dup3-tests: New file.
21353         * tests/test-dup3.c: New file.
21354
21355         New module 'dup3'.
21356         * lib/unistd.in.h (dup3): New declaration.
21357         * lib/dup3.c: New file.
21358         * m4/dup3.m4: New file.
21359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
21360         HAVE_DUP3.
21361         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
21362         * modules/dup3: New file.
21363         * doc/glibc-functions/dup3.texi: Mention the new module.
21364
21365 2009-08-23  Bruno Haible  <bruno@clisp.org>
21366
21367         Tweak the dup2 test.
21368         * tests/test-dup2.c (main): Create the test file empty. Verify that an
21369         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
21370         the test file is still empty. Fix argument order of lseek.
21371
21372 2009-08-23  Bruno Haible  <bruno@clisp.org>
21373
21374         Avoid test link errors when the modules getopt-gnu, gettext are used.
21375         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
21376         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21377
21378 2009-08-23  Bruno Haible  <bruno@clisp.org>
21379
21380         Fix getdtablesize() on mingw.
21381         * lib/getdtablesize.c (getdtablesize): Implement differently.
21382         * lib/unistd.in.h (getdtablesize): Improve comment.
21383
21384 2009-08-23  Bruno Haible  <bruno@clisp.org>
21385
21386         New module 'mkostemp'.
21387         Based on Ulrich Drepper's 2007-08-10 change in glibc.
21388         * lib/stdlib.in.h (mksotemp): New declaration.
21389         * lib/mkostemp.c: New file, from glibc with modifications.
21390         * lib/tempname.h (GT_FILE): Remove outdated comment.
21391         (gen_tempname): Add flags argument.
21392         * lib/tempname.c (__GT_BIGFILE): Remove macro.
21393         (__GT_FILE): Map to 1.
21394         (small_open, large_open): Remove macros.
21395         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
21396         * lib/mkstemp.c (mkstemp): Update.
21397         * lib/mkdtemp.c (mkdtemp): Likewise.
21398         * m4/mkostemp.m4: New file.
21399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
21400         HAVE_MKOSTEMP.
21401         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
21402         HAVE_MKOSTEMP.
21403         * modules/mkostemp: New file, based on modules/mkstemp.
21404         * doc/glibc-functions/mkostemp.texi: Mention the new module.
21405         * NEWS: Mention the change.
21406
21407 2009-08-23  Bruno Haible  <bruno@clisp.org>
21408
21409         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
21410         Reported by Eric Blake.
21411
21412 2009-08-23  Bruno Haible  <bruno@clisp.org>
21413
21414         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
21415         Reported by Eric Blake.
21416
21417 2009-08-23  Bruno Haible  <bruno@clisp.org>
21418
21419         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
21420         * modules/pipe2 (Depends-on): Likewise.
21421
21422 2009-08-23  Eric Blake  <ebb9@byu.net>
21423
21424         fcntl-h: add O_TTY_INIT support
21425         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
21426         * tests/test-fcntl-h.c (o): Test it.
21427         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21428
21429         fcntl-h: rename from fcntl, in preparation for fcntl(2)
21430         * modules/fcntl: Move <fcntl.h> header replacement...
21431         * modules/fcntl-h: ...to new name, so as not to collide with
21432         like-named function.
21433         * tests/test-fcntl.c: Rename...
21434         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
21435         * modules/fcntl-tests: Rename...
21436         * modules/fcntl-h-tests: ...to this.  Update test file name.
21437         * modules/chdir-long (Depends-on): Update clients.
21438         * modules/chdir-safer (Depends-on): Likewise.
21439         * modules/fcntl-safer (Depends-on): Likewise.
21440         * modules/fts (Depends-on): Likewise.
21441         * modules/mkancesdirs (Depends-on): Likewise.
21442         * modules/mkdir-p (Depends-on): Likewise.
21443         * modules/open (Depends-on): Likewise.
21444         * modules/savewd (Depends-on): Likewise.
21445         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
21446         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21447
21448 2009-08-22  Bruno Haible  <bruno@clisp.org>
21449
21450         * modules/binary-io (License): Relicense under LGPL.
21451         * modules/pipe2 (License): Likewise.
21452
21453 2009-08-22  Bruno Haible  <bruno@clisp.org>
21454
21455         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
21456         return value.
21457         * lib/pipe-filter-gi.c (filter_init): Likewise.
21458         Reported by Eric Blake.
21459
21460 2009-08-22  Bruno Haible  <bruno@clisp.org>
21461
21462         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
21463         * modules/pipe (Depends-on): Add pipe2.
21464
21465 2009-08-22  Bruno Haible  <bruno@clisp.org>
21466
21467         Tests for module 'pipe2'.
21468         * modules/pipe2-tests: New file.
21469         * tests/test-pipe2.c: New file.
21470
21471         New module 'pipe2'.
21472         * lib/unistd.in.h (pipe2): New declaration.
21473         * lib/pipe2.c: New file.
21474         * m4/pipe2.m4: New file.
21475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
21476         HAVE_PIPE2.
21477         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
21478         * modules/pipe2: New file.
21479         * doc/glibc-functions/pipe2.texi: Mention the new module.
21480
21481 2009-08-22  Bruno Haible  <bruno@clisp.org>
21482
21483         Reference some new glibc functions.
21484         * doc/glibc-functions/accept4.texi: New file.
21485         * doc/glibc-functions/dup3.texi: New file.
21486         * doc/glibc-functions/mkostemp.texi: New file.
21487         * doc/glibc-functions/pipe2.texi: New file.
21488         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
21489         (Glibc sys/socket.h): Refer to accept4.
21490         (Glibc unistd.h): Refer to dup3, pipe2.
21491         Reported by Eric Blake.
21492
21493 2009-08-22  Jim Meyering  <meyering@redhat.com>
21494             Bruno Haible  <bruno@clisp.org>
21495
21496         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
21497         This makes it so packages using automake-1.11's silent-rules option
21498         can print e.g., a single "GEN    configmake.h" line, rather than
21499         the 30+ statements that perform the job.  If you want to see the
21500         actual commands, you can still run "make V=1".
21501         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
21502         so that make output is abbreviated when those variables are defined
21503         appropriately.
21504         * modules/argz: Likewise.
21505         * modules/arpa_inet: Likewise.
21506         * modules/byteswap: Likewise.
21507         * modules/configmake: Likewise.
21508         * modules/dirent: Likewise.
21509         * modules/errno: Likewise.
21510         * modules/fcntl: Likewise.
21511         * modules/float: Likewise.
21512         * modules/fnmatch: Likewise.
21513         * modules/getopt-posix: Likewise.
21514         * modules/glob: Likewise.
21515         * modules/iconv_open: Likewise.
21516         * modules/inttypes: Likewise.
21517         * modules/localcharset: Likewise.
21518         * modules/locale: Likewise.
21519         * modules/math: Likewise.
21520         * modules/netdb: Likewise.
21521         * modules/netinet_in: Likewise.
21522         * modules/poll: Likewise.
21523         * modules/posix_spawnp-tests: Likewise.
21524         * modules/sched: Likewise.
21525         * modules/search: Likewise.
21526         * modules/selinux-h: Likewise.
21527         * modules/signal: Likewise.
21528         * modules/spawn: Likewise.
21529         * modules/stdarg: Likewise.
21530         * modules/stdbool: Likewise.
21531         * modules/stddef: Likewise.
21532         * modules/stdint: Likewise.
21533         * modules/stdio: Likewise.
21534         * modules/stdlib: Likewise.
21535         * modules/string: Likewise.
21536         * modules/strings: Likewise.
21537         * modules/sys_file: Likewise.
21538         * modules/sys_ioctl: Likewise.
21539         * modules/sys_select: Likewise.
21540         * modules/sys_socket: Likewise.
21541         * modules/sys_stat: Likewise.
21542         * modules/sys_time: Likewise.
21543         * modules/sys_times: Likewise.
21544         * modules/sys_utsname: Likewise.
21545         * modules/sys_wait: Likewise.
21546         * modules/sysexits: Likewise.
21547         * modules/time: Likewise.
21548         * modules/unistd: Likewise.
21549         * modules/wchar: Likewise.
21550         * modules/wctype: Likewise.
21551
21552 2009-08-22  Jim Meyering  <meyering@redhat.com>
21553
21554         announce-gen: detect write failure
21555         * build-aux/announce-gen: Add Coda at end.
21556         Remove equivalent-but-more-verbose block at top.
21557
21558 2009-08-19  Akim Demaille  <demaille@gostai.com>
21559
21560         bootstrap: --help to stdout.
21561         * bootstrap (usage): Don't send --help to stderr.
21562         Use a here doc instead of a long string.
21563
21564 2009-08-21  Eric Blake  <ebb9@byu.net>
21565
21566         test-popen-safer: split from test-popen
21567         * tests/test-popen.c (main): Move...
21568         * tests/test-popen.h: ...into new file.
21569         * tests/test-popen-safer2.c: New file.
21570         * modules/popen-tests (Files): Add test-popen.h.
21571         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
21572         Suggested by Bruno Haible.
21573
21574         test-fcntl-safer: split from test-open
21575         * tests/test-open.c (main): Move...
21576         * tests/test-open.h: ...into new file.
21577         * tests/test-fcntl-safer.c: New file.
21578         * modules/open-tests (Files): Add test-open.h.
21579         * modules/fcntl-safer-tests: New file.
21580         Suggested by Bruno Haible.
21581
21582         test-fopen-safer: split from test-fopen
21583         * tests/test-fopen.c (main): Move...
21584         * tests/test-fopen.h: ...into new file.
21585         * tests/test-fopen-safer.c: New file.
21586         * modules/fopen-tests (Files): Add test-fopen.h.
21587         * modules/fopen-safer-tests: New file.
21588         Suggested by Bruno Haible.
21589
21590 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21591
21592         popen-safer: test O_CLOEXEC at run-time.
21593         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
21594
21595 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21596
21597         fcntl: move more flags to the header
21598         * lib/cloexec.c: Do not define FD_CLOEXEC here.
21599         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
21600         * lib/fcntl.in.h: Do both things here.
21601
21602 2009-08-21  Jim Meyering  <meyering@redhat.com>
21603
21604         consistently remove $@-t before redirecting to it
21605         * modules/argz: Remove $@-t and $@ before redirecting to the former.
21606         * modules/alloca-opt: Likewise.
21607         * modules/byteswap: Likewise.
21608         * modules/fnmatch: Likewise.
21609         * modules/getopt-posix: Likewise.
21610         * modules/glob: Likewise.
21611         * modules/poll: Likewise.
21612         * modules/posix_spawnp-tests: Likewise.
21613         * modules/sys_socket: Likewise.
21614         * modules/sysexits: Likewise.
21615
21616 2009-08-21  Eric Blake  <ebb9@byu.net>
21617
21618         popen: simplify access to original popen
21619         * lib/popen.c (rpl_popen): No need to worry about popen being a
21620         macro.
21621         Reported by Bruno Haible.
21622
21623 2009-08-20  Eric Blake  <ebb9@byu.net>
21624
21625         build: avoid some compiler warnings
21626         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
21627         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
21628         type.
21629         (new_exclude_segment, excluded_file_pattern_p)
21630         (excluded_file_name_p): Reduce scope.
21631         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
21632         old-style declaration.
21633
21634 2009-08-20  Simon Josefsson  <simon@josefsson.org>
21635
21636         * tests/test-exclude1.sh: Handle Windows EOL.
21637         * tests/test-exclude2.sh: Likewise.
21638         * tests/test-exclude3.sh: Likewise.
21639         * tests/test-exclude4.sh: Likewise.
21640         * tests/test-exclude5.sh: Likewise.
21641         * tests/test-exclude6.sh: Likewise.
21642         * tests/test-exclude7.sh: Likewise.
21643
21644 2009-08-19  Akim Demaille  <demaille@gostai.com>
21645
21646         bootstrap: find sha1sum when named gsha1sum.
21647         * bootstrap (find_tool): New.
21648         ($SHA1SUM): New.
21649         Use it.
21650
21651 2009-08-20  Jim Meyering  <meyering@redhat.com>
21652
21653         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
21654         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
21655         expression that converts "." in a file name to "\." in the resulting
21656         regexp.  Start with a dummy statement, so that prior shell variable
21657         definitions are expanded portably.  Reported by Simon Josefsson.
21658
21659 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
21660
21661         Fix polling for writeability of a screen buffer.
21662         * lib/poll.c: Distinguish input and screen buffers for the
21663         Win32 implementation.
21664         * lib/select.c: Likewise.
21665
21666 2009-08-19  Eric Blake  <ebb9@byu.net>
21667
21668         popen-safer: prevent popen from clobbering std descriptors
21669         * modules/popen-safer: New file.
21670         * lib/popen-safer.c: Likewise.
21671         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
21672         * lib/stdio--.h (popen): Provide override.
21673         * lib/stdio-safer.h (popen_safer): Provide declaration.
21674         * tests/test-popen.c (includes): Partially test this.
21675         * modules/popen-safer-tests: New file, for more tests.
21676         * tests/test-popen-safer.c: Likewise.
21677         * MODULES.html.sh (file stream based Input/Output): Mention it.
21678
21679         tests: test some of the *-safer modules
21680         * modules/fopen-safer (Depends-on): Add fopen.
21681         * modules/fcntl-safer (Depends-on): Add fcntl.
21682         * modules/stdlib-safer (Depends-on): Add stdlib.
21683         (configure.ac): Set indicator.
21684         * modules/unistd-safer (configure.ac): Likewise.
21685         * modules/tmpfile-safer (configure.ac): Likewise.
21686         (Depends-on): Add tmpfile.
21687         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
21688         active.
21689         * tests/test-fopen.c (includes): Test safer versions when they are
21690         in use.
21691         * tests/test-open.c (includes): Likewise.
21692
21693         popen: fix cygwin 1.5 bug when stdin closed
21694         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
21695         * modules/popen: New file.
21696         * modules/popen-tests: Likewise.
21697         * tests/test-popen.c: Likewise.
21698         * m4/popen.m4: Likewise.
21699         * lib/popen.c: Likewise.
21700         * lib/stdio.in.h (popen): New declaration.
21701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
21702         * modules/stdio (Makefile.am): Likewise.
21703         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
21704
21705 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
21706
21707         maint.mk: give full control over update-copyright exclusions
21708         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
21709         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
21710         (update-copyright): Don't force inclusion of top-level
21711         ChangeLog.  Don't force exclusion of all COPYING files, but make
21712         them the default exclusion instead.
21713
21714 2009-08-16  Bruno Haible  <bruno@clisp.org>
21715
21716         Fix test failures on Solaris 10.
21717         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
21718         tests when Solaris iconv() is used.
21719         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21720         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21721         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21722         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21723         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21724
21725 2009-08-16  Bruno Haible  <bruno@clisp.org>
21726
21727         Fix test failures on Solaris 10.
21728         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
21729         'tr' program and pass it as first argument.
21730         * tests/test-pipe-filter-gi1.sh: Likewise.
21731         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
21732         program as first argument.
21733         * tests/test-pipe-filter-gi1.c (main): Likewise.
21734
21735 2009-08-16  Eric Blake  <ebb9@byu.net>
21736
21737         fpurge: fix previous commits
21738         * modules/fpurge (Makefile.am): Make replacement conditional,
21739         partially reverting 2007-04-29 change; missed in previous
21740         attempt.
21741         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
21742         is missing.
21743
21744 2009-08-16  Bruno Haible  <bruno@clisp.org>
21745
21746         Clarify fpurge's effect on the file position.
21747         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
21748         * tests/test-fpurge.c (main): Make a second pass for checking the file
21749         position.
21750
21751 2009-08-16  Bruno Haible  <bruno@clisp.org>
21752
21753         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
21754         declaration of fpurge is missing.
21755         * tests/test-fpurge.c (main): Check that the file has not more contents
21756         than expected. Close the file before removing it.
21757
21758 2009-08-15  Eric Blake  <ebb9@byu.net>
21759
21760         fpurge: don't wrap working cygwin implementation
21761         * lib/fpurge.c (fpurge): Fix comment typo.
21762         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
21763         1.7 to avoid replacement.
21764         * tests/test-fpurge.c (main): Enhance test.
21765
21766 2009-08-15  Eric Blake  <ebb9@byu.net>
21767         and Jim Meyering  <meyering@redhat.com>
21768
21769         test-update-copyright: skip if perl is insufficient
21770         * tests/test-update-copyright.sh: Failure to run maintainer tool
21771         should not cause testsuite failure on cygwin 1.5.
21772
21773 2009-08-14  Eric Blake  <ebb9@byu.net>
21774
21775         doc: mention more functions added in cygwin 1.7.0
21776         * doc/posix-headers/limits.texi (limits.h): Update for recent
21777         cygwin additions.
21778         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
21779         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
21780         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
21781         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
21782         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
21783
21784 2009-08-14  Eric Blake  <ebb9@byu.net>
21785
21786         maint.mk: simplify update-copyright rule
21787         * top/maint.mk (update-copyright-local): Delete, and document how
21788         to do it in cfg.mk instead.
21789         (update-copyright-exclude-regexp): Delete, and document how to do
21790         it in .x-update-copyright instead.
21791         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
21792         exclude ChangeLog.
21793
21794 2009-08-14  Bruno Haible  <bruno@clisp.org>
21795
21796         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
21797
21798 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21799
21800         maint.mk: support update-copyright-env
21801         * top/maint.mk (update-copyright-env): Define place-holder.
21802         (update-copyright): Expand $(update-copyright-env) before
21803         invoking update-copyright.
21804
21805 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21806
21807         update-copyright: implement forced reformatting
21808         * build-aux/update-copyright: Implement and document
21809         UPDATE_COPYRIGHT_FORCE.
21810         * tests/test-update-copyright.sh: Test it.
21811
21812 2009-08-14  Eric Blake  <ebb9@byu.net>
21813         and Bruno Haible  <bruno@clisp.org>
21814
21815         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
21816         * tests/test-locale.c: Revert previous patch related to NULL.
21817         * tests/test-stdio.c: Likewise.
21818         * tests/test-stdlib.c: Likewise.
21819         * tests/test-string.c: Likewise.
21820         * tests/test-unistd.c: Likewise.
21821         * modules/time-tests (Depends-on): Add verify.
21822         * modules/wchar-tests (Depends-on): Likewise.
21823         * tests/test-time.c: Test for NULL compliance.
21824         * tests/test-wchar.c: Likewise.
21825         * modules/locale (Depends-on): Add stddef.
21826         * modules/stdio (Depends-on): Likewise.
21827         * modules/stdlib (Depends-on): Likewise.
21828         * modules/string (Depends-on): Likewise.
21829         * modules/time (Depends-on): Likewise.
21830         * modules/unistd (Depends-on): Likewise.
21831         * modules/wchar (Depends-on): Likewise.
21832         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
21833         * lib/stdlib.in.h (includes): Likewise.
21834         * lib/string.in.h (includes): Likewise.
21835         * lib/time.in.h (includes): Likewise.
21836         * lib/unistd.in.h (includes): Likewise.
21837         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
21838         replaced.
21839         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21840         * m4/stddef_h.m4: New file.
21841         * modules/stddef: Likewise.
21842         * lib/stddef.in.h: Likewise.
21843         * modules/stddef-tests: Likewise.
21844         * tests/test-stddef.c: Likewise.
21845         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
21846         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
21847         * doc/posix-headers/locale.texi (locale.h): Likewise.
21848         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
21849         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21850         * doc/posix-headers/string.texi (string.h): Likewise.
21851         * doc/posix-headers/time.texi (time.h): Likewise.
21852         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
21853         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
21854
21855 2009-08-14  Eric Blake  <ebb9@byu.net>
21856
21857         doc: improve git diff of texinfo files
21858         * .gitattributes: Add rule for *.texi files, with hint on how to
21859         use it.
21860         Copied from m4, and based on a report by Bruno Haible.
21861
21862 2009-08-14  Bruno Haible  <bruno@clisp.org>
21863
21864         Disable multithread support by default on Cygwin 1.5.x for real.
21865         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
21866
21867 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21868
21869         update-copyright: much ado about intervals
21870         * build-aux/update-copyright: Implement and document
21871         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
21872         of copyright year intervals.
21873         Also, document UPDATE_COPYRIGHT_YEAR.
21874         * tests/test-update-copyright.sh: Test it.
21875
21876         update-copyright: convert 2-digit to 4-digit years
21877         * build-aux/update-copyright: Implement and document.
21878         * tests/test-update-copyright.sh: Update.
21879
21880 2009-08-14  Jim Meyering  <meyering@redhat.com>
21881
21882         test-exclude: avoid coreutils "make check" failure
21883         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
21884         just as in test-argmatch.c.
21885
21886 2009-08-13  Eric Blake  <ebb9@byu.net>
21887
21888         test-dup2: fix bad assumption
21889         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
21890         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
21891
21892         test-version-etc: fix CRLF portability issue
21893         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
21894         recognize \r.
21895         * tests/test-argp-version-etc-1.sh: Likewise.
21896
21897         getopt: update client modules
21898         * modules/argp (Depends-on): Use getopt-gnu.
21899         * modules/git-merge-changelog (Depends-on): Likewise.
21900         * modules/long-options (Depends-on): Likewise.
21901         * modules/xstrtol (Depends-on): Likewise.
21902
21903 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21904
21905         * tests/test-version-etc.sh: Don't fail on different
21906         project/version.  Don't fail on CRLF differences.  Rewrite to use
21907         multiple -e instead of multiple sed forks, suggested by Eric Blake
21908         <ebb9@byu.net>.
21909         * tests/test-argp-version-etc-1.sh: Likewise.
21910
21911 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21912
21913         * tests/test-version-etc.sh: Don't fail on different
21914         project/version.
21915
21916 2009-08-12  Bruno Haible  <bruno@clisp.org>
21917
21918         Tests for modules 'getopt-posix', 'getopt-gnu'.
21919         * modules/getopt-posix-tests: New file.
21920         * tests/test-getopt.c: New file.
21921         * tests/test-getopt.h: New file.
21922         * tests/test-getopt_long.h: New file.
21923
21924         New modules 'getopt-posix', 'getopt-gnu'.
21925         * modules/getopt-gnu: New file, renamed from modules/getopt.
21926         * modules/getopt-posix: New file.
21927         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
21928         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
21929         (gl_GETOPT): Remove macro.
21930         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
21931         Disable the test against BSD systems that declare optreset. Test
21932         against mingw bug. Test against lack of support of optional arguments
21933         on many platforms.
21934         * doc/glibc-headers/getopt.texi: Update module name and list of
21935         relevant platforms.
21936         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
21937         'getopt-gnu' and more portability problems.
21938         * NEWS: Mention the changes.
21939
21940 2009-08-12  Bruno Haible  <bruno@clisp.org>
21941
21942         Ensure that optarg etc. get declared by <unistd.h>.
21943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
21944         AC_USE_SYSTEM_EXTENSIONS.
21945         * modules/getopt (Depends-on): Add 'extensions'.
21946
21947 2009-08-12  Bruno Haible  <bruno@clisp.org>
21948
21949         Avoid test link errors.
21950         * modules/pipe-filter-ii-tests (Makefile.am): Define
21951         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
21952         * modules/pipe-filter-gi-tests (Makefile.am): Define
21953         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
21954         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21955
21956 2009-08-12  Bruno Haible  <bruno@clisp.org>
21957
21958         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
21959         gl_GETOPT_SUBSTITUTE before.
21960         (gl_GETOPT): Use it.
21961         * m4/argp.m4 (gl_ARGP): Update.
21962         Reported by Sergey Poznyakoff.
21963
21964         * m4/getopt.m4: Reorder macros.
21965         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
21966         (gl_GETOPT_SUBSTITUTE): Remove macro.
21967
21968 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21969
21970         Minor improvement in gitlog-to-changelog
21971
21972         * build-aux/gitlog-to-changelog: New option `--format' makes
21973         output format string configurable.
21974
21975 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21976
21977         Optimize exclude: use hash tables for non-wildcard patterns.
21978
21979         * lib/exclude.c: Include hash.h and mbuiter.h
21980         (struct exclude_pattern, exclude_segment): New data types.
21981         (struct exclude): Rewrite.
21982         (fnmatch_pattern_has_wildcards): New function.
21983         (new_exclude_segment, free_exclude_segment): New functions.
21984         (excluded_file_pattern_p, excluded_file_name_p): New functions.
21985         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
21986         * lib/exclude.h (is_fnmatch_pattern): New prototype.
21987         * modules/exclude: Depend on hash and mbuiter.
21988
21989         * modules/exclude-tests: New file.
21990         * tests/test-exclude.c: New file.
21991         * tests/test-exclude1.sh: New file.
21992         * tests/test-exclude2.sh: New file.
21993         * tests/test-exclude3.sh: New file.
21994         * tests/test-exclude4.sh: New file.
21995         * tests/test-exclude5.sh: New file.
21996         * tests/test-exclude6.sh: New file.
21997         * tests/test-exclude7.sh: New file.
21998
21999 2009-08-12  Bruno Haible  <bruno@clisp.org>
22000
22001         Ensure that getopt() gets declared by <unistd.h>.
22002         * lib/unistd.in.h: Conditionally include getopt.h.
22003         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
22004         Set GNULIB_UNISTD_H_GETOPT.
22005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22006         GNULIB_UNISTD_H_GETOPT.
22007         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
22008
22009 2009-08-12  Bruno Haible  <bruno@clisp.org>
22010
22011         Clarify logic.
22012         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
22013         gl_replace_getopt instead of GETOPT_H.
22014
22015 2009-08-12  Bruno Haible  <bruno@clisp.org>
22016
22017         * m4/getopt.m4: Add comments.
22018
22019 2009-08-12  Bruno Haible  <bruno@clisp.org>
22020
22021         Disable multithread support by default on Cygwin 1.5.x.
22022         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
22023         set gl_use_threads=no if not specified otherwise.
22024
22025 2009-08-11  Bruno Haible  <bruno@clisp.org>
22026
22027         Avoid compilation error on NetBSD 5.0.
22028         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
22029         * tests/test-stdio.c: Likewise.
22030         * tests/test-stdlib.c: Likewise.
22031         * tests/test-string.c: Likewise.
22032         * tests/test-unistd.c: Likewise.
22033         Reported by Greg Troxel <gdt@ir.bbn.com>
22034         at <https://savannah.gnu.org/support/?106973>.
22035
22036 2009-08-11  Bruno Haible  <bruno@clisp.org>
22037
22038         * modules/dup2-tests (Depends-on): Remove close.
22039
22040         Undo 2009-07-19 commit.
22041         * modules/acl-tests (Depends-on): Remove close.
22042         * modules/binary-io-tests (Depends-on): Likewise.
22043         * modules/closein-tests (Depends-on): Likewise.
22044         * modules/flock-tests (Depends-on): Likewise.
22045         * modules/fsync-tests (Depends-on): Likewise.
22046         * modules/lseek-tests (Depends-on): Likewise.
22047         * modules/pipe-tests (Depends-on): Likewise.
22048         * modules/posix_spawn-tests (Depends-on): Likewise.
22049         * modules/posix_spawnp-tests (Depends-on): Likewise.
22050         * modules/stat-time-tests (Depends-on): Likewise.
22051         * modules/yesno-tests (Depends-on): Likewise.
22052
22053 2009-08-10  Bruno Haible  <bruno@clisp.org>
22054
22055         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
22056
22057 2009-08-10  Bruno Haible  <bruno@clisp.org>
22058
22059         Fix a gcc warning.
22060         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
22061
22062 2009-08-10  Bruno Haible  <bruno@clisp.org>
22063
22064         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
22065         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
22066         not only the first time.
22067         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
22068         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
22069         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
22070         is 1, not only the the first time.
22071
22072 2009-08-10  Bruno Haible  <bruno@clisp.org>
22073
22074         Make it possible to use module 'gethostname' without module 'close'.
22075         * lib/unistd.in.h (close): Evoke a link error only if
22076         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
22077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22078         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22079         * modules/unistd (Makefile.am): Substitute
22080         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22081         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
22082         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
22083         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22084         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22085         * modules/sys_ioctl (Makefile.am): Substitute
22086         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22087         * modules/socket (configure.ac): On native Windows, set
22088         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
22089         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22090         Reported by Sam Steingold <sds@gnu.org>.
22091
22092 2009-08-10  Bruno Haible  <bruno@clisp.org>
22093
22094         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
22095         * modules/ioctl (configure.ac): Likewise.
22096
22097 2009-08-10  Bruno Haible  <bruno@clisp.org>
22098
22099         Avoid collision between gnulib wrapper and libintl wrapper.
22100         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
22101         already defined in intl/printf.c.
22102         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
22103         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
22104
22105 2009-08-09  Bruno Haible  <bruno@clisp.org>
22106
22107         Make <sys/select.h> really self-contained, also on Solaris 10.
22108         * lib/sys_select.in.h: Include <string.h>.
22109         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
22110         Solaris 10 problem.
22111         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
22112         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
22113         Reported by Jim Meyering.
22114
22115 2009-08-09  Bruno Haible  <bruno@clisp.org>
22116
22117         Avoid warnings from 'aclocal' that are due to a use of macro name
22118         AM_XGETTEXT_OPTION that is not defined in automake.
22119         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
22120         automake.
22121         * modules/error (configure.ac): Likewise.
22122         * modules/propername (configure.ac): Likewise.
22123         * modules/vasprintf (configure.ac): Likewise.
22124         * modules/verror (configure.ac): Likewise.
22125         * modules/xprintf (configure.ac): Likewise.
22126         * modules/xvasprintf (configure.ac): Likewise.
22127
22128 2009-08-08  Bruno Haible  <bruno@clisp.org>
22129
22130         Avoid compilation error in C++ mode.
22131         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
22132         Reported by Sam Steingold <sds@gnu.org>.
22133
22134 2009-08-08  Bruno Haible  <bruno@clisp.org>
22135
22136         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
22137         for the various Unix platforms.
22138         * doc/posix-headers/limits.texi: Update platforms list regarding
22139         HOST_NAME_MAX.
22140         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22141
22142 2009-08-07  Jim Meyering  <meyering@redhat.com>
22143
22144         selinux-at: fix typo in a comment
22145         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
22146         Spotted by Paolo Bonzini.
22147
22148         selinux-at: remove redundant m4 code, add documentation
22149         * modules/selinux-at (configure.ac): Remove redundant code.
22150         LIB_SELINUX is already set via the dependent module, selinux-h.
22151         (Include): Add quotes around selinux-at.h.
22152         * lib/selinux-at.h: Add documentation.
22153         Reported by Bruno Haible in
22154         http://marc.info/?l=gnulib-bug&m=124958988300749
22155
22156 2009-08-07  Bruno Haible  <bruno@clisp.org>
22157
22158         Avoid link error on MacOS X 10.3 and 10.4.
22159         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
22160         on non-ELF systems.
22161         * lib/argp-pv.c (argp_program_version): Likewise.
22162         Reported by Simon Josefsson.
22163
22164 2009-08-07  Simon Josefsson  <simon@josefsson.org>
22165
22166         * tests/test-version-etc.sh: Use $EXEEXT.
22167
22168 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
22169
22170         update-copyright: update documentation to point to maint.mk
22171         * build-aux/update-copyright: Here.
22172
22173 2009-08-06  Jim Meyering  <meyering@redhat.com>
22174
22175         maint.mk: support update-copyright-local
22176         * top/maint.mk (update-copyright-local): Define place-holder.
22177         (update-copyright): Depend on $(update-copyright-local).
22178
22179 2009-08-06  Jim Meyering  <meyering@redhat.com>
22180
22181         selinux-at: new module
22182         Initially written for coreutils, this module will soon be
22183         used by findutils, too.
22184         * MODULES.html.sh [Misc]: Add selinux-at.
22185         * lib/selinux-at.h: New file, from coreutils.
22186         * lib/selinux-at.c: Likewise.
22187         * modules/selinux-at: Likewise.
22188         (License): Change from LGPL to GPL, since it depends
22189         on the GPL'd openat module.
22190
22191         doc: update README
22192         * README: Remove references to cogito.
22193         Remove cvs-repo-updating instructions from 2007.
22194         Don't imply that CVS is better if you have limited disk space.
22195
22196 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22197
22198         update-copyright: support C-style comments
22199         * build-aux/update-copyright: Implement and document.
22200         * tests/test-update-copyright.sh: Test.
22201
22202 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22203
22204         update-copyright: support omitted "(C)"
22205         * build-aux/update-copyright: Implement and document.  Also,
22206         allow variable whitespace before "(C)".
22207         * tests/test-update-copyright.sh: Test.
22208
22209 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22210
22211         update-copyright: don't trip on non-FSF copyright statements
22212         * build-aux/update-copyright: Fix so that the first correctly
22213         formatted FSF copyright statement is recognized no matter what
22214         appears before it.  Update documentation.
22215         * tests/test-update-copyright.sh: Test that.
22216
22217 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22218
22219         update-copyright: clean up code a little
22220         * build-aux/update-copyright: Append "_re" to the name of any
22221         variable holding a regular expression.
22222         Replace "old" and "new" with "stmt" in variable names.
22223         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
22224         handled correctly.
22225         Format code more consistently.
22226
22227 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22228
22229         update-copyright-tests: improve portability
22230         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
22231         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
22232
22233 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22234
22235         update-copyright: support @copyright{} and &copy;
22236         * build-aux/update-copyright: Implement and document.
22237         * tests/test-update-copyright.sh: Test.
22238
22239 2009-08-04  Jim Meyering  <meyering@redhat.com>
22240
22241         update-copyright-tests: correctly test EOL=\r\n handling
22242         * tests/test-update-copyright.sh: Put \r at the end of some lines
22243         for the dos-eol tests.  Based on a patch by Joel E. Denny.
22244
22245         maint.mk: make update-copyright exclusion list more configurable
22246         * top/maint.mk (update-copyright): Default to excluding COPYING,
22247         but allow an override, in case someone does want to update that file.
22248
22249         maint.mk: don't update copyright date in COPYING
22250         * top/maint.mk (update-copyright): Exclude COPYING.
22251
22252         maint.mk: add a copyright-updating rule
22253         * top/maint.mk (update-copyright): New rule.
22254         Derived from coreutils/Makefile.am.
22255
22256         update-copyright: rename some variables
22257         * build-aux/update-copyright: Rename a few variables for clarity.
22258         Tweak syntax.  List Joel E. Denny as coauthor.
22259
22260 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22261
22262         update-copyright: fix bug for 2-digit last year and add tests
22263         * build-aux/update-copyright: Fix bug.
22264         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
22265         specified.
22266         * modules/update-copyright-tests: New
22267         * tests/test-update-copyright.sh: New.
22268
22269 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22270
22271         update-copyright: handle leading tabs in line prefix
22272         * build-aux/update-copyright: Count leading tabs as 8 spaces
22273         when computing margin.  This helps with the formatting of
22274         ChangeLogs, for example.
22275         Fix documentation a little.
22276
22277 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22278
22279         update-copyright: support EOL=\r\n
22280         * build-aux/update-copyright: Implement that.
22281
22282 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22283
22284         update-copyright: automatically format copyright statements
22285         * build-aux/update-copyright: Implement that.
22286         Also, be a little more predictable and safer by always failing
22287         when the full copyright format is not perfectly recognized as an
22288         unbroken whole.  Discussed at
22289         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
22290         Rewrite documentation.
22291
22292 2009-08-03  Bruno Haible  <bruno@clisp.org>
22293
22294         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
22295
22296 2009-08-02  Bruno Haible  <bruno@clisp.org>
22297
22298         Tests for module 'uname'.
22299         * modules/uname-tests: New file.
22300         * tests/test-uname.c: New file.
22301
22302         New module 'uname'.
22303         * lib/uname.c: New file.
22304         * m4/uname.m4: New file.
22305         * modules/uname: New file.
22306         * doc/posix-functions/uname.texi: Mention the new module.
22307
22308 2009-08-02  Bruno Haible  <bruno@clisp.org>
22309
22310         Tests for module 'sys_utsname'.
22311         * modules/sys_utsname-tests: New file.
22312         * tests/test-sys_utsname.c: New file.
22313
22314         New module 'sys_utsname'.
22315         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
22316         * m4/sys_utsname_h.m4: New file.
22317         * modules/sys_utsname: New file.
22318         * doc/posix-headers/sys_utsname.texi: Mention the new module.
22319
22320 2009-08-02  Bruno Haible  <bruno@clisp.org>
22321
22322         Implicitly initialize the sockets library.
22323         * lib/gethostname.c: Include sockets.h.
22324         (rpl_gethostname): Invoke gl_sockets_startup.
22325         * lib/socket.c: Include sockets.h.
22326         (rpl_socket): Invoke gl_sockets_startup.
22327         * modules/gethostname (Depends-on): Add sockets.
22328         * modules/socket (Depends-on): Likewise.
22329         * tests/test-poll.c: Don't include sockets.h.
22330         (main): Don't invoke gl_sockets_startup.
22331         * tests/test-select.c: Don't include sockets.h.
22332         (main): Don't invoke gl_sockets_startup.
22333
22334 2009-08-02  Bruno Haible  <bruno@clisp.org>
22335
22336         Allow multiple calls to gl_sockets_startup.
22337         * lib/sockets.c (initialized_sockets_version): New variable.
22338         (gl_sockets_startup): Do nothing if already called for this or a higher
22339         version.
22340         (gl_sockets_cleanup): Reset initialized_sockets_version.
22341
22342 2009-08-03  Simon Josefsson  <simon@josefsson.org>
22343
22344         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
22345         different project/version.
22346
22347 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
22348             Bruno Haible  <bruno@clisp.org>
22349
22350         Tests for module 'pipe-filter-gi'.
22351         * modules/pipe-filter-gi-tests: New file.
22352         * tests/test-pipe-filter-gi1.sh: New file.
22353         * tests/test-pipe-filter-gi1.c: New file.
22354         * tests/test-pipe-filter-gi2.sh: New file.
22355         * tests/test-pipe-filter-gi2-main.c: New file.
22356         * tests/test-pipe-filter-gi2-child.c: New file.
22357
22358         New module 'pipe-filter-gi'.
22359         * lib/pipe-filter-gi.c: New file.
22360         * modules/pipe-filter-gi: New file.
22361
22362 2009-08-02  Bruno Haible  <bruno@clisp.org>
22363             Paolo Bonzini  <bonzini@gnu.org>
22364
22365         Tests for module 'pipe-filter-ii'.
22366         * modules/pipe-filter-ii-tests: New file.
22367         * tests/test-pipe-filter-ii1.sh: New file.
22368         * tests/test-pipe-filter-ii1.c: New file.
22369         * tests/test-pipe-filter-ii2.sh: New file.
22370         * tests/test-pipe-filter-ii2-main.c: New file.
22371         * tests/test-pipe-filter-ii2-child.c: New file.
22372
22373         New module 'pipe-filter-ii'.
22374         * lib/pipe-filter.h: New file.
22375         * lib/pipe-filter-ii.c: New file.
22376         * lib/pipe-filter-aux.h: New file.
22377         * modules/pipe-filter-ii: New file.
22378
22379 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22380
22381         * lib/gc-libgcrypt.c: Change copyright to FSF.
22382         * lib/gc-gnulib.c: Likewise.
22383
22384 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
22385
22386         * lib/gethostname.c: Include limits.h.
22387
22388 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22389             Bruno Haible  <bruno@clisp.org>
22390
22391         Ensure HOST_NAME_MAX as part of the gethostname module.
22392         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
22393         define also HOST_NAME_MAX.
22394         * tests/test-gethostname.c: Include <limits.h>.
22395         (main): Check also HOST_NAME_MAX.
22396         * doc/posix-headers/limits.texi: Document the mingw problem.
22397
22398 2009-08-02  Bruno Haible  <bruno@clisp.org>
22399
22400         * lib/gethostname.c (gethostname): Fix handling of large len argument.
22401         Add comments.
22402
22403 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22404
22405         * lib/gethostname.c: Add Windows wrapper.
22406         * m4/gethostname.m4: Look for gethostname in -lws2_32.
22407         * modules/gethostname: Depend on sys_socket & errno, for also
22408         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
22409         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
22410
22411 2009-07-31  Jim Meyering  <meyering@redhat.com>
22412
22413         getloadavg: fix symbol name in comment
22414         * lib/getloadavg.c: Correct a typo I introduced when adding
22415         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
22416         Matt Kraai spotted the problem.
22417
22418 2009-07-29  Matt Kraai  <mkraai@beckman.com>
22419
22420         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
22421         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
22422         code also if ! defined N_NAME_POINTER.
22423         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
22424         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
22425         but the n_name member is a 12-byte array.
22426
22427 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
22428
22429         update-copyright: generalize comment handling
22430         * build-aux/update-copyright: Handle copyright statements
22431         within more comment styles.
22432         Document usage.
22433         Report any file with an external copyright holder or parse failure.
22434
22435 2009-07-29  Jim Meyering  <meyering@redhat.com>
22436
22437         mktime: correct setting of REPLACE_MKTIME
22438         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
22439
22440         update-copyright: new module
22441         * modules/update-copyright: New file.
22442         * build-aux/update-copyright: New file.
22443         * MODULES.html.sh (maint+release support): Add update-copyright.
22444
22445 2009-07-27  Bruno Haible  <bruno@clisp.org>
22446
22447         Fix compilation error when <ctime> is used and mktime is replaced.
22448         * lib/time.in.h (mktime): New declaration.
22449         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
22450         REPLACE_MKTIME instead of defining mktime in config.h.
22451         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
22452         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
22453         Reported by Ross McFarland <rwmcfa1@neces.com>.
22454
22455 2009-07-27  Bruno Haible  <bruno@clisp.org>
22456
22457         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
22458         Reported by Matt Kraai <mkraai@beckman.com>.
22459
22460 2009-07-25  Jim Meyering  <meyering@redhat.com>
22461
22462         maint.mk: avoid warnings about missing files
22463         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
22464         diagnostic when .prev-version does not exist.
22465         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
22466         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
22467         nonexistent cfg.mk.
22468         Suggestions from Simon Josefsson.
22469
22470 2009-07-25  Bruno Haible  <bruno@clisp.org>
22471
22472         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
22473         defined as macros. Needed on QNX 6.4.1.
22474         Reported by Matt Kraai <mkraai@beckman.com>.
22475
22476 2009-07-23  Jim Meyering  <meyering@redhat.com>
22477
22478         maint.mk: invoke "make dist" with a working value of XZ_OPT
22479         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
22480
22481 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
22482
22483         Make fseeko.c compile on QNX.
22484         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
22485
22486 2009-07-22  Peter Simons  <simons@cryp.to>
22487
22488         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
22489         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
22490         * lib/md4.h: Likewise.
22491         * lib/md5.h: Likewise.
22492         * lib/sha1.h: Likewise.
22493         * lib/sha256.h: Likewise.
22494         * lib/sha512.h: Likewise.
22495
22496         tests-sha1: don't assign literal string to 'char *' variable
22497         * tests/test-sha1.c (main): Declare locals with "const" to match
22498         attributes of the right hand side.
22499
22500 2009-07-21  Eric Blake  <ebb9@byu.net>
22501
22502         dup2: fix more mingw problems
22503         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
22504         fd to itself.
22505         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22506         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
22507         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
22508         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
22509         care of mingw bugs.
22510
22511 2009-07-21  Jim Meyering  <meyering@redhat.com>
22512
22513         vc-list-files: avoid failure when /bin/sh is dash
22514         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
22515         On some Debian based systems, /bin/sh is a symlink to dash, and running
22516         this command would omit the "/" following each 'tests' prefix:
22517           dash -x build-aux/vc-list-files -C . tests
22518         That is because bash and dash work differently:
22519           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
22520           bash ok
22521           dash odd
22522
22523 2009-07-21  Eric Blake  <ebb9@byu.net>
22524
22525         dup2-tests: test previous patch
22526         * modules/dup2-tests: New file.
22527         * tests/test-dup2.c: Likewise.
22528         * tests/test-open.c (main): Avoid unspecified behavior.
22529         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
22530         test.
22531
22532         dup2: work around mingw and cygwin 1.5 bug
22533         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
22534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22535         * modules/unistd (Makefile.am): Substitute it.
22536         * lib/unistd.in.h (dup2): Declare the replacement.
22537         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
22538         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
22539         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
22540         * modules/execute (Depends-on): Add dup2.
22541         * modules/fseterr (Depends-on): Likewise.
22542         * modules/pipe (Depends-on): Likewise.
22543         * modules/posix_spawn-internal (Depends-on): Likewise.
22544
22545 2009-07-21  Bruno Haible  <bruno@clisp.org>
22546
22547         * modules/.gitattributes: New file.
22548
22549 2009-07-20  Bruno Haible  <bruno@clisp.org>
22550
22551         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
22552         (main): Use it.
22553
22554 2009-07-20  Eric Blake  <ebb9@byu.net>
22555
22556         test-pipe: make a bit more robust.
22557         * tests/test-pipe.c (myerr): Allow error messages regardless of
22558         what we do to stderr.
22559         (test_pipe): Rearrange to avoid deadlock.
22560         (child_main): Try a larger read, to ensure we avoided deadlock.
22561         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
22562         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
22563         if misused.
22564
22565 2009-07-19  Jim Meyering  <meyering@redhat.com>
22566
22567         fts: avoid false-positive cycle-detection
22568         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
22569         for each new command line argument.
22570
22571 2009-07-19  Bruno Haible  <bruno@clisp.org>
22572
22573         Fix build error on mingw with the modules sys_select and unistd.
22574         * modules/acl-tests (Depends-on): Add close.
22575         * modules/binary-io-tests (Depends-on): Likewise.
22576         * modules/closein-tests (Depends-on): Likewise.
22577         * modules/flock-tests (Depends-on): Likewise.
22578         * modules/fsync-tests (Depends-on): Likewise.
22579         * modules/lseek-tests (Depends-on): Likewise.
22580         * modules/pipe-tests (Depends-on): Likewise.
22581         * modules/posix_spawn-tests (Depends-on): Likewise.
22582         * modules/posix_spawnp-tests (Depends-on): Likewise.
22583         * modules/stat-time-tests (Depends-on): Likewise.
22584         * modules/yesno-tests (Depends-on): Likewise.
22585
22586 2009-07-19  Bruno Haible  <bruno@clisp.org>
22587
22588         Unify conditionals.
22589         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
22590         macros, not at the compiler macros.
22591         * lib/pipe.c: Likewise.
22592         * lib/execute.c: Likewise.
22593         * lib/spawni.c: Likewise.
22594
22595 2009-07-19  Bruno Haible  <bruno@clisp.org>
22596
22597         Fix handling of closed stdin/stdout/stderr on mingw.
22598         * lib/w32spawn.h: Include unistd.h.
22599         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
22600         file descriptor with O_NOINHERIT flag.
22601         (fd_safer_noinherit): New function, based on fd-safer.c.
22602         (dup_safer_noinherit): New function, based on dup-safer.c.
22603         (undup_safer_noinherit): New function.
22604         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
22605         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
22606         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
22607         instead of fd_safer.
22608         * tests/test-pipe.c: Include <windows.h>.
22609         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
22610
22611         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
22612         from main.
22613         (test_pipe): Pass an extra argument for disambiguation.
22614         (main): Invoke parent_main or child_main.
22615
22616         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
22617         consistently.
22618
22619 2009-07-18  Eric Blake  <ebb9@byu.net>
22620
22621         test-pipe: fix mingw build
22622         * tests/test-pipe.c (main): Avoid fcntl on mingw.
22623
22624 2009-07-18  Bruno Haible  <bruno@clisp.org>
22625
22626         * modules/pipe-tests (Makefile.am): Fix typo.
22627
22628 2009-07-18  Eric Blake  <ebb9@byu.net>
22629
22630         error: fix mingw build
22631         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
22632         Reported by Bruno Haible.
22633
22634         error: avoid undefined use of stdout
22635         * lib/error.c (error, error_at_line): Check that fd 1 is open
22636         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
22637         is handling faults and the close_stdout module wants to report the
22638         detection of closed stdout as an error.
22639
22640 2009-07-17  Eric Blake  <ebb9@byu.net>
22641
22642         pipe: be robust in face of closed fds
22643         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
22644         should cause child to misbehave.
22645         * modules/pipe-tests: New module.
22646         * tests/test-pipe.c: New file.
22647         * tests/test-pipe.sh: New file.
22648         Reported by Akim Demaille.
22649
22650 2009-07-14  Bruno Haible  <bruno@clisp.org>
22651
22652         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
22653         Reported by anonymous kc.
22654
22655 2009-07-07  Jim Meyering  <meyering@redhat.com>
22656
22657         maint.mk: don't look for translatable strings in *.m4 or *.mk
22658         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
22659         when searching for translatable strings.
22660
22661 2009-07-05  Jim Meyering  <meyering@redhat.com>
22662
22663         remove superfluous parentheses in STREQ definition
22664         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
22665         * lib/getugroups.c (STREQ): Likewise.
22666         * lib/fnmatch.c (STREQ): Likewise.
22667         Spotted by Bruno Haible.
22668
22669 2009-07-04  Jim Meyering  <meyering@redhat.com>
22670
22671         argv-iter: new module
22672         * MODULES.html.sh: Add argv-iter.
22673         * lib/argv-iter.c, lib/argv-iter.h: New files.
22674         * modules/argv-iter: New file.
22675         * modules/argv-iter-tests: New file.
22676         * tests/test-argv-iter.c: Test it.
22677
22678 2009-07-04  Bruno Haible  <bruno@clisp.org>
22679
22680         Fix assertion.
22681         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
22682         contains more exact copies of a given entry than file2, leave the extra
22683         copies unpaired rather than aborting.
22684         Reported by Eric Blake.
22685
22686 2009-07-02  Bruno Haible  <bruno@clisp.org>
22687
22688         Speedup git-merge-changelog for git cherry-pick.
22689         * lib/git-merge-changelog.c (struct entries_mapping): New type.
22690         (entries_mapping_get): New function, extracted from compute_mapping.
22691         (entries_mapping_reverse_get): New function.
22692         (compute_mapping): Add a 'full' argument. Return the result in a
22693         'struct entries_mapping'.
22694         (main): Update. Access the mappings through entries_mapping_get.
22695         Reported by Eric Blake.
22696
22697 2009-07-02  Bruno Haible  <bruno@clisp.org>
22698
22699         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
22700         best_i.
22701
22702 2009-07-02  Bruno Haible  <bruno@clisp.org>
22703
22704         Speed up approximate search for matching ChangeLog entries.
22705         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
22706         argument. Call fstrcmp_bounded instead of fstrcmp.
22707         (compute_mapping, try_split_merged_entry, main): Update callers.
22708
22709 2009-07-02  Bruno Haible  <bruno@clisp.org>
22710
22711         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
22712
22713 2009-06-30  Bruno Haible  <bruno@clisp.org>
22714
22715         Reduce the number of uc_is_cased calls.
22716         * lib/unicase.h (casing_suffix_context_t): Add
22717         'first_char_except_ignorable' field.
22718         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
22719         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
22720         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
22721         Update initializer.
22722         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
22723         case-ignorable characters.
22724         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
22725         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
22726         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
22727         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
22728         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
22729
22730 2009-06-30  Bruno Haible  <bruno@clisp.org>
22731
22732         Tests for module 'unicase/ignorable'.
22733         * modules/unicase/ignorable-tests: New file.
22734         * tests/unicase/test-ignorable.c: New file, generated by
22735         gen-uni-tables.
22736
22737         Tests for module 'unicase/cased'.
22738         * modules/unicase/cased-tests: New file.
22739         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
22740         * tests/unicase/test-predicate-part1.h: New file, derived from
22741         tests/unictype/test-predicate-part1.h.
22742         * tests/unicase/test-predicate-part2.h: New file, same as
22743         tests/unictype/test-predicate-part2.h.
22744
22745         Fix evaluation of "Before C" condition of FINAL_SIGMA.
22746         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
22747         (output_casing_properties): New function.
22748         (main): Call it.
22749         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
22750         * lib/unicase/cased.c: Include unictype/bitmap.h.
22751         (uc_is_cased): Define through a bitmap lookup.
22752         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
22753         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
22754         (uc_is_case_ignorable): Define through a bitmap lookup.
22755         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
22756         lib/unictype/bitmap.h.
22757         (Depends-on): Add inline. Clean up.
22758         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
22759         lib/unictype/bitmap.h.
22760         (Depends-on): Add inline. Clean up.
22761         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
22762         recognition.
22763         * tests/unicase/test-u16-tolower.c (main): Likewise.
22764         * tests/unicase/test-u32-tolower.c (main): Likewise.
22765
22766 2009-06-30  Bruno Haible  <bruno@clisp.org>
22767
22768         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
22769         * lib/unicase/u16-casemap.c: Likewise.
22770         * lib/unicase/u32-casemap.c: Likewise.
22771
22772 2009-06-29  Bruno Haible  <bruno@clisp.org>
22773
22774         Define u32_casefold as a wrapper around u32_ct_casefold.
22775         * lib/unicase/u32-casefold.c: Update.
22776         * modules/unicase/u32-casefold (Depends-on): Add
22777         unicase/u32-ct-casefold, unicase/empty-prefix-context,
22778         unicase/empty-suffix-context. Clean up.
22779
22780         Define u16_casefold as a wrapper around u16_ct_casefold.
22781         * lib/unicase/u16-casefold.c: Update.
22782         * modules/unicase/u16-casefold (Depends-on): Add
22783         unicase/u16-ct-casefold, unicase/empty-prefix-context,
22784         unicase/empty-suffix-context. Clean up.
22785
22786         Define u8_casefold as a wrapper around u8_ct_casefold.
22787         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
22788         * lib/unicase/u8-casefold.c: Update.
22789         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
22790         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22791
22792         Define u32_totitle as a wrapper around u32_ct_totitle.
22793         * lib/unicase/u32-totitle.c: Update.
22794         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
22795         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22796
22797         Define u16_totitle as a wrapper around u16_ct_totitle.
22798         * lib/unicase/u16-totitle.c: Update.
22799         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
22800         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22801
22802         Define u8_totitle as a wrapper around u8_ct_totitle.
22803         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
22804         functions.
22805         (FUNC): Delegate to U_CT_TOTITLE.
22806         * lib/unicase/u8-totitle.c: Update.
22807         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
22808         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22809
22810         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
22811         invocation.
22812         * modules/unicase/u32-tolower (Depends-on): Add
22813         unicase/empty-prefix-context, unicase/empty-suffix-context.
22814
22815         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
22816         invocation.
22817         * modules/unicase/u16-tolower (Depends-on): Add
22818         unicase/empty-prefix-context, unicase/empty-suffix-context.
22819
22820         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
22821         * modules/unicase/u8-tolower (Depends-on): Add
22822         unicase/empty-prefix-context, unicase/empty-suffix-context.
22823
22824         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
22825         invocation.
22826         * modules/unicase/u32-toupper (Depends-on): Add
22827         unicase/empty-prefix-context, unicase/empty-suffix-context.
22828
22829         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
22830         invocation.
22831         * modules/unicase/u16-toupper (Depends-on): Add
22832         unicase/empty-prefix-context, unicase/empty-suffix-context.
22833
22834         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
22835         * modules/unicase/u8-toupper (Depends-on): Add
22836         unicase/empty-prefix-context, unicase/empty-suffix-context.
22837
22838         New module 'unicase/u32-ct-casefold'.
22839         * lib/unicase/u32-ct-casefold.c: New file.
22840         * modules/unicase/u32-ct-casefold: New file.
22841
22842         New module 'unicase/u16-ct-casefold'.
22843         * lib/unicase/u16-ct-casefold.c: New file.
22844         * modules/unicase/u16-ct-casefold: New file.
22845
22846         New module 'unicase/u8-ct-casefold'.
22847         * lib/unicase/u8-ct-casefold.c: New file.
22848         * lib/unicase/u-ct-casefold.h: New file, derived from
22849         lib/unicase/u-casefold.h.
22850         * modules/unicase/u8-ct-casefold: New file.
22851
22852         New module 'unicase/u32-ct-totitle'.
22853         * lib/unicase/u32-ct-totitle.c: New file.
22854         * modules/unicase/u32-ct-totitle: New file.
22855
22856         New module 'unicase/u16-ct-totitle'.
22857         * lib/unicase/u16-ct-totitle.c: New file.
22858         * modules/unicase/u16-ct-totitle: New file.
22859
22860         New module 'unicase/u8-ct-totitle'.
22861         * lib/unicase/u8-ct-totitle.c: New file.
22862         * lib/unicase/u-ct-totitle.h: New file, derived from
22863         lib/unicase/u-totitle.h.
22864         * modules/unicase/u8-ct-totitle: New file.
22865
22866         New module 'unicase/u32-ct-tolower'.
22867         * lib/unicase/u32-ct-tolower.c: New file.
22868         * modules/unicase/u32-ct-tolower: New file.
22869
22870         New module 'unicase/u16-ct-tolower'.
22871         * lib/unicase/u16-ct-tolower.c: New file.
22872         * modules/unicase/u16-ct-tolower: New file.
22873
22874         New module 'unicase/u8-ct-tolower'.
22875         * lib/unicase/u8-ct-tolower.c: New file.
22876         * modules/unicase/u8-ct-tolower: New file.
22877
22878         New module 'unicase/u32-ct-toupper'.
22879         * lib/unicase/u32-ct-toupper.c: New file.
22880         * modules/unicase/u32-ct-toupper: New file.
22881
22882         New module 'unicase/u16-ct-toupper'.
22883         * lib/unicase/u16-ct-toupper.c: New file.
22884         * modules/unicase/u16-ct-toupper: New file.
22885
22886         New module 'unicase/u8-ct-toupper'.
22887         * lib/unicase/u8-ct-toupper.c: New file.
22888         * modules/unicase/u8-ct-toupper: New file.
22889
22890         Add context arguments to u*_casemap functions.
22891         * lib/unicase/unicasemap.h: Include unicase.h.
22892         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
22893         suffix_context arguments.
22894         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
22895         functions.
22896         (FUNC): Add prefix_context and suffix_context arguments. Use
22897         uc_is_cased and uc_is_case_ignorable.
22898         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
22899         * lib/unicase/u16-casemap.c: Likewise.
22900         * lib/unicase/u32-casemap.c: Likewise.
22901         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
22902         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22903         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
22904         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22905         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
22906         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22907
22908         New module 'unicase/u32-suffix-context'.
22909         * lib/unicase/u32-suffix-context.c: New file.
22910         * modules/unicase/u32-suffix-context: New file.
22911
22912         New module 'unicase/u16-suffix-context'.
22913         * lib/unicase/u16-suffix-context.c: New file.
22914         * modules/unicase/u16-suffix-context: New file.
22915
22916         New module 'unicase/u8-suffix-context'.
22917         * lib/unicase/u8-suffix-context.c: New file.
22918         * lib/unicase/u-suffix-context.h: New file.
22919         * modules/unicase/u8-suffix-context: New file.
22920
22921         New module 'unicase/empty-suffix-context'.
22922         * lib/unicase/empty-suffix-context.c: New file.
22923         * modules/unicase/empty-suffix-context: New file.
22924
22925         New module 'unicase/u32-prefix-context'.
22926         * lib/unicase/u32-prefix-context.c: New file.
22927         * modules/unicase/u32-prefix-context: New file.
22928
22929         New module 'unicase/u16-prefix-context'.
22930         * lib/unicase/u16-prefix-context.c: New file.
22931         * modules/unicase/u16-prefix-context: New file.
22932
22933         New module 'unicase/u8-prefix-context'.
22934         * lib/unicase/u8-prefix-context.c: New file.
22935         * lib/unicase/u-prefix-context.h: New file.
22936         * lib/unicase/context.h: New file.
22937         * modules/unicase/u8-prefix-context: New file.
22938
22939         New module 'unicase/empty-prefix-context'.
22940         * lib/unicase/empty-prefix-context.c: New file.
22941         * modules/unicase/empty-prefix-context: New file.
22942
22943         New module 'unicase/ignorable'.
22944         * lib/unicase/ignorable.c: New file.
22945         * modules/unicase/ignorable: New file.
22946
22947         New module 'unicase/cased'.
22948         * lib/unicase/caseprop.h: New file.
22949         * lib/unicase/cased.c: New file.
22950         * modules/unicase/cased: New file.
22951
22952         New functions for case mapping of substrings.
22953         * lib/unicase.h (casing_prefix_context_t): New type.
22954         (unicase_empty_prefix_context): New variable.
22955         (u8_casing_prefix_context, u16_casing_prefix_context,
22956         u32_casing_prefix_context, u8_casing_prefixes_context,
22957         u16_casing_prefixes_context, u32_casing_prefixes_context): New
22958         declarations.
22959         (casing_suffix_context_t): New type.
22960         (unicase_empty_suffix_context): New variable.
22961         (u8_casing_suffix_context, u16_casing_suffix_context,
22962         u32_casing_suffix_context, u8_casing_suffixes_context,
22963         u16_casing_suffixes_context, u32_casing_suffixes_context,
22964         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
22965         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
22966         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
22967         declarations.
22968
22969 2009-06-28  Jim Meyering  <meyering@redhat.com>
22970
22971         boostrap: indent only with spaces
22972         * build-aux/bootstrap: Indent only with spaces, never TABs.
22973
22974         bootstrap: split long lines
22975         * build-aux/bootstrap: Keep line length < 80.
22976
22977         bootstrap: sync from coreutils
22978         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
22979         just as autoreconf does.  Verify a list of prerequisite
22980         package-name,version-number pairs if defined in bootstrap.conf.
22981         Refer to README-prereq, if prerequisites are not satisfied.
22982
22983 2009-06-27  Eric Blake  <ebb9@byu.net>
22984
22985         tests: add test for bogus NULL definition
22986         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
22987         * tests/test-stdlib.c: Likewise.
22988         * tests/test-string.c: Likewise.
22989         * tests/test-locale.c: Likewise.
22990         * tests/test-unistd.c: Likewise.
22991         * modules/stdio-tests (Depends-on): Add verify.
22992         * modules/stdlib-tests (Depends-on): Likewise.
22993         * modules/string-tests (Depends-on): Likewise.
22994         * modules/locale-tests (Depends-on): Likewise.
22995         * modules/unistd-tests (Depends-on): Likewise.
22996
22997 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
22998
22999         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
23000         self-explaining comment.
23001         * m4/selinux-selinux-h: Update serial.
23002         (gl_LIBSELINUX): New macro, adding a warning for missing development
23003         packages to code extracted from...
23004         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
23005         Add warning for missing development packages here, too.
23006
23007 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
23008
23009         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
23010
23011 2009-06-25  Eric Blake  <ebb9@byu.net>
23012
23013         version-etc: fix regression
23014         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
23015         gcc.
23016         (version_etc): Use it, to catch bugs with trailing NULL.
23017         * lib/version-etc.c (version_etc_arn): Delete unused argument.
23018         (version_etc_va): Fix logic bug.
23019         * modules/version-etc-tests: Add test.
23020         * tests/test-version-etc.c: New file.
23021         * tests/test-version-etc.sh: Likewise.
23022
23023 2009-06-25  Sam Steingold  <sds@gnu.org>
23024
23025         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
23026         mbtowc declaration.
23027
23028 2009-06-25  Eric Blake  <ebb9@byu.net>
23029
23030         fpurge: migrate into <stdio.h>
23031         * lib/fpurge.h: Delete...
23032         * lib/stdio.in.h (fpurge): ...and declare here, instead.
23033         * lib/fpurge.c (fpurge): Change declaring header.
23034         * modules/fpurge (Files): Drop deleted file.
23035         (Depends-on): Add stdio.
23036         (configure.ac): Set witness.
23037         * modules/stdio (Makefile.am): Support fpurge macros.
23038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23039         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
23040         * lib/fflush.c: Update client.
23041         * tests/test-fpurge.c: Likewise.
23042         * NEWS: Mention the change.
23043
23044 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23045
23046         * lib/argp-version-etc.c (program_authors): Add const
23047         qualifier.
23048         * lib/version-etc.c: Fix typos in the comments.
23049         * modules/argp-version-etc: Depends on version-etc.
23050
23051 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23052
23053         argp-version-etc: new module.
23054
23055         * lib/argp-version-etc.c: New file.
23056         * lib/argp-version-etc.h: New file.
23057         * modules/argp-version-etc: New file.
23058         * modules/argp-version-etc-tests: New file.
23059         * tests/test-argp-version-etc.c: New test.
23060         * tests/test-argp-version-etc-1.sh: New test.
23061
23062 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23063
23064         Provide additional interfaces and documentation for version-etc
23065         module.
23066
23067         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
23068         interfaces.
23069         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
23070         prototypes.
23071
23072 2009-06-24  Bruno Haible  <bruno@clisp.org>
23073
23074         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
23075         HAVE_LIB${NAME} macro.
23076         Reported by Sam Steingold <sds@gnu.org>.
23077
23078 2009-06-23  Simon Josefsson  <simon@josefsson.org>
23079
23080         * modules/hash-tests (test_hash_LDADD): Link to libintl when
23081         needed.
23082
23083 2009-06-21  Bruno Haible  <bruno@clisp.org>
23084
23085         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
23086         work.
23087         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
23088         together with LIB${NAME}, LTLIB${NAME}.
23089         Reported by Sam Steingold <sds@gnu.org>.
23090
23091 2009-06-20  Jim Meyering  <meyering@redhat.com>
23092
23093         tests: make sc_require_test_exit_idiom more generic
23094         * top/maint.mk (Exit_witness_file): New overridable variable.
23095         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
23096         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
23097
23098 2009-06-19  Jim Meyering  <meyering@redhat.com>
23099
23100         hash: reverse order of src/dst parameters in an internal interface
23101         * lib/hash.c (transfer_entries): Reverse order of parameters to
23102         put DST before SRC.  Adjust callers.
23103
23104         tests: test-hash: avoid wholesale duplication
23105         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
23106         Instead, use a loop and add a single conditional.
23107
23108         tests: test-hash: allow seed selection via a command line argument
23109         * tests/test-hash.c (get_seed): New function.
23110         (main): Use it.
23111
23112 2009-06-19  Eric Blake  <ebb9@byu.net>
23113
23114         hash: avoid memory leak on allocation failure
23115         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
23116         failure.  Factor repeated algorithm...
23117         (transfer_entries): ...into new helper routine.
23118         (hash_delete): React to hash_rehash return value.
23119
23120         hash: reduce memory pressure in hash_rehash no-op case
23121         * lib/hash.c (next_prime): Avoid overflow.
23122         (hash_initialize): Factor bucket size computation...
23123         (compute_bucket_size): ...into new helper function.
23124         (hash_rehash): Use new function and open coding to reduce memory
23125         pressure, and avoid a memory leak in USE_OBSTACK code.
23126         Reported by Jim Meyering.
23127
23128 2009-06-18  Eric Blake  <ebb9@byu.net>
23129
23130         hash: make rotation more obvious
23131         * modules/hash (Depends-on): Add bitrotate and stdint.
23132         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
23133         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
23134         (SIZE_MAX): Rely on headers for definition.
23135         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
23136         (raw_hasher): Use rotr_sz.
23137         Suggested by Jim Meyering.
23138
23139         hash: fix memory leak in last patch
23140         * lib/hash.c (hash_rehash): Avoid memory leak.
23141
23142         hash: avoid no-op rehashing
23143         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
23144
23145         hash: provide default callback functions
23146         * lib/hash.c (raw_hasher, raw_comparator): New functions.
23147         (hash_initialize): Use them as defaults.
23148         * tests/test-hash.c (main): Test this.
23149
23150         hash: minor optimization
23151         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
23152         when possible.
23153         (hash_initialize): Document this promise.
23154         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
23155         * tests/test-hash.c (hash_compare_strings): Test this.
23156
23157 2009-06-18  Bruno Haible  <bruno@clisp.org>
23158
23159         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
23160         going to be replaced anyway.
23161
23162 2009-06-18  Bruno Haible  <bruno@clisp.org>
23163
23164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
23165         in one place.
23166         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
23167         be replaced anyway.
23168
23169 2009-06-18  Eric Blake  <ebb9@byu.net>
23170
23171         hash: check for resize before insertion
23172         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
23173         threshold before insertion, so that a pathological hash_rehash
23174         that fills every bucket can still trigger another rehash.
23175
23176 2009-06-18  Jim Meyering  <meyering@redhat.com>
23177
23178         hash-tests: add a loop around the small tests
23179         * tests/test-hash.c (main): Repeat small tests with selected
23180         small initial table sizes.
23181
23182 2009-06-17  Eric Blake  <ebb9@byu.net>
23183
23184         hash: minor cleanups
23185         * lib/hash.h (hash_entry): Make opaque, by moving...
23186         * lib/hash.c (hash_entry): ...here.
23187         (hash_insert): Clarify restrictions on what can be inserted.
23188         (hash_get_next): Clarify when it is safe to remove an element
23189         during traversal.
23190         (check_tuning): Skip verification when tuning is known safe.
23191         (hash_initialize): Clarify restrictions on tuning.
23192
23193 2009-06-17  Jim Meyering  <jim@meyering.net>
23194         and Eric Blake  <ebb9@byu.net>
23195
23196         hash-tests: new module
23197         * modules/hash-tests: New file.
23198         * tests/test-hash.c: New file.
23199
23200 2009-06-17  Eric Blake  <ebb9@byu.net>
23201
23202         strstr-simple: document new module
23203         * MODULES.html.sh: Document new module.
23204
23205         strstr, strcasestr: replace on platforms with broken memchr
23206         * modules/strstr: Split into...
23207         * modules/strstr-simple: ...new module that does not care about
23208         performance, but does care about glibc bug.
23209         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
23210         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
23211         if platform memchr is broken, per Debian bug 521737.
23212         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
23213         memchr.
23214         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
23215         * doc/posix-functions/strstr.texi (strstr): Document the fix.
23216         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23217         * modules/mountlist (Depends-on): Add strstr-simple.
23218         * modules/gen-uni-tables (Depends-on): Likewise.
23219         * modules/argz (Depends-on): Add strstr.
23220
23221 2009-06-17  Bruno Haible  <bruno@clisp.org>
23222
23223         * modules/posix_spawn-internal (Depends-on): Add errno.
23224
23225 2009-06-17  Bruno Haible  <bruno@clisp.org>
23226
23227         Define missing ESTALE on Interix 3.5.
23228         * lib/errno.in.h (ESTALE): Assign a value if missing.
23229         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
23230         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
23231         missing.
23232         * doc/posix-headers/errno.texi: Mention the Interix bug.
23233         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
23234
23235 2009-06-15  Eric Blake  <ebb9@byu.net>
23236
23237         memchr, memchr2: add valgrind exception
23238         * lib/memchr.valgrind: New file.
23239         * lib/memchr2.valgrind: New file.
23240         * modules/memchr (Files): Distribute valgrind file.
23241         * modules/memchr2 (Files): Likewise.
23242
23243         docs: memchr is no longer obsolete
23244         * MODULES.html.sh: Move memchr from obsolete to string.h section.
23245         * lib/string.in.h (memchr): Simplify logic.
23246
23247 2009-06-14  Jim Meyering  <meyering@redhat.com>
23248
23249         link-follow: fix the "checking..." message to not mention trailing slash
23250         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
23251         never considered trailing slashes.
23252
23253 2009-06-14  Bruno Haible  <bruno@clisp.org>
23254
23255         * m4/memchr.m4: Mention also the bug on IA-64.
23256         * doc/posix-functions/memchr.texi: Likewise.
23257
23258 2009-06-12  Eric Blake  <ebb9@byu.net>
23259
23260         memchr: detect broken x86_64 and alpha implementations
23261         * modules/memchr-tests (Depends-on): Move mmap detection...
23262         * modules/memchr (Depends-on): ...here.
23263         (configure.ac): Set indicator.
23264         * lib/string.in.h (memchr): Declare replacement.
23265         * modules/string (Makefile.am): Trigger replacement.
23266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
23267         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
23268         bugs.
23269         * doc/posix-functions/memchr.texi (memchr): Document the bug.
23270         * modules/getpagesize (License): Relax license.
23271
23272 2009-06-11  Bruno Haible  <bruno@clisp.org>
23273
23274         * lib/idpriv.h: Add more references.
23275
23276 2009-06-08  Bruno Haible  <bruno@clisp.org>
23277
23278         Tests for module 'idpriv-droptemp'.
23279         * modules/idpriv-droptemp-tests: New file.
23280         * tests/test-idpriv-droptemp.sh: New file.
23281         * tests/test-idpriv-droptemp.su.sh: New file.
23282         * tests/test-idpriv-droptemp.c: New file.
23283
23284         New module 'idpriv-droptemp'.
23285         * lib/idpriv-droptemp.c: New file.
23286         * modules/idpriv-droptemp: New file.
23287
23288 2009-06-08  Bruno Haible  <bruno@clisp.org>
23289
23290         Tests for module 'idpriv-drop'.
23291         * modules/idpriv-drop-tests: New file.
23292         * tests/test-idpriv-drop.sh: New file.
23293         * tests/test-idpriv-drop.su.sh: New file.
23294         * tests/test-idpriv-drop.c: New file.
23295
23296         New module 'idpriv-drop'.
23297         * lib/idpriv.h: New file.
23298         * lib-idpriv-drop.c: New file.
23299         * m4/idpriv.m4: New file.
23300         * modules/idpriv-drop: New file.
23301
23302 2009-06-08  Bruno Haible  <bruno@clisp.org>
23303
23304         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
23305         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23306         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23307         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23308         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23309         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23310         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23311
23312 2009-06-08  Eric Blake  <ebb9@byu.net>
23313
23314         test-strstr: use memory fence, when possible
23315         * tests/test-strstr.c (main): Use memory fence, in order to be
23316         more likely to trigger Debian bug 521737.
23317         * modules/strstr-tests (Files): Pull in additional files.
23318
23319         memchr: no longer obsolete, for wider field testing
23320         * modules/memchr (Status, Notice): Delete, this module is no
23321         longer obsolete.
23322         * modules/vasnprintf (Depends-on): Add memchr.
23323
23324 2009-06-07  Jim Meyering  <meyering@redhat.com>
23325
23326         hash: declare some functions with the warn_unused_result attribute
23327         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
23328
23329 2009-06-07  Bruno Haible  <bruno@clisp.org>
23330
23331         * tests/test-alignof.c: Don't test int64_t if it does not exist.
23332         Reported by Eric Blake.
23333
23334 2009-06-06  Eric Blake  <ebb9@byu.net>
23335
23336         test-alignof: fix typo with long double
23337         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
23338         compiler error.
23339
23340 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
23341
23342         Escape non-texinfo { and }s.
23343         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
23344         markup error.
23345
23346 2009-06-04  Jim Meyering  <meyering@redhat.com>
23347
23348         gitlog-to-changelog: don't infloop on an empty commit log
23349         * build-aux/gitlog-to-changelog: Warn about an empty log message.
23350         Reported by Boris Petersen <transacid@centerim.org>.
23351
23352 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
23353
23354         version-etc: extend for packagers
23355         Add three new configure options, intended for packagers:
23356           --with-packager="packager name"
23357           --with-packager-version="packager-specific version"
23358           --with-packager-bug-reports="packager bug reporting"
23359         An example with coreutils:
23360           $ ./configure \
23361             --with-packager=Gentoo \
23362             --with-packager-bug-report=http://bugs.gentoo.org/ \
23363             --with-packager-version="patchset 1.6"
23364           $ ./src/ls --version | head -n2
23365           ls (GNU coreutils) 7.1-dirty
23366           Packaged by Gentoo (patchset 1.6)
23367         Note that the bug reporting info via --help doesn't show up because
23368         coreutils uses its own custom emit_bug_reporting_address() implementation
23369         in src/system.h.  If it didn't, it'd look like:
23370           $ ./src/ls --help | tail -n4
23371           Report bugs to <bug-coreutils@gnu.org>.
23372           Report Gentoo bugs to <http://bugs.gentoo.org/>.
23373           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
23374           General help using GNU software: <http://www.gnu.org/gethelp/>.
23375         * lib/version-etc.c: Print new information, if provided.
23376         * m4/version-etc.m4: New file.
23377         * modules/version-etc (Files): Add m4/version-etc.m4.
23378         (configure.ac): Add gl_VERSION_ETC.
23379
23380 2009-05-31  Bruno Haible  <bruno@clisp.org>
23381
23382         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
23383         and 'int64_t'.
23384         * modules/alignof-tests (Dependencies): Add stdint.
23385         Reported by Eric Blake.
23386
23387 2009-05-31  Bruno Haible  <bruno@clisp.org>
23388
23389         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
23390         restriction due to compiler bugs.
23391         Reported by Eric Blake.
23392
23393 2009-05-31  Simon Josefsson  <simon@josefsson.org>
23394             Bruno Haible  <bruno@clisp.org>
23395
23396         Fix test-alignof failure.
23397         * lib/alignof.h (alignof_slot): New macro.
23398         (alignof_type): New macro, with the same semantics as the previous
23399         'alignof'.
23400         (alignof): Alias to alignof_slot.
23401         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
23402         check that the results are usable as constant expressions.
23403
23404 2009-05-31  Bruno Haible  <bruno@clisp.org>
23405
23406         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
23407         * tests/test-memchr.c (main): Check that memchr does not read past the
23408         first occurrence of the byte.
23409         * tests/test-strstr.c (main): Update comment.
23410         Suggested by Eric Blake.
23411
23412 2009-05-30  Bruno Haible  <bruno@clisp.org>
23413
23414         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
23415         detail how to use dumpbin.
23416         Reported by David Byron <dbyron@dbyron.com>.
23417
23418 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23419
23420         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
23421
23422 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23423
23424         * m4/manywarnings.m4: Add GCC 4.4 warnings.
23425
23426 2009-05-28  Bruno Haible  <bruno@clisp.org>
23427
23428         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
23429         build-aux/ files.
23430
23431 2009-05-28  Simon Josefsson  <simon@josefsson.org>
23432
23433         * gnulib-tool (func_import): Transform license on build-aux/ files too.
23434
23435 2009-05-27  Simon Josefsson  <simon@josefsson.org>
23436
23437         * gnulib-tool (sed_transform_main_lib_file)
23438         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
23439         regexps.
23440
23441 2009-05-26  Simon Josefsson  <simon@josefsson.org>
23442
23443         * tests/test-strstr.c: Add another self-test.
23444         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
23445         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
23446
23447 2009-05-23  Bruno Haible  <bruno@clisp.org>
23448
23449         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
23450         change.
23451
23452 2009-05-21  Bruno Haible  <bruno@clisp.org>
23453
23454         Simplify use of mode_t varargs.
23455         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
23456         uses 'mode_t' or 'int'.
23457         * lib/openat.c (openat): Likewise.
23458         * lib/open-safer.c (open_safer): Likewise.
23459         * m4/mode_t.m4: New file.
23460         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
23461         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
23462         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
23463         * modules/open (Files): Add m4/mode_t.m4.
23464         * modules/openat (Files): Likewise.
23465         * modules/fcntl-safer (Files): Likewise.
23466         Suggested by Eric Blake.
23467
23468 2009-05-21  Pádraig Brady  <P@draigbrady.com>
23469
23470         * doc/glibc-functions/fallocate.texi: New file.
23471         * doc/gnulib.texi: Include it.
23472
23473 2009-05-21  Eric Blake  <ebb9@byu.net>
23474             Bruno Haible  <bruno@clisp.org>
23475
23476         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
23477         invocations.
23478         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23479
23480 2009-05-21  Eric Blake  <ebb9@byu.net>
23481             Bruno Haible  <bruno@clisp.org>
23482
23483         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
23484         include_next. Fix of 2008-11-20 commit.
23485         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
23486         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
23487         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
23488         NEXT_MATH_H.
23489         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
23490         instead of NEXT_MATH_H.
23491
23492 2009-05-21  Bruno Haible  <bruno@clisp.org>
23493
23494         Avoid redefinition warnings for SIZE_MAX.
23495         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
23496         Reported by Simon Josefsson.
23497
23498 2009-05-21  Bruno Haible  <bruno@clisp.org>
23499
23500         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
23501         AC_CACHE_VAL.
23502
23503 2009-05-20  Bruno Haible  <bruno@clisp.org>
23504
23505         Make zeroptr.h work on mingw.
23506         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
23507         mprotect.
23508         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
23509         * modules/memchr2-tests (configure.ac): Likewise.
23510         * modules/memcmp-tests (configure.ac): Likewise.
23511         * modules/memmem-tests (configure.ac): Likewise.
23512         * modules/memrchr-tests (configure.ac): Likewise.
23513         Reported by Simon Josefsson.
23514
23515 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23516
23517         * tests/test-glob.c: Include string.h for strcmp prototype.
23518
23519 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23520
23521         * modules/getdelim (Depends-on): Add explicit stdint, although it
23522         was implicitly already pulled in via realloc-posix.
23523         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
23524
23525 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23526
23527         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
23528         G. Christensen" <tgc@jupiterrise.com>.
23529         * m4/sys_socket_h.m4: Check for sa_family_t.
23530         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
23531         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
23532         * tests/test-sys_socket.c: Check that sa_family_t works.
23533
23534 2009-05-18  Eric Blake  <ebb9@byu.net>
23535
23536         maint.mk: allow gnulib_dir in VPATH build
23537         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
23538
23539 2009-05-15  Jim Meyering  <meyering@redhat.com>
23540
23541         maint.mk: Give gnulib_dir a default definition.
23542         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
23543         Thus, most packages no longer need to specify this variable in cfg.mk
23544
23545 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
23546
23547         rename.m4: fix typos that would make non-mingw cross-configure fail
23548         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
23549
23550 2009-05-13  Eric Blake  <ebb9@byu.net>
23551
23552         mmap-anon: avoid out-of-order autoconf expansion
23553         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
23554         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
23555         * modules/memchr-tests (Depends-on): Add extensions.
23556         * modules/memchr2-tests (Depends-on): Add extensions.
23557         * modules/memcmp-tests (Depends-on): Add extensions.
23558         * modules/memmem-tests (Depends-on): Add extensions.
23559         * modules/memrchr-tests (Depends-on): Add extensions.
23560
23561 2009-05-13  Bruno Haible  <bruno@clisp.org>
23562
23563         Make some tests ISO C 99 compliant.
23564         * tests/zerosize-ptr.h: New file.
23565         * tests/test-memchr.c: Include zerosize-ptr.h.
23566         (main): Use a zero-size object pointer instead of NULL.
23567         * tests/test-memchr2.c: Include zerosize-ptr.h.
23568         (main): Use a zero-size object pointer instead of NULL.
23569         * tests/test-memcmp.c: Include zerosize-ptr.h.
23570         (main): Use a zero-size object pointer instead of NULL.
23571         * tests/test-memmem.c: Include zerosize-ptr.h.
23572         (main): Use a zero-size object pointer instead of NULL.
23573         * tests/test-memrchr.c: Include zerosize-ptr.h.
23574         (main): Use a zero-size object pointer instead of NULL.
23575         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
23576         m4/mmap-anon.m4.
23577         (Depends-on): Add getpagesize.
23578         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23579         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
23580         m4/mmap-anon.m4.
23581         (Depends-on): Add getpagesize.
23582         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23583         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
23584         m4/mmap-anon.m4.
23585         (Depends-on): Add getpagesize.
23586         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23587         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
23588         m4/mmap-anon.m4.
23589         (Depends-on): Add getpagesize.
23590         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23591         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
23592         m4/mmap-anon.m4.
23593         (Depends-on): Add getpagesize.
23594         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23595
23596 2009-05-12  Bruno Haible  <bruno@clisp.org>
23597
23598         Tests for module 'alignof'.
23599         * modules/alignof-tests: New file.
23600         * tests/test-alignof.c: New file.
23601
23602 2009-05-12  Bruno Haible  <bruno@clisp.org>
23603
23604         Fix alignof macro.
23605         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
23606         vendor compilers that are always correct.
23607
23608 2009-05-12  Bruno Haible  <bruno@clisp.org>
23609
23610         Make the MAP_ANONYMOUS detection work on HP-UX 11.
23611         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
23612         not whether its fully works.
23613
23614 2009-05-12  Bruno Haible  <bruno@clisp.org>
23615
23616         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
23617
23618 2009-05-12  Jim Meyering  <meyering@redhat.com>
23619
23620         * top/maint.mk: Adjust backslash alignment.
23621
23622 2009-05-11  Simon Josefsson  <simon@josefsson.org>
23623
23624         * top/maint.mk: Make $(srcdir)/build-aux configurable.
23625
23626 2009-05-11  Eric Blake  <ebb9@byu.net>
23627
23628         argp: avoid undefined behavior
23629         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
23630         macros.
23631
23632 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23633
23634         * tests/test-vc-list-files-git.sh: Do git config of user.email and
23635         user.name to prevent git commit from complaining.
23636
23637 2009-05-10  Bruno Haible  <bruno@clisp.org>
23638
23639         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
23640         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
23641         it rewrites every file name only once.
23642         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
23643
23644 2009-05-08  Bruno Haible  <bruno@clisp.org>
23645
23646         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
23647         instead of 'max'.
23648
23649 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23650
23651         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
23652         sockaddr_storage test.
23653
23654 2009-05-07  Simon Josefsson  <simon@josefsson.org>
23655
23656         * modules/sys_socket (Makefile.am): Substitute
23657         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
23658         * m4/sys_socket_h.m4: Check for sockaddr_storage.
23659         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
23660         * tests/test-sys_socket.c: Check sockaddr_storage.
23661
23662 2009-05-08  Bruno Haible  <bruno@clisp.org>
23663
23664         New module 'alignof'.
23665         * lib/alignof.h: New file.
23666         * modules/alignof: New file.
23667
23668 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23669             Bruno Haible  <bruno@clisp.org>
23670
23671         Fix test-file-has-acl on FreeBSD.
23672         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
23673         mask is implicitly added.
23674         * tests/test-file-has-acl.c: Include <signal.h>.
23675         (main): Terminate the test after 5 seconds.
23676         * modules/acl-tests (configure.ac): Check for alarm function.
23677
23678 2009-05-04  Bruno Haible  <bruno@clisp.org>
23679
23680         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
23681         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
23682         * modules/errno (configure.ac): Drop AC_REQUIRE.
23683         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
23684         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
23685
23686 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23687
23688         * modules/glob-tests: New module.
23689         * tests/test-glob.c: Add.
23690
23691 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23692
23693         * modules/fnmatch-tests: New module.
23694         * tests/test-fnmatch.c: Add.
23695
23696 2009-05-04  Eric Blake  <ebb9@byu.net>
23697
23698         maint: make the new no-submodule-changes rule VPATH-safe
23699         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
23700
23701 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23702             Bruno Haible  <bruno@clisp.org>
23703
23704         acl: Fix infinite loop on FreeBSD.
23705         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
23706         of return value from acl_get_entry.
23707         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
23708         Likewise.
23709
23710 2009-05-03  Bruno Haible  <bruno@clisp.org>
23711
23712         * lib/acl-internal.h (acl_entries): Clarify return value.
23713         * lib/acl_entries.c (acl_entries): Likewise.
23714
23715 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23716
23717         Bug fix in acl module.
23718         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
23719
23720 2009-05-03  Bruno Haible  <bruno@clisp.org>
23721
23722         Create gperf-generated file in the source dir, not in the build dir.
23723         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
23724         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
23725         * modules/unicase/locale-language (unicase/locale-languages.h):
23726         Likewise.
23727         * modules/unicase/special-casing (unicase/special-casing-table.h):
23728         Likewise.
23729         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
23730         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
23731         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
23732         Reported by Ralf Wildenhues.
23733
23734 2009-05-03  Bruno Haible  <bruno@clisp.org>
23735
23736         * modules/fnmatch (Description, configure.ac): Taken from
23737         fnmatch-posix.
23738         * modules/fnmatch-posix: Turn into a symbolic reference to the
23739         'fnmatch' module, and deprecate.
23740         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
23741
23742 2009-05-03  Bruno Haible  <bruno@clisp.org>
23743
23744         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
23745         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
23746         Reported by Ralf Wildenhues.
23747
23748 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23749
23750         * m4/fnmatch.m4: Fix fnmatch re-define.
23751
23752 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23753
23754         priv-set: new module and tests; adapt write-any-file
23755         * lib/priv-set.c: New file.
23756         * lib/priv-set.h: New file.
23757         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
23758         * lib/write-any-file.c: Simplify by using priv-set module.
23759         * m4/priv-set.m4: New file.
23760         * modules/priv-set: New file.
23761         * modules/unlinkdir: Add dependency on priv-set module.
23762         * modules/write-any-file: Likewise.
23763
23764         Tests for module 'priv-set'.
23765         * modules/priv-set-tests: New file.
23766         * tests/test-priv-set.c: New file.
23767
23768 2009-05-03  Jim Meyering  <meyering@redhat.com>
23769             Bruno Haible  <bruno@clisp.org>
23770
23771         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
23772         use the converted UTF-8 variant of the name instead.
23773
23774 2009-05-03  Jim Meyering  <meyering@redhat.com>
23775
23776         tests: tighten some getdate tests
23777         * tests/test-getdate.c (main): Tighten tests: require equality,
23778         not just greater than.  Set TZ envvar to UTC0.
23779
23780 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23781
23782         getdate: correctly interpret "next monday" when run on a Monday
23783         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
23784         that e.g., "next tues" (when run on a tuesday) results in a date
23785         that is one week in the future, and not today's date.
23786         I.e., add a week when the wday is the same as the current one.
23787         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
23788         and earlier by Martin Bernreuther and Jan Minář.
23789         * tests/test-getdate.c (main): Check that "next DAY" is always in
23790         the future and that "last DAY" is always in the past.
23791
23792 2009-05-02  Jim Meyering  <meyering@redhat.com>
23793
23794         build: ensure that a release build fails when a submodule is unclean
23795         * top/maint.mk (no-submodule-changes): New rule.
23796         (alpha beta major): Depend on it.
23797
23798 2009-05-02  Bruno Haible  <bruno@clisp.org>
23799
23800         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
23801         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
23802         shell variable gl_fnmatch_required to detect which variant is
23803         requested.
23804         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
23805         gl_FUNC_FNMATCH_POSIX.
23806         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
23807         exclude fnmatch-posix.
23808
23809 2009-05-02  Bruno Haible  <bruno@clisp.org>
23810
23811         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
23812         * modules/mbsrtowcs (License): Change to LGPLv2+.
23813         * modules/strnlen1 (License): Likewise.
23814         Reported by Simon Josefsson.
23815
23816 2009-05-02  Bruno Haible  <bruno@clisp.org>
23817
23818         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
23819         "cross".
23820         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
23821         gnulib-tool was called with option --source-base=lib.
23822
23823 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23824
23825         Use automake *-local hooks without commands, for extensibility.
23826         * modules/localcharset (Makefile.am): Rename install-exec-local
23827         rule to install-exec-localcharset, and make it a prerequisite of
23828         install-exec-local.  Likewise, rename the uninstall-local rule to
23829         uninstall-localcharset, and make it a prerequisite of the former.
23830
23831 2009-05-01  Bruno Haible  <bruno@clisp.org>
23832
23833         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
23834         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23835         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
23836         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
23837         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
23838         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23839         m4/locale-zh.m4, m4/codeset.m4.
23840
23841         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23842         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
23843         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23844         m4/locale-zh.m4.
23845
23846         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
23847         REPLACE_WCRTOMB if mbstate_t must be replaced.
23848         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
23849         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
23850
23851 2009-05-01  Bruno Haible  <bruno@clisp.org>
23852
23853         Avoid compiler warnings when redefining macros defined by <libintl.h>.
23854         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
23855         dngettext, dcngettext, textdomain, bindtextdomain,
23856         bind_textdomain_codeset): Undefine before redefining.
23857
23858 2009-04-30  Bruno Haible  <bruno@clisp.org>
23859
23860         Fix bug introduced on 2009-04-25.
23861         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
23862         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
23863         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
23864         is defined.
23865         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
23866         is defined.
23867         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
23868         is defined.
23869         Reported by Elbert_Pol <elbert.pol@gmail.com>.
23870
23871 2009-04-28  Bruno Haible  <bruno@clisp.org>
23872
23873         Comment tweaks.
23874         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
23875         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
23876         * lib/unicase.h (u*_casexfrm): Likewise.
23877         Reported by Paolo Bonzini.
23878
23879 2009-04-28  Bruno Haible  <bruno@clisp.org>
23880
23881         Fix a compilation error.
23882         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
23883         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23884         Reported by Jim Meyering.
23885
23886 2009-04-27  Bruno Haible  <bruno@clisp.org>
23887
23888         New module 'libunistring'.
23889         * modules/libunistring: New file.
23890         * m4/libunistring.m4: New file.
23891         * MODULES.html.sh (Unicode string functions): Add it.
23892
23893 2009-04-27  Eric Blake  <ebb9@byu.net>
23894
23895         maint.mk: allow package-specific header to provide <config.h>
23896         * top/maint.mk (sc_require_config_h): New variable.
23897         (sc_require_config_h, sc_require_config_h_first): Use it.
23898
23899 2009-04-27  Simon Josefsson  <simon@josefsson.org>
23900
23901         * top/maint.mk (sc_avoid_if_before_free): Except
23902         useless-if-before-free script.
23903
23904 2009-04-27  Eric Blake  <ebb9@byu.net>
23905
23906         maintainer-makefile: depend on all required helper scripts
23907         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
23908         useless-if-before-free.
23909         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
23910         version, rather than assuming gnulib checkout is available.
23911         Reported by Simen Josefsson.
23912
23913 2009-04-26  Bruno Haible  <bruno@clisp.org>
23914
23915         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
23916         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
23917         "../" or "..".
23918
23919 2009-04-26  Bruno Haible  <bruno@clisp.org>
23920
23921         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
23922         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
23923         AC_LIB_HAVE_LINKFLAGS.
23924
23925 2009-04-26  Bruno Haible  <bruno@clisp.org>
23926
23927         Simplify calling convention of u*_conv_from_encoding.
23928         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
23929         u32_conv_from_encoding): Expect a resultbuf argument and return the
23930         result directly as a pointer.
23931         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
23932         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
23933         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
23934         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
23935         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
23936         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23937         Update.
23938         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
23939         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
23940         * lib/vasnprintf.c (VASNPRINTF): Update.
23941         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
23942         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
23943         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
23944         * NEWS: Mention the change.
23945
23946 2009-04-26  Bruno Haible  <bruno@clisp.org>
23947
23948         Simplify calling convention of u*_conv_to_encoding.
23949         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
23950         u32_conv_to_encoding): Expect a resultbuf argument and return the
23951         result directly as a pointer.
23952         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23953         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
23954         freeing scaled_offsets if mem_iconveha failed.
23955         * lib/unicase/u-casexfrm.h (FUNC): Update.
23956         * lib/uninorm/u-normxfrm.h (FUNC): Update.
23957         * lib/vasnprintf.c (VASNPRINTF): Update.
23958         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
23959         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
23960         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
23961         * NEWS: Mention the change.
23962
23963 2009-04-26  Bruno Haible  <bruno@clisp.org>
23964
23965         Avoid test failures on AIX and OSF/1.
23966         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
23967         malloc(0).
23968         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23969         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23970         Likewise.
23971         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
23972         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
23973         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
23974         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
23975         * doc/posix-functions/malloc.texi: Document the portability problem
23976         related to malloc(0).
23977
23978 2009-04-26  Bruno Haible  <bruno@clisp.org>
23979
23980         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
23981         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
23982         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
23983
23984 2009-04-25  Bruno Haible  <bruno@clisp.org>
23985
23986         Avoid link error when creating a namespace clean library.
23987         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
23988         as macro with arguments if already defined as an alias.
23989         * lib/signbitf.c (gl_signbitf): Don't undefine.
23990         * lib/signbitd.c (gl_signbitd): Don't undefine.
23991         * lib/signbitl.c (gl_signbitl): Don't undefine.
23992
23993 2009-04-25  Jim Meyering  <meyering@redhat.com>
23994
23995         vc-list-files: fix another quoting bug
23996         * build-aux/vc-list-files: Avoid sed backslash expansion
23997         of pathological directory names.
23998
23999 2009-04-25  Eric Blake  <ebb9@byu.net>
24000
24001         vc-list-files: fix shell quoting error
24002         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
24003         timestamp.
24004
24005 2009-04-25  Jim Meyering  <meyering@redhat.com>
24006
24007         vc-list-files: restore lost functionality with subdir argument
24008         * build-aux/vc-list-files: When given a non-"." sub-directory
24009         argument, substitute the $dir/ prefix back onto each resulting name.
24010         Otherwise, coreutils' root_tests check would fail.
24011
24012 2009-04-24  Eric Blake  <ebb9@byu.net>
24013
24014         vc-list-files: ignore git symlinks
24015         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
24016         than ls-files, to ignore git symlinks.
24017
24018         maint.mk: import improvements from m4
24019         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
24020         (move_if_change): Delete unused macro.
24021         (news-date-check, vc-diff-check): Support VPATH builds.
24022         (announcement): Likewise.  Split --bootstrap-tools list...
24023         (boostrap-tools): ...into separate list, which can be overridden
24024         in cfg.mk.
24025         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
24026         requiring dependency on useless-if-before-free module.
24027         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
24028         Support VPATH builds.
24029
24030 2009-04-24  Jim Meyering  <meyering@redhat.com>
24031
24032         maint.mk: remove coreutils-specific rules and variables
24033         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
24034         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
24035         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
24036
24037         maint.mk: remove obsolete rule
24038         * top/maint.mk (rel-check): Remove rule.
24039         (WGET, WGETFLAGS): Remove now-unused variables.
24040
24041 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24042
24043         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
24044         consistency.
24045
24046         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
24047         '$(PATH_SEPARATOR)' instead of ':'.
24048
24049 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24050
24051         * lib/getopt1.c (main): Use 'const' for static array.
24052
24053 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24054
24055         * top/maint.mk: Sync with coreutils.
24056         * NEWS: Explain incompatibilities.
24057
24058 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24059             Bruno Haible  <bruno@clisp.org>
24060
24061         Fix cross-compilation results.
24062         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
24063         statement, as third argument of AC_TRY_RUN.
24064         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24065         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
24066         Likewise.
24067         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24068         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24069         Likewise.
24070         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24071         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
24072         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
24073
24074 2009-04-20  Bruno Haible  <bruno@clisp.org>
24075
24076         Avoid test failure on mingw.
24077         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
24078
24079 2009-04-20  Bruno Haible  <bruno@clisp.org>
24080
24081         Avoid compilation error on mingw.
24082         * modules/localename-tests (Depends-on): Add locale.
24083
24084 2009-04-19  Bruno Haible  <bruno@clisp.org>
24085
24086         Support for building a shared library on Windows platforms.
24087         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
24088         (main): Test the presence of UNINORM_NFC here.
24089         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
24090         (main): Test the presence of UNINORM_NFD here.
24091         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
24092         (main): Test the presence of UNINORM_NFKC here.
24093         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
24094         (main): Test the presence of UNINORM_NFKD here.
24095
24096 2009-04-19  Bruno Haible  <bruno@clisp.org>
24097
24098         Avoid a compiler warning.
24099         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
24100         Change type of variable 'sequence'.
24101
24102 2009-04-19  Bruno Haible  <bruno@clisp.org>
24103
24104         * modules/configmake (Makefile.am): When the contents of configmake.h
24105         does not change, arrange to preserve its modification time.
24106
24107 2009-04-17  Simon Josefsson  <simon@josefsson.org>
24108
24109         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
24110         gettext domain.
24111
24112 2009-04-16  Jim Meyering  <meyering@redhat.com>
24113
24114         useless-if-before-free: improve conversion code
24115         * build-aux/useless-if-before-free: Adjust code-in-comment to match
24116         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
24117
24118 2009-04-14  Bruno Haible  <bruno@clisp.org>
24119
24120         * modules/fcntl (Depends-on): Add extensions.
24121         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
24122
24123 2009-04-12  Ben Pfaff  <blp@gnu.org>
24124
24125         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
24126         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
24127
24128 2009-03-20  Ben Pfaff  <blp@gnu.org>
24129
24130         Make rename replace existing destinations on Windows.
24131         * m4/rename.m4: Add test for Mingw.
24132         * lib/rename.c: Add rename replacement that uses MoveFileEx with
24133         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
24134         * doc/posix-functions/rename.texi: Document.
24135
24136 2009-04-10  Bruno Haible  <bruno@clisp.org>
24137
24138         New include file "iconveh.h".
24139         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
24140         * lib/striconveh.h: Include it.
24141         (enum iconv_ilseq_handler): Remove definition.
24142         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
24143         striconveh.h.
24144         * lib/striconveha.c: Include striconveh.h.
24145         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
24146         * modules/striconveh (Files): Add lib/iconveh.h.
24147         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
24148         lib/striconveh.h.
24149
24150 2009-04-10  Bruno Haible  <bruno@clisp.org>
24151
24152         * lib/uniconv.h: Update comment.
24153
24154 2009-04-10  Bruno Haible  <bruno@clisp.org>
24155
24156         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
24157         always.
24158         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
24159         * lib/unistr/u16-mbtouc-aux.c: Likewise.
24160         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
24161         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
24162         "unistring-notinline.h", so that the function gets defined always.
24163         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
24164         * lib/unistr/u8-uctomb.c: Likewise.
24165         * lib/unistr/u16-mbtouc.c: Likewise.
24166         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
24167         * lib/unistr/u16-uctomb.c: Likewise.
24168         * lib/unistr/u32-mbtouc.c: Likewise.
24169         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
24170         * lib/unistr/u32-uctomb.c: Likewise.
24171
24172 2009-04-10  Bruno Haible  <bruno@clisp.org>
24173
24174         Mark 'utime' obsolete.
24175         * modules/utime (Status, Notice): New sections.
24176         Suggested by Jim Meyering.
24177
24178         Fix cross-compile guess for utime test.
24179         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
24180         autoconf.
24181         * doc/posix-functions/utime.texi: Give more precisions.
24182         Reported by Jan <ipif@ymail.com>.
24183
24184 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
24185
24186         filevercmp: correct today's change
24187         * lib/filevercmp.c: Also handle coreutils' test inputs.
24188         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
24189
24190         Fix regression in 'filevercmp' module. Thanks Sven Joachim
24191         for reporting it.
24192         * lib/filevercmp.c: Special handle for "", "." and "..".
24193         * tests/test-filevercmp.c: Enlarge the set suite.
24194
24195 2009-04-07  Jim Meyering  <meyering@redhat.com>
24196
24197         useless-if-before-free: show how to remove braced useless free, too
24198         * build-aux/useless-if-before-free: still only in a comment, though.
24199
24200 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
24201
24202         maint.mk: import changes to syntax-check macros from coreutils
24203         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
24204         Use them in the relevant macros.
24205
24206 2009-04-06  Bruno Haible  <bruno@clisp.org>
24207
24208         Fix unportable use of bit-fields.
24209         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
24210         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
24211         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
24212
24213 2009-04-06  Bruno Haible  <bruno@clisp.org>
24214
24215         Avoid test failures on AIX and OSF/1.
24216         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
24217         that malloc(0) = NULL.
24218         * tests/unicase/test-u8-tolower.c (check): Likewise.
24219         * tests/unicase/test-u8-totitle.c (check): Likewise.
24220         * tests/unicase/test-u8-toupper.c (check): Likewise.
24221         * tests/unicase/test-u16-casefold.c (check): Likewise.
24222         * tests/unicase/test-u16-tolower.c (check): Likewise.
24223         * tests/unicase/test-u16-totitle.c (check): Likewise.
24224         * tests/unicase/test-u16-toupper.c (check): Likewise.
24225         * tests/unicase/test-u32-casefold.c (check): Likewise.
24226         * tests/unicase/test-u32-tolower.c (check): Likewise.
24227         * tests/unicase/test-u32-totitle.c (check): Likewise.
24228         * tests/unicase/test-u32-toupper.c (check): Likewise.
24229         * tests/uninorm/test-u8-nfc.c (check): Likewise.
24230         * tests/uninorm/test-u8-nfd.c (check): Likewise.
24231         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
24232         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
24233         * tests/uninorm/test-u16-nfc.c (check): Likewise.
24234         * tests/uninorm/test-u16-nfd.c (check): Likewise.
24235         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
24236         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
24237         * tests/uninorm/test-u32-nfc.c (check): Likewise.
24238         * tests/uninorm/test-u32-nfd.c (check): Likewise.
24239         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
24240         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
24241
24242 2009-04-05  Bruno Haible  <bruno@clisp.org>
24243
24244         Work around an autoconf limitation.
24245         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
24246         comment line if it would be longer than 3 KB.
24247
24248 2009-04-05  Bruno Haible  <bruno@clisp.org>
24249
24250         Avoid test failure with libiconv-1.13.
24251         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
24252         of the expected test results.
24253
24254 2009-04-05  Bruno Haible  <bruno@clisp.org>
24255
24256         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
24257         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
24258         that it should be installed.
24259
24260 2009-04-05  Bruno Haible  <bruno@clisp.org>
24261
24262         * gnulib-tool: New option --copy-file.
24263         (func_usage): Document it.
24264         (func_dest_tmpfilename): Moved out of func_import.
24265         (func_add_file, func_update_file): New functions, extracted from
24266         func_import.
24267         (func_import): Update.
24268
24269 2009-04-05  Karl Berry  <karl@gnu.org>
24270
24271         * README: prominently mention gnulib-tool.
24272         Rearrange sections so getting the code is near the top.
24273
24274 2009-04-05  Bruno Haible  <bruno@clisp.org>
24275
24276         * lib/unicase.h: Mention u*_cmp2.
24277         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24278         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
24279         * lib/unicase/ulc-casecmp.c: Likewise.
24280         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
24281         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
24282         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
24283         unistr/u8-cmp.
24284         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
24285         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
24286         unistr/u16-cmp.
24287         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
24288         unistr/u32-cmp.
24289
24290         * lib/uninorm.h: Mention u*_cmp2.
24291         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24292         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
24293         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
24294         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
24295         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
24296         unistr/u8-cmp.
24297         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
24298         unistr/u16-cmp.
24299         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
24300         unistr/u32-cmp.
24301
24302         New module 'unistr/u32-cmp2'.
24303         * lib/unistr/u32-cmp2.c: New file.
24304         * modules/unistr/u32-cmp2: New file.
24305
24306         New module 'unistr/u16-cmp2'.
24307         * lib/unistr/u16-cmp2.c: New file.
24308         * modules/unistr/u16-cmp2: New file.
24309
24310         New module 'unistr/u8-cmp2'.
24311         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
24312         * lib/unistr/u8-cmp2.c: New file.
24313         * lib/unistr/u-cmp2.h: New file.
24314         * modules/unistr/u8-cmp2: New file.
24315
24316 2009-04-05  Bruno Haible  <bruno@clisp.org>
24317
24318         * lib/unictype.h (uc_property_is_valid): New macro.
24319         * tests/unictype/test-pr_byname.c (main): Use it.
24320
24321         * lib/unistr.h: Doc fixes.
24322         * lib/uniconv.h: Doc fixes.
24323         * lib/unictype.h: Doc fixes.
24324
24325 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24326
24327         Port coreutils 7.2 to Solaris 8.
24328
24329         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
24330         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
24331         for Solaris 8.  This is a bit of a hack, as it means it's the
24332         caller's responsibility to add -lnsl if needed, but most likely it
24333         won't be needed since only getaddrinfo uses this and getaddrinfo
24334         isn't needed on Solaris 8.
24335
24336         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
24337         problem to Solaris 8 encountered with coreutils 7.2, which
24338         resulted in a message "fnmatch.c:292: warning: passing argument 4
24339         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
24340         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
24341
24342 2009-04-03  Simon Josefsson  <simon@josefsson.org>
24343
24344         * m4/ld-version-script.m4: Add FIXME comment.
24345
24346 2009-04-02  Simon Josefsson  <simon@josefsson.org>
24347
24348         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
24349         SOVERSION variable.
24350
24351 2009-04-02  Bruno Haible  <bruno@clisp.org>
24352
24353         * Makefile (info, html, dvi, pdf): Combine the rules.
24354         Suggested by Jim Meyering.
24355
24356 2009-04-01  Bruno Haible  <bruno@clisp.org>
24357
24358         * Makefile (info, html, dvi, pdf): New targets.
24359         Reported by Reuben Thomas <rrt@sc3d.org>.
24360
24361 2009-04-01  Bruno Haible  <bruno@clisp.org>
24362
24363         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
24364         can be put into PATH.
24365         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
24366
24367 2009-04-01  Bruno Haible  <bruno@clisp.org>
24368
24369         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
24370
24371 2009-04-01  Bruno Haible  <bruno@clisp.org>
24372
24373         Rename module 'visibility'.
24374         * modules/lib-symbol-visibility: Renamed from modules/visibility.
24375         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
24376         * doc/gnulib.texi: Update.
24377         * MODULES.html.sh (Misc): Update.
24378         * NEWS: Mention the change.
24379
24380 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24381
24382         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
24383         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
24384         Eric Blake <ebb9@byu.net> for review.
24385         * MODULES.html.sh: Add lib-msvc-compat.
24386         * doc/gnulib.texi: Link to new section.
24387         * m4/ld-output-def.m4: New file.
24388         * doc/ld-output-def.texi: New file.
24389
24390 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24391
24392         Rename ld-version-script to lib-symbol-versions.  Suggested by
24393         Bruno Haible <bruno@clisp.org>.
24394         * modules/ld-version-script: Renamed to lib-symbol-versions.
24395         * doc/ld-version-script.texi: Fix module name.
24396         * MODULES.html.sh: Add lib-symbol-versions.
24397
24398 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24399
24400         * modules/u64-tests: New file.
24401         * tests/test-u64.c: New file.
24402
24403 2009-03-04  Simon Josefsson  <simon@josefsson.org>
24404
24405         * MODULES.html.sh: Mention u64.
24406         * modules/u64: New module.
24407         * modules/crypto/sha512: Depend on u64 module instead of providing
24408         u64.h.
24409
24410 2009-03-27  Eric Blake  <ebb9@byu.net>
24411
24412         test-strerror: make debugging EAI_SYSTEM easier
24413         * modules/getaddrinfo-tests (Depends-on): Add strerror.
24414         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
24415         failure was EAI_SYSTEM.
24416
24417 2009-03-25  Bruno Haible  <bruno@clisp.org>
24418
24419         Fix a problem with --enable-relocatable on Solaris 7.
24420         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
24421         since 2008-02-24.
24422
24423 2009-03-25  Eric Blake  <ebb9@byu.net>
24424
24425         test-sockets: avoid gcc warning
24426         * tests/test-sockets.c (main): Silence compiler warning.
24427
24428 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24429
24430         New modules nproc, pthread, contributed by Glen Lenker.
24431
24432         * MODULES.html.sh: Add pthread, nproc.
24433         * lib/nproc.c: New file.
24434         * lib/nproc.h: New file.
24435         * lib/pthread.in.h: New file.
24436         * m4/pthread.m4: New file.
24437         * modules/nproc: New file.
24438         * modules/pthread: New file.
24439
24440 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24441
24442         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
24443         New variable.
24444
24445 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
24446
24447         filevercmp: handle simple~ and numbered.~3~ backup suffixes
24448         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
24449         * tests/test-filevercmp.c: Add tests for backup suffixes.
24450
24451 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24452
24453         * modules/stdlib (Depends-on): Add stdint, needed when defining
24454         struct random_data on, for example, HP-UX 10.20.  Reported by
24455         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24456
24457 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24458
24459         * lib/readline.c (readline): Call fflush on stdout after printing
24460         prompt.
24461
24462 2009-03-20  Bruno Haible  <bruno@clisp.org>
24463
24464         Remove dependency from 'close' module to -lws2_32 on native Windows.
24465         * lib/close-hook.h: New file.
24466         * lib/close-hook.c: New file.
24467         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
24468         w32sock.h.
24469         (_gl_close_fd_maybe_socket): Remove function.
24470         (rpl_close): Invoke execute_all_close_hooks instead of
24471         _gl_close_fd_maybe_socket.
24472         * lib/sockets.c: Include close-hook.h, w32sock.h.
24473         (close_fd_maybe_socket): New function, essentially from lib/close.c.
24474         (close_sockets_hook): New variable.
24475         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
24476         (gl_sockets_cleanup): Unregister it.
24477         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
24478         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
24479         * modules/close-hook: New file.
24480         * modules/close (Files): Remove lib/w32sock.h.
24481         (Depends-on): Add close-hook.
24482         (Link): Remove section.
24483         * modules/sockets (Files): Add lib/w32sock.h.
24484         (Depends-on): Add close-hook.
24485         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
24486         invocation.
24487         * NEWS: Mention that LIB_CLOSE is gone.
24488
24489 2009-03-23  Eric Blake  <ebb9@byu.net>
24490
24491         signal-tests: test previous patch
24492         * tests/test-signal.c: New file.
24493         * modules/signal-tests: Likewise.
24494
24495         signal.h: always support 'volatile sig_atomic_t'
24496         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
24497         (gl_SIGNAL_H_DEFAULTS): Add a default.
24498         * modules/signal (Makefile.am): Substitute if needed.
24499         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
24500         users can blindly add volatile.
24501         * doc/posix-headers/signal.texi (signal.h): Document it.
24502         Reported by Matthew Woehlke.
24503
24504 2009-03-23  Jim Meyering  <meyering@redhat.com>
24505
24506         pathmax: PATH_MAX: use pathconf only when available
24507         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
24508         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
24509         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
24510         This avoids a link failure in a PSP cross-compilation environment
24511         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
24512
24513         * lib/vasnprintf.c (divide): Fix typo in comment.
24514
24515 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24516
24517         * gnulib-tool (func_filter_filelist): Fix comment.
24518
24519 2009-03-20  Bruno Haible  <bruno@clisp.org>
24520
24521         Make sockets.h self-contained.
24522         * lib/sockets.c: Include sockets.h first.
24523         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
24524
24525 2009-03-19  Eric Blake  <ebb9@byu.net>
24526
24527         doc: mention more functions added in cygwin 1.7.0
24528         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
24529         addition.
24530         * doc/posix-functions/log2f.texi: Likewise.
24531
24532 2009-03-19  Jim Meyering  <meyering@redhat.com>
24533
24534         fsusage: avoid syntax error due to statement-before-declaration
24535         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
24536         after all declarations.  Reported by Matthew Woehlke in
24537         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
24538
24539 2009-03-18  Eric Blake  <ebb9@byu.net>
24540
24541         build-aux/compile: sync from automake
24542         * build-aux/compile: New file, from automake.
24543         * config/srclist.txt: Mention build-aux/compile.
24544
24545 2009-03-17  Bruno Haible  <bruno@clisp.org>
24546
24547         * lib/git-merge-changelog.c: Fix typo in comment.
24548         Reported by Reuben Thomas <rrt@sc3d.org>.
24549
24550 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
24551
24552         * m4/regex.m4: update and improve help for
24553         --without-included-regex.
24554
24555 2009-03-17  Simon Josefsson  <simon@josefsson.org>
24556
24557         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
24558         failure on missing include files.
24559
24560 2009-03-17  Eric Blake  <ebb9@byu.net>
24561
24562         doc: mention more functions added in cygwin 1.7.0
24563         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
24564         addition.
24565         * doc/posix-functions/fwscanf.texi: Likewise.
24566         * doc/posix-functions/swprintf.texi: Likewise.
24567         * doc/posix-functions/swscanf.texi: Likewise.
24568         * doc/posix-functions/vfwprintf.texi: Likewise.
24569         * doc/posix-functions/vfwscanf.texi: Likewise.
24570         * doc/posix-functions/vswprintf.texi: Likewise.
24571         * doc/posix-functions/vswscanf.texi: Likewise.
24572         * doc/posix-functions/vwprintf.texi: Likewise.
24573         * doc/posix-functions/vwscanf.texi: Likewise.
24574         * doc/posix-functions/wcscasecmp.texi: Likewise.
24575         * doc/posix-functions/wcsdup.texi: Likewise.
24576         * doc/posix-functions/wcsftime.texi: Likewise.
24577         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24578         * doc/posix-functions/wprintf.texi: Likewise.
24579         * doc/posix-functions/wscanf.texi: Likewise.
24580         * doc/glibc-functions/gethostbyname2.texi: Likewise.
24581
24582 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24583
24584         maint.mk: really add $(AM_MAKEFLAGS)
24585         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
24586         was inadvertently omitted in the last commit.
24587         Spotted by Bruno Haible.
24588
24589         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
24590         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
24591         $(AM_MAKEFLAGS)' rather than plain `make'.
24592
24593         gnulib-tool: execute $MAKE not make
24594         * gnulib-tool: Default $MAKE to 'make'.
24595         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
24596         than make.  Initialize $MAKE in the do-autobuild script.
24597
24598         gnulib-tool: use $MAKE not make in generated files
24599         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
24600         make, in generated files.  Initialize $MAKE in the do-autobuild
24601         script.
24602
24603         * top/GNUmakefile (_have-git-version-gen): Fix typo.
24604
24605         GNUmakefile: disable parallelism only for multiple, recursive targets
24606         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
24607         additions in the Makefile.
24608         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
24609         by Automake.
24610         (.NOTPARALLEL): Only disable parallel builds if multiple targets
24611         are listed on the command line and at least one of them is
24612         listed in $(ALL_RECURSIVE_TARGETS).
24613
24614 2009-03-14  Bruno Haible  <bruno@clisp.org>
24615
24616         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
24617         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
24618         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
24619         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
24620         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
24621         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
24622         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
24623         unistr/u8-uctomb.
24624         * modules/unistr/u8-strchr (Depends-on): Likewise.
24625         * modules/unistr/u8-strrchr (Depends-on): Likewise.
24626         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
24627         unistr/u16-uctomb.
24628         * modules/unistr/u16-strchr (Depends-on): Likewise.
24629         * modules/unistr/u16-strrchr (Depends-on): Likewise.
24630
24631 2009-03-12  Bruno Haible  <bruno@clisp.org>
24632
24633         Work around select() bug on Interix 3.5.
24634         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
24635         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
24636         * m4/select.m4: New file.
24637         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
24638         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
24639         * modules/select (Files): Add m4/select.m4.
24640         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
24641         * modules/nanosleep (Depends-on): Add select.
24642         * modules/poll (Depends-on): Likewise.
24643         * doc/posix-functions/select.texi: Mention the Interix bug.
24644         Reported by Markus Duft <mduft@gentoo.org>.
24645
24646         * lib/select.c: Renamed from lib/winsock-select.c.
24647         * modules/select (Files): Add lib/select.c, remove
24648         lib/winsock-select.c.
24649         (configure.ac): Update.
24650
24651 2009-03-12  Jim Meyering  <meyering@redhat.com>
24652
24653         avoid gcc warnings about unused macro definitions
24654         * lib/readtokens.c (STREQ): Remove unused definition.
24655         * lib/xmalloc.c (SIZE_MAX): Likewise.
24656         * lib/openat-die.c (N_): Likewise.
24657         * lib/mountlist.c (SIZE_MAX): Remove definition.
24658         Instead, include <stdint.h>.
24659         * lib/readutmp.c: Likewise.
24660         * modules/readutmp (Depends-on): Add stdint.
24661         * modules/mountlist (Depends-on): Add stdint.
24662         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
24663
24664 2009-03-10  Bruno Haible  <bruno@clisp.org>
24665
24666         Tests for module 'mbmemcasecoll'.
24667         * modules/mbmemcasecoll-tests: New file.
24668         * tests/test-mbmemcasecoll1.sh: New file.
24669         * tests/test-mbmemcasecoll2.sh: New file.
24670         * tests/test-mbmemcasecoll3.sh: New file.
24671         * tests/test-mbmemcasecoll.c: New file.
24672
24673         New module 'mbmemcasecoll'.
24674         * lib/mbmemcasecoll.h: New file.
24675         * lib/mbmemcasecoll.c: New file.
24676         * modules/mbmemcasecoll: New file.
24677
24678         * tests/test-mbmemcasecmp.h: New file, extracted from
24679         tests/test-mbmemcasecmp.c.
24680         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
24681         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
24682         (main): Update.
24683         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
24684
24685 2009-03-09  Bruno Haible  <bruno@clisp.org>
24686
24687         Tests for module 'mbmemcasecmp'.
24688         * modules/mbmemcasecmp-tests: New file.
24689         * tests/test-mbmemcasecmp1.sh: New file.
24690         * tests/test-mbmemcasecmp2.sh: New file.
24691         * tests/test-mbmemcasecmp3.sh: New file.
24692         * tests/test-mbmemcasecmp.c: New file.
24693
24694         New module 'mbmemcasecmp'.
24695         * lib/mbmemcasecmp.h: New file.
24696         * lib/mbmemcasecmp.c: New file.
24697         * modules/mbmemcasecmp: New file.
24698
24699 2009-03-09  Bruno Haible  <bruno@clisp.org>
24700
24701         Tests for module 'unicase/ulc-casecoll'.
24702         * modules/unicase/ulc-casecoll-tests: New file.
24703         * tests/unicase/test-ulc-casecoll1.sh: New file.
24704         * tests/unicase/test-ulc-casecoll2.sh: New file.
24705         * tests/unicase/test-ulc-casecoll.c: New file.
24706
24707         New module 'unicase/ulc-casecoll'.
24708         * lib/unicase.h (ulc_casecoll): New declaration.
24709         * lib/unicase/ulc-casecoll.c: New file.
24710         * modules/unicase/ulc-casecoll: New file.
24711
24712         New module 'unicase/ulc-casexfrm'.
24713         * lib/unicase.h (ulc_casexfrm): New declaration.
24714         * lib/unicase/ulc-casexfrm.c: New file.
24715         * modules/unicase/ulc-casexfrm: New file.
24716
24717 2009-03-09  Bruno Haible  <bruno@clisp.org>
24718
24719         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
24720         invocations.
24721
24722         * m4/mbscasecmp.m4: Remove file.
24723         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
24724         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
24725
24726         * m4/mbscasestr.m4: Remove file.
24727         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
24728         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
24729
24730         * m4/mbschr.m4: Remove file.
24731         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
24732         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
24733
24734         * m4/mbscspn.m4: Remove file.
24735         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
24736         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
24737
24738         * m4/mbslen.m4: Remove file.
24739         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
24740         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
24741
24742         * m4/mbsncasecmp.m4: Remove file.
24743         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
24744         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
24745
24746         * m4/mbsnlen.m4: Remove file.
24747         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
24748         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
24749
24750         * m4/mbspbrk.m4: Remove file.
24751         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
24752         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
24753
24754         * m4/mbspcasecmp.m4: Remove file.
24755         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
24756         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
24757
24758         * m4/mbsrchr.m4: Remove file.
24759         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
24760         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
24761
24762         * m4/mbssep.m4: Remove file.
24763         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
24764         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
24765
24766         * m4/mbsspn.m4: Remove file.
24767         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
24768         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
24769
24770         * m4/mbsstr.m4: Remove file.
24771         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
24772         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
24773
24774         * m4/mbstok_r.m4: Remove file.
24775         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
24776         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
24777
24778         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
24779
24780         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
24781         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
24782
24783         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
24784
24785 2009-03-08  Bruno Haible  <bruno@clisp.org>
24786
24787         Tests for module 'unicase/ulc-casecmp'.
24788         * modules/unicase/ulc-casecmp-tests: New file.
24789         * tests/unicase/test-ulc-casecmp1.sh: New file.
24790         * tests/unicase/test-ulc-casecmp2.sh: New file.
24791         * tests/unicase/test-ulc-casecmp.c: New file.
24792
24793         New module 'unicase/ulc-casecmp'.
24794         * lib/unicase.h (ulc_casecmp): New declaration.
24795         * lib/unicase/ulc-casecmp.c: New file.
24796         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
24797         'const SRC_UNIT *'.
24798         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
24799         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
24800         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
24801         * modules/unicase/ulc-casecmp: New file.
24802
24803         Tests for module 'unicase/u32-is-cased'.
24804         * modules/unicase/u32-is-cased-tests: New file.
24805         * tests/unicase/test-u32-is-cased.c: New file.
24806
24807         Tests for module 'unicase/u16-is-cased'.
24808         * modules/unicase/u16-is-cased-tests: New file.
24809         * tests/unicase/test-u16-is-cased.c: New file.
24810
24811         Tests for module 'unicase/u8-is-cased'.
24812         * modules/unicase/u8-is-cased-tests: New file.
24813         * tests/unicase/test-u8-is-cased.c: New file.
24814         * tests/unicase/test-is-cased.h: New file.
24815
24816         New module 'unicase/u32-is-cased'.
24817         * lib/unicase/u32-is-cased.c: New file.
24818         * modules/unicase/u32-is-cased: New file.
24819
24820         New module 'unicase/u16-is-cased'.
24821         * lib/unicase/u16-is-cased.c: New file.
24822         * modules/unicase/u16-is-cased: New file.
24823
24824         New module 'unicase/u8-is-cased'.
24825         * lib/unicase/u8-is-cased.c: New file.
24826         * lib/unicase/u-is-cased.h: New file.
24827         * modules/unicase/u8-is-cased: New file.
24828
24829         Tests for module 'unicase/u32-is-casefolded'.
24830         * modules/unicase/u32-is-casefolded-tests: New file.
24831         * tests/unicase/test-u32-is-casefolded.c: New file.
24832
24833         Tests for module 'unicase/u16-is-casefolded'.
24834         * modules/unicase/u16-is-casefolded-tests: New file.
24835         * tests/unicase/test-u16-is-casefolded.c: New file.
24836
24837         Tests for module 'unicase/u8-is-casefolded'.
24838         * modules/unicase/u8-is-casefolded-tests: New file.
24839         * tests/unicase/test-u8-is-casefolded.c: New file.
24840         * tests/unicase/test-is-casefolded.h: New file.
24841
24842         New module 'unicase/u32-is-casefolded'.
24843         * lib/unicase/u32-is-casefolded.c: New file.
24844         * modules/unicase/u32-is-casefolded: New file.
24845
24846         New module 'unicase/u16-is-casefolded'.
24847         * lib/unicase/u16-is-casefolded.c: New file.
24848         * modules/unicase/u16-is-casefolded: New file.
24849
24850         New module 'unicase/u8-is-casefolded'.
24851         * lib/unicase/u8-is-casefolded.c: New file.
24852         * modules/unicase/u8-is-casefolded: New file.
24853
24854         Tests for module 'unicase/u32-is-titlecase'.
24855         * modules/unicase/u32-is-titlecase-tests: New file.
24856         * tests/unicase/test-u32-is-titlecase.c: New file.
24857
24858         Tests for module 'unicase/u16-is-titlecase'.
24859         * modules/unicase/u16-is-titlecase-tests: New file.
24860         * tests/unicase/test-u16-is-titlecase.c: New file.
24861
24862         Tests for module 'unicase/u8-is-titlecase'.
24863         * modules/unicase/u8-is-titlecase-tests: New file.
24864         * tests/unicase/test-u8-is-titlecase.c: New file.
24865         * tests/unicase/test-is-titlecase.h: New file.
24866
24867         New module 'unicase/u32-is-titlecase'.
24868         * lib/unicase/u32-is-titlecase.c: New file.
24869         * modules/unicase/u32-is-titlecase: New file.
24870
24871         New module 'unicase/u16-is-titlecase'.
24872         * lib/unicase/u16-is-titlecase.c: New file.
24873         * modules/unicase/u16-is-titlecase: New file.
24874
24875         New module 'unicase/u8-is-titlecase'.
24876         * lib/unicase/u8-is-titlecase.c: New file.
24877         * modules/unicase/u8-is-titlecase: New file.
24878
24879         Tests for module 'unicase/u32-is-lowercase'.
24880         * modules/unicase/u32-is-lowercase-tests: New file.
24881         * tests/unicase/test-u32-is-lowercase.c: New file.
24882
24883         Tests for module 'unicase/u16-is-lowercase'.
24884         * modules/unicase/u16-is-lowercase-tests: New file.
24885         * tests/unicase/test-u16-is-lowercase.c: New file.
24886
24887         Tests for module 'unicase/u8-is-lowercase'.
24888         * modules/unicase/u8-is-lowercase-tests: New file.
24889         * tests/unicase/test-u8-is-lowercase.c: New file.
24890         * tests/unicase/test-is-lowercase.h: New file.
24891
24892         New module 'unicase/u32-is-lowercase'.
24893         * lib/unicase/u32-is-lowercase.c: New file.
24894         * modules/unicase/u32-is-lowercase: New file.
24895
24896         New module 'unicase/u16-is-lowercase'.
24897         * lib/unicase/u16-is-lowercase.c: New file.
24898         * modules/unicase/u16-is-lowercase: New file.
24899
24900         New module 'unicase/u8-is-lowercase'.
24901         * lib/unicase/u8-is-lowercase.c: New file.
24902         * modules/unicase/u8-is-lowercase: New file.
24903
24904         Tests for module 'unicase/u32-is-uppercase'.
24905         * modules/unicase/u32-is-uppercase-tests: New file.
24906         * tests/unicase/test-u32-is-uppercase.c: New file.
24907
24908         Tests for module 'unicase/u16-is-uppercase'.
24909         * modules/unicase/u16-is-uppercase-tests: New file.
24910         * tests/unicase/test-u16-is-uppercase.c: New file.
24911
24912         Tests for module 'unicase/u8-is-uppercase'.
24913         * modules/unicase/u8-is-uppercase-tests: New file.
24914         * tests/unicase/test-u8-is-uppercase.c: New file.
24915         * tests/unicase/test-is-uppercase.h: New file.
24916
24917         New module 'unicase/u32-is-uppercase'.
24918         * lib/unicase/u32-is-uppercase.c: New file.
24919         * modules/unicase/u32-is-uppercase: New file.
24920
24921         New module 'unicase/u16-is-uppercase'.
24922         * lib/unicase/u16-is-uppercase.c: New file.
24923         * modules/unicase/u16-is-uppercase: New file.
24924
24925         New module 'unicase/u8-is-uppercase'.
24926         * lib/unicase/u8-is-uppercase.c: New file.
24927         * modules/unicase/u8-is-uppercase: New file.
24928
24929         New module 'unicase/u32-is-invariant'.
24930         * lib/unicase/u32-is-invariant.c: New file.
24931         * modules/unicase/u32-is-invariant: New file.
24932
24933         New module 'unicase/u16-is-invariant'.
24934         * lib/unicase/u16-is-invariant.c: New file.
24935         * modules/unicase/u16-is-invariant: New file.
24936
24937         New module 'unicase/u8-is-invariant'.
24938         * lib/unicase/u8-is-invariant.c: New file.
24939         * lib/unicase/invariant.h: New file.
24940         * lib/unicase/u-is-invariant.h: New file.
24941         * modules/unicase/u8-is-invariant: New file.
24942
24943         Tests for module 'unicase/u32-casecoll'.
24944         * modules/unicase/u32-casecoll-tests: New file.
24945         * tests/unicase/test-u32-casecoll.c: New file.
24946
24947         Tests for module 'unicase/u16-casecoll'.
24948         * modules/unicase/u16-casecoll-tests: New file.
24949         * tests/unicase/test-u16-casecoll.c: New file.
24950
24951         Tests for module 'unicase/u8-casecoll'.
24952         * modules/unicase/u8-casecoll-tests: New file.
24953         * tests/unicase/test-u8-casecoll.c: New file.
24954
24955         New module 'unicase/u32-casecoll'.
24956         * lib/unicase/u32-casecoll.c: New file.
24957         * modules/unicase/u32-casecoll: New file.
24958
24959         New module 'unicase/u16-casecoll'.
24960         * lib/unicase/u16-casecoll.c: New file.
24961         * modules/unicase/u16-casecoll: New file.
24962
24963         New module 'unicase/u8-casecoll'.
24964         * lib/unicase/u8-casecoll.c: New file.
24965         * lib/unicase/u-casecoll.h: New file.
24966         * modules/unicase/u8-casecoll: New file.
24967
24968         New module 'unicase/u32-casexfrm'.
24969         * lib/unicase/u32-casexfrm.c: New file.
24970         * modules/unicase/u32-casexfrm: New file.
24971
24972         New module 'unicase/u16-casexfrm'.
24973         * lib/unicase/u16-casexfrm.c: New file.
24974         * modules/unicase/u16-casexfrm: New file.
24975
24976         New module 'unicase/u8-casexfrm'.
24977         * lib/unicase/u8-casexfrm.c: New file.
24978         * lib/unicase/u-casexfrm.h: New file.
24979         * modules/unicase/u8-casexfrm: New file.
24980
24981         Tests for module 'unicase/u32-casecmp'.
24982         * modules/unicase/u32-casecmp-tests: New file.
24983         * tests/unicase/test-u32-casecmp.c: New file.
24984
24985         Tests for module 'unicase/u16-casecmp'.
24986         * modules/unicase/u16-casecmp-tests: New file.
24987         * tests/unicase/test-u16-casecmp.c: New file.
24988
24989         Tests for module 'unicase/u8-casecmp'.
24990         * modules/unicase/u8-casecmp-tests: New file.
24991         * tests/unicase/test-u8-casecmp.c: New file.
24992         * tests/unicase/test-casecmp.h: New file.
24993
24994         New module 'unicase/u32-casecmp'.
24995         * lib/unicase/u32-casecmp.c: New file.
24996         * modules/unicase/u32-casecmp: New file.
24997
24998         New module 'unicase/u16-casecmp'.
24999         * lib/unicase/u16-casecmp.c: New file.
25000         * modules/unicase/u16-casecmp: New file.
25001
25002         New module 'unicase/u8-casecmp'.
25003         * lib/unicase/u8-casecmp.c: New file.
25004         * lib/unicase/u-casecmp.h: New file.
25005         * modules/unicase/u8-casecmp: New file.
25006
25007         Tests for module 'unicase/u32-casefold'.
25008         * modules/unicase/u32-casefold-tests: New file.
25009         * tests/unicase/test-u32-casefold.c: New file.
25010
25011         Tests for module 'unicase/u16-casefold'.
25012         * modules/unicase/u16-casefold-tests: New file.
25013         * tests/unicase/test-u16-casefold.c: New file.
25014
25015         Tests for module 'unicase/u8-casefold'.
25016         * modules/unicase/u8-casefold-tests: New file.
25017         * tests/unicase/test-u8-casefold.c: New file.
25018
25019         New module 'unicase/u32-casefold'.
25020         * lib/unicase/u32-casefold.c: New file.
25021         * modules/unicase/u32-casefold: New file.
25022
25023         New module 'unicase/u16-casefold'.
25024         * lib/unicase/u16-casefold.c: New file.
25025         * modules/unicase/u16-casefold: New file.
25026
25027         New module 'unicase/u8-casefold'.
25028         * lib/unicase/u8-casefold.c: New file.
25029         * lib/unicase/u-casefold.h: New file.
25030         * modules/unicase/u8-casefold: New file.
25031
25032         New module 'unicase/tocasefold'.
25033         * lib/unicase/casefold.h: New file.
25034         * lib/unicase/tocasefold.c: New file.
25035         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
25036         * modules/unicase/tocasefold: New file.
25037
25038         Tests for module 'unicase/u32-totitle'.
25039         * modules/unicase/u32-totitle-tests: New file.
25040         * tests/unicase/test-u32-totitle.c: New file.
25041
25042         Tests for module 'unicase/u16-totitle'.
25043         * modules/unicase/u16-totitle-tests: New file.
25044         * tests/unicase/test-u16-totitle.c: New file.
25045
25046         Tests for module 'unicase/u8-totitle'.
25047         * modules/unicase/u8-totitle-tests: New file.
25048         * tests/unicase/test-u8-totitle.c: New file.
25049
25050         New module 'unicase/u32-totitle'.
25051         * lib/unicase/u32-totitle.c: New file.
25052         * modules/unicase/u32-totitle: New file.
25053
25054         New module 'unicase/u16-totitle'.
25055         * lib/unicase/u16-totitle.c: New file.
25056         * modules/unicase/u16-totitle: New file.
25057
25058         New module 'unicase/u8-totitle'.
25059         * lib/unicase/u8-totitle.c: New file.
25060         * lib/unicase/u-totitle.h: New file.
25061         * modules/unicase/u8-totitle: New file.
25062
25063         Tests for module 'unicase/u32-tolower'.
25064         * modules/unicase/u32-tolower-tests: New file.
25065         * tests/unicase/test-u32-tolower.c: New file.
25066
25067         Tests for module 'unicase/u16-tolower'.
25068         * modules/unicase/u16-tolower-tests: New file.
25069         * tests/unicase/test-u16-tolower.c: New file.
25070
25071         Tests for module 'unicase/u8-tolower'.
25072         * modules/unicase/u8-tolower-tests: New file.
25073         * tests/unicase/test-u8-tolower.c: New file.
25074
25075         New module 'unicase/u32-tolower'.
25076         * lib/unicase/u32-tolower.c: New file.
25077         * modules/unicase/u32-tolower: New file.
25078
25079         New module 'unicase/u16-tolower'.
25080         * lib/unicase/u16-tolower.c: New file.
25081         * modules/unicase/u16-tolower: New file.
25082
25083         New module 'unicase/u8-tolower'.
25084         * lib/unicase/u8-tolower.c: New file.
25085         * modules/unicase/u8-tolower: New file.
25086
25087         Tests for module 'unicase/u32-toupper'.
25088         * modules/unicase/u32-toupper-tests: New file.
25089         * tests/unicase/test-u32-toupper.c: New file.
25090
25091         Tests for module 'unicase/u16-toupper'.
25092         * modules/unicase/u16-toupper-tests: New file.
25093         * tests/unicase/test-u16-toupper.c: New file.
25094
25095         Tests for module 'unicase/u8-toupper'.
25096         * modules/unicase/u8-toupper-tests: New file.
25097         * tests/unicase/test-u8-toupper.c: New file.
25098
25099         New module 'unicase/u32-toupper'.
25100         * lib/unicase/u32-toupper.c: New file.
25101         * modules/unicase/u32-toupper: New file.
25102
25103         New module 'unicase/u16-toupper'.
25104         * lib/unicase/u16-toupper.c: New file.
25105         * modules/unicase/u16-toupper: New file.
25106
25107         New module 'unicase/u8-toupper'.
25108         * lib/unicase/u8-toupper.c: New file.
25109         * modules/unicase/u8-toupper: New file.
25110
25111         New module 'unicase/u32-casemap'.
25112         * lib/unicase/u32-casemap.c: New file.
25113         * modules/unicase/u32-casemap: New file.
25114
25115         New module 'unicase/u16-casemap'.
25116         * lib/unicase/u16-casemap.c: New file.
25117         * modules/unicase/u16-casemap: New file.
25118
25119         New module 'unicase/u8-casemap'.
25120         * lib/unicase/unicasemap.h: New file.
25121         * lib/unicase/u8-casemap.c: New file.
25122         * lib/unicase/u-casemap.h: New file.
25123         * modules/unicase/u8-casemap: New file.
25124
25125         New module 'unicase/special-casing'.
25126         * lib/unicase/special-casing.h: New file.
25127         * lib/unicase/special-casing.c: New file.
25128         * lib/unicase/special-casing-table.gperf: New file, generated by
25129         gen-uni-tables.c.
25130         * modules/unicase/special-casing: New file.
25131
25132         Tests for module 'unicase/locale-language'.
25133         * modules/unicase/locale-language-tests: New file.
25134         * tests/unicase/test-locale-language.sh: New file.
25135         * tests/unicase/test-locale-language.c: New file.
25136
25137         New module 'unicase/locale-language'.
25138         * lib/unicase/locale-language.c: New file.
25139         * lib/unicase/locale-languages.gperf: New file.
25140         * modules/unicase/locale-language: New file.
25141
25142         Generate more tables for case conversion and case folding.
25143         * lib/gen-uni-tables.c (SCC_*): New enum items.
25144         (struct special_casing_rule): New type.
25145         (casing_rules, num_casing_rules, allocated_casing_rules): New
25146         variables.
25147         (add_casing_rule, fill_casing_rules): New functions.
25148         (struct casefold_rule): New type.
25149         (casefolding_rules, num_casefolding_rules,
25150         allocated_casefolding_rules): New variables.
25151         (fill_casefolding_rules): New function.
25152         (unicode_casefold): New variable.
25153         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
25154         sort_casing_rules, output_casing_rules): New functions.
25155         (main): Accept to more arguments: SpecialCasing.txt and
25156         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
25157         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
25158         Output mapping for casefolding.
25159
25160         * lib/unicase.h: Include stdbool.h, uninorm.h.
25161         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
25162         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
25163         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
25164         arguments.
25165         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
25166         resultp arguments.
25167         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
25168         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
25169         resultp arguments.
25170         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
25171         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
25172         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
25173         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
25174         declarations.
25175         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
25176
25177 2009-03-08  Bruno Haible  <bruno@clisp.org>
25178
25179         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25180         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
25181         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
25182         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25183
25184 2009-03-07  Bruno Haible  <bruno@clisp.org>
25185
25186         Adjust u*_normcmp, u*_normcoll API.
25187         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25188         u16_normcoll, u32_normcoll): Change failure conventions.
25189         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
25190         errno and return -1.
25191         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25192
25193 2009-03-07  Bruno Haible  <bruno@clisp.org>
25194
25195         Tests for module 'uninorm/u32-normcoll'.
25196         * modules/uninorm/u32-normcoll-tests: New file.
25197         * tests/uninorm/test-u32-normcoll.c: New file.
25198
25199         Tests for module 'uninorm/u16-normcoll'.
25200         * modules/uninorm/u16-normcoll-tests: New file.
25201         * tests/uninorm/test-u16-normcoll.c: New file.
25202
25203         Tests for module 'uninorm/u8-normcoll'.
25204         * modules/uninorm/u8-normcoll-tests: New file.
25205         * tests/uninorm/test-u8-normcoll.c: New file.
25206
25207 2009-03-07  Bruno Haible  <bruno@clisp.org>
25208
25209         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
25210         tests/uninorm/test-u32-normcmp.c.
25211         * tests/uninorm/test-u32-normcmp.c: Include it.
25212         (test_nonascii): New function, extracted from main. Add some more
25213         tests.
25214         (main): Invoke test_ascii and test_nonascii.
25215         * modules/uninorm/u32-normcmp-tests (Files): Add
25216         tests/uninorm/test-u32-normcmp.h.
25217         (Depends-on): Remove uninorm/u32-normcmp.
25218
25219         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
25220         tests/uninorm/test-u16-normcmp.c.
25221         * tests/uninorm/test-u16-normcmp.c: Include it.
25222         (test_nonascii): New function, extracted from main. Add some more
25223         tests.
25224         (main): Invoke test_ascii and test_nonascii.
25225         * modules/uninorm/u16-normcmp-tests (Files): Add
25226         tests/uninorm/test-u16-normcmp.h.
25227         (Depends-on): Remove uninorm/u16-normcmp.
25228
25229         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
25230         tests/uninorm/test-u8-normcmp.c.
25231         * tests/uninorm/test-u8-normcmp.c: Include it.
25232         (test_nonascii): New function, extracted from main. Add some more
25233         tests.
25234         (main): Invoke test_ascii and test_nonascii.
25235         * modules/uninorm/u8-normcmp-tests (Files): Add
25236         tests/uninorm/test-u8-normcmp.h.
25237         (Depends-on): Remove uninorm/u8-normcmp.
25238
25239 2009-03-07  Bruno Haible  <bruno@clisp.org>
25240
25241         New module 'uninorm/u32-normcoll'.
25242         * lib/uninorm/u32-normcoll.c: New file.
25243         * modules/uninorm/u32-normcoll: New file.
25244
25245         New module 'uninorm/u16-normcoll'.
25246         * lib/uninorm/u16-normcoll.c: New file.
25247         * modules/uninorm/u16-normcoll: New file.
25248
25249         New module 'uninorm/u8-normcoll'.
25250         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
25251         declarations.
25252         * lib/uninorm/u8-normcoll.c: New file.
25253         * lib/uninorm/u-normcoll.h: New file.
25254         * modules/uninorm/u8-normcoll: New file.
25255
25256         New module 'uninorm/u32-normxfrm'.
25257         * lib/uninorm/u32-normxfrm.c: New file.
25258         * modules/uninorm/u32-normxfrm: New file.
25259
25260         New module 'uninorm/u16-normxfrm'.
25261         * lib/uninorm/u16-normxfrm.c: New file.
25262         * modules/uninorm/u16-normxfrm: New file.
25263
25264         New module 'uninorm/u8-normxfrm'.
25265         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
25266         declarations.
25267         * lib/uninorm/u8-normxfrm.c: New file.
25268         * lib/uninorm/u-normxfrm.h: New file.
25269         * modules/uninorm/u8-normxfrm: New file.
25270
25271 2009-03-07  Bruno Haible  <bruno@clisp.org>
25272
25273         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
25274         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
25275         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
25276
25277 2009-03-07  Bruno Haible  <bruno@clisp.org>
25278
25279         New module 'memxfrm'.
25280         * lib/memxfrm.h: New file.
25281         * lib/memxfrm.c: New file.
25282         * modules/memxfrm: New file.
25283
25284 2009-03-07  Bruno Haible  <bruno@clisp.org>
25285
25286         New module 'memcmp2'.
25287         * lib/memcmp2.h: New file.
25288         * lib/memcmp2.c: New file.
25289         * modules/memcmp2: New file.
25290
25291 2009-03-07  Bruno Haible  <bruno@clisp.org>
25292
25293         Tests for module 'uninorm/decomposing-form'.
25294         * modules/uninorm/decomposing-form-tests: New file.
25295         * tests/uninorm/test-decomposing-form.c: New file.
25296
25297         New module 'uninorm/decomposing-form'.
25298         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
25299         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
25300         Add 'decomposing_variant' field.
25301         * lib/uninorm/decomposing-form.c: New file.
25302         * lib/uninorm/nfc.c (uninorm_nfc): Update.
25303         * lib/uninorm/nfd.c (uninorm_nfd): Update.
25304         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
25305         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
25306         * modules/uninorm/decomposing-form: New file.
25307         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
25308         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
25309
25310 2009-03-07  Bruno Haible  <bruno@clisp.org>
25311
25312         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
25313         strings.
25314
25315 2009-03-06  Bruno Haible  <bruno@clisp.org>
25316
25317         Tests for module 'uninorm/u32-normcmp'.
25318         * tests/uninorm/test-u32-normcmp.c: New file.
25319         * modules/uninorm/u32-normcmp-tests: New file.
25320
25321         Tests for module 'uninorm/u16-normcmp'.
25322         * tests/uninorm/test-u16-normcmp.c: New file.
25323         * modules/uninorm/u16-normcmp-tests: New file.
25324
25325         Tests for module 'uninorm/u8-normcmp'.
25326         * tests/uninorm/test-u8-normcmp.c: New file.
25327         * modules/uninorm/u8-normcmp-tests: New file.
25328
25329         New module 'uninorm/u32-normcmp'.
25330         * lib/uninorm/u32-normcmp.c: New file.
25331         * modules/uninorm/u32-normcmp: New file.
25332
25333         New module 'uninorm/u16-normcmp'.
25334         * lib/uninorm/u16-normcmp.c: New file.
25335         * modules/uninorm/u16-normcmp: New file.
25336
25337         New module 'uninorm/u8-normcmp'.
25338         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
25339         declarations.
25340         * lib/uninorm/u8-normcmp.c: New file.
25341         * lib/uninorm/u-normcmp.h: New file.
25342         * modules/uninorm/u8-normcmp: New file.
25343
25344 2009-03-06  Bruno Haible  <bruno@clisp.org>
25345
25346         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
25347         Reported by Eric Blake.
25348
25349 2009-03-06  Eric Blake  <ebb9@byu.net>
25350             Bruno Haible  <bruno@clisp.org>
25351
25352         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
25353         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
25354         condition.
25355         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25356         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
25357         condition.
25358         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25359
25360 2009-03-06  Eric Blake  <ebb9@byu.net>
25361
25362         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
25363         to avoid compiler warnings.
25364         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
25365
25366 2009-03-05  Bruno Haible  <bruno@clisp.org>
25367
25368         * tests/test-ftell.c (main): Disable test beyond end of file on
25369         FreeMiNT.
25370         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25371
25372 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
25373
25374         * lib/filevercmp.c: Move hidden files up in ordering.
25375         * tests/test-filevercmp.c: Add tests for hidden files.
25376
25377 2009-03-04  Bruno Haible  <bruno@clisp.org>
25378
25379         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
25380         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
25381         AM_CFLAGS.
25382         Reported by Simon Josefsson.
25383
25384 2009-03-03  Bruno Haible  <bruno@clisp.org>
25385
25386         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
25387         Reported by Simon Josefsson.
25388
25389         * doc/ld-version-script.texi: Update node reference.
25390
25391 2009-03-03  Bruno Haible  <bruno@clisp.org>
25392
25393         * modules/visibility (License): Change to 'unlimited'.
25394         Suggested by Simon Josefsson.
25395
25396 2009-03-03  Jim Meyering  <meyering@redhat.com>
25397
25398         unlinkdir: cannot_unlink_dir may modify process state
25399         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
25400         it's neither thread-safe nor appropriate for use in a library.
25401
25402 2009-03-03  Eric Blake  <ebb9@byu.net>
25403
25404         test-closein: silence test under Darwin
25405         * tests/test-closein.sh: Ignore stderr from cat, since we don't
25406         care if it dies from EPIPE or EBADF.
25407
25408 2009-03-03  Bruno Haible  <bruno@clisp.org>
25409
25410         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
25411         earlier.
25412         * doc/visibility.texi: Fix @node and @section.
25413
25414 2009-03-03  Simon Josefsson  <simon@josefsson.org>
25415
25416         * doc/gnulib.texi: Link to sections for ld version script and
25417         visibility.
25418         * doc/visibility.texi: Add @node and @section.
25419         * modules/ld-version-script: New module.
25420         * m4/ld-version-script.m4: New file.
25421         * doc/ld-version-script.texi: New file.
25422
25423 2009-03-02  David Lutterkort  <lutter@redhat.com>
25424
25425         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
25426         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25427
25428 2009-03-02  Bruno Haible  <bruno@clisp.org>
25429
25430         * doc/visibility.texi: Mention libtool's -export-symbols option.
25431
25432 2009-03-02  Jim Meyering  <meyering@redhat.com>
25433
25434         announce-gen: new option: --no-print-checksums
25435         * build-aux/announce-gen (usage): Describe it.
25436         (print_checksums): Print a newline here, not in the [*] footnote.
25437         (main): Honor it.
25438
25439 2009-03-01  Bruno Haible  <bruno@clisp.org>
25440
25441         Use socklen_t in the native Windows replacements prototypes.
25442         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
25443         instead of 'int'.
25444         * lib/getsockopt.c (rpl_getsockopt): Likewise.
25445         * lib/setsockopt.c (rpl_setsockopt): Likewise.
25446         * modules/getsockopt (Depends-on): Add socklen.
25447         * modules/setsockopt (Depends-on): Add socklen.
25448
25449 2009-03-01  Bruno Haible  <bruno@clisp.org>
25450
25451         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
25452         least 4.2.
25453
25454 2009-03-01  Eric Blake  <ebb9@byu.net>
25455             Bruno Haible  <bruno@clisp.org>
25456
25457         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
25458         error messages.
25459         * lib/wait-process.c (wait_subprocess): Omit error message about
25460         deadly signal sent to the child of termsigp != NULL.
25461
25462 2009-03-01  Eric Blake  <ebb9@byu.net>
25463
25464         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
25465
25466 2009-03-01  Bruno Haible  <bruno@clisp.org>
25467
25468         Avoid a gcc warning.
25469         * tests/test-sched.c (b): Make global.
25470         Reported by Eric Blake.
25471
25472 2009-01-19  Martin Lambers  <marlam@marlam.de>
25473
25474         Provide POSIX semantics for socket timeout options on W32.
25475         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
25476         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
25477         * modules/setsockopt: Depend on sys_time module for struct timeval.
25478         * modules/getsockopt: Depend on sys_time module for struct timeval.
25479
25480 2009-03-01  Simon Josefsson  <simon@josefsson.org>
25481
25482         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
25483         __USE_GNU, for consistency with netdb.in.h.
25484         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25485
25486 2009-03-01  Bruno Haible  <bruno@clisp.org>
25487
25488         More support for FreeMiNT.
25489         * lib/fseeko.c (rpl_fseeko): Complete last commit.
25490         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25491
25492 2009-03-01  Bruno Haible  <bruno@clisp.org>
25493
25494         More support for FreeMiNT.
25495         * lib/fpurge.c (fpurge): Correct last commit.
25496         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25497
25498 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25499
25500         Fix unportable awk script in vc-list-files.
25501         * build-aux/vc-list-files: In the replacement awk script, use
25502         substr with a second argument of 1, not zero.
25503         Report by Simon Josefsson.
25504
25505 2009-02-28  Bruno Haible  <bruno@clisp.org>
25506
25507         More support for FreeMiNT.
25508         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
25509         to FreeMiNT today.
25510         * lib/fwriting.c (fwriting): Likewise.
25511         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
25512
25513 2009-02-28  Bruno Haible  <bruno@clisp.org>
25514
25515         * tests/test-freadseek.c (main): Disable test beyond end of file on
25516         FreeMiNT.
25517         * tests/test-ftello.c (main): Likewise.
25518         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25519
25520 2009-02-28  Bruno Haible  <bruno@clisp.org>
25521
25522         Add tentative support for FreeMiNT.
25523         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
25524         * lib/fpurge.c (fpurge): Likewise.
25525         * lib/freadable.c (freadable): Likewise.
25526         * lib/freading.c (freading): Likewise.
25527         * lib/freadptr.c (freadptr): Likewise.
25528         * lib/freadseek.c (freadptrinc): Likewise.
25529         * lib/fseeko.c (rpl_fseeko): Likewise.
25530         * lib/fseterr.c (fseterr): Likewise.
25531         * lib/fwritable.c (fwritable): Likewise.
25532         * lib/fwriting.c (fwriting): Likewise.
25533         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
25534         Hourihane.
25535         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25536
25537 2009-02-28  Bruno Haible  <bruno@clisp.org>
25538
25539         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
25540         SIGCHLD.
25541         Reported by Jim Meyering.
25542
25543 2009-02-28  Bruno Haible  <bruno@clisp.org>
25544
25545         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
25546         Mention the results of these tests on various platforms.
25547         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
25548         order.
25549         * doc/posix-functions/printf.texi: Likewise.
25550         * doc/posix-functions/snprintf.texi: Likewise.
25551         * doc/posix-functions/sprintf.texi: Likewise.
25552         * doc/posix-functions/vfprintf.texi: Likewise.
25553         * doc/posix-functions/vprintf.texi: Likewise.
25554         * doc/posix-functions/vsnprintf.texi: Likewise.
25555         * doc/posix-functions/vsprintf.texi: Likewise.
25556         * doc/glibc-functions/obstack_printf.texi: Likewise.
25557         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25558
25559 2009-02-28  Bruno Haible  <bruno@clisp.org>
25560
25561         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
25562         Reported by Loïc Minier <lool@dooz.org>.
25563
25564 2009-02-27  Bruno Haible  <bruno@clisp.org>
25565
25566         * gnulib-tool (func_import): Make the sed expression used to create the
25567         sed script for updating the .gitignore file POSIX compliant.
25568         Reported by Eric Blake.
25569
25570 2009-02-27  Bruno Haible  <bruno@clisp.org>
25571
25572         * gnulib-tool (sed): Don't alias as "sed --posix".
25573         Reported by Eric Blake.
25574
25575 2009-02-27  Bruno Haible  <bruno@clisp.org>
25576
25577         Avoid test link errors.
25578         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
25579         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
25580         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
25581         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
25582         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25583
25584 2009-02-27  Bruno Haible  <bruno@clisp.org>
25585
25586         Avoid spurious "(cached)" in configure output.
25587         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
25588         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
25589         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25590         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25591         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25592         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25593         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25594         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25595         Reported by Eric Blake.
25596
25597 2009-02-27  Eric Blake  <ebb9@byu.net>
25598
25599         printf: fix regression in previous patch
25600         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
25601
25602 2009-02-27  Bruno Haible  <bruno@clisp.org>
25603
25604         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
25605         value.
25606         * lib/stdint.in.h: Likewise.
25607         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
25608
25609 2009-02-27  Eric Blake  <ebb9@byu.net>
25610
25611         doc: mention more functions added in cygwin 1.7.0
25612         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
25613         addition.
25614         * doc/posix-functions/open_wmemstream.texi: Likewise.
25615         * doc/posix-functions/wcsnlen.texi: Likewise.
25616         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25617         * doc/posix-functions/wcstod.texi: Likewise.
25618         * doc/posix-functions/wcstof.texi: Likewise.
25619         * doc/posix-functions/wcstoimax.texi: Likewise.
25620         * doc/posix-functions/wcstok.texi: Likewise.
25621         * doc/posix-functions/wcstoumax.texi: Likewise.
25622
25623         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
25624         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
25625         * doc/posix-functions/fprintf.texi: Update.
25626         * doc/posix-functions/printf.texi: Update.
25627         * doc/posix-functions/snprintf.texi: Update.
25628         * doc/posix-functions/sprintf.texi: Update.
25629         * doc/posix-functions/vfprintf.texi: Update.
25630         * doc/posix-functions/vprintf.texi: Update.
25631         * doc/posix-functions/vsnprintf.texi: Update.
25632         * doc/posix-functions/vsprintf.texi: Update.
25633         * doc/glibc-functions/obstack_printf.texi: Update.
25634         * doc/glibc-functions/obstack_vprintf.texi: Update.
25635
25636 2009-02-26  Eric Blake  <ebb9@byu.net>
25637
25638         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
25639         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
25640         compilation bug by using runtime conversion.
25641         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25642         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
25643         * modules/ceill-tests (Files): Use nan.h.
25644         * modules/floorl-tests (Files): Likewise.
25645         * modules/frexpl-tests (Files): Likewise.
25646         * modules/isnanl-tests (Files): Likewise.
25647         * modules/ldexpl-tests (Files): Likewise.
25648         * modules/roundl-tests (Files): Likewise.
25649         * modules/truncl-tests (Files): Likewise.
25650         * tests/test-ceill.c (main): Use a working NaN.
25651         * tests/test-floorl.c (main): Likewise.
25652         * tests/test-frexpl.c (main): Likewise.
25653         * tests/test-isnan.c (test_long_double): Likewise.
25654         * tests/test-isnanl.h (main): Likewise.
25655         * tests/test-ldexpl.h (main): Likewise.
25656         * tests/test-roundl.h (main): Likewise.
25657         * tests/test-truncl.h (main): Likewise.
25658         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
25659
25660 2009-02-26  Eric Blake  <ebb9@byu.net>
25661             Bruno Haible  <bruno@clisp.org>
25662
25663         Work around a *printf bug with %ls on Solaris.
25664         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
25665         precision is specified, sprintf stops converting the wide string
25666         argument when the number of bytes that have been produced by this
25667         conversion equals or exceeds the precision.
25668         * doc/posix-functions/fprintf.texi: Update.
25669         * doc/posix-functions/printf.texi: Update.
25670         * doc/posix-functions/snprintf.texi: Update.
25671         * doc/posix-functions/sprintf.texi: Update.
25672         * doc/posix-functions/vfprintf.texi: Update.
25673         * doc/posix-functions/vprintf.texi: Update.
25674         * doc/posix-functions/vsnprintf.texi: Update.
25675         * doc/posix-functions/vsprintf.texi: Update.
25676         * doc/glibc-functions/obstack_printf.texi: Update.
25677         * doc/glibc-functions/obstack_vprintf.texi: Update.
25678
25679 2009-02-26  Eric Blake  <ebb9@byu.net>
25680
25681         stdlib: favor compiler check of random.h
25682         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
25683         to avoid an ObjC random.h installed by Swarm.
25684
25685 2009-02-26  Bruno Haible  <bruno@clisp.org>
25686
25687         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
25688         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
25689         Reported by Gary V. Vaughan <gary@gnu.org>.
25690
25691 2009-02-26  Bruno Haible  <bruno@clisp.org>
25692
25693         Fix *printf behaviour regarding the %ls directive.
25694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
25695         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
25696         NEED_PRINTF_DIRECTIVE_LS.
25697         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
25698         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25699         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25700         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
25701         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
25702         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
25703         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
25704         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25705         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25706         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25707         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25708         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
25709         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25710         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25711         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25712         * doc/posix-functions/fprintf.texi: Update.
25713         * doc/posix-functions/printf.texi: Update.
25714         * doc/posix-functions/snprintf.texi: Update.
25715         * doc/posix-functions/sprintf.texi: Update.
25716         * doc/posix-functions/vfprintf.texi: Update.
25717         * doc/posix-functions/vprintf.texi: Update.
25718         * doc/posix-functions/vsnprintf.texi: Update.
25719         * doc/posix-functions/vsprintf.texi: Update.
25720         * doc/glibc-functions/obstack_printf.texi: Update.
25721         * doc/glibc-functions/obstack_vprintf.texi: Update.
25722         Reported by Eric Blake.
25723
25724 2009-02-25  Bruno Haible  <bruno@clisp.org>
25725
25726         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
25727         with known value.
25728         Reported by Gary V. Vaughan <gary@gnu.org>.
25729
25730 2009-02-25  Bruno Haible  <bruno@clisp.org>
25731
25732         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
25733         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
25734         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
25735         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
25736         Reported by Gary V. Vaughan <gary@gnu.org>.
25737
25738 2009-02-25  Bruno Haible  <bruno@clisp.org>
25739
25740         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
25741         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
25742         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
25743         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
25744         Reported by Gary V. Vaughan <gary@gnu.org>.
25745
25746 2009-02-25  Eric Blake  <ebb9@byu.net>
25747
25748         tests: skip fseek/ftell tests if ungetc is broken
25749         * m4/ungetc.m4: New file.
25750         * modules/fseek-tests: Split test, so ungetc dependency is
25751         separate from rest of test.
25752         * modules/fseeko-tests: Likewise.
25753         * modules/ftell-tests: Likewise.
25754         * modules/ftello-tests: Likewise.
25755         * tests/test-fseek.c (main): Isolate ungetc dependency.
25756         * tests/test-fseeko.c (main): Likewise.
25757         * tests/test-ftell.c (main): Likewise.
25758         * tests/test-ftello.c (main): Likewise.
25759         * tests/test-fseek2.sh: New file.
25760         * tests/test-fseeko2.sh: Likewise.
25761         * tests/test-ftell2.sh: Likewise.
25762         * tests/test-ftello2.sh: Likewise.
25763
25764 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
25765
25766         test-getaddrinfo: fix usage of skip return code 77
25767         * tests/test-gettaddrinfo.c: Return skip code 77 only
25768         for first occurance of skip (4x77 is not 77)
25769
25770 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
25771
25772         strtod: avoid C99 decl-after-statement
25773         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
25774
25775 2009-02-24  Eric Blake  <ebb9@byu.net>
25776
25777         strtod: detect HP-UX 11.31 bug
25778         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
25779         Reported by Gary V. Vaughan.
25780
25781 2009-02-23  Bruno Haible  <bruno@clisp.org>
25782
25783         Fix invalid read past end of memory block.
25784         * lib/vasnprintf.c (DCHAR_SET): Define.
25785         (local_wcslen): Define only when needed.
25786         (local_strnlen, local_wcsnlen): New functions.
25787         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
25788         directives that involve a conversion ourselves.
25789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
25790         wcsnlen, mbrtowc, wcrtomb.
25791         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
25792         * tests/test-vasprintf-posix.c (test_function): Likewise.
25793         * tests/test-snprintf-posix.h (test_function): Likewise.
25794         * tests/test-sprintf-posix.h (test_function): Likewise.
25795         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25796
25797 2009-02-22  Bruno Haible  <bruno@clisp.org>
25798
25799         Implement new clarified decomposition of Hangul syllables.
25800         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
25801         of type LTV, return only a pairwise decomposition.
25802         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
25803         Likewise.
25804         * tests/uninorm/test-decomposition.c (main): Updated expected result.
25805         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
25806         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
25807
25808 2009-02-22  Bruno Haible  <bruno@clisp.org>
25809
25810         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
25811         zero-length results and shrink excess allocated memory.
25812         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
25813         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
25814         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
25815         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
25816         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
25817         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
25818         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
25819         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
25820         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
25821         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
25822         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
25823         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
25824
25825 2009-02-21  Bruno Haible  <bruno@clisp.org>
25826
25827         * doc/gnulib.texi: Include safe-alloc.texi earlier.
25828         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
25829         spaces after a period. Put a space between a macro name and its
25830         argument list. Trivial rewordings.
25831         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
25832         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
25833         (main): Return 0 explicitly.
25834
25835 2009-02-21  Bruno Haible  <bruno@clisp.org>
25836
25837         Tests for module 'uninorm/filter'.
25838         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
25839         * modules/uninorm/filter-tests: New file.
25840
25841         New module 'uninorm/filter'.
25842         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
25843         uninorm_filter_flush, uninorm_filter_free): New declarations.
25844         * lib/uninorm/uninorm-filter.c: New file.
25845         * modules/uninorm/filter: New file.
25846
25847 2009-02-21  Bruno Haible  <bruno@clisp.org>
25848
25849         Tests for module 'uninorm/nfkc'.
25850         * tests/uninorm/test-nfkc.c: New file.
25851         * tests/uninorm/test-u8-nfkc.c: New file.
25852         * tests/uninorm/test-u16-nfkc.c: New file.
25853         * tests/uninorm/test-u32-nfkc.c: New file.
25854         * tests/uninorm/test-u32-nfkc-big.sh: New file.
25855         * tests/uninorm/test-u32-nfkc-big.c: New file.
25856         * modules/uninorm/nfkc-tests: New file.
25857
25858         New module 'uninorm/nfkc'.
25859         * lib/uninorm/nfkc.c: New file.
25860         * modules/uninorm/nfkc: New file.
25861
25862         Tests for module 'uninorm/nfkd'.
25863         * tests/uninorm/test-nfkd.c: New file.
25864         * tests/uninorm/test-u8-nfkd.c: New file.
25865         * tests/uninorm/test-u16-nfkd.c: New file.
25866         * tests/uninorm/test-u32-nfkd.c: New file.
25867         * tests/uninorm/test-u32-nfkd-big.sh: New file.
25868         * tests/uninorm/test-u32-nfkd-big.c: New file.
25869         * modules/uninorm/nfkd-tests: New file.
25870
25871         New module 'uninorm/nfkd'.
25872         * lib/uninorm/nfkd.c: New file.
25873         * modules/uninorm/nfkd: New file.
25874
25875         Tests for module 'uninorm/nfc'.
25876         * tests/uninorm/test-nfc.c: New file.
25877         * tests/uninorm/test-u8-nfc.c: New file.
25878         * tests/uninorm/test-u16-nfc.c: New file.
25879         * tests/uninorm/test-u32-nfc.c: New file.
25880         * tests/uninorm/test-u32-nfc-big.sh: New file.
25881         * tests/uninorm/test-u32-nfc-big.c: New file.
25882         * modules/uninorm/nfc-tests: New file.
25883
25884         New module 'uninorm/nfc'.
25885         * lib/uninorm/nfc.c: New file.
25886         * modules/uninorm/nfc: New file.
25887
25888         Tests for module 'uninorm/nfd'.
25889         * tests/uninorm/test-nfd.c: New file.
25890         * tests/uninorm/test-u8-nfd.c: New file.
25891         * tests/uninorm/test-u16-nfd.c: New file.
25892         * tests/uninorm/test-u32-nfd.c: New file.
25893         * tests/uninorm/test-u32-nfd-big.sh: New file.
25894         * tests/uninorm/test-u32-nfd-big.c: New file.
25895         * tests/uninorm/test-u32-normalize-big.h: New file.
25896         * tests/uninorm/test-u32-normalize-big.c: New file.
25897         * tests/uninorm/NormalizationTest.txt: New file, created from
25898         Unicode 5.1.0 NormalizationTest.txt.
25899         * modules/uninorm/nfd-tests: New file.
25900
25901         New module 'uninorm/nfd'.
25902         * lib/uninorm/nfd.c: New file.
25903         * modules/uninorm/nfd: New file.
25904
25905         New module 'uninorm/u32-normalize'.
25906         * lib/uninorm/u32-normalize.c: New file.
25907         * modules/uninorm/u32-normalize: New file.
25908
25909         New module 'uninorm/u16-normalize'.
25910         * lib/uninorm/u16-normalize.c: New file.
25911         * modules/uninorm/u16-normalize: New file.
25912
25913         New module 'uninorm/u8-normalize'.
25914         * lib/uninorm/u8-normalize.c: New file.
25915         * lib/uninorm/normalize-internal.h: New file.
25916         * lib/uninorm/u-normalize-internal.h: New file.
25917         * modules/uninorm/u8-normalize: New file.
25918
25919         New module 'uninorm/decompose-internal'.
25920         * lib/uninorm/decompose-internal.c: New file.
25921         * modules/uninorm/decompose-internal: New file.
25922
25923         Tests for module 'uninorm/composition'.
25924         * tests/uninorm/test-composition.c: New file.
25925         * modules/uninorm/composition-tests: New file.
25926
25927         New module 'uninorm/composition'.
25928         * lib/uninorm/composition.c: New file.
25929         * lib/uninorm/composition-table.gperf: New file, generated by
25930         gen-uni-tables.
25931         * modules/uninorm/composition: New file.
25932
25933         Tests for module 'uninorm/compat-decomposition'.
25934         * tests/uninorm/test-compat-decomposition.c: New file.
25935         * modules/uninorm/compat-decomposition-tests: New file.
25936
25937         New module 'uninorm/compat-decomposition'.
25938         * lib/uninorm/decompose-internal.h: New file.
25939         * lib/uninorm/compat-decomposition.c: New file.
25940         * modules/uninorm/compat-decomposition: New file.
25941
25942         Tests for module 'uninorm/canonical-decomposition'.
25943         * tests/uninorm/test-canonical-decomposition.c: New file.
25944         * modules/uninorm/canonical-decomposition-tests: New file.
25945
25946         New module 'uninorm/canonical-decomposition'.
25947         * lib/uninorm/canonical-decomposition.c: New file.
25948         * modules/uninorm/canonical-decomposition: New file.
25949
25950         Tests for module 'uninorm/decomposition'.
25951         * tests/uninorm/test-decomposition.c: New file.
25952         * modules/uninorm/decomposition-tests: New file.
25953
25954         New module 'uninorm/decomposition'.
25955         * lib/uninorm/decomposition.c: New file.
25956         * modules/uninorm/decomposition: New file.
25957
25958         New module 'uninorm/decomposition-table'.
25959         * lib/uninorm/decomposition-table.h: New file.
25960         * lib/uninorm/decomposition-table.c: New file.
25961         * lib/uninorm/decomposition-table1.h: New file, generated by
25962         gen-uni-tables.
25963         * lib/uninorm/decomposition-table2.h: New file, generated by
25964         gen-uni-tables.
25965         * modules/uninorm/decomposition-table: New file.
25966
25967         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
25968         (UC_DECOMP_*): New enumeration items.
25969         (get_decomposition): New function.
25970         (struct decomp_table): New type.
25971         (output_decomposition, output_decomposition_tables): New functions.
25972         (unicode_composition_exclusions): New variable.
25973         (fill_composition_exclusions, debug_output_composition_tables): New
25974         functions.
25975         (main): Accept one more argument. Invoke fill_composition_exclusions.
25976         Output decomposition and composition tables.
25977
25978         New module 'uninorm/base'.
25979         * lib/uninorm.h: New file.
25980         * lib/unictype.h: Update comment.
25981         * modules/uninorm/base: New file.
25982
25983 2009-02-21  David Lutterkort  <lutter@redhat.com>
25984
25985         Tests for module 'safe-alloc'.
25986         * tests/test-safe-alloc.c: New file.
25987         * modules/safe-alloc-tests: New file.
25988
25989         New module 'safe-alloc'.
25990         * lib/safe-alloc.h: New file.
25991         * lib/safe-alloc.c: New file.
25992         * m4/safe-alloc.m4: New file.
25993         * modules/safe-alloc: New file.
25994         * doc/safe-alloc.texi: New file.
25995         * doc/gnulib.texi: Include it.
25996         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25997         safe-alloc.
25998
25999 2009-02-18  Bruno Haible  <bruno@clisp.org>
26000
26001         Fix link error on non-glibc systems.
26002         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
26003         variable.
26004         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26005
26006 2009-02-18  Jim Meyering  <meyering@redhat.com>
26007
26008         fts: avoid used-uninitialized error due to recent change
26009         * lib/fts.c (fts_read): Guard uses of the new member,
26010         parent->fts_n_dirs_remaining, since it's not relevant for
26011         the parent of a directory specified on the command-line.
26012
26013 2009-02-17  James Youngman  <jay@gnu.org>
26014             Bruno Haible  <bruno@clisp.org>
26015
26016         * m4/include_next.m4: Reformulate comment.
26017
26018 2009-02-16  Jim Meyering  <meyering@redhat.com>
26019
26020         fts: add #if guards so that the fts_lgpl module still builds
26021         * lib/fts.c: Guard just-added hash-table-using parts with
26022         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
26023         Reported by Simon Josefsson.
26024
26025 2009-02-15  Bruno Haible  <bruno@clisp.org>
26026
26027         * modules/array-mergesort-tests: New file.
26028         * tests/test-array-mergesort.c: New file.
26029
26030         New module 'array-mergesort'.
26031         * modules/array-mergesort: New file.
26032         * lib/array-mergesort.h: New file.
26033
26034 2009-02-15  Bruno Haible  <bruno@clisp.org>
26035
26036         Fix 2009-02-07 commit.
26037         * lib/gen-uni-tables.c (output_predicate, output_category,
26038         output_combclass, output_bidi_category, output_decimal_digit,
26039         output_digit, output_numeric, output_mirror, output_scripts,
26040         output_ident_category, output_simple_mapping): Fix format directives.
26041         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
26042
26043 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
26044
26045         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
26046         fixes are available from IBM.
26047
26048 2009-02-13  Jim Meyering  <meyering@redhat.com>
26049
26050         fts: arrange not to stat non-directories in more cases
26051         This makes GNU find (when it doesn't need to stat each file)
26052         *much* more efficient at traversing reiserfs file systems.
26053         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
26054         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
26055         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
26056         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
26057         (leaf_optimization_applies): New function.
26058         (LCO_hash, LCO_compare): New helper functions.
26059         (link_count_optimize_ok): New function.
26060         (fts_stat): Initialize new member (if dir).
26061         (fts_read): Decrement parent's fts_n_dirs_remaining count if
26062         we've just stat'ed a directory.  Skip the stat call when possible.
26063         ---
26064         Note this AFS-related exchange:
26065         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
26066         and note find's pioctl call in find/fstype.c.
26067         But that is necessary only if you want to enable the
26068         optimization for AFS, and for now, I don't.
26069
26070         fts: move a function definition "up" (no semantic change)
26071         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
26072         "up" to precede upcoming use of a related function.
26073
26074 2009-02-11  Jim Meyering  <meyering@redhat.com>
26075
26076         fts: correct internal computation of nlinks (optimization-related)
26077         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
26078         whether the current entry is a directory, so don't test it.
26079
26080 2009-02-10  Bruno Haible  <bruno@clisp.org>
26081
26082         Tests for module 'uniwbrk/ulc-wordbreaks'.
26083         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
26084         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
26085         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
26086
26087         Tests for module 'uniwbrk/u32-wordbreaks'.
26088         * modules/uniwbrk/u32-wordbreaks-tests: New file.
26089         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
26090
26091         Tests for module 'uniwbrk/u16-wordbreaks'.
26092         * modules/uniwbrk/u16-wordbreaks-tests: New file.
26093         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
26094
26095         Tests for module 'uniwbrk/u8-wordbreaks'.
26096         * modules/uniwbrk/u8-wordbreaks-tests: New file.
26097         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
26098
26099 2009-02-10  Bruno Haible  <bruno@clisp.org>
26100
26101         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
26102         property.
26103         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
26104         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
26105         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
26106
26107 2009-02-10  Simon Josefsson  <simon@josefsson.org>
26108
26109         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
26110         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
26111
26112 2009-02-10  Bruno Haible  <bruno@clisp.org>
26113
26114         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
26115         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
26116         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
26117         * lib/unilbrk/u8-possible-linebreaks.c: Update.
26118         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
26119         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
26120
26121 2009-02-09  Simon Josefsson  <simon@josefsson.org>
26122
26123         * lib/sockets.h (gl_fd_to_handle): New function.
26124
26125         * tests/test-sockets.c: Call gl_fd_to_handle.
26126
26127 2009-02-09  Bruno Haible  <bruno@clisp.org>
26128
26129         * doc/havelib.texi: Document the conventions on bi-arch systems.
26130
26131 2009-02-08  Bruno Haible  <bruno@clisp.org>
26132
26133         Document the AC_LIB_LINKFLAGS macro.
26134         * doc/havelib.texi: New file, mostly written on 2005-05-24.
26135         * doc/gnulib.texi: Include it.
26136
26137 2009-02-08  Bruno Haible  <bruno@clisp.org>
26138
26139         Fix wrong order of sections, compared to TOC.
26140         * doc/gnulib.texi: Include relocatable-maint.texi after the
26141         "Regular expressions" node, not before.
26142
26143 2009-02-08  Bruno Haible  <bruno@clisp.org>
26144
26145         Tests for module 'unicase/totitle'.
26146         * modules/unicase/totitle-tests: New file.
26147
26148         Tests for module 'unicase/tolower'.
26149         * modules/unicase/tolower-tests: New file.
26150
26151         Tests for module 'unicase/toupper'.
26152         * modules/unicase/toupper-tests: New file.
26153         * tests/unicase/test-mapping-part1.h: New file.
26154         * tests/unicase/test-mapping-part2.h: New file.
26155
26156         New module 'unicase/totitle'.
26157         * modules/unicase/totitle: New file.
26158         * lib/unicase/totitle.c: New file.
26159
26160         New module 'unicase/tolower'.
26161         * modules/unicase/tolower: New file.
26162         * lib/unicase/tolower.c: New file.
26163
26164         New module 'unicase/toupper'.
26165         * modules/unicase/toupper: New file.
26166         * lib/unicase/toupper.c: New file.
26167         * lib/unicase/simple-mapping.h: New file.
26168
26169         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
26170         (mapping_table): New structure.
26171         (output_simple_mapping): New function.
26172         (main): Invoke output_simple_mapping_test and output_simple_mapping.
26173         * modules/gen-uni-tables (Description): Update.
26174         * lib/unicase/toupper.h: New file, automatically generated by
26175         gen-uni-tables.
26176         * lib/unicase/tolower.h: New file, automatically generated by
26177         gen-uni-tables.
26178         * lib/unicase/totitle.h: New file, automatically generated by
26179         gen-uni-tables.
26180         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
26181         gen-uni-tables.
26182         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
26183         gen-uni-tables.
26184         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
26185         gen-uni-tables.
26186
26187         New module 'unicase/base'.
26188         * modules/unicase/base: New file.
26189         * lib/unicase.h: New file.
26190
26191 2009-02-08  Bruno Haible  <bruno@clisp.org>
26192
26193         New module 'uniwbrk/ulc-wordbreaks'.
26194         * modules/uniwbrk/ulc-wordbreaks: New file.
26195         * lib/uniwbrk/ulc-wordbreaks.c: New file.
26196
26197         New module 'uniwbrk/u32-wordbreaks'.
26198         * modules/uniwbrk/u32-wordbreaks: New file.
26199         * lib/uniwbrk/u32-wordbreaks.c: New file.
26200
26201         New module 'uniwbrk/u16-wordbreaks'.
26202         * modules/uniwbrk/u16-wordbreaks: New file.
26203         * lib/uniwbrk/u16-wordbreaks.c: New file.
26204
26205         New module 'uniwbrk/u8-wordbreaks'.
26206         * modules/uniwbrk/u8-wordbreaks: New file.
26207         * lib/uniwbrk/u8-wordbreaks.c: New file.
26208         * lib/uniwbrk/u-wordbreaks.h: New file.
26209
26210         New module 'uniwbrk/table'.
26211         * modules/uniwbrk/table: New file.
26212         * lib/uniwbrk/wbrktable.h: New file.
26213         * lib/uniwbrk/wbrktable.c: New file.
26214
26215         New module 'uniwbrk/wordbreak-property'.
26216         * modules/uniwbrk/wordbreak-property: New file.
26217         * lib/uniwbrk/wordbreak-property.c: New file.
26218
26219         * lib/gen-uni-tables.c (WBP_*): New enum items.
26220         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
26221         (unicode_org_wbp): New variable.
26222         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
26223         New functions.
26224         (wbp_table): New structure.
26225         (output_wbp, output_wbrk_tables): New functions.
26226         (main): Accept additional argument. Invoke fill_org_wbp,
26227         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
26228         output_wbrk_tables.
26229         * modules/gen-uni-tables (Description): Update.
26230         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
26231         gen-uni-tables.
26232
26233         New module 'uniwbrk/base'.
26234         * modules/uniwbrk/base: New file.
26235         * lib/uniwbrk.h: New file.
26236
26237 2009-02-08  Bruno Haible  <bruno@clisp.org>
26238
26239         Update to Unicode 5.1.0.
26240         * lib/gen-uni-tables.c (is_property_alphabetic): Include
26241         U+2185..U+2188.
26242         (is_property_default_ignorable_code_point): Don't include characters
26243         of category Cc or Cs and not-a-characters.
26244         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
26245         U+0D79, U+109E, U+109F, U+A60C.
26246         * lib/unictype/bidi_of.h: Regenerated.
26247         * lib/unictype/blocks.h: Regenerated.
26248         * lib/unictype/categ_C.h: Regenerated.
26249         * lib/unictype/categ_Cf.h: Regenerated.
26250         * lib/unictype/categ_Cn.h: Regenerated.
26251         * lib/unictype/categ_L.h: Regenerated.
26252         * lib/unictype/categ_Ll.h: Regenerated.
26253         * lib/unictype/categ_Lm.h: Regenerated.
26254         * lib/unictype/categ_Lo.h: Regenerated.
26255         * lib/unictype/categ_Lu.h: Regenerated.
26256         * lib/unictype/categ_M.h: Regenerated.
26257         * lib/unictype/categ_Mc.h: Regenerated.
26258         * lib/unictype/categ_Me.h: Regenerated.
26259         * lib/unictype/categ_Mn.h: Regenerated.
26260         * lib/unictype/categ_N.h: Regenerated.
26261         * lib/unictype/categ_Nd.h: Regenerated.
26262         * lib/unictype/categ_Nl.h: Regenerated.
26263         * lib/unictype/categ_No.h: Regenerated.
26264         * lib/unictype/categ_P.h: Regenerated.
26265         * lib/unictype/categ_Pd.h: Regenerated.
26266         * lib/unictype/categ_Pe.h: Regenerated.
26267         * lib/unictype/categ_Pf.h: Regenerated.
26268         * lib/unictype/categ_Pi.h: Regenerated.
26269         * lib/unictype/categ_Po.h: Regenerated.
26270         * lib/unictype/categ_Ps.h: Regenerated.
26271         * lib/unictype/categ_S.h: Regenerated.
26272         * lib/unictype/categ_Sk.h: Regenerated.
26273         * lib/unictype/categ_Sm.h: Regenerated.
26274         * lib/unictype/categ_So.h: Regenerated.
26275         * lib/unictype/categ_of.h: Regenerated.
26276         * lib/unictype/combining.h: Regenerated.
26277         * lib/unictype/ctype_alnum.h: Regenerated.
26278         * lib/unictype/ctype_alpha.h: Regenerated.
26279         * lib/unictype/ctype_graph.h: Regenerated.
26280         * lib/unictype/ctype_lower.h: Regenerated.
26281         * lib/unictype/ctype_print.h: Regenerated.
26282         * lib/unictype/ctype_punct.h: Regenerated.
26283         * lib/unictype/ctype_upper.h: Regenerated.
26284         * lib/unictype/decdigit.h: Regenerated.
26285         * lib/unictype/digit.h: Regenerated.
26286         * lib/unictype/mirror.h: Regenerated.
26287         * lib/unictype/numeric.h: Regenerated.
26288         * lib/unictype/pr_alphabetic.h: Regenerated.
26289         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
26290         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
26291         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
26292         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
26293         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
26294         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
26295         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
26296         * lib/unictype/pr_combining.h: Regenerated.
26297         * lib/unictype/pr_dash.h: Regenerated.
26298         * lib/unictype/pr_decimal_digit.h: Regenerated.
26299         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
26300         * lib/unictype/pr_deprecated.h: Regenerated.
26301         * lib/unictype/pr_diacritic.h: Regenerated.
26302         * lib/unictype/pr_extender.h: Regenerated.
26303         * lib/unictype/pr_format_control.h: Regenerated.
26304         * lib/unictype/pr_grapheme_base.h: Regenerated.
26305         * lib/unictype/pr_grapheme_extend.h: Regenerated.
26306         * lib/unictype/pr_grapheme_link.h: Regenerated.
26307         * lib/unictype/pr_id_continue.h: Regenerated.
26308         * lib/unictype/pr_id_start.h: Regenerated.
26309         * lib/unictype/pr_ideographic.h: Regenerated.
26310         * lib/unictype/pr_ignorable_control.h: Regenerated.
26311         * lib/unictype/pr_lowercase.h: Regenerated.
26312         * lib/unictype/pr_math.h: Regenerated.
26313         * lib/unictype/pr_numeric.h: Regenerated.
26314         * lib/unictype/pr_other_alphabetic.h: Regenerated.
26315         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
26316         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
26317         * lib/unictype/pr_other_id_continue.h: Regenerated.
26318         * lib/unictype/pr_other_lowercase.h: Regenerated.
26319         * lib/unictype/pr_other_math.h: Regenerated.
26320         * lib/unictype/pr_punctuation.h: Regenerated.
26321         * lib/unictype/pr_sentence_terminal.h: Regenerated.
26322         * lib/unictype/pr_soft_dotted.h: Regenerated.
26323         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
26324         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
26325         * lib/unictype/pr_unified_ideograph.h: Regenerated.
26326         * lib/unictype/pr_uppercase.h: Regenerated.
26327         * lib/unictype/pr_xid_continue.h: Regenerated.
26328         * lib/unictype/pr_xid_start.h: Regenerated.
26329         * lib/unictype/pr_zero_width.h: Regenerated.
26330         * lib/unictype/scripts.h: Regenerated.
26331         * lib/unictype/scripts_byname.gperf: Regenerated.
26332         * lib/unictype/sy_java_ident.h: Regenerated.
26333         * lib/unilbrk/lbrkprop1.h: Regenerated.
26334         * lib/unilbrk/lbrkprop2.h: Regenerated.
26335         * tests/unictype/test-categ_C.c: Regenerated.
26336         * tests/unictype/test-categ_Cf.c: Regenerated.
26337         * tests/unictype/test-categ_Cn.c: Regenerated.
26338         * tests/unictype/test-categ_L.c: Regenerated.
26339         * tests/unictype/test-categ_Ll.c: Regenerated.
26340         * tests/unictype/test-categ_Lm.c: Regenerated.
26341         * tests/unictype/test-categ_Lo.c: Regenerated.
26342         * tests/unictype/test-categ_Lu.c: Regenerated.
26343         * tests/unictype/test-categ_M.c: Regenerated.
26344         * tests/unictype/test-categ_Mc.c: Regenerated.
26345         * tests/unictype/test-categ_Me.c: Regenerated.
26346         * tests/unictype/test-categ_Mn.c: Regenerated.
26347         * tests/unictype/test-categ_N.c: Regenerated.
26348         * tests/unictype/test-categ_Nd.c: Regenerated.
26349         * tests/unictype/test-categ_Nl.c: Regenerated.
26350         * tests/unictype/test-categ_No.c: Regenerated.
26351         * tests/unictype/test-categ_P.c: Regenerated.
26352         * tests/unictype/test-categ_Pd.c: Regenerated.
26353         * tests/unictype/test-categ_Pe.c: Regenerated.
26354         * tests/unictype/test-categ_Pf.c: Regenerated.
26355         * tests/unictype/test-categ_Pi.c: Regenerated.
26356         * tests/unictype/test-categ_Po.c: Regenerated.
26357         * tests/unictype/test-categ_Ps.c: Regenerated.
26358         * tests/unictype/test-categ_S.c: Regenerated.
26359         * tests/unictype/test-categ_Sk.c: Regenerated.
26360         * tests/unictype/test-categ_Sm.c: Regenerated.
26361         * tests/unictype/test-categ_So.c: Regenerated.
26362         * tests/unictype/test-ctype_alnum.c: Regenerated.
26363         * tests/unictype/test-ctype_alpha.c: Regenerated.
26364         * tests/unictype/test-ctype_graph.c: Regenerated.
26365         * tests/unictype/test-ctype_lower.c: Regenerated.
26366         * tests/unictype/test-ctype_print.c: Regenerated.
26367         * tests/unictype/test-ctype_punct.c: Regenerated.
26368         * tests/unictype/test-ctype_upper.c: Regenerated.
26369         * tests/unictype/test-decdigit.h: Regenerated.
26370         * tests/unictype/test-digit.h: Regenerated.
26371         * tests/unictype/test-numeric.h: Regenerated.
26372         * tests/unictype/test-pr_alphabetic.c: Regenerated.
26373         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
26374         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
26375         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
26376         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
26377         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
26378         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
26379         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
26380         * tests/unictype/test-pr_combining.c: Regenerated.
26381         * tests/unictype/test-pr_dash.c: Regenerated.
26382         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
26383         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
26384         * tests/unictype/test-pr_deprecated.c: Regenerated.
26385         * tests/unictype/test-pr_diacritic.c: Regenerated.
26386         * tests/unictype/test-pr_extender.c: Regenerated.
26387         * tests/unictype/test-pr_format_control.c: Regenerated.
26388         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
26389         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
26390         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
26391         * tests/unictype/test-pr_id_continue.c: Regenerated.
26392         * tests/unictype/test-pr_id_start.c: Regenerated.
26393         * tests/unictype/test-pr_ideographic.c: Regenerated.
26394         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
26395         * tests/unictype/test-pr_lowercase.c: Regenerated.
26396         * tests/unictype/test-pr_math.c: Regenerated.
26397         * tests/unictype/test-pr_numeric.c: Regenerated.
26398         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
26399         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
26400         Regenerated.
26401         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
26402         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
26403         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
26404         * tests/unictype/test-pr_other_math.c: Regenerated.
26405         * tests/unictype/test-pr_punctuation.c: Regenerated.
26406         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
26407         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
26408         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
26409         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
26410         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
26411         * tests/unictype/test-pr_uppercase.c: Regenerated.
26412         * tests/unictype/test-pr_xid_continue.c: Regenerated.
26413         * tests/unictype/test-pr_xid_start.c: Regenerated.
26414         * tests/unictype/test-pr_zero_width.c: Regenerated.
26415
26416         Update to Unicode 5.1.0.
26417         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
26418         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
26419         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
26420         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
26421         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
26422         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
26423         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
26424         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
26425         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
26426         (nonspacing_table_ind): Update.
26427         * tests/uniwidth/test-uc_width2.sh: Update expected result.
26428
26429         Update to Unicode 5.1.0.
26430         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
26431         code transform.
26432         * lib/uniname/uniname.c (unicode_character_name,
26433         unicode_name_character): Add the range 0x1Fxxx to the code transform.
26434         * lib/uniname/uninames.h: Regenerated.
26435         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
26436
26437 2009-02-07  Bruno Haible  <bruno@clisp.org>
26438
26439         Merge gen-ctype and gen-lbrk into a single program.
26440         * lib/gen-uni-tables.c: New file, incorporating
26441         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
26442         Add directory prefixes to the names of the generated files.
26443         * lib/unictype/gen-ctype.c: Remove file.
26444         * lib/unilbrk/gen-lbrk.c: Remove file.
26445         * modules/gen-uni-tables: New file.
26446         * modules/unictype/gen-ctype: Remove file.
26447         * modules/unilbrk/gen-lbrk: Remove file.
26448
26449 2009-02-07  Bruno Haible  <bruno@clisp.org>
26450
26451         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
26452
26453         New module 'unistr/u32-strcoll'.
26454         * modules/unistr/u32-strcoll: New file.
26455         * lib/unistr/u32-strcoll.c: New file.
26456
26457         New module 'unistr/u16-strcoll'.
26458         * modules/unistr/u16-strcoll: New file.
26459         * lib/unistr/u16-strcoll.c: New file.
26460
26461         New module 'unistr/u8-strcoll'.
26462         * modules/unistr/u8-strcoll: New file.
26463         * lib/unistr/u8-strcoll.c: New file.
26464         * lib/unistr/u-strcoll.h: New file.
26465
26466 2009-02-07  Bruno Haible  <bruno@clisp.org>
26467
26468         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
26469         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26470         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26471         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
26472         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
26473         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
26474
26475 2009-02-07  Bruno Haible  <bruno@clisp.org>
26476
26477         Make 64-bit clean.
26478         * lib/unictype/gen-ctype.c (output_predicate, output_category,
26479         output_combclass, output_bidi_category, output_decimal_digit,
26480         output_digit, output_numeric, output_mirror, output_scripts,
26481         output_ident_category): Use proper width specifier in format strings.
26482
26483 2009-02-07  Bruno Haible  <bruno@clisp.org>
26484
26485         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
26486         failure behaviour.
26487
26488 2009-02-07  Jim Meyering  <meyering@redhat.com>
26489
26490         regex: avoid compilation failure with upcoming gcc-4.4
26491         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
26492         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
26493         "... error: integer overflow in preprocessor expression".
26494
26495 2009-02-05  Ben Pfaff  <blp@gnu.org>
26496
26497         Fix link errors on Windows when close module is used.
26498         * modules/close: Add $(LIB_CLOSE) to Link section.
26499         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
26500         $(LIB_CLOSE) on Windows.
26501
26502 2009-02-05  Jim Meyering  <meyering@redhat.com>
26503
26504         still avoid unused-parameter warnings, but do it cleanly
26505         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
26506         (get_fs_usage): Cast to void instead.
26507         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
26508         (dev_from_mount_options, read_file_system_list): Cast to void.
26509         Prompted by Bruno Haible.
26510
26511 2009-02-04  Jim Meyering  <meyering@redhat.com>
26512
26513         fsusage.c: correct copyright year
26514         * lib/fsusage.c: Reflect year in which the change is pushed into
26515
26516         avoid misc. warnings
26517         * lib/fsusage.c (UNUSED_PARAM): Define.
26518         (get_fs_usage): Mark parameter "disk" as unused.
26519         * lib/getugroups.c (getgrent): Use "void" in prototype.
26520         * lib/mountlist.c: Mark unused parameters.
26521         (read_file_system_list): Declare a local with "const".
26522         * lib/nanosleep.c (getnow): Declare static.
26523         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
26524
26525         dirfd: set errno upon failure
26526         * lib/dirfd.c: Include <errno.h>.
26527         Set errno to ENOTSUP when returning -1.
26528         * modules/dirfd (Depends-on): Add errno.
26529         Suggested by John Kodis <kodis@comcast.net>.
26530
26531 2009-02-01  Bruno Haible  <bruno@clisp.org>
26532
26533         Don't assume sizeof (long) >= sizeof (void *).
26534         * lib/memcmp.c: Include stdint.h.
26535         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
26536         srcp2 to 'const byte *'.
26537         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
26538         types to uintptr_t.
26539         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
26540         * modules/memcmp (Depends-on): Add stdint.
26541         Reported by Ozkan Sezer <sezeroz@gmail.com>.
26542
26543 2009-01-30  Eric Blake  <ebb9@byu.net>
26544
26545         fix more require-before-expand issues
26546         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
26547         expand, AC_PROG_AWK.
26548         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
26549
26550 2009-01-28  Eric Blake  <ebb9@byu.net>
26551
26552         version-etc: use consistent URL formatting
26553         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
26554         Improve formatting.  Use fputs for string without %.
26555
26556 2009-01-28  Jim Meyering  <meyering@redhat.com>
26557
26558         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
26559         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
26560         "underquoted definition of NAME" from autoconf-2.59.
26561
26562 2009-01-28  Bruno Haible  <bruno@clisp.org>
26563
26564         * doc/gnulib.texi: Add "Obsolete modules" to index.
26565
26566 2009-01-28  Jim Meyering  <meyering@redhat.com>
26567
26568         useless-if-before-free: recognize more variants
26569         * build-aux/useless-if-before-free: Also recognize e.g.,
26570         if (NULL != p) free (p);
26571
26572 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
26573
26574         test-getaddrinfo: skip (don't fail) this test when there's no network
26575         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
26576         on the presumption that it means you lack network access.
26577
26578 2009-01-26  Jim Meyering  <meyering@redhat.com>
26579
26580         fflush: avoid warnings on modern systems
26581         * lib/fflush.c (rpl_fflush): Move declarations of locals,
26582         pos and result, into scopes where they're used.
26583
26584 2009-01-26  Eric Blake  <ebb9@byu.net>
26585
26586         Silence warning reintroduced by recent extensions patch.
26587         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
26588         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
26589         autoconf.
26590
26591         Backport improved autoconf semantics of AC_DEFUN_ONCE.
26592         * m4/00gnulib.m4: New file.
26593         * gnulib-tool (func_get_filelist): Always use it.
26594         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
26595         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
26596
26597 2009-01-25  Bruno Haible  <bruno@clisp.org>
26598
26599         Make test-quotearg work on MacOS X and AIX.
26600         * tests/test-quotearg.sh: New file.
26601         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
26602         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
26603         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
26604         include <libintl.h>.
26605         (fake_locale): Remove variable.
26606         (gettext, dgettext, dcgettext): Remove functions.
26607         (main): Instead of setting a fake locale, set a real locale. Call
26608         textdomain and bindtextdomain.
26609         * modules/quotearg-tests (Files): Add the new files.
26610         (Depends-on): Add gettext, setenv, unsetenv.
26611         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
26612         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
26613         Augment TESTS_ENVIRONMENT.
26614
26615 2009-01-25  Bruno Haible  <bruno@clisp.org>
26616
26617         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
26618         fr_FR.ISO8859-1 locale on MacOS X.
26619         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
26620         ja_JP.eucJP locale on MacOS X.
26621         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
26622         zh_CN.GB18030 locale on MacOS X.
26623
26624 2009-01-25  Bruno Haible  <bruno@clisp.org>
26625
26626         Avoid link errors on MacOS X 10.3.
26627         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
26628         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26629
26630 2009-01-25  Bruno Haible  <bruno@clisp.org>
26631
26632         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26633         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
26634         * modules/pipe (Files): Remove m4/posix_spawn.m4.
26635         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26636         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
26637         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26638         posix_spawnattr_init, posix_spawnattr_setsigmask,
26639         posix_spawnattr_setflags, posix_spawnattr_destroy.
26640
26641         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26642         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
26643         * modules/execute (Files): Remove m4/posix_spawn.m4.
26644         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26645         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26646         posix_spawnattr_init, posix_spawnattr_setsigmask,
26647         posix_spawnattr_setflags, posix_spawnattr_destroy.
26648
26649 2009-01-25  Bruno Haible  <bruno@clisp.org>
26650
26651         * lib/glthread/threadlib.c: Include <stdlib.h>.
26652
26653 2009-01-25  Bruno Haible  <bruno@clisp.org>
26654
26655         * lib/glthread/threadlib.c (dummy): New declaration.
26656
26657 2009-01-25  Bruno Haible  <bruno@clisp.org>
26658
26659         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
26660         multibyte characters also for the GB18030 encoding. Don't crash when
26661         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
26662
26663 2009-01-25  Bruno Haible  <bruno@clisp.org>
26664
26665         Avoid redefining 'struct random_data' on OSF/1 5.1.
26666         * lib/stdlib.in.h: Include <random.h> if it exists.
26667         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
26668         HAVE_RANDOM_H. Include <random.h> when testing whether
26669         'struct random_data' exists.
26670         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
26671
26672 2009-01-25  Bruno Haible  <bruno@clisp.org>
26673
26674         Don't install charset.alias on MacOS X >= 10.3.
26675         * lib/localcharset.c (DARWIN7): New macro.
26676         (get_charset_aliases): Hardcode the result for Darwin7.
26677         * modules/localcharset (install-exec-local): Don't install
26678         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
26679
26680 2009-01-25  Bruno Haible  <bruno@clisp.org>
26681
26682         Don't install charset.alias on mingw and Cygwin.
26683         * modules/localcharset (install-exec-local): Don't install
26684         charset.alias on mingw and Cygwin, if the file does not yet exist.
26685         The result for these platforms is hardcoded in localcharset.c.
26686
26687 2009-01-25  Bruno Haible  <bruno@clisp.org>
26688
26689         Make it possible again to use AC_GNU_SOURCE together with gnulib.
26690         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
26691         before requiring AC_USE_SYSTEM_EXTENSIONS.
26692
26693 2009-01-25  Jim Meyering  <meyering@redhat.com>
26694
26695         c-strtod: avoid warnings
26696         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
26697         "assignment discards qualifiers from pointer target type" warnings.
26698
26699 2009-01-24  Bruno Haible  <bruno@clisp.org>
26700
26701         Add support for non-UTF-8 locales on MacOS X.
26702         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
26703         canonical encodings. For Darwin 7 and newer, don't map traditional
26704         encodings to UTF-8.
26705         Reported by Vincent Lefevre <vincent@vinc17.org>
26706         at <http://savannah.gnu.org/bugs/?25235>.
26707
26708 2009-01-24  Bruno Haible  <bruno@clisp.org>
26709
26710         * doc/gnulib.texi (Obsolete modules): New section.
26711         Reported by Mike Frysinger <vapier@gentoo.org>.
26712
26713 2009-01-24  Bruno Haible  <bruno@clisp.org>
26714
26715         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
26716         (%.dvi): New rule.
26717
26718 2009-01-24  Bruno Haible  <bruno@clisp.org>
26719
26720         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
26721         Reported by Eric Blake.
26722
26723 2009-01-24  Bruno Haible  <bruno@clisp.org>
26724
26725         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
26726         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
26727         Reported by Gary V. Vaughan <gary@gnu.org>.
26728
26729 2009-01-24  Bruno Haible  <bruno@clisp.org>
26730
26731         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
26732
26733 2009-01-23  Bruno Haible  <bruno@clisp.org>
26734
26735         Make c-strtod, c-strtold usable in libraries.
26736         * lib/c-strtod.c: Include string.h instead of xalloc.h.
26737         (C_STRTOD): Call strdup instead of xstrdup.
26738         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
26739         * modules/c-strtold (Depends-on): Likewise.
26740         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
26741         * NEWS: Mention the change.
26742         Reported by Michael Gold <mgold@ncf.ca>.
26743
26744 2009-01-23  Jim Meyering  <meyering@redhat.com>
26745
26746         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
26747         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
26748         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
26749
26750 2009-01-23  Simon Josefsson  <simon@josefsson.org>
26751
26752         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
26753         GNU CoreUtils.
26754         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
26755         * modules/version-etc (Description): Update.
26756
26757 2009-01-22  Bruno Haible  <bruno@clisp.org>
26758
26759         Cache the C locale object.
26760         * lib/c-strtod.c (c_locale_cache): New variable.
26761         (c_locale): New function.
26762         (C_STRTOD): Use it, and don't call freelocale.
26763         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
26764         Suggested by Paolo Bonzini.
26765
26766 2009-01-21  Bruno Haible  <bruno@clisp.org>
26767
26768         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
26769         conditions other than overflow.
26770
26771 2009-01-21  Bruno Haible  <bruno@clisp.org>
26772
26773         * lib/c-strtod.c: Include errno.h.
26774         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
26775         value from STRTOD_L and STRTOD.
26776
26777 2009-01-21  Bruno Haible  <bruno@clisp.org>
26778         and Jim Meyering  <meyering@redhat.com>
26779
26780         nanosleep: skip configure test (fail it) for apple universal builds
26781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
26782         universal builds, assume that nanosleep does not work.
26783         * modules/nanosleep (Depends-on): Add multiarch.
26784
26785         mktime: skip configure test (fail it) for apple universal builds
26786         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
26787         universal builds, assume that mktime does not work.
26788         * modules/mktime (Depends-on): Add multiarch.
26789
26790 2009-01-21  Eric Blake  <ebb9@byu.net>
26791
26792         multiarch: avoid expand-before-require warning
26793         * modules/multiarch (configure.ac): Require, rather than expand,
26794         gl_MULTIARCH.
26795         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
26796         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
26797         enforce that all clients require it.  Partial reversion of
26798         2008-12-29 patch.
26799
26800         error: avoid expand-before-require warning
26801         * modules/errno (configure.ac): Require, rather than expand,
26802         gl_HEADER_ERRNO_H.
26803         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
26804         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
26805         enforce that all clients require it.
26806
26807         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
26808         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
26809         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
26810         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
26811
26812 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
26813
26814         Revert:
26815         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26816
26817         regex: do not depend on obsolete modules.
26818         * modules/regex: Remove memcmp and memmove.
26819
26820 2009-01-20  Bruno Haible  <bruno@clisp.org>
26821
26822         Make the 'link' module link on Windows NT 4.
26823         * lib/link.c (_WIN32_WINNT): Don't define.
26824         (CreateHardLinkFuncType): New type.
26825         (CreateHardLinkFunc, initialized): New variables.
26826         (initialize): New function.
26827         (link): Invoke CreateHardLink indirectly through the function pointer.
26828
26829 2009-01-20  Bruno Haible  <bruno@clisp.org>
26830
26831         Fix compilation failure on mingw.
26832         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
26833
26834 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
26835
26836         * doc/c-strtod.texi: Mention a couple of restrictions.
26837
26838 2009-01-20  Jim Meyering  <meyering@redhat.com>
26839
26840         gettimeofday: move more declarations out of functions
26841         * lib/gettimeofday.c: Move extern declarations of tzset and
26842         gmtime out of containing functions.  Prompted by Bruno Haible.
26843
26844 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26845
26846         regex: do not depend on obsolete modules.
26847         * modules/regex: Remove memcmp and memmove.
26848
26849 2009-01-19  Bruno Haible  <bruno@clisp.org>
26850
26851         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26852         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
26853         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26854         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
26855         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
26856
26857 2009-01-19  Bruno Haible  <bruno@clisp.org>
26858
26859         * tests/test-link.c: Include <errno.h>.
26860         (main): Exit with code 77 when a hard link cannot be created due to
26861         the file system.
26862         * tests/test-link.sh: Skip test when a hard link cannot be created due
26863         to the file system.
26864         Suggested by Eric Blake.
26865
26866 2009-01-19  Martin Lambers  <marlam@marlam.de>
26867
26868         * modules/link-tests: New file.
26869         * tests/test-link.sh: New file.
26870         * tests/test-link.c: New file.
26871
26872 2009-01-19  Eric Blake  <ebb9@byu.net>
26873
26874         doc: mention another function added in cygwin 1.7.0
26875         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
26876         Another new function in cygwin 1.7.
26877
26878 2009-01-19  Bruno Haible  <bruno@clisp.org>
26879
26880         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26881         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
26882         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
26883         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26884         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26885         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
26886         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26887         * m4/md4.m4 (gl_MD4): Likewise.
26888         * m4/md5.m4 (gl_MD5): Likewise.
26889         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
26890         * m4/sha1.m4 (gl_SHA1): Likewise.
26891         * m4/sha256.m4 (gl_SHA256): Likewise.
26892         * m4/sha512.m4 (gl_SHA512): Likewise.
26893
26894 2009-01-19  Bruno Haible  <bruno@clisp.org>
26895
26896         * modules/uniname/uniname-tests (Depends-on): Add progname.
26897         * tests/uniname/test-uninames.c: Include progname.h.
26898         (main): Call set_program_name.
26899
26900         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
26901         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
26902         (main): Call set_program_name.
26903
26904         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
26905         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
26906         (main): Call set_program_name.
26907
26908         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
26909         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
26910         (main): Call set_program_name.
26911
26912         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
26913         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
26914         (main): Call set_program_name.
26915
26916         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
26917         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
26918         (main): Call set_program_name.
26919
26920         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
26921         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
26922         (main): Call set_program_name.
26923
26924         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
26925         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
26926         (main): Call set_program_name.
26927
26928         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
26929         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
26930         (main): Call set_program_name.
26931
26932 2009-01-19  Eric Blake  <ebb9@byu.net>
26933
26934         test-unistd: test previous patch
26935         * tests/test-unistd.c: Test *_FILENO macros.
26936
26937         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
26938         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26939         Guarantee a definition.
26940         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
26941         * modules/unistd-safer (Depends-on): Add dependency on unistd.
26942         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
26943         * lib/dup-safer.c (STDERR_FILENO): Likewise.
26944         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26945         Likewise.
26946         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
26947         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
26948         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26949         Likewise.
26950         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
26951         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
26952         (STDERR_FILENO): Likewise.
26953         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
26954         (STDERR_FILENO): Likewise.
26955         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
26956         (STDERR_FILENO): Likewise.
26957         Reported by Elbert Pol.
26958
26959 2009-01-19  Eric Blake  <ebb9@byu.net>
26960
26961         doc: mention more functions added in cygwin 1.7.0
26962         * doc/posix-functions/abort.texi (abort): Update wording related
26963         to cygwin.
26964         * doc/posix-functions/daylight.texi (daylight): Likewise.
26965         * doc/posix-functions/optarg.texi (optarg): Likewise.
26966         * doc/posix-functions/optarg.texi (opterr): Likewise.
26967         * doc/posix-functions/optarg.texi (optind): Likewise.
26968         * doc/posix-functions/optarg.texi (optopt): Likewise.
26969         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
26970         worked in 1.5.x, and was withdrawn in 1.7.
26971         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
26972         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
26973         cygwin versions.
26974         * doc/posix-functions/perror.texi (perror): Likewise.
26975         * doc/posix-functions/printf.texi (printf): Likewise.
26976         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
26977         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
26978         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
26979         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
26980         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26981         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
26982         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
26983         Likewise.
26984         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
26985         Likewise.
26986         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
26987         this function.
26988         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
26989         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
26990         Likewise.
26991         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
26992         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
26993         * doc/posix-functions/confstr.texi (confstr): Likewise.
26994         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
26995         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
26996         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
26997         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
26998         * doc/posix-functions/fputws.texi (fputws): Likewise.
26999         * doc/posix-functions/fwide.texi (fwide): Likewise.
27000         * doc/posix-functions/getwc.texi (getwc): Likewise.
27001         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
27002         * doc/posix-functions/putwc.texi (putwc): Likewise.
27003         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
27004         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
27005         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
27006         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
27007         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
27008         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
27009         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
27010         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
27011         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
27012         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
27013         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
27014
27015 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
27016
27017         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
27018         * lib/ioctl.c: Include <sys/ioctl.h>.
27019
27020 2009-01-19  Simon Josefsson  <simon@josefsson.org>
27021
27022         * modules/getdate-tests (Depends-on): Add progname.
27023         * tests/test-getdate.c: Use progname module, to avoid link errors
27024         on non-glibc systems.
27025
27026 2009-01-18  Simon Josefsson  <simon@josefsson.org>
27027
27028         * modules/filenamecat-tests (Depends-on): Add progname.
27029         * modules/fstrcmp-tests (Depends-on): Likewise.
27030
27031         * tests/test-filenamecat.c: Use progname module, to avoid link
27032         errors on non-glibc systems.
27033         * tests/test-fstrcmp.c: Likewise.
27034
27035 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
27036
27037         gettimeofday: avoid warning: nested extern declaration of 'localtime'
27038         * lib/gettimeofday.c: Move extern declaration out of function.
27039
27040 2009-01-18  Bruno Haible  <bruno@clisp.org>
27041
27042         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
27043         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
27044         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
27045
27046 2009-01-18  Bruno Haible  <bruno@clisp.org>
27047
27048         * lib/strftime.c (MEMPCPY): Remove unused macro.
27049         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
27050
27051 2009-01-18  Martin Lambers  <marlam@marlam.de>
27052
27053         New module 'link'.
27054         * lib/unistd.in.h (link): New declaration.
27055         * lib/link.c: New file.
27056         * m4/link.m4: New file.
27057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
27058         HAVE_LINK.
27059         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
27060         * modules/link: New file.
27061         * doc/posix-functions/link.texi: Mention the new module.
27062
27063 2009-01-18  Bruno Haible  <bruno@clisp.org>
27064
27065         * tests/test-avltree_list.c (main): Call set_program_name.
27066         * tests/test-avltree_oset.c (main): Likewise.
27067         * tests/test-obstack-printf.c: Include progname.h.
27068         (main): Call set_program_name.
27069         * tests/test-quotearg.c: Include progname.h.
27070         (main): Call set_program_name.
27071         * tests/test-xmemdup0.c: Include progname.h.
27072         (main): Call set_program_name.
27073
27074 2009-01-18  Bruno Haible  <bruno@clisp.org>
27075
27076         New module 'alphasort'.
27077         * lib/dirent.in.h (alphasort): New declaration.
27078         * lib/alphasort.c: New file, from glibc with modifications.
27079         * m4/alphasort.m4: New file.
27080         * modules/alphasort: New file.
27081         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
27082         HAVE_ALPHASORT.
27083         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
27084         HAVE_ALPHASORT.
27085         * doc/posix-functions/alphasort.texi: Mention the new module and the
27086         portability problems.
27087
27088 2009-01-18  Bruno Haible  <bruno@clisp.org>
27089
27090         New module 'scandir'.
27091         * lib/dirent.in.h (scandir): New declaration.
27092         * lib/scandir.c: New file, from glibc with modifications.
27093         * m4/scandir.m4: New file.
27094         * modules/scandir: New file.
27095         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
27096         HAVE_SCANDIR.
27097         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
27098         HAVE_SCANDIR.
27099         * doc/posix-functions/scandir.texi: Mention the new module and the
27100         portability problems.
27101
27102 2009-01-17  Bruno Haible  <bruno@clisp.org>
27103
27104         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
27105         Update documentation.
27106         (func_remove_suffix): Escape all dots in the suffix. Update
27107         documentation.
27108         (func_filter_filelist): Update documentation.
27109         Reported by Ralf Wildenhues.
27110
27111 2009-01-17  Bruno Haible  <bruno@clisp.org>
27112
27113         * modules/dprintf-posix-tests: New file.
27114         * tests/test-dprintf-posix.sh: New file.
27115         * tests/test-dprintf-posix.c: New file.
27116
27117         New modules 'dprintf', 'dprintf-posix'.
27118         * lib/stdio.in.h (dprintf): New declaration.
27119         * lib/dprintf.c: New file.
27120         * m4/dprintf.m4: New file.
27121         * m4/dprintf-posix.m4: New file.
27122         * modules/dprintf: New file.
27123         * modules/dprintf-posix: New file.
27124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
27125         HAVE_DPRINTF, REPLACE_DPRINTF.
27126         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
27127         HAVE_DPRINTF, REPLACE_DPRINTF.
27128         * doc/posix-functions/dprintf.texi: Mention the new modules.
27129
27130 2009-01-17  Bruno Haible  <bruno@clisp.org>
27131
27132         * modules/vdprintf-posix-tests: New file.
27133         * tests/test-vdprintf-posix.sh: New file.
27134         * tests/test-vdprintf-posix.c: New file.
27135
27136         New modules 'vdprintf', 'vdprintf-posix'.
27137         * lib/stdio.in.h (vdprintf): New declaration.
27138         * lib/vdprintf.c: New file.
27139         * m4/vdprintf.m4: New file.
27140         * m4/vdprintf-posix.m4: New file.
27141         * modules/vdprintf: New file.
27142         * modules/vdprintf-posix: New file.
27143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
27144         HAVE_VDPRINTF, REPLACE_VDPRINTF.
27145         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
27146         HAVE_VDPRINTF, REPLACE_VDPRINTF.
27147         * doc/posix-functions/vdprintf.texi: Mention the new modules.
27148
27149 2009-01-17  Bruno Haible  <bruno@clisp.org>
27150
27151         Fix replacement of fopen on mingw.
27152         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
27153         mingw.
27154
27155 2009-01-17  Bruno Haible  <bruno@clisp.org>
27156
27157         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
27158         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
27159
27160 2009-01-17  Bruno Haible  <bruno@clisp.org>
27161
27162         Avoid test-fflush2.sh failure on mingw.
27163         * tests/test-fflush2.c: Include binary-io.h.
27164         (main): Put standard input into binary mode.
27165         * modules/fflush-tests (Depends-on): Add binary-io.
27166
27167 2009-01-17  Bruno Haible  <bruno@clisp.org>
27168
27169         * lib/wchar.in.h: In another particular situation, include only the
27170         system's <wchar.h> file.
27171         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
27172         Reported by Albert Chin-A-Young <china@thewrittenword.com>
27173         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
27174
27175 2009-01-17  Bruno Haible  <bruno@clisp.org>
27176
27177         Support for stripping executables in --enable-relocatable.
27178         * build-aux/install-reloc: Expect one more argument, or an environment
27179         variable RELOC_STRIP_PROG. If set, strip the destination program and
27180         its wrapper.
27181         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
27182         RELOC_STRIP_PROG.
27183         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
27184         to set RELOCATABLE_STRIP.
27185         * NEWS: Mention the new Makefile requirement.
27186
27187 2009-01-17  Bruno Haible  <bruno@clisp.org>
27188
27189         * build-aux/install-reloc: Remove debugging information left over by
27190         C compiler on MacOS X.
27191
27192 2009-01-17  Bruno Haible  <bruno@clisp.org>
27193
27194         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
27195         * lib/progreloc.c (find_executable): Fix type of pointer passed to
27196         _NSGetExecutablePath.
27197
27198 2009-01-16  Jim Meyering  <meyering@redhat.com>
27199
27200         strerror: avoid warnings about discarding "const"
27201         * lib/strerror.c (rpl_strerror): Instead of returning a const
27202         string from each and every "case", use a variable, and add a single
27203         cast after the switch.
27204
27205 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
27206
27207         * lib/arpa_inet.in.h: Add extern "C" block for C++.
27208
27209 2009-01-16  Bruno Haible  <bruno@clisp.org>
27210
27211         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
27212         array initializer syntax that also works in C++ mode.
27213         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27214
27215 2009-01-16  Jim Meyering  <meyering@redhat.com>
27216
27217         poll: suppress a warning
27218         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
27219         to ignore "...unsigned expression < 0 is always false" warnings.
27220
27221 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
27222
27223         poll: remove declarations of unused variables
27224         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
27225         sockbuf and optlen.
27226
27227 2009-01-15  Bruno Haible  <bruno@clisp.org>
27228
27229         Make fflush-after-ungetc POSIX compliant on BSD systems.
27230         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
27231         (clear_ungetc_buffer): Implement also for other systems.
27232         (rpl_fflush): On glibc systems, invoke
27233         clear_ungetc_buffer_preserving_position. Otherwise, invoke
27234         clear_ungetc_buffer after fetching the stream's position, not before.
27235
27236 2009-01-15  Bruno Haible  <bruno@clisp.org>
27237
27238         Make fflush-after-ungetc POSIX compliant on glibc systems.
27239         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
27240         after ungetc.
27241         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
27242         (rpl_fflush): On glibc systems, simply call the system's fflush
27243         function after clearing the ungetc buffer.
27244         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
27245         Instead, lseek only to the end of file, then use the system's fseeko
27246         for the rest. On glibc systems, reset the EOF indicator bit.
27247
27248 2009-01-15  Jim Meyering  <meyering@redhat.com>
27249
27250         openmp.m4: revert quote-adding change, for portability to older autoconf
27251         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
27252         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
27253         Simon Josefsson noticed the problem when using autoconf-2.61.
27254
27255 2009-01-15  Bruno Haible  <bruno@clisp.org>
27256
27257         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
27258         * tests/test-fflush2.c (ASSERT): Always fail.
27259         (main): Add two tests for fflush() after ungetc(), taking into account
27260         the Austin Group's clarification.
27261         Suggested by Eric Blake.
27262
27263 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
27264
27265         mktime.m4: remove K&R-style function prototypes
27266         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
27267         for the Sun C++ compiler.
27268
27269 2009-01-14  Bruno Haible  <bruno@clisp.org>
27270
27271         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
27272         while including <wchar.h>.
27273         * lib/wchar.in.h: In two particular situations on HP-UX, include only
27274         the system's <wchar.h> file.
27275         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27276
27277 2009-01-14  Bruno Haible  <bruno@clisp.org>
27278
27279         * m4/csharp.m4: Don't mention gettext on the serial number line.
27280         * m4/csharpexec.m4: Likewise.
27281         * m4/eaccess.m4: Likewise.
27282         * m4/javaexec.m4: Likewise.
27283         * m4/sig_atomic_t.m4: Likewise.
27284         * m4/tmpdir.m4: Likewise.
27285         * m4/intldir.m4: Bump gettext version.
27286         * m4/lib-ld.m4: Likewise.
27287
27288 2009-01-14  Bruno Haible  <bruno@clisp.org>
27289
27290         * lib/progname.c (set_program_name): Add more comments.
27291         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27292
27293 2009-01-14  Simon Josefsson  <simon@josefsson.org>
27294
27295         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
27296         were sys/stat.h does not define it.
27297
27298 2009-01-14  Jim Meyering  <meyering@redhat.com>
27299
27300         many *.m4 files: improve m4 quoting
27301         99% of this change was performed by running the following commands:
27302         git ls-files | grep '\.m4$' | xargs perl -pi \
27303           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
27304           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27305           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27306           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
27307         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
27308         The remainder were to add Copyright dates, increment serial numbers,
27309         undo some changes in comments, exclude m4/intl.m4, and add quotes
27310         around the "1" in ",1" where the unusual spacing prohibited the
27311         above regexps from doing the job.  For more details, see
27312         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
27313         * m4/acl.m4: Modified.
27314         * m4/afs.m4: Likewise.
27315         * m4/alloca.m4: Likewise.
27316         * m4/argp.m4: Likewise.
27317         * m4/argz.m4: Likewise.
27318         * m4/atexit.m4: Likewise.
27319         * m4/bison-i18n.m4: Likewise.
27320         * m4/bison.m4: Likewise.
27321         * m4/byteswap.m4: Likewise.
27322         * m4/c-stack.m4: Likewise.
27323         * m4/c-strtod.m4: Likewise.
27324         * m4/calloc.m4: Likewise.
27325         * m4/canonicalize-lgpl.m4: Likewise.
27326         * m4/chown.m4: Likewise.
27327         * m4/clock_time.m4: Likewise.
27328         * m4/codeset.m4: Likewise.
27329         * m4/copy-file.m4: Likewise.
27330         * m4/csharp.m4: Likewise.
27331         * m4/csharpcomp.m4: Likewise.
27332         * m4/csharpexec.m4: Likewise.
27333         * m4/d-ino.m4: Likewise.
27334         * m4/d-type.m4: Likewise.
27335         * m4/dirfd.m4: Likewise.
27336         * m4/double-slash-root.m4: Likewise.
27337         * m4/eaccess.m4: Likewise.
27338         * m4/eealloc.m4: Likewise.
27339         * m4/environ.m4: Likewise.
27340         * m4/errno_h.m4: Likewise.
27341         * m4/euidaccess.m4: Likewise.
27342         * m4/execute.m4: Likewise.
27343         * m4/fatal-signal.m4: Likewise.
27344         * m4/fchdir.m4: Likewise.
27345         * m4/fcntl_h.m4: Likewise.
27346         * m4/fileblocks.m4: Likewise.
27347         * m4/filenamecat.m4: Likewise.
27348         * m4/findprog.m4: Likewise.
27349         * m4/flexmember.m4: Likewise.
27350         * m4/fnmatch.m4: Likewise.
27351         * m4/fopen.m4: Likewise.
27352         * m4/fpending.m4: Likewise.
27353         * m4/fprintf-posix.m4: Likewise.
27354         * m4/free.m4: Likewise.
27355         * m4/frexp.m4: Likewise.
27356         * m4/frexpl.m4: Likewise.
27357         * m4/fsusage.m4: Likewise.
27358         * m4/ftruncate.m4: Likewise.
27359         * m4/gc-camellia.m4: Likewise.
27360         * m4/gc-random.m4: Likewise.
27361         * m4/gc.m4: Likewise.
27362         * m4/getaddrinfo.m4: Likewise.
27363         * m4/getcwd-abort-bug.m4: Likewise.
27364         * m4/getcwd-path-max.m4: Likewise.
27365         * m4/getdate.m4: Likewise.
27366         * m4/getdomainname.m4: Likewise.
27367         * m4/getgroups.m4: Likewise.
27368         * m4/gethostname.m4: Likewise.
27369         * m4/gethrxtime.m4: Likewise.
27370         * m4/getline.m4: Likewise.
27371         * m4/getloadavg.m4: Likewise.
27372         * m4/getndelim2.m4: Likewise.
27373         * m4/getpass.m4: Likewise.
27374         * m4/gettext.m4: Likewise.
27375         * m4/gettime.m4: Likewise.
27376         * m4/gettimeofday.m4: Likewise.
27377         * m4/gnulib-common.m4: Likewise.
27378         * m4/group-member.m4: Likewise.
27379         * m4/host-os.m4: Likewise.
27380         * m4/iconv.m4: Likewise.
27381         * m4/iconv_open.m4: Likewise.
27382         * m4/inet_ntop.m4: Likewise.
27383         * m4/inet_pton.m4: Likewise.
27384         * m4/inline.m4: Likewise.
27385         * m4/intldir.m4: Likewise.
27386         * m4/intlmacosx.m4: Likewise.
27387         * m4/intmax.m4: Likewise.
27388         * m4/intmax_t.m4: Likewise.
27389         * m4/inttypes.m4: Likewise.
27390         * m4/inttypes_h.m4: Likewise.
27391         * m4/inttypes-pri.m4: Likewise.
27392         * m4/isapipe.m4: Likewise.
27393         * m4/isnand.m4: Likewise.
27394         * m4/isnanf.m4: Likewise.
27395         * m4/isnanl.m4: Likewise.
27396         * m4/javacomp.m4: Likewise.
27397         * m4/javaexec.m4: Likewise.
27398         * m4/jm-winsz1.m4: Likewise.
27399         * m4/jm-winsz2.m4: Likewise.
27400         * m4/lchown.m4: Likewise.
27401         * m4/lcmessage.m4: Likewise.
27402         * m4/ldexpl.m4: Likewise.
27403         * m4/lib-ld.m4: Likewise.
27404         * m4/lib-link.m4: Likewise.
27405         * m4/libsigsegv.m4: Likewise.
27406         * m4/link-follow.m4: Likewise.
27407         * m4/localcharset.m4: Likewise.
27408         * m4/locale-fr.m4: Likewise.
27409         * m4/locale-ja.m4: Likewise.
27410         * m4/locale-tr.m4: Likewise.
27411         * m4/locale-zh.m4: Likewise.
27412         * m4/lock.m4: Likewise.
27413         * m4/longlong.m4: Likewise.
27414         * m4/ls-mntd-fs.m4: Likewise.
27415         * m4/lstat.m4: Likewise.
27416         * m4/malloc.m4: Likewise.
27417         * m4/mathl.m4: Likewise.
27418         * m4/mbrtowc.m4: Likewise.
27419         * m4/mbstate_t.m4: Likewise.
27420         * m4/mbswidth.m4: Likewise.
27421         * m4/memchr.m4: Likewise.
27422         * m4/memcmp.m4: Likewise.
27423         * m4/memcpy.m4: Likewise.
27424         * m4/memmem.m4: Likewise.
27425         * m4/memmove.m4: Likewise.
27426         * m4/mempcpy.m4: Likewise.
27427         * m4/memrchr.m4: Likewise.
27428         * m4/memset.m4: Likewise.
27429         * m4/minmax.m4: Likewise.
27430         * m4/mkdir-slash.m4: Likewise.
27431         * m4/mkdtemp.m4: Likewise.
27432         * m4/mktime.m4: Likewise.
27433         * m4/mmap-anon.m4: Likewise.
27434         * m4/mountlist.m4: Likewise.
27435         * m4/nanosleep.m4: Likewise.
27436         * m4/nls.m4: Likewise.
27437         * m4/nocrash.m4: Likewise.
27438         * m4/open.m4: Likewise.
27439         * m4/openat.m4: Likewise.
27440         * m4/openmp.m4: Likewise.
27441         * m4/pathmax.m4: Likewise.
27442         * m4/perl.m4: Likewise.
27443         * m4/physmem.m4: Likewise.
27444         * m4/pipe.m4: Likewise.
27445         * m4/po.m4: Likewise.
27446         * m4/poll.m4: Likewise.
27447         * m4/posixtm.m4: Likewise.
27448         * m4/posixver.m4: Likewise.
27449         * m4/printf-frexp.m4: Likewise.
27450         * m4/printf-frexpl.m4: Likewise.
27451         * m4/printf-posix.m4: Likewise.
27452         * m4/printf-posix-rpl.m4: Likewise.
27453         * m4/printf.m4: Likewise.
27454         * m4/progtest.m4: Likewise.
27455         * m4/putenv.m4: Likewise.
27456         * m4/readline.m4: Likewise.
27457         * m4/readlink.m4: Likewise.
27458         * m4/readutmp.m4: Likewise.
27459         * m4/realloc.m4: Likewise.
27460         * m4/regex.m4: Likewise.
27461         * m4/relocatable.m4: Likewise.
27462         * m4/relocatable-lib.m4: Likewise.
27463         * m4/rename-dest-slash.m4: Likewise.
27464         * m4/rename.m4: Likewise.
27465         * m4/rmdir-errno.m4: Likewise.
27466         * m4/rmdir.m4: Likewise.
27467         * m4/roundf.m4: Likewise.
27468         * m4/roundl.m4: Likewise.
27469         * m4/rpmatch.m4: Likewise.
27470         * m4/save-cwd.m4: Likewise.
27471         * m4/selinux-selinux-h.m4: Likewise.
27472         * m4/setenv.m4: Likewise.
27473         * m4/settime.m4: Likewise.
27474         * m4/sig2str.m4: Likewise.
27475         * m4/sig_atomic_t.m4: Likewise.
27476         * m4/signalblocking.m4: Likewise.
27477         * m4/signbit.m4: Likewise.
27478         * m4/sigpipe.m4: Likewise.
27479         * m4/sockets.m4: Likewise.
27480         * m4/sockpfaf.m4: Likewise.
27481         * m4/st_dm_mode.m4: Likewise.
27482         * m4/stat-time.m4: Likewise.
27483         * m4/stdbool.m4: Likewise.
27484         * m4/stdint.m4: Likewise.
27485         * m4/stdint_h.m4: Likewise.
27486         * m4/stpcpy.m4: Likewise.
27487         * m4/stpncpy.m4: Likewise.
27488         * m4/strcase.m4: Likewise.
27489         * m4/strchrnul.m4: Likewise.
27490         * m4/strcspn.m4: Likewise.
27491         * m4/strdup.m4: Likewise.
27492         * m4/strftime.m4: Likewise.
27493         * m4/strndup.m4: Likewise.
27494         * m4/strnlen.m4: Likewise.
27495         * m4/strpbrk.m4: Likewise.
27496         * m4/strptime.m4: Likewise.
27497         * m4/strsep.m4: Likewise.
27498         * m4/strtod.m4: Likewise.
27499         * m4/strtoimax.m4: Likewise.
27500         * m4/strtok_r.m4: Likewise.
27501         * m4/strtol.m4: Likewise.
27502         * m4/strtoll.m4: Likewise.
27503         * m4/strtoul.m4: Likewise.
27504         * m4/strtoull.m4: Likewise.
27505         * m4/strtoumax.m4: Likewise.
27506         * m4/strverscmp.m4: Likewise.
27507         * m4/threadlib.m4: Likewise.
27508         * m4/timegm.m4: Likewise.
27509         * m4/tm_gmtoff.m4: Likewise.
27510         * m4/tmpdir.m4: Likewise.
27511         * m4/tmpfile.m4: Likewise.
27512         * m4/tzset.m4: Likewise.
27513         * m4/uintmax_t.m4: Likewise.
27514         * m4/unlinkdir.m4: Likewise.
27515         * m4/unlocked-io.m4: Likewise.
27516         * m4/uptime.m4: Likewise.
27517         * m4/userspec.m4: Likewise.
27518         * m4/utimbuf.m4: Likewise.
27519         * m4/utime.m4: Likewise.
27520         * m4/utimes-null.m4: Likewise.
27521         * m4/utimes.m4: Likewise.
27522         * m4/vararrays.m4: Likewise.
27523         * m4/vasnprintf.m4: Likewise.
27524         * m4/vfprintf-posix.m4: Likewise.
27525         * m4/vprintf-posix.m4: Likewise.
27526         * m4/wait-process.m4: Likewise.
27527         * m4/wchar_t.m4: Likewise.
27528         * m4/wint_t.m4: Likewise.
27529         * m4/write-any-file.m4: Likewise.
27530         * m4/yield.m4: Likewise.
27531
27532 2009-01-13  Bruno Haible  <bruno@clisp.org>
27533
27534         Avoid test-copy-file.sh failures when ACL support insufficient.
27535         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
27536         TESTS_ENVIRONMENT.
27537         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
27538         Reported by Jim Meyering.
27539
27540 2009-01-13  Bruno Haible  <bruno@clisp.org>
27541
27542         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
27543         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
27544         * modules/unistdio/u8-printf-parse (Files): Likewise.
27545         * modules/unistdio/u32-printf-parse (Files): Likewise.
27546         * modules/unistdio/ulc-printf-parse (Files): Likewise.
27547
27548 2009-01-13  Simon Josefsson  <simon@josefsson.org>
27549
27550         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
27551         and m4/inttypes_h.m4 too.
27552
27553 2009-01-12  Eric Blake  <ebb9@byu.net>
27554
27555         tests: IRIX 6.2 cc can't compile -0.0 into .data
27556         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
27557         rather than at compile-time.
27558         * tests/test-floorl.c (minus_zero): Likewise.
27559         * tests/test-frexpl.c (minus_zero): Likewise.
27560         * tests/test-isnan.c (minus_zerol): Likewise.
27561         * tests/test-isnanl.h (minus_zero): Likewise.
27562         * tests/test-ldexpl.c (minus_zero): Likewise.
27563         * tests/test-roundl.c (minus_zero): Likewise.
27564         * tests/test-signbit.c (minus_zerol): Likewise.
27565         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27566         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27567         * tests/test-truncl.c (minus_zero): Likewise.
27568         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27569         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27570         Reported by Tom G. Christensen and Nelson H. F. Beebe.
27571
27572 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27573
27574         regex: fix glibc bug 9697
27575         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
27576         handling.
27577
27578 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27579
27580         regex: fix glibc bug 697
27581         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
27582         being NULL also if there are no backreferences.
27583
27584 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27585
27586         regex: merge glibc changes
27587         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
27588         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
27589         re_string_skip_chars, re_string_reconstruct): Likewise.
27590         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
27591
27592 2009-01-07  Jim Meyering  <meyering@redhat.com>
27593
27594         poll: filter through cppi
27595         * lib/poll.c: Indent cpp directives to reflect nesting.
27596
27597 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
27598
27599         poll: don't return uninitialized
27600         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
27601
27602 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
27603
27604         avoid compile failure on AIX 6.1
27605         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
27606         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
27607
27608 2009-01-04  Jim Meyering  <meyering@redhat.com>
27609
27610         remove duplicate inclusion of <stdio.h>
27611         * tests/test-fprintf-posix.c: Likewise.
27612         * tests/test-printf-posix.c: Likewise.
27613         * tests/test-snprintf-posix.c: Likewise.
27614         * tests/test-sprintf-posix.c: Likewise.
27615         * tests/test-vasprintf-posix.c: Likewise.
27616         * tests/test-vfprintf-posix.c: Likewise.
27617         * tests/test-vprintf-posix.c: Likewise.
27618         * tests/test-vsnprintf-posix.c: Likewise.
27619         * tests/test-vsprintf-posix.c: Likewise.
27620
27621 2009-01-03  Jim Meyering  <meyering@redhat.com>
27622
27623         gnulib-tool: fix sed-based filtering
27624         * gnulib-tool (func_filter_filelist): Remove extra backslash
27625         in sed_fff_filter definition.
27626
27627 2009-01-02  Jim Meyering  <meyering@redhat.com>
27628
27629         strftime: avoid compilation failure on Solaris 2.6
27630         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
27631         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
27632         Don't #define mbrlen or mbsinit, since now they're guaranteed to
27633         be available.  Reported by Tom G. Christensen.  Details in
27634         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
27635
27636 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27637             Bruno Haible  <bruno@clisp.org>
27638
27639         Speed up gnulib-tool by doing more string processing through shell
27640         built-ins.
27641         * gnulib-tool (fast_func_append): New variable.
27642         (func_remove_prefix, func_remove_suffix): New functions.
27643         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
27644         (func_filter_filelist): New function.
27645         (func_get_dependencies): Use func_remove_suffix instead of sed.
27646         (func_get_automake_snippet): Use func_filter_filelist instead of a
27647         subshell and sed invocation.
27648
27649 2009-01-01  Bruno Haible  <bruno@clisp.org>
27650
27651         Fix a security bug.
27652         * gnulib-tool (func_import, import, update): Don't allow the characters
27653         '"', '$', '`', '\' in macro arguments that become part of commands that
27654         are evaluated.
27655
27656 2009-01-01  Bruno Haible  <bruno@clisp.org>
27657
27658         * gnulib-tool (func_reset_sigpipe): Add more comments.
27659
27660 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27661
27662         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
27663         func_emit_tests_Makefile_am, func_import): Abort loops early if we
27664         already know the answer.
27665
27666 2009-01-01  Jim Meyering  <meyering@redhat.com>
27667
27668         * lib/version-etc.c (version_etc_va): Update copyright year.
27669
27670 2008-12-30  Bruno Haible  <bruno@clisp.org>
27671
27672         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
27673         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
27674         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
27675
27676 2008-12-29  Eric Blake  <ebb9@byu.net>
27677
27678         multiarch: avoid autoconf AC_REQUIRE bug
27679         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
27680         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
27681         2.63 and older.
27682         Reported by Bruno Haible, and analyzed in
27683         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
27684
27685 2008-12-29  Bruno Haible  <bruno@clisp.org>
27686
27687         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
27688         files in subdirectories correctly.
27689         Reported by Ralf Wildenhues.
27690
27691 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27692
27693         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
27694         rather than 'join FILE -', for Solaris join.
27695
27696 2008-12-29  Bruno Haible  <bruno@clisp.org>
27697
27698         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
27699         quoting.
27700         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27701         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27702         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27703         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
27704         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27705         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27706         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27707         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27708         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27709         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27710         * m4/nls.m4 (AM_NLS): Likewise.
27711         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
27712         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27713         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27714         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27715         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27716         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27717         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
27718         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27719         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27720         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27721         * m4/xsize.m4 (gl_XSIZE): Likewise.
27722         Suggested by Jim Meyering.
27723
27724 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27725
27726         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
27727         * lib/parse-duration.c: use a switch instead of cascading if's.
27728
27729 2008-12-29  Eric Blake  <ebb9@byu.net>
27730
27731         wchar.h: supply WEOF on Irix 5.3
27732         * lib/wchar.in.h (wint_t): Also supply WEOF.
27733         * lib/wctype.in.h (wint_t): Likewise.
27734         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
27735         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
27736         Reported by Tom G. Christensen.
27737
27738 2008-12-26  Bruno Haible  <bruno@clisp.org>
27739
27740         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
27741         i486, i586, i686.
27742
27743 2008-12-26  Bruno Haible  <bruno@clisp.org>
27744
27745         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
27746
27747 2008-12-26  Bruno Haible  <bruno@clisp.org>
27748
27749         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
27750         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
27751         not __STDC_CONSTANT_MACROS.
27752         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27753
27754 2008-12-25  Bruno Haible  <bruno@clisp.org>
27755
27756         Add support for universal builds to vasnprintf.
27757         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
27758         universal builds, guess no.
27759         * modules/vasnprintf-posix (Depends-on): Add multiarch.
27760         * modules/vasprintf-posix (Depends-on): Likewise.
27761         * modules/fprintf-posix (Depends-on): Likewise.
27762         * modules/vfprintf-posix (Depends-on): Likewise.
27763         * modules/snprintf-posix (Depends-on): Likewise.
27764         * modules/vsnprintf-posix (Depends-on): Likewise.
27765         * modules/sprintf-posix (Depends-on): Likewise.
27766         * modules/vsprintf-posix (Depends-on): Likewise.
27767         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27768         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27769         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27770         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27771         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27772         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27773         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27774
27775         Add support for universal builds to <inttypes.h>.
27776         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
27777         _SCNu64_PREFIX): In Apple
27778         universal builds, define directly, using _LP64.
27779         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
27780         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
27781         * modules/inttypes (Depends-on): Add multiarch.
27782         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27783
27784         Add support for universal builds to <stdint.h>.
27785         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
27786         universal builds, define directly, using _LP64.
27787         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
27788         Apple universal builds, don't test for the size and suffix of ptrdiff_t
27789         and size_t.
27790         * modules/stdint (Depends-on): Add multiarch.
27791         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27792
27793         New module 'multiarch'.
27794         * modules/multiarch: New file.
27795         * m4/multiarch.m4: New file.
27796
27797 2008-12-25  Bruno Haible  <bruno@clisp.org>
27798
27799         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
27800
27801 2008-12-25  Bruno Haible  <bruno@clisp.org>
27802
27803         * modules/btowc (License): Relicense under LGPLv2+.
27804         * modules/mbsinit (License): Likewise.
27805         * modules/mbrtowc (License): Likewise.
27806         * modules/wcrtomb (License): Likewise.
27807         * modules/streq (License): Likewise.
27808         Reported by David Lutterkort <lutter@redhat.com>.
27809
27810 2008-12-23  Bruno Haible  <bruno@clisp.org>
27811
27812         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
27813
27814 2008-12-23  Bruno Haible  <bruno@clisp.org>
27815
27816         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
27817         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
27818         GETADDRINFO_LIB, not in LIBS.
27819         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
27820         * modules/canon-host (Link): Likewise.
27821         * NEWS: Mention the change.
27822         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
27823         GETADDRINFO_LIB.
27824
27825 2008-12-22  Bruno Haible  <bruno@clisp.org>
27826
27827         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
27828         * doc/posix-functions/iswalpha_l.texi: Likewise.
27829         * doc/posix-functions/iswblank_l.texi: Likewise.
27830         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27831         * doc/posix-functions/iswctype_l.texi: Likewise.
27832         * doc/posix-functions/iswdigit_l.texi: Likewise.
27833         * doc/posix-functions/iswgraph_l.texi: Likewise.
27834         * doc/posix-functions/iswlower_l.texi: Likewise.
27835         * doc/posix-functions/iswprint_l.texi: Likewise.
27836         * doc/posix-functions/iswpunct_l.texi: Likewise.
27837         * doc/posix-functions/iswspace_l.texi: Likewise.
27838         * doc/posix-functions/iswupper_l.texi: Likewise.
27839         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27840         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
27841         * doc/posix-functions/open_wmemstream.texi: Likewise.
27842         * doc/posix-functions/swscanf.texi: Likewise.
27843         * doc/posix-functions/towctrans_l.texi: Likewise.
27844         * doc/posix-functions/towlower.texi: Likewise.
27845         * doc/posix-functions/towlower_l.texi: Likewise.
27846         * doc/posix-functions/towupper.texi: Likewise.
27847         * doc/posix-functions/towupper_l.texi: Likewise.
27848         * doc/posix-functions/vfwprintf.texi: Likewise.
27849         * doc/posix-functions/vfwscanf.texi: Likewise.
27850         * doc/posix-functions/vswscanf.texi: Likewise.
27851         * doc/posix-functions/vwprintf.texi: Likewise.
27852         * doc/posix-functions/vwscanf.texi: Likewise.
27853         * doc/posix-functions/wcpcpy.texi: Likewise.
27854         * doc/posix-functions/wcpncpy.texi: Likewise.
27855         * doc/posix-functions/wcscasecmp.texi: Likewise.
27856         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
27857         * doc/posix-functions/wcscoll_l.texi: Likewise.
27858         * doc/posix-functions/wcsdup.texi: Likewise.
27859         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27860         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
27861         * doc/posix-functions/wcsnlen.texi: Likewise.
27862         * doc/posix-functions/wcsnrtombs.texi: Likewise.
27863         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27864         * doc/posix-functions/wctrans_l.texi: Likewise.
27865         * doc/posix-functions/wctype_l.texi: Likewise.
27866         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
27867         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
27868         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
27869         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
27870         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
27871         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
27872         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
27873         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
27874         * doc/glibc-functions/wcschrnul.texi: Likewise.
27875         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27876         * doc/glibc-functions/wcstod_l.texi: Likewise.
27877         * doc/glibc-functions/wcstof_l.texi: Likewise.
27878         * doc/glibc-functions/wcstol_l.texi: Likewise.
27879         * doc/glibc-functions/wcstold_l.texi: Likewise.
27880         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27881         * doc/glibc-functions/wcstoq.texi: Likewise.
27882         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27883         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27884         * doc/glibc-functions/wcstouq.texi: Likewise.
27885         * doc/glibc-functions/wmempcpy.texi: Likewise.
27886
27887 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
27888             Eric Blake  <ebb9@byu.net>
27889             Paolo Bonzini  <bonzini@gnu.org>
27890             Bruno Haible  <bruno@clisp.org>
27891
27892         Make c-stack work on Haiku.
27893         * lib/c-stack.c (SA_ONSTACK): Define fallback.
27894         (c_stack_action): Use SA_ONSTACK flag.
27895
27896 2008-12-22  Bruno Haible  <bruno@clisp.org>
27897
27898         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
27899
27900 2008-12-22  Bruno Haible  <bruno@clisp.org>
27901
27902         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
27903         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
27904         being overridden.
27905         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
27906         New macros.
27907         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
27908         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
27909         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
27910         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
27911
27912 2008-12-22  Bruno Haible  <bruno@clisp.org>
27913
27914         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
27915         from test code.
27916
27917 2008-12-22  Eric Blake  <ebb9@byu.net>
27918
27919         Avoid gcc warnings on cygwin.
27920         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
27921         Avoid unused variable.
27922         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
27923         Likewise.
27924
27925 2008-12-22  Bruno Haible  <bruno@clisp.org>
27926
27927         Remove HAVE_MBRTOWC conditionals.
27928         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
27929         (mbscasecmp): Assume mbrtowc function.
27930         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
27931         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
27932         * lib/mbschr.c: Include mbuiter.h unconditionally.
27933         (mbschr): Assume mbrtowc function.
27934         * lib/mbscspn.c: Include mbuiter.h unconditionally.
27935         (mbscspn): Assume mbrtowc function.
27936         * lib/mbslen.c: Include mbuiter.h unconditionally.
27937         (mbslen): Assume mbrtowc function.
27938         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
27939         (mbsncasecmp): Assume mbrtowc function.
27940         * lib/mbsnlen.c: Include mbiter.h unconditionally.
27941         (mbsnlen): Assume mbrtowc function.
27942         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
27943         (mbspbrk): Assume mbrtowc function.
27944         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
27945         (mbspcasecmp): Assume mbrtowc function.
27946         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
27947         (mbsrchr): Assume mbrtowc function.
27948         * lib/mbssep.c: Include mbuiter.h unconditionally.
27949         (mbssep): Assume mbrtowc function.
27950         * lib/mbsspn.c: Include mbuiter.h unconditionally.
27951         (mbsspn): Assume mbrtowc function.
27952         * lib/mbsstr.c: Include mbuiter.h unconditionally.
27953         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
27954         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
27955         (mbstok_r): Assume mbrtowc function.
27956         * lib/propername.c: Include mbuiter.h unconditionally.
27957         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
27958         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
27959         (trim2): Assume mbrtowc function.
27960         * lib/mbswidth.c (mbsinit): Remove fallback definition.
27961         (mbsnwidth): Assume mbrtowc function.
27962         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
27963         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
27964         fallback definitions.
27965         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
27966
27967 2008-12-22  Bruno Haible  <bruno@clisp.org>
27968
27969         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
27970
27971 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
27972
27973         * modules/regex: Request emulations for the mb*/wc* functions we need.
27974         * m4/regex.m4: Don't look for those functions here.
27975         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
27976
27977 2008-12-22  Bruno Haible  <bruno@clisp.org>
27978
27979         * modules/fnmatch (Depends-on): Remove duplicated dependency.
27980
27981 2008-12-21  Bruno Haible  <bruno@clisp.org>
27982
27983         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
27984         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
27985         (Include): Remove conditionalization.
27986         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
27987         (Include): Remove conditionalization.
27988         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
27989         (Include): Remove conditionalization.
27990         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
27991         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27992         * NEWS: Mention the change.
27993         Reported by Alan Hourihane <alanh@fairlite.co.uk>
27994         via Sergey Poznyakoff <gray@gnu.org.ua>.
27995
27996 2008-12-21  Bruno Haible  <bruno@clisp.org>
27997
27998         * MODULES.html.sh (Extended multibyte and wide character utilities
27999         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
28000         wcrtomb, wcsrtombs.
28001         (Support for systems lacking POSIX:2008): Add accept, bind, close,
28002         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
28003         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
28004         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
28005
28006 2008-12-21  Bruno Haible  <bruno@clisp.org>
28007
28008         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
28009
28010 2008-12-21  Bruno Haible  <bruno@clisp.org>
28011
28012         * modules/wcsnrtombs-tests: New file.
28013         * tests/test-wcsnrtombs1.sh: New file.
28014         * tests/test-wcsnrtombs2.sh: New file.
28015         * tests/test-wcsnrtombs3.sh: New file.
28016         * tests/test-wcsnrtombs4.sh: New file.
28017         * tests/test-wcsnrtombs.c: New file.
28018
28019         New module 'wcsnrtombs'.
28020         * lib/wchar.in.h (wcsnrtombs): New declaration.
28021         * lib/wcsnrtombs.c: New file.
28022         * lib/wcsrtombs-state.c: New file.
28023         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
28024         (internal_state): Remove variable.
28025         * m4/wcsnrtombs.m4: New file.
28026         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
28027         compilation units.
28028         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
28029         HAVE_WCSNRTOMBS.
28030         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
28031         HAVE_WCSNRTOMBS.
28032         * modules/wcsnrtombs: New file.
28033         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
28034         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
28035
28036 2008-12-21  Bruno Haible  <bruno@clisp.org>
28037
28038         * modules/wcsrtombs-tests: New file.
28039         * tests/test-wcsrtombs1.sh: New file.
28040         * tests/test-wcsrtombs2.sh: New file.
28041         * tests/test-wcsrtombs3.sh: New file.
28042         * tests/test-wcsrtombs4.sh: New file.
28043         * tests/test-wcsrtombs.c: New file.
28044
28045         New module 'wcsrtombs'.
28046         * lib/wchar.in.h (wcsrtombs): New declaration.
28047         * lib/wcsrtombs.c: New file.
28048         * m4/wcsrtombs.m4: New file.
28049         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
28050         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
28051         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
28052         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
28053         * modules/wcsrtombs: New file.
28054         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
28055         bugs.
28056
28057 2008-12-21  Bruno Haible  <bruno@clisp.org>
28058
28059         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
28060         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
28061         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
28062         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
28063         if not correct.
28064         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
28065         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
28066         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28067         m4/locale-zh.m4, m4/codeset.m4.
28068         * doc/posix-functions/wcrtomb.texi: Document the bug.
28069
28070 2008-12-21  Bruno Haible  <bruno@clisp.org>
28071
28072         Work around a btowc() bug on IRIX 6.5.
28073         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
28074         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
28075         REPLACE_WTOBC if not.
28076         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
28077         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
28078         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
28079
28080 2008-12-21  Bruno Haible  <bruno@clisp.org>
28081
28082         * modules/wcrtomb-tests: New file.
28083         * tests/test-wcrtomb.sh: New file.
28084         * tests/test-wcrtomb.c: New file.
28085
28086         New module 'wcrtomb'.
28087         * lib/wchar.in.h (wcrtomb): New declaration.
28088         * lib/wcrtomb.c: New file.
28089         * m4/wcrtomb.m4: New file.
28090         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
28091         HAVE_WCRTOMB.
28092         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
28093         HAVE_WCRTOMB.
28094         * modules/wcrtomb: New file.
28095         * doc/posix-functions/wcrtomb.texi: Mention the new module.
28096
28097 2008-12-21  Bruno Haible  <bruno@clisp.org>
28098
28099         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
28100         * modules/mbsrtowcs (Files): Likewise.
28101         * modules/wctob (Files): Likewise.
28102         * modules/c-strcase-tests (Files): Likewise.
28103         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
28104         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
28105         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
28106         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
28107         * modules/vasnprintf-posix-tests (Files): Likewise.
28108
28109 2008-12-21  William Pursell  <bill.pursell@gmail.com>
28110
28111         gitlog-to-changelog: pass all command-line arguments to git-log
28112         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
28113         it is sometimes convenient to filter the commits in various ways.
28114         gitlog-to-changelog only allows --since to specify a start date,
28115         but git-log itself supports many other filtering mechanisms.
28116         At the moment, I want to filter by branch name.  Rather than
28117         adding a --branch option to gitlog-to-changelog, it seems more
28118         flexible to simply pass all options directly to git-log and let
28119         git do the work.  Notice that this effectively makes --since a
28120         redundant option for gitlog-to-changelog, but removing it would
28121         require current usage to change since calls would then require
28122         an additional '--'.
28123
28124 2008-12-21  Bruno Haible  <bruno@clisp.org>
28125
28126         * modules/mbsnrtowcs-tests: New file.
28127         * tests/test-mbsnrtowcs1.sh: New file.
28128         * tests/test-mbsnrtowcs2.sh: New file.
28129         * tests/test-mbsnrtowcs3.sh: New file.
28130         * tests/test-mbsnrtowcs4.sh: New file.
28131         * tests/test-mbsnrtowcs.c: New file.
28132
28133         New module 'mbsnrtowcs'.
28134         * lib/wchar.in.h (mbsnrtowcs): New declaration.
28135         * lib/mbsnrtowcs.c: New file.
28136         * lib/mbsrtowcs-state.c: New file.
28137         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
28138         (internal_state): Remove variable.
28139         * m4/mbsnrtowcs.m4: New file.
28140         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
28141         compilation units.
28142         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
28143         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
28144         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
28145         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
28146         * modules/mbsnrtowcs: New file.
28147         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
28148         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
28149         portability problem.
28150
28151 2008-12-21  Bruno Haible  <bruno@clisp.org>
28152
28153         Work around mbsrtowcs bug.
28154         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
28155         (gl_FUNC_MBSRTOWCS): Invoke it.
28156         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28157         m4/locale-zh.m4.
28158         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
28159
28160 2008-12-21  Bruno Haible  <bruno@clisp.org>
28161
28162         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
28163
28164 2008-12-21  Bruno Haible  <bruno@clisp.org>
28165
28166         Update doc for AIX.
28167         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
28168         16-bit wchar_t type.
28169         * doc/posix-functions/btowc.texi: Likewise.
28170         * doc/posix-functions/fgetwc.texi: Likewise.
28171         * doc/posix-functions/fgetws.texi: Likewise.
28172         * doc/posix-functions/fputwc.texi: Likewise.
28173         * doc/posix-functions/fputws.texi: Likewise.
28174         * doc/posix-functions/fwide.texi: Likewise.
28175         * doc/posix-functions/fwprintf.texi: Likewise.
28176         * doc/posix-functions/fwscanf.texi: Likewise.
28177         * doc/posix-functions/getwchar.texi: Likewise.
28178         * doc/posix-functions/getwc.texi: Likewise.
28179         * doc/posix-functions/iswalnum.texi: Likewise.
28180         * doc/posix-functions/iswalpha.texi: Likewise.
28181         * doc/posix-functions/iswblank.texi: Likewise.
28182         * doc/posix-functions/iswcntrl.texi: Likewise.
28183         * doc/posix-functions/iswctype.texi: Likewise.
28184         * doc/posix-functions/iswdigit.texi: Likewise.
28185         * doc/posix-functions/iswgraph.texi: Likewise.
28186         * doc/posix-functions/iswlower.texi: Likewise.
28187         * doc/posix-functions/iswprint.texi: Likewise.
28188         * doc/posix-functions/iswpunct.texi: Likewise.
28189         * doc/posix-functions/iswspace.texi: Likewise.
28190         * doc/posix-functions/iswupper.texi: Likewise.
28191         * doc/posix-functions/iswxdigit.texi: Likewise.
28192         * doc/posix-functions/mbrtowc.texi: Likewise.
28193         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28194         * doc/posix-functions/mbstowcs.texi: Likewise.
28195         * doc/posix-functions/mbtowc.texi: Likewise.
28196         * doc/posix-functions/putwchar.texi: Likewise.
28197         * doc/posix-functions/putwc.texi: Likewise.
28198         * doc/posix-functions/swprintf.texi: Likewise.
28199         * doc/posix-functions/tolower.texi: Likewise.
28200         * doc/posix-functions/toupper.texi: Likewise.
28201         * doc/posix-functions/towctrans.texi: Likewise.
28202         * doc/posix-functions/ungetwc.texi: Likewise.
28203         * doc/posix-functions/vswprintf.texi: Likewise.
28204         * doc/posix-functions/wcrtomb.texi: Likewise.
28205         * doc/posix-functions/wcscat.texi: Likewise.
28206         * doc/posix-functions/wcschr.texi: Likewise.
28207         * doc/posix-functions/wcscmp.texi: Likewise.
28208         * doc/posix-functions/wcscoll.texi: Likewise.
28209         * doc/posix-functions/wcscpy.texi: Likewise.
28210         * doc/posix-functions/wcscspn.texi: Likewise.
28211         * doc/posix-functions/wcsftime.texi: Likewise.
28212         * doc/posix-functions/wcslen.texi: Likewise.
28213         * doc/posix-functions/wcsncat.texi: Likewise.
28214         * doc/posix-functions/wcsncmp.texi: Likewise.
28215         * doc/posix-functions/wcsncpy.texi: Likewise.
28216         * doc/posix-functions/wcspbrk.texi: Likewise.
28217         * doc/posix-functions/wcsrchr.texi: Likewise.
28218         * doc/posix-functions/wcsrtombs.texi: Likewise.
28219         * doc/posix-functions/wcsspn.texi: Likewise.
28220         * doc/posix-functions/wcsstr.texi: Likewise.
28221         * doc/posix-functions/wcstod.texi: Likewise.
28222         * doc/posix-functions/wcstof.texi: Likewise.
28223         * doc/posix-functions/wcstoimax.texi: Likewise.
28224         * doc/posix-functions/wcstok.texi: Likewise.
28225         * doc/posix-functions/wcstold.texi: Likewise.
28226         * doc/posix-functions/wcstoll.texi: Likewise.
28227         * doc/posix-functions/wcstol.texi: Likewise.
28228         * doc/posix-functions/wcstombs.texi: Likewise.
28229         * doc/posix-functions/wcstoull.texi: Likewise.
28230         * doc/posix-functions/wcstoul.texi: Likewise.
28231         * doc/posix-functions/wcstoumax.texi: Likewise.
28232         * doc/posix-functions/wcswidth.texi: Likewise.
28233         * doc/posix-functions/wcsxfrm.texi: Likewise.
28234         * doc/posix-functions/wctob.texi: Likewise.
28235         * doc/posix-functions/wctomb.texi: Likewise.
28236         * doc/posix-functions/wctrans.texi: Likewise.
28237         * doc/posix-functions/wctype.texi: Likewise.
28238         * doc/posix-functions/wcwidth.texi: Likewise.
28239         * doc/posix-functions/wmemchr.texi: Likewise.
28240         * doc/posix-functions/wmemcmp.texi: Likewise.
28241         * doc/posix-functions/wmemcpy.texi: Likewise.
28242         * doc/posix-functions/wmemmove.texi: Likewise.
28243         * doc/posix-functions/wmemset.texi: Likewise.
28244         * doc/posix-functions/wprintf.texi: Likewise.
28245         * doc/posix-functions/wscanf.texi: Likewise.
28246
28247 2008-12-21  Bruno Haible  <bruno@clisp.org>
28248
28249         Update doc for HP-UX 11.11.
28250         * doc/posix-functions/btowc.texi: Clarify that the function is missing
28251         in HP-UX version 11.00, not in all versions of HP-UX 11.
28252         * doc/posix-functions/fwide.texi: Likewise.
28253         * doc/posix-functions/fwprintf.texi: Likewise.
28254         * doc/posix-functions/fwscanf.texi: Likewise.
28255         * doc/posix-functions/inet_ntop.texi: Likewise.
28256         * doc/posix-functions/inet_pton.texi: Likewise.
28257         * doc/posix-functions/mbrlen.texi: Likewise.
28258         * doc/posix-functions/mbrtowc.texi: Likewise.
28259         * doc/posix-functions/mbsinit.texi: Likewise.
28260         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28261         * doc/posix-functions/swprintf.texi: Likewise.
28262         * doc/posix-functions/swscanf.texi: Likewise.
28263         * doc/posix-functions/towctrans.texi: Likewise.
28264         * doc/posix-functions/vfwprintf.texi: Likewise.
28265         * doc/posix-functions/vswprintf.texi: Likewise.
28266         * doc/posix-functions/vwprintf.texi: Likewise.
28267         * doc/posix-functions/wcrtomb.texi: Likewise.
28268         * doc/posix-functions/wcsrtombs.texi: Likewise.
28269         * doc/posix-functions/wcsstr.texi: Likewise.
28270         * doc/posix-functions/wctob.texi: Likewise.
28271         * doc/posix-functions/wctrans.texi: Likewise.
28272         * doc/posix-functions/wmemchr.texi: Likewise.
28273         * doc/posix-functions/wmemcmp.texi: Likewise.
28274         * doc/posix-functions/wmemcpy.texi: Likewise.
28275         * doc/posix-functions/wmemmove.texi: Likewise.
28276         * doc/posix-functions/wmemset.texi: Likewise.
28277         * doc/posix-functions/wprintf.texi: Likewise.
28278         * doc/posix-functions/wscanf.texi: Likewise.
28279
28280 2008-12-21  Bruno Haible  <bruno@clisp.org>
28281
28282         Work around a portability problem.
28283         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
28284         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
28285
28286 2008-12-20  Bruno Haible  <bruno@clisp.org>
28287
28288         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
28289         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
28290         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
28291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
28292         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
28293
28294         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
28295         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
28296         set.
28297         (GNULIB_defined_mbstate_t): New macro.
28298         (mbsinit): Redefine if REPLACE_MBSINIT is set.
28299         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
28300         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
28301         reuses the system's mbrtowc function but works around the bugs.
28302         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
28303         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
28304         macros.
28305         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
28306         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
28307         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
28308         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
28309         REPLACE_MBSINIT if mbsinit needs to be overridden.
28310         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
28311         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28312         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
28313         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28314         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28315         m4/locale-zh.m4.
28316         (Depends): Add mbsinit.
28317         * modules/mbsinit (Depends): Add mbrtowc.
28318         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
28319
28320 2008-12-20  Bruno Haible  <bruno@clisp.org>
28321
28322         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
28323         so that there are no conversion errors on AIX.
28324         * tests/test-mbsrtowcs.c (main): LIkewise.
28325
28326 2008-12-20  Bruno Haible  <bruno@clisp.org>
28327
28328         Work around wctob bug on Solaris <= 9.
28329         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
28330         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
28331         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
28332         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
28333         * modules/wctob (Files): Add m4/locale-fr.m4.
28334         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
28335
28336 2008-12-20  Bruno Haible  <bruno@clisp.org>
28337
28338         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
28339         /dev/null.
28340         * tests/test-select-in.sh: Likewise.
28341         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28342
28343 2008-12-20  Bruno Haible  <bruno@clisp.org>
28344
28345         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
28346         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
28347         Cygwin 1.5.x.
28348
28349 2008-12-20  Bruno Haible  <bruno@clisp.org>
28350
28351         Ensure mbstate_t is defined on HP-UX 11.11.
28352         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
28353         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
28354         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
28355         AC_USE_SYSTEM_EXTENSIONS.
28356         * modules/fnmatch (Depends-on): Add extensions.
28357         * modules/mbrlen (Depends-on): Likewise.
28358         * modules/mbrtowc (Depends-on): Likewise.
28359         * modules/mbsinit (Depends-on): Likewise.
28360         * modules/mbsrtowcs (Depends-on): Likewise.
28361         * modules/mbswidth (Depends-on): Likewise.
28362         * modules/quotearg (Depends-on): Likewise.
28363         * modules/strftime (Depends-on): Likewise.
28364
28365 2008-12-20  Bruno Haible  <bruno@clisp.org>
28366
28367         Ensure wctob is declared on IRIX 6.5.
28368         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
28369         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
28370         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
28371         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
28372         of HAVE_WCTOB.
28373         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
28374         HAVE_WCTOB.
28375         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
28376
28377 2008-12-19  Bruno Haible  <bruno@clisp.org>
28378
28379         * modules/mbsrtowcs-tests: New file.
28380         * tests/test-mbsrtowcs1.sh: New file.
28381         * tests/test-mbsrtowcs2.sh: New file.
28382         * tests/test-mbsrtowcs3.sh: New file.
28383         * tests/test-mbsrtowcs4.sh: New file.
28384         * tests/test-mbsrtowcs.c: New file.
28385
28386         New module 'mbsrtowcs'.
28387         * lib/wchar.in.h (mbsrtowcs): New declaration.
28388         * lib/mbsrtowcs.c: New file.
28389         * m4/mbsrtowcs.m4: New file.
28390         * modules/mbsrtowcs: New file.
28391         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
28392         HAVE_MBSRTOWCS.
28393         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
28394         HAVE_MBSRTOWCS.
28395         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
28396
28397 2008-12-19  Bruno Haible  <bruno@clisp.org>
28398
28399         New module 'mbrlen'.
28400         * lib/wchar.in.h (mbrlen): New declaration.
28401         * lib/mbrlen.c: New file.
28402         * m4/mbrlen.m4: New file.
28403         * modules/mbrlen: New file.
28404         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
28405         HAVE_MBRLEN.
28406         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
28407         HAVE_MBRLEN.
28408         * doc/posix-functions/mbrlen.texi: Document the new module.
28409
28410 2008-12-19  Bruno Haible  <bruno@clisp.org>
28411
28412         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
28413         * modules/mbrtowc (Depends-on): Add verify.
28414         Suggested by Paul Eggert.
28415
28416 2008-12-18  Bruno Haible  <bruno@clisp.org>
28417
28418         * modules/mbsinit-tests: New file.
28419         * tests/test-mbsinit.sh: New file.
28420         * tests/test-mbsinit.c: New file.
28421
28422 2008-12-18  Bruno Haible  <bruno@clisp.org>
28423
28424         * modules/mbrtowc-tests: New file.
28425         * tests/test-mbrtowc1.sh: New file.
28426         * tests/test-mbrtowc2.sh: New file.
28427         * tests/test-mbrtowc3.sh: New file.
28428         * tests/test-mbrtowc4.sh: New file.
28429         * tests/test-mbrtowc.c: New file.
28430
28431         New module 'mbrtowc'.
28432         * lib/wchar.in.h (mbstate_t): Override when the system does not have
28433         mbsinit and mbrtowc.
28434         (mbrtowc): New declaration.
28435         * lib/mbrtowc.c: New file.
28436         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
28437         * modules/mbrtowc: New file.
28438         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
28439         HAVE_MBRTOWC.
28440         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
28441         HAVE_MBRTOWC.
28442         * doc/posix-functions/mbrtowc.texi: Document the new module.
28443
28444 2008-12-18  Bruno Haible  <bruno@clisp.org>
28445
28446         New module 'wctob'.
28447         * lib/wchar.in.h (wctob): New declaration.
28448         * lib/wctob.c: New file.
28449         * m4/wctob.m4: New file.
28450         * modules/wctob: New file.
28451         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
28452         HAVE_WCTOB.
28453         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
28454         * doc/posix-functions/wctob.texi: Document the new module.
28455
28456 2008-12-18  Bruno Haible  <bruno@clisp.org>
28457
28458         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
28459         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
28460
28461 2008-12-18  Simon Josefsson  <simon@josefsson.org>
28462
28463         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
28464         G. Christensen" <tgc@jupiterrise.com>.
28465
28466         * lib/flock.c: Need to include errno.h.  Reported by "Tom
28467         G. Christensen" <tgc@jupiterrise.com>.
28468
28469         * lib/flock.c: Need to include string.h.  Reported by "Tom
28470         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
28471         <ebb9@byu.net>.
28472
28473 2008-12-18  Bruno Haible  <bruno@clisp.org>
28474
28475         * m4/locale-ja.m4: New file, from GNU gettext.
28476
28477 2008-12-17  Bruno Haible  <bruno@clisp.org>
28478
28479         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
28480         Suggested by Eric Blake.
28481
28482 2008-12-17  Bruno Haible  <bruno@clisp.org>
28483
28484         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
28485
28486 2008-12-17  Bruno Haible  <bruno@clisp.org>
28487
28488         * lib/mbsinit.c: Include verify.h. Verify an assumption.
28489         * modules/mbsinit (Depends-on): Add verify.
28490         Suggested by Paul Eggert.
28491
28492 2008-12-17  Bruno Haible  <bruno@clisp.org>
28493
28494         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
28495         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
28496         gl_FUNC_MBRTOWC.
28497         * m4/mbiter.m4 (gl_MBITER): LIkewise.
28498         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
28499         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
28500         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
28501         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
28502         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
28503         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
28504         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
28505         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
28506         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
28507         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
28508         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
28509         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
28510         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
28511         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
28512         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28513         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
28514         * modules/trim (configure.ac): Likewise.
28515
28516 2008-12-17  Bruno Haible  <bruno@clisp.org>
28517
28518         * modules/btowc-tests: New file.
28519         * tests/test-btowc1.sh: New file.
28520         * tests/test-btowc2.sh: New file.
28521         * tests/test-btowc.c: New file.
28522
28523         New module 'btowc'.
28524         * lib/wchar.in.h (btowc): New declaration.
28525         * lib/btowc.c: New file.
28526         * m4/btowc.m4: New file.
28527         * modules/btowc: New file.
28528         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
28529         HAVE_BTOWC.
28530         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
28531         * doc/posix-functions/btowc.texi: Document the new module.
28532
28533 2008-12-17  Bruno Haible  <bruno@clisp.org>
28534
28535         New module 'mbsinit'.
28536         * lib/wchar.in.h (mbsinit): New declaration.
28537         * lib/mbsinit.c: New file.
28538         * m4/mbsinit.m4: New file.
28539         * modules/mbsinit: New file.
28540         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
28541         HAVE_MBSINIT.
28542         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
28543         HAVE_MBSINIT.
28544         * doc/posix-functions/mbsinit.texi: Document the new module.
28545
28546 2008-12-16  Bruno Haible  <bruno@clisp.org>
28547
28548         * lib/unistd.in.h: Add comment.
28549         * tests/test-environ.c: Don't include <stdlib.h>.
28550
28551 2008-12-16  Bruno Haible  <bruno@clisp.org>
28552
28553         * lib/parse-duration.h (parse_duration): Document return value
28554         convention.
28555         * lib/parse-duration.c: Include specification header first. Add
28556         comments.
28557         (_): Remove macro.
28558         (parse_year_month_day, parse_hour_minute_second): Move side effects
28559         outside of strchr call.
28560         (parse_non_iso8601): Move side effects outside of isspace call.
28561         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
28562         call.
28563
28564 2008-12-16  Bruno Haible  <bruno@clisp.org>
28565
28566         * tests/test-parse-duration.sh: Produce no output when the test
28567         succeeds.
28568
28569 2008-12-16  Bruno Haible  <bruno@clisp.org>
28570
28571         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
28572         expressions.
28573
28574 2008-12-15  Bruno Haible  <bruno@clisp.org>
28575
28576         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
28577         * doc/glibc-functions/flistxattr.texi: Likewise.
28578         * doc/glibc-functions/fopencookie.texi: Likewise.
28579         * doc/glibc-functions/fremovexattr.texi: Likewise.
28580         * doc/glibc-functions/fsetxattr.texi: Likewise.
28581         * doc/glibc-functions/getxattr.texi: Likewise.
28582         * doc/glibc-functions/lgetxattr.texi: Likewise.
28583         * doc/glibc-functions/listxattr.texi: Likewise.
28584         * doc/glibc-functions/llistxattr.texi: Likewise.
28585         * doc/glibc-functions/lremovexattr.texi: Likewise.
28586         * doc/glibc-functions/lsetxattr.texi: Likewise.
28587         * doc/glibc-functions/removexattr.texi: Likewise.
28588         * doc/glibc-functions/setxattr.texi: Likewise.
28589         * doc/posix-functions/open_memstream.texi: Likewise.
28590
28591 2008-12-15  Eric Blake  <ebb9@byu.net>
28592
28593         Update doc for cygwin 1.7.
28594         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
28595         functions.
28596         * doc/posix-functions/fchmodat.texi: Likewise.
28597         * doc/posix-functions/fchownat.texi: Likewise.
28598         * doc/posix-functions/fdopendir.texi: Likewise.
28599         * doc/posix-functions/fmemopen.texi: Likewise.
28600         * doc/posix-functions/freeaddrinfo.texi: Likewise.
28601         * doc/posix-functions/fstatat.texi: Likewise.
28602         * doc/posix-functions/futimens.texi: Likewise.
28603         * doc/posix-functions/gai_strerror.texi: Likewise.
28604         * doc/posix-functions/getaddrinfo.texi: Likewise.
28605         * doc/posix-functions/getnameinfo.texi: Likewise.
28606         * doc/posix-functions/if_freenameindex.texi: Likewise.
28607         * doc/posix-functions/if_indextoname.texi: Likewise.
28608         * doc/posix-functions/if_nameindex.texi: Likewise.
28609         * doc/posix-functions/if_nametoindex.texi: Likewise.
28610         * doc/posix-functions/insque.texi: Likewise.
28611         * doc/posix-functions/linkat.texi: Likewise.
28612         * doc/posix-functions/llrint.texi: Likewise.
28613         * doc/posix-functions/llrintf.texi: Likewise.
28614         * doc/posix-functions/llrintl.texi: Likewise.
28615         * doc/posix-functions/lockf.texi: Likewise.
28616         * doc/posix-functions/lrintl.texi: Likewise.
28617         * doc/posix-functions/mkdirat.texi: Likewise.
28618         * doc/posix-functions/mkfifoat.texi: Likewise.
28619         * doc/posix-functions/mknodat.texi: Likewise.
28620         * doc/posix-functions/mq_close.texi: Likewise.
28621         * doc/posix-functions/mq_getattr.texi: Likewise.
28622         * doc/posix-functions/mq_notify.texi: Likewise.
28623         * doc/posix-functions/mq_open.texi: Likewise.
28624         * doc/posix-functions/mq_receive.texi: Likewise.
28625         * doc/posix-functions/mq_send.texi: Likewise.
28626         * doc/posix-functions/mq_setattr.texi: Likewise.
28627         * doc/posix-functions/mq_timedreceive.texi: Likewise.
28628         * doc/posix-functions/mq_timedsend.texi: Likewise.
28629         * doc/posix-functions/mq_unlink.texi: Likewise.
28630         * doc/posix-functions/open_memstream.texi: Likewise.
28631         * doc/posix-functions/openat.texi: Likewise.
28632         * doc/posix-functions/posix_fadvise.texi: Likewise.
28633         * doc/posix-functions/posix_fallocate.texi: Likewise.
28634         * doc/posix-functions/posix_madvise.texi: Likewise.
28635         * doc/posix-functions/posix_memalign.texi: Likewise.
28636         * doc/posix-functions/posix_openpt.texi: Likewise.
28637         * doc/posix-functions/readlinkat.texi: Likewise.
28638         * doc/posix-functions/remque.texi: Likewise.
28639         * doc/posix-functions/renameat.texi: Likewise.
28640         * doc/posix-functions/rintl.texi: Likewise.
28641         * doc/posix-functions/sem_unlink.texi: Likewise.
28642         * doc/posix-functions/shm_open.texi: Likewise.
28643         * doc/posix-functions/shm_unlink.texi: Likewise.
28644         * doc/posix-functions/signgam.texi: Likewise.
28645         * doc/posix-functions/sigset.texi: Likewise.
28646         * doc/posix-functions/stpcpy.texi: Likewise.
28647         * doc/posix-functions/stpncpy.texi: Likewise.
28648         * doc/posix-functions/strerror.texi: Likewise.
28649         * doc/posix-functions/strtod.texi: Likewise.
28650         * doc/posix-functions/symlinkat.texi: Likewise.
28651         * doc/posix-functions/unlinkat.texi: Likewise.
28652         * doc/posix-functions/utimensat.texi: Likewise.
28653         * doc/glibc-functions/bindresvport.texi: Likewise.
28654         * doc/glibc-functions/dn_expand.texi: Likewise.
28655         * doc/glibc-functions/exp10.texi: Likewise.
28656         * doc/glibc-functions/exp10f.texi: Likewise.
28657         * doc/glibc-functions/fgetxattr.texi: Likewise.
28658         * doc/glibc-functions/flistxattr.texi: Likewise.
28659         * doc/glibc-functions/fopencookie.texi: Likewise.
28660         * doc/glibc-functions/freeifaddrs.texi: Likewise.
28661         * doc/glibc-functions/fremovexattr.texi: Likewise.
28662         * doc/glibc-functions/fsetxattr.texi: Likewise.
28663         * doc/glibc-functions/getifaddrs.texi: Likewise.
28664         * doc/glibc-functions/getxattr.texi: Likewise.
28665         * doc/glibc-functions/lgetxattr.texi: Likewise.
28666         * doc/glibc-functions/listxattr.texi: Likewise.
28667         * doc/glibc-functions/llistxattr.texi: Likewise.
28668         * doc/glibc-functions/lremovexattr.texi: Likewise.
28669         * doc/glibc-functions/lsetxattr.texi: Likewise.
28670         * doc/glibc-functions/pow10.texi: Likewise.
28671         * doc/glibc-functions/pow10f.texi: Likewise.
28672         * doc/glibc-functions/rcmd_af.texi: Likewise.
28673         * doc/glibc-functions/removexattr.texi: Likewise.
28674         * doc/glibc-functions/res_init.texi: Likewise.
28675         * doc/glibc-functions/res_mkquery.texi: Likewise.
28676         * doc/glibc-functions/res_query.texi: Likewise.
28677         * doc/glibc-functions/res_querydomain.texi: Likewise.
28678         * doc/glibc-functions/res_send.texi: Likewise.
28679         * doc/glibc-functions/rresvport_af.texi: Likewise.
28680         * doc/glibc-functions/setxattr.texi: Likewise.
28681         * doc/glibc-functions/strcasestr.texi: Likewise.
28682
28683 2008-12-15  Bruno Haible  <bruno@clisp.org>
28684
28685         Fix compilation error on OSF/1 4.0.
28686         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
28687         <sys/time.h>, simply delegate to the system header.
28688         Reported by Daniel Richard G. <oss@teragram.com>.
28689
28690 2008-12-15  Bruno Haible  <bruno@clisp.org>
28691
28692         * doc/posix-functions/openat.texi: Mention the 'openat' module.
28693         * doc/posix-functions/fchmodat.texi: Likewise.
28694         * doc/posix-functions/fchownat.texi: Likewise.
28695         * doc/posix-functions/fdopendir.texi: Likewise.
28696         * doc/posix-functions/fstatat.texi: Likewise.
28697         * doc/posix-functions/mkdirat.texi: Likewise.
28698         * doc/posix-functions/unlinkat.texi: Likewise.
28699
28700 2008-12-14  Bruno Haible  <bruno@clisp.org>
28701
28702         Update doc for POSIX:2008.
28703         * doc/posix-functions/faccessat.texi: New file.
28704         * doc/posix-functions/fchmodat.texi: New file.
28705         * doc/posix-functions/fchownat.texi: New file.
28706         * doc/posix-functions/fdopendir.texi: New file.
28707         * doc/posix-functions/fstatat.texi: New file.
28708         * doc/posix-functions/futimens.texi: New file.
28709         * doc/posix-functions/linkat.texi: New file.
28710         * doc/posix-functions/mkdirat.texi: New file.
28711         * doc/posix-functions/mkfifoat.texi: New file.
28712         * doc/posix-functions/mknodat.texi: New file.
28713         * doc/posix-functions/open_wmemstream.texi: New file.
28714         * doc/posix-functions/openat.texi: New file.
28715         * doc/posix-functions/psiginfo.texi: New file.
28716         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
28717         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
28718         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
28719         * doc/posix-functions/readlinkat.texi: New file.
28720         * doc/posix-functions/renameat.texi: New file.
28721         * doc/posix-functions/strerror_l.texi: New file.
28722         * doc/posix-functions/symlinkat.texi: New file.
28723         * doc/posix-functions/unlinkat.texi: New file.
28724         * doc/posix-functions/utimensat.texi: New file.
28725         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28726
28727 2008-12-14  Bruno Haible  <bruno@clisp.org>
28728
28729         Update doc for POSIX:2008.
28730         * doc/posix-functions/alphasort.texi: Renamed from
28731         doc/glibc-functions/alphasort.texi.
28732         * doc/posix-functions/dirfd.texi: Renamed from
28733         doc/glibc-functions/dirfd.texi.
28734         * doc/posix-functions/dprintf.texi: Renamed from
28735         doc/glibc-functions/dprintf.texi.
28736         * doc/posix-functions/duplocale.texi: Renamed from
28737         doc/glibc-functions/duplocale.texi.
28738         * doc/posix-functions/fexecve.texi: Renamed from
28739         doc/glibc-functions/fexecve.texi.
28740         * doc/posix-functions/fmemopen.texi: Renamed from
28741         doc/glibc-functions/fmemopen.texi.
28742         * doc/posix-functions/freelocale.texi: Renamed from
28743         doc/glibc-functions/freelocale.texi.
28744         * doc/posix-functions/getdate_err.texi: Renamed from
28745         doc/glibc-functions/getdate_err.texi.
28746         * doc/posix-functions/isalnum_l.texi: Renamed from
28747         doc/glibc-functions/isalnum_l.texi.
28748         * doc/posix-functions/isalpha_l.texi: Renamed from
28749         doc/glibc-functions/isalpha_l.texi.
28750         * doc/posix-functions/isblank_l.texi: Renamed from
28751         doc/glibc-functions/isblank_l.texi.
28752         * doc/posix-functions/iscntrl_l.texi: Renamed from
28753         doc/glibc-functions/iscntrl_l.texi.
28754         * doc/posix-functions/isdigit_l.texi: Renamed from
28755         doc/glibc-functions/isdigit_l.texi.
28756         * doc/posix-functions/isgraph_l.texi: Renamed from
28757         doc/glibc-functions/isgraph_l.texi.
28758         * doc/posix-functions/islower_l.texi: Renamed from
28759         doc/glibc-functions/islower_l.texi.
28760         * doc/posix-functions/isprint_l.texi: Renamed from
28761         doc/glibc-functions/isprint_l.texi.
28762         * doc/posix-functions/ispunct_l.texi: Renamed from
28763         doc/glibc-functions/ispunct_l.texi.
28764         * doc/posix-functions/isspace_l.texi: Renamed from
28765         doc/glibc-functions/isspace_l.texi.
28766         * doc/posix-functions/isupper_l.texi: Renamed from
28767         doc/glibc-functions/isupper_l.texi.
28768         * doc/posix-functions/iswalnum_l.texi: Renamed from
28769         doc/glibc-functions/iswalnum_l.texi.
28770         * doc/posix-functions/iswalpha_l.texi: Renamed from
28771         doc/glibc-functions/iswalpha_l.texi.
28772         * doc/posix-functions/iswblank_l.texi: Renamed from
28773         doc/glibc-functions/iswblank_l.texi.
28774         * doc/posix-functions/iswcntrl_l.texi: Renamed from
28775         doc/glibc-functions/iswcntrl_l.texi.
28776         * doc/posix-functions/iswctype_l.texi: Renamed from
28777         doc/glibc-functions/iswctype_l.texi.
28778         * doc/posix-functions/iswdigit_l.texi: Renamed from
28779         doc/glibc-functions/iswdigit_l.texi.
28780         * doc/posix-functions/iswgraph_l.texi: Renamed from
28781         doc/glibc-functions/iswgraph_l.texi.
28782         * doc/posix-functions/iswlower_l.texi: Renamed from
28783         doc/glibc-functions/iswlower_l.texi.
28784         * doc/posix-functions/iswprint_l.texi: Renamed from
28785         doc/glibc-functions/iswprint_l.texi.
28786         * doc/posix-functions/iswpunct_l.texi: Renamed from
28787         doc/glibc-functions/iswpunct_l.texi.
28788         * doc/posix-functions/iswspace_l.texi: Renamed from
28789         doc/glibc-functions/iswspace_l.texi.
28790         * doc/posix-functions/iswupper_l.texi: Renamed from
28791         doc/glibc-functions/iswupper_l.texi.
28792         * doc/posix-functions/iswxdigit_l.texi: Renamed from
28793         doc/glibc-functions/iswxdigit_l.texi.
28794         * doc/posix-functions/isxdigit_l.texi: Renamed from
28795         doc/glibc-functions/isxdigit_l.texi.
28796         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
28797         doc/glibc-functions/mbsnrtowcs.texi.
28798         * doc/posix-functions/mkdtemp.texi: Renamed from
28799         doc/glibc-functions/mkdtemp.texi.
28800         * doc/posix-functions/newlocale.texi: Renamed from
28801         doc/glibc-functions/newlocale.texi.
28802         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
28803         doc/glibc-functions/nl_langinfo_l.texi.
28804         * doc/posix-functions/open_memstream.texi: Renamed from
28805         doc/glibc-functions/open_memstream.texi.
28806         * doc/posix-functions/opterr.texi: Renamed from
28807         doc/glibc-functions/opterr.texi.
28808         * doc/posix-functions/optind.texi: Renamed from
28809         doc/glibc-functions/optind.texi.
28810         * doc/posix-functions/optopt.texi: Renamed from
28811         doc/glibc-functions/optopt.texi.
28812         * doc/posix-functions/psignal.texi: Renamed from
28813         doc/glibc-functions/psignal.texi.
28814         * doc/posix-functions/scandir.texi: Renamed from
28815         doc/glibc-functions/scandir.texi.
28816         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
28817         doc/glibc-functions/sched_get_priority_min.texi.
28818         * doc/posix-functions/signgam.texi: Renamed from
28819         doc/glibc-functions/signgam.texi.
28820         * doc/posix-functions/stpcpy.texi: Renamed from
28821         doc/glibc-functions/stpcpy.texi.
28822         * doc/posix-functions/stpncpy.texi: Renamed from
28823         doc/glibc-functions/stpncpy.texi.
28824         * doc/posix-functions/strcasecmp_l.texi: Renamed from
28825         doc/glibc-functions/strcasecmp_l.texi.
28826         * doc/posix-functions/strcoll_l.texi: Renamed from
28827         doc/glibc-functions/strcoll_l.texi.
28828         * doc/posix-functions/strfmon_l.texi: Renamed from
28829         doc/glibc-functions/strfmon_l.texi.
28830         * doc/posix-functions/strftime_l.texi: Renamed from
28831         doc/glibc-functions/strftime_l.texi.
28832         * doc/posix-functions/strncasecmp_l.texi: Renamed from
28833         doc/glibc-functions/strncasecmp_l.texi.
28834         * doc/posix-functions/strndup.texi: Renamed from
28835         doc/glibc-functions/strndup.texi.
28836         * doc/posix-functions/strnlen.texi: Renamed from
28837         doc/glibc-functions/strnlen.texi.
28838         * doc/posix-functions/strsignal.texi: Renamed from
28839         doc/glibc-functions/strsignal.texi.
28840         * doc/posix-functions/strxfrm_l.texi: Renamed from
28841         doc/glibc-functions/strxfrm_l.texi.
28842         * doc/posix-functions/timer_gettime.texi: Renamed from
28843         doc/glibc-functions/timer_gettime.texi.
28844         * doc/posix-functions/tolower_l.texi: Renamed from
28845         doc/glibc-functions/tolower_l.texi.
28846         * doc/posix-functions/toupper_l.texi: Renamed from
28847         doc/glibc-functions/toupper_l.texi.
28848         * doc/posix-functions/towctrans_l.texi: Renamed from
28849         doc/glibc-functions/towctrans_l.texi.
28850         * doc/posix-functions/towlower_l.texi: Renamed from
28851         doc/glibc-functions/towlower_l.texi.
28852         * doc/posix-functions/towupper_l.texi: Renamed from
28853         doc/glibc-functions/towupper_l.texi.
28854         * doc/posix-functions/uselocale.texi: Renamed from
28855         doc/glibc-functions/uselocale.texi.
28856         * doc/posix-functions/vdprintf.texi: Renamed from
28857         doc/glibc-functions/vdprintf.texi.
28858         * doc/posix-functions/wcpcpy.texi:
28859         Renamed from doc/glibc-functions/wcpcpy.texi.
28860         * doc/posix-functions/wcpncpy.texi: Renamed from
28861         doc/glibc-functions/wcpncpy.texi.
28862         * doc/posix-functions/wcscasecmp.texi: Renamed from
28863         doc/glibc-functions/wcscasecmp.texi.
28864         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
28865         doc/glibc-functions/wcscasecmp_l.texi.
28866         * doc/posix-functions/wcscoll_l.texi: Renamed from
28867         doc/glibc-functions/wcscoll_l.texi.
28868         * doc/posix-functions/wcsdup.texi: Renamed from
28869         doc/glibc-functions/wcsdup.texi.
28870         * doc/posix-functions/wcsncasecmp.texi: Renamed from
28871         doc/glibc-functions/wcsncasecmp.texi.
28872         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
28873         doc/glibc-functions/wcsncasecmp_l.texi.
28874         * doc/posix-functions/wcsnlen.texi: Renamed from
28875         doc/glibc-functions/wcsnlen.texi.
28876         * doc/posix-functions/wcsnrtombs.texi: Renamed from
28877         doc/glibc-functions/wcsnrtombs.texi.
28878         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
28879         doc/glibc-functions/wcsxfrm_l.texi.
28880         * doc/posix-functions/wctrans_l.texi: Renamed from
28881         doc/glibc-functions/wctrans_l.texi.
28882         * doc/posix-functions/wctype_l.texi: Renamed from
28883         doc/glibc-functions/wctype_l.texi.
28884         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28885         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
28886         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
28887         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
28888         these subsections.
28889         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
28890         Remove sections.
28891
28892 2008-12-14  Bruno Haible  <bruno@clisp.org>
28893
28894         Update doc for POSIX:2008.
28895         * doc/posix-functions/*.texi: Update URL of POSIX specification.
28896
28897 2008-12-14  Bruno Haible  <bruno@clisp.org>
28898
28899         Update doc for POSIX:2008.
28900         * doc/pastposix-functions/bcmp.texi: Renamed from
28901         doc/posix-functions/bcmp.texi.
28902         * doc/pastposix-functions/bcopy.texi: Renamed from
28903         doc/posix-functions/bcopy.texi.
28904         * doc/pastposix-functions/bsd_signal.texi: Renamed from
28905         doc/posix-functions/bsd_signal.texi.
28906         * doc/pastposix-functions/bzero.texi: Renamed from
28907         doc/posix-functions/bzero.texi.
28908         * doc/pastposix-functions/ecvt.texi: Renamed from
28909         doc/posix-functions/ecvt.texi.
28910         * doc/pastposix-functions/fcvt.texi: Renamed from
28911         doc/posix-functions/fcvt.texi.
28912         * doc/pastposix-functions/ftime.texi: Renamed from
28913         doc/posix-functions/ftime.texi.
28914         * doc/pastposix-functions/gcvt.texi: Renamed from
28915         doc/posix-functions/gcvt.texi.
28916         * doc/pastposix-functions/getcontext.texi: Renamed from
28917         doc/posix-functions/getcontext.texi.
28918         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
28919         doc/posix-functions/gethostbyaddr.texi.
28920         * doc/pastposix-functions/gethostbyname.texi: Renamed from
28921         doc/posix-functions/gethostbyname.texi.
28922         * doc/pastposix-functions/getwd.texi: Renamed from
28923         doc/posix-functions/getwd.texi.
28924         * doc/pastposix-functions/h_errno.texi: Renamed from
28925         doc/posix-functions/h_errno.texi.
28926         * doc/pastposix-functions/index.texi: Renamed from
28927         doc/posix-functions/index.texi.
28928         * doc/pastposix-functions/makecontext.texi: Renamed from
28929         doc/posix-functions/makecontext.texi.
28930         * doc/pastposix-functions/mktemp.texi: Renamed from
28931         doc/posix-functions/mktemp.texi.
28932         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
28933         doc/posix-functions/pthread_attr_getstackaddr.texi.
28934         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
28935         doc/posix-functions/pthread_attr_setstackaddr.texi.
28936         * doc/pastposix-functions/rindex.texi: Renamed from
28937         doc/posix-functions/rindex.texi.
28938         * doc/pastposix-functions/scalb.texi: Renamed from
28939         doc/posix-functions/scalb.texi.
28940         * doc/pastposix-functions/setcontext.texi: Renamed from
28941         doc/posix-functions/setcontext.texi.
28942         * doc/pastposix-functions/swapcontext.texi: Renamed from
28943         doc/posix-functions/swapcontext.texi.
28944         * doc/pastposix-functions/ualarm.texi: Renamed from
28945         doc/posix-functions/ualarm.texi.
28946         * doc/pastposix-functions/usleep.texi: Renamed from
28947         doc/posix-functions/usleep.texi.
28948         * doc/pastposix-functions/vfork.texi: Renamed from
28949         doc/posix-functions/vfork.texi.
28950         * doc/pastposix-functions/wcswcs.texi: Renamed from
28951         doc/posix-functions/wcswcs.texi.
28952         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
28953         (Function Substitutes): Update.
28954
28955 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28956
28957         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
28958         m4/strerror.m4.
28959
28960 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28961             Bruno Haible  <bruno@clisp.org>
28962
28963         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
28964
28965 2008-12-13  Bruno Haible  <bruno@clisp.org>
28966
28967         * modules/strtoull (Depends-on): Remove unistd.
28968
28969 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28970
28971         * modules/strtoull (Depends-on): Add stdlib.
28972
28973 2008-12-11  Simon Josefsson  <simon@josefsson.org>
28974
28975         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
28976
28977 2008-12-10  Jim Meyering  <meyering@redhat.com>
28978
28979         gl_ASSERT: don't say assertions are disabled when they're not
28980         * m4/assert.m4 (gl_ASSERT): Do not make configure report
28981         "checking whether to enable assertions... no", when they are in
28982         fact enabled.  This is solely a bug in the output of configure.
28983         In spite of saying "no", NDEBUG was not defined in that case.
28984         Also, as noted by Eric Blake, leave assertions enabled upon
28985         --enable-assert=INVALID.
28986
28987 2008-12-10  Bruno Haible  <bruno@clisp.org>
28988
28989         Change MODULES.html to refer to POSIX:2008 where possible.
28990         * MODULES.html.sh (POSIX2008_URL): New variable.
28991         (posix_headers): Remove sys/timeb, ucontext.
28992         (posix2001_headers): New variable.
28993         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
28994         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
28995         index, makecontext, mktemp, pthread_attr_getstackaddr,
28996         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
28997         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
28998         (posix2001_functions): New variable.
28999         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
29000         otherwise.
29001
29002 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29003
29004         add missing include to parse-duration.c
29005         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
29006         * modules/parse-duration (Depends-on): Add xalloc.
29007
29008         fix sed script reading maint.mk
29009         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
29010         (syntax-check-rules): Use it.
29011
29012 2008-12-09  Bruno Haible  <bruno@clisp.org>
29013
29014         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
29015         MacOS X 10.4/PowerPC.
29016         Reported by Simon Josefsson.
29017
29018 2008-12-08  Jim Meyering  <meyering@redhat.com>
29019
29020         work around mingw's lack of some S_IF definitions
29021         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
29022         Reported by Simon Josefsson.
29023
29024 2008-12-08  Bruno Haible  <bruno@clisp.org>
29025
29026         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
29027         applied to variables. Needed on MacOS X 10.4/PowerPC.
29028         Reported by Simon Josefsson.
29029
29030 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
29031         and Eric Blake  <ebb9@byu.net>
29032
29033         assert: honor --enable-assert
29034         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
29035         order to honor --enable-assert, rather than treating it as a
29036         synonym for --disable-assert.
29037
29038 2008-12-08  Jim Meyering  <meyering@redhat.com>
29039
29040         * lib/posixtm.c: Remove now-useless declaration of mktime.
29041
29042         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
29043
29044 2008-12-07  Bruno Haible  <bruno@clisp.org>
29045
29046         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
29047         test_once): Mark functions as static.
29048         * tests/test-tls.c (test_tls): Likewise.
29049
29050 2008-12-07  Bruno Haible  <bruno@clisp.org>
29051
29052         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
29053         iconv_register_autodetect.
29054
29055 2008-12-07  Jim Meyering  <meyering@redhat.com>
29056
29057         posixtm.c: avoid a warning
29058         * lib/posixtm.c (posixtime): Don't initialize tm0.
29059         It's no longer needed to placate gcc4's -Wuninitialized,
29060         and the attempt to placate would elicit a new warning.
29061
29062         unicodeio.c: mark unused parameters
29063         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
29064         (fallback_failure_callback): Likewise.
29065
29066 2008-12-07  Bruno Haible  <bruno@clisp.org>
29067
29068         * gnulib-tool (func_create_testdir): When building the tests
29069         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
29070         Reported by Simon Josefsson.
29071
29072 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29073
29074         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
29075
29076 2008-12-06  Bruno Haible  <bruno@clisp.org>
29077
29078         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
29079         Suggested by Eric Blake.
29080
29081 2008-12-06  Bruno Haible  <bruno@clisp.org>
29082
29083         Fix a c-stack test failure on MacOS X.
29084         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
29085         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
29086         handler for SIGBUS as well.
29087         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
29088         install a signal handler for SIGBUS as well.
29089         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
29090
29091 2008-12-06  Bruno Haible  <bruno@clisp.org>
29092
29093         Advocacy documentation.
29094         * doc/gnulib-intro.texi (Benefits): New section.
29095         * doc/gnulib.texi: Update.
29096
29097 2008-12-06  Bruno Haible  <bruno@clisp.org>
29098
29099         Document the 'manywarnings' module.
29100         * doc/manywarnings.texi: New file.
29101         * doc/gnulib.texi: Include it.
29102
29103 2008-12-05  Eric Blake  <ebb9@byu.net>
29104
29105         tests: silence some gcc warnings
29106         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
29107         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
29108         type mismatches.
29109
29110 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29111             Bruno Haible  <bruno@clisp.org>
29112
29113         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
29114
29115 2008-11-29  Jim Meyering  <meyering@redhat.com>
29116
29117         unicodeio.c: mark unused parameters
29118         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
29119         (fallback_failure_callback): Likewise.
29120
29121         fts: fix a thinko
29122         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
29123         (set_stat_type): Return S_IF*-valued "type" directly.
29124         Prompted by James Youngman's spotting a related bug.
29125         Confirmed by further testing through find.
29126
29127         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
29128         * lib/fts.c (D_TYPE): Define.
29129         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
29130         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
29131         (s_ifmt_shift_bits): New function.
29132         (set_stat_type): New function.
29133         (fts_build): When not calling fts_stat, call set_stat_type
29134         to propagate dirent.d_type info to fts_read caller.
29135         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
29136         fts_statp->st_mode type information may be valid.
29137
29138 2008-11-28  Simon Josefsson  <simon@josefsson.org>
29139
29140         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
29141         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
29142         <sds@gnu.org>.
29143
29144 2008-11-20  Bruno Haible  <bruno@clisp.org>
29145
29146         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
29147         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
29148         INCLUDE_NEXT.
29149         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
29150         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
29151         * modules/math (Makefile.am): Substitute
29152         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
29153         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29154
29155 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
29156             Bruno Haible  <bruno@clisp.org>
29157
29158         * lib/stdint.in.h: Define all type macros so that their expansion is
29159         a single typedef'ed token. Fixes a compilation failure in Boost which
29160         does "using ::int8_t;".
29161
29162 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29163
29164         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
29165         gl_MANYWARN_ALL_GCC.
29166         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
29167         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
29168         * modules/manywarnings: New file.
29169         * MODULES.html.sh: Mention manywarnings module.
29170
29171 2008-11-18  Bruno Haible  <bruno@clisp.org>
29172
29173         * doc/gnulib-tool.texi (Unit tests): New section.
29174
29175 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29176
29177         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
29178         paths like 'lib/po/foo.po'.
29179
29180 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29181
29182         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
29183         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
29184
29185 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29186
29187         * m4/warnings.m4: Use CPPFLAGS to really check whether the
29188         parameter works.
29189
29190 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29191
29192         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
29193
29194 2008-11-17  Bruce Korb  <bkorb@gnu.org>
29195
29196         * modules/parse-duration-tests: New file.
29197         * tests/test-parse-duration.sh: New file.
29198         * tests/test-parse-duration.c: New file.
29199
29200         New module 'parse-duration'.
29201         * lib/parse-duration.h: New file.
29202         * lib/parse-duration.c: New file.
29203         * modules/parse-duration: New file.
29204
29205 2008-11-17  Bruno Haible  <bruno@clisp.org>
29206
29207         * tests/test-select-out.sh: Comment out the first pipe test.
29208         Reported by Simon Josefsson.
29209
29210 2008-11-17  Bruno Haible  <bruno@clisp.org>
29211
29212         * modules/getaddrinfo (Depends-on): Add servent, hostent.
29213         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
29214         gl_HOSTENT.
29215
29216 2008-11-17  Bruno Haible  <bruno@clisp.org>
29217
29218         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
29219         -lnetwork and -lnet. Needed for Haiku and BeOS.
29220
29221 2008-11-16  Bruno Haible  <bruno@clisp.org>
29222
29223         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
29224
29225 2008-11-16  Bruno Haible  <bruno@clisp.org>
29226
29227         Avoid test failure on Haiku.
29228         * tests/test-fsync.c: Include <errno.h>.
29229         (main): Don't require that fsync (0) fails.
29230
29231 2008-11-15  Bruno Haible  <bruno@clisp.org>
29232
29233         New module 'hostent'.
29234         * modules/hostent: New file.
29235         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
29236
29237 2008-11-15  Bruno Haible  <bruno@clisp.org>
29238
29239         New module 'servent'.
29240         * modules/servent: New file.
29241         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
29242
29243 2008-11-15  Bruno Haible  <bruno@clisp.org>
29244
29245         Avoid generating same test program with two different rules.
29246         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
29247         test-frexp to test-frexp-nolibm.
29248         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
29249         test-frexpl to test-frexpl-nolibm.
29250
29251 2008-11-15  Bruno Haible  <bruno@clisp.org>
29252
29253         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
29254         $(FREXPL_LIBM).
29255
29256 2008-11-15  Bruno Haible  <bruno@clisp.org>
29257
29258         * lib/netdb.in.h: Activate the definitions also when the system's
29259         <netdb.h> has 'struct addrinfo'.
29260         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
29261         EAI_OVERFLOW or AI_NUMERICSERV.
29262         * doc/posix-headers/netdb.texi: Document the problem.
29263
29264 2008-11-15  Bruno Haible  <bruno@clisp.org>
29265
29266         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
29267
29268         Make the 'sched' module work on platforms where <sched.h> exists but
29269         is incomplete (such as Haiku).
29270         * lib/sched.in.h; Include the system's <sched.h> if it exists.
29271         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
29272         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
29273         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
29274         HAVE_STRUCT_SCHED_PARAM.
29275         * modules/sched (Depends-on): Add include_next.
29276         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
29277         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
29278         * doc/posix-headers/sched.texi: Document the issue.
29279
29280 2008-11-13  Jim Meyering  <meyering@redhat.com>
29281
29282         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
29283         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
29284         test would fail due to the difference in the Report bugs to ...
29285         line.  The expected address is empty, "<>", while the actual
29286         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
29287
29288 2008-11-12  Bruno Haible  <bruno@clisp.org>
29289
29290         lstat: don't compile lstat.c on systems lacking lstat
29291         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
29292         which don't have lstat; this is handled by lib/sys_stat.in.h already.
29293         Reported by Daniel P. Berrange via Jim Meyering.
29294
29295 2008-11-12  Jim Meyering  <meyering@redhat.com>
29296
29297         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
29298
29299 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29300
29301         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
29302         instead.
29303
29304 2008-11-12  Bruno Haible  <bruno@clisp.org>
29305
29306         * lib/unicodeio.c: Include unistr.h.
29307         (utf8_wctomb): Remove function.
29308         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
29309
29310 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29311
29312         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
29313         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
29314         <bruno@clisp.org>.
29315         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
29316
29317 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29318
29319         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
29320         * doc/gnulib.texi: Add section for warnings.
29321
29322 2008-11-11  Bruno Haible  <bruno@clisp.org>
29323
29324         * lib/sockets.h: Add a comment.
29325
29326 2008-11-11  Karl Berry  <karl@gnu.org>
29327
29328         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
29329
29330 2008-11-11  Eric Blake  <ebb9@byu.net>
29331
29332         fdl.texi: avoid git symlinks
29333         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
29334
29335 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29336
29337         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
29338
29339 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29340
29341         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
29342         (gl_WARN_ADD): Substitute $2 if literal.
29343
29344 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29345
29346         * m4/warning.m4: Remove.
29347
29348 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29349
29350         * m4/warnings.m4: Almost complete rewrite. :-)
29351
29352 2008-11-10  Simon Josefsson  <simon@josefsson.org>
29353
29354         * modules/warnings: New module.
29355         * m4/warnings.m4: New file.
29356         * MODULES.html.sh: Mention warnings module.
29357         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
29358         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29359
29360 2008-11-10  Eric Blake  <ebb9@byu.net>
29361
29362         fdl.texi: make a symlink to the latest version
29363         * doc/standards.texi: Revert today's earlier change.
29364         * doc/fdl-1.2.texi: Rename from old fdl.texi...
29365         * doc/fdl.texi: ...and replace this with a symlink to the newer
29366         fdl-1.3.texi.
29367
29368 2008-11-10  Bruno Haible  <bruno@clisp.org>
29369
29370         * tests/test-select-fd.c (main): Accept the result file name as fourth
29371         argument.
29372         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
29373         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
29374
29375 2008-11-10  Bruno Haible  <bruno@clisp.org>
29376
29377         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
29378         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
29379         as autoconf-substituted macros.
29380         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
29381         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
29382         gl_NETDB_H_DEFAULTS. Set these variables.
29383         * modules/netdb (Makefile.am): Substitute these variables.
29384
29385 2008-11-10  Eric Blake  <ebb9@byu.net>
29386
29387         standards.texi: include correct file for FDL 1.3
29388         * doc/standards.texi (GNU Free Documentation License): Change
29389         include file to pull in FDL 1.3, not 1.2.
29390
29391         fdl.texi: revert accidental change to license
29392         * doc/fdl.texi: This is FDL 1.2, not 1.3.
29393
29394 2008-11-10  Bruno Haible  <bruno@clisp.org>
29395
29396         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
29397         cross-compiling guesses also when the native compile gives no result.
29398
29399 2008-11-10  Bruno Haible  <bruno@clisp.org>
29400
29401         * lib/spawni.c (__spawni): Force variable into the stack.
29402
29403 2008-11-10  Bruno Haible  <bruno@clisp.org>
29404
29405         Add support for Haiku.
29406         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
29407         glibc and BeOS, but also on Haiku.
29408         * lib/fpurge.c (fpurge): Likewise.
29409         * lib/freadable.c (freadable): Likewise.
29410         * lib/freadahead.c (freadahead): Likewise.
29411         * lib/freading.c (freading): Likewise.
29412         * lib/freadptr.c (freadptr): Likewise.
29413         * lib/freadseek.c (freadptrinc): Likewise.
29414         * lib/fseeko.c (rpl_fseeko): Likewise.
29415         * lib/fseterr.c (fseterr): Likewise.
29416         * lib/fwritable.c (fwritable): Likewise.
29417         * lib/fwriting.c (fwriting): Likewise.
29418         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
29419
29420 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29421
29422         * lib/config.charset: Treat Haiku like BeOS.
29423
29424 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29425
29426         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
29427         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
29428
29429 2008-11-08  Bruno Haible  <bruno@clisp.org>
29430
29431         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
29432         AC_CACHE_CHECK.
29433
29434 2008-11-08  Bruno Haible  <bruno@clisp.org>
29435
29436         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
29437
29438 2008-11-08  Bruno Haible  <bruno@clisp.org>
29439
29440         * tests/test-select-fd.c: New file.
29441         * tests/test-select-in.sh: New file.
29442         * tests/test-select-out.sh: New file.
29443         * tests/test-select-stdin.c: New file.
29444         * modules/select-tests (Files): Add the new files.
29445         (Depends-on): Add gettimeofday.
29446         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
29447         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
29448         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
29449
29450 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
29451             Bruno Haible  <bruno@clisp.org>
29452
29453         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
29454
29455 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
29456
29457         * build-aux/pmccabe2html: Added support for C++ source files.
29458
29459 2008-11-05  Ben Pfaff  <blp@gnu.org>
29460
29461         Fix lib/close.c build on Windows.
29462         * modules/close (Files): Add lib/w32sock.h.
29463
29464 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
29465
29466         Accept Bison's NEWS format.
29467         * build-aux/announce-gen (print_news_deltas): Tweak
29468         $re_prefix.
29469
29470 2008-11-04  Bruno Haible  <bruno@clisp.org>
29471
29472         * modules/random_r (Maintainer): Add glibc.
29473
29474 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29475
29476         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
29477         by karl@freefriends.org (Karl Berry).
29478         * doc/alloca.texi: Likewise.
29479         * doc/c-ctype.texi: Likewise.
29480         * doc/c-strcase.texi: Likewise.
29481         * doc/c-strcaseeq.texi: Likewise.
29482         * doc/c-strcasestr.texi: Likewise.
29483         * doc/c-strstr.texi: Likewise.
29484         * doc/c-strtod.texi: Likewise.
29485         * doc/c-strtold.texi: Likewise.
29486         * doc/ctime.texi: Likewise.
29487         * doc/error.texi: Likewise.
29488         * doc/fdl.texi: Likewise.
29489         * doc/gcd.texi: Likewise.
29490         * doc/getdate.texi: Likewise.
29491         * doc/gnulib-intro.texi: Likewise.
29492         * doc/gnulib-tool.texi: Likewise.
29493         * doc/gnulib.texi: Likewise.
29494         * doc/inet_ntoa.texi: Likewise.
29495         * doc/maintain.texi: Likewise.
29496         * doc/make-stds.texi: Likewise.
29497         * doc/quote.texi: Likewise.
29498         * doc/regexprops-generic.texi: Likewise.
29499         * doc/standards.texi: Likewise.
29500         * doc/verify.texi: Likewise.
29501         * doc/visibility.texi: Likewise.
29502         * doc/gnulib.texi (GNU Free Documentation License): Include
29503         fdl-1.3.texi instead of fdl.texi.
29504
29505 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29506
29507         * doc/fdl-1.3.texi: New file, from
29508         <http://www.gnu.org/licenses/fdl-1.3.texi>.
29509         * modules/fdl-1.3: Add.
29510         * MODULES.html.sh: Add fdl-1.3.
29511
29512 2008-11-03  Bruno Haible  <bruno@clisp.org>
29513
29514         Make determination of absolute name of header file work with AIX xlc.
29515         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
29516         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
29517         preprocessing.
29518         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29519         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29520
29521 2008-11-03  Simon Josefsson  <simon@josefsson.org>
29522
29523         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
29524         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
29525         <ludo@gnu.org>.
29526
29527 2008-11-02  Bruno Haible  <bruno@clisp.org>
29528
29529         Mark 'strpbrk' obsolete.
29530         * modules/strpbrk (Status, Notice): New sections.
29531         * modules/strtok_r (Depends-on): Add strpbrk.
29532
29533 2008-11-02  Bruno Haible  <bruno@clisp.org>
29534
29535         Mark 'strdup' obsolete.
29536         * modules/strdup (Status, Notice): New sections.
29537         * modules/findprog (Depends-on): Add strdup.
29538         * modules/getaddrinfo (Depends-on): Likewise.
29539         * modules/localename (Depends-on): Likewise.
29540         * modules/relocatable-lib (Depends-on): Likewise.
29541         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
29542         * modules/relocatable-prog (Depends-on): Likewise.
29543         * modules/trim (Depends-on): Likewise.
29544         * modules/unictype/gen-ctype (Depends-on): Likewise.
29545         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29546
29547 2008-11-02  Bruno Haible  <bruno@clisp.org>
29548
29549         Mark 'strcspn' obsolete.
29550         * modules/strcspn (Status, Notice): New sections.
29551
29552 2008-11-02  Bruno Haible  <bruno@clisp.org>
29553
29554         Mark 'rmdir' obsolete.
29555         * modules/rmdir (Status, Notice): New sections.
29556         * modules/clean-temp (Depends-on): Add rmdir.
29557         * modules/openat (Depends-on): Likewise.
29558
29559 2008-11-02  Bruno Haible  <bruno@clisp.org>
29560
29561         Mark 'raise' obsolete.
29562         * modules/raise (Status, Notice): New sections.
29563         (Include): Specify <signal.h>.
29564         * modules/stdio (Depends-on): Add raise.
29565         * modules/write (Depends-on): Likewise.
29566
29567 2008-11-02  Bruno Haible  <bruno@clisp.org>
29568
29569         Mark 'memset' obsolete.
29570         * modules/memset (Status, Notice): New sections.
29571
29572 2008-11-02  Bruno Haible  <bruno@clisp.org>
29573
29574         Mark 'memmove' obsolete.
29575         * modules/memmove (Status, Notice): New sections.
29576         * modules/argp (Depends-on): Add memmove.
29577         * modules/argz (Depends-on): Likewise.
29578         * modules/canonicalize (Depends-on): Likewise.
29579         * modules/canonicalize-lgpl (Depends-on): Likewise.
29580         * modules/fts (Depends-on): Likewise.
29581         * modules/getcwd (Depends-on): Likewise.
29582         * modules/human (Depends-on): Likewise.
29583         * modules/regex (Depends-on): Likewise.
29584         * modules/striconveh (Depends-on): Likewise.
29585         * modules/trim (Depends-on): Likewise.
29586         * modules/unistr/u8-move (Depends-on): Likewise.
29587         * modules/unistr/u16-move (Depends-on): Likewise.
29588         * modules/unistr/u32-move (Depends-on): Likewise.
29589
29590 2008-11-02  Bruno Haible  <bruno@clisp.org>
29591
29592         Mark 'memcpy' obsolete.
29593         * modules/memcpy (Status, Notice): New sections.
29594
29595 2008-11-02  Bruno Haible  <bruno@clisp.org>
29596
29597         Mark 'memcmp' obsolete.
29598         * modules/memcmp (Status, Notice): New sections.
29599         * modules/argmatch (Depends-on): Add memchr.
29600         * modules/backupfile (Depends-on): Likewise.
29601         * modules/c-strcasestr (Depends-on): Likewise.
29602         * modules/crypto/des (Depends-on): Likewise.
29603         * modules/csharpcomp (Depends-on): Likewise.
29604         * modules/fnmatch (Depends-on): Likewise.
29605         * modules/git-merge-changelog (Depends-on): Likewise.
29606         * modules/isnand (Depends-on): Likewise.
29607         * modules/isnand-nolibm (Depends-on): Likewise.
29608         * modules/isnanf (Depends-on): Likewise.
29609         * modules/isnanf-nolibm (Depends-on): Likewise.
29610         * modules/isnanl (Depends-on): Likewise.
29611         * modules/isnanl-nolibm (Depends-on): Likewise.
29612         * modules/mbchar (Depends-on): Likewise.
29613         * modules/memcoll (Depends-on): Likewise.
29614         * modules/quotearg (Depends-on): Likewise.
29615         * modules/regex (Depends-on): Likewise.
29616         * modules/relocatable-prog (Depends-on): Likewise.
29617         * modules/same (Depends-on): Likewise.
29618         * modules/signbit (Depends-on): Likewise.
29619         * modules/strcasestr-simple (Depends-on): Likewise.
29620         * modules/unictype/gen-ctype (Depends-on): Likewise.
29621         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29622         * modules/uniname/uniname (Depends-on): Likewise.
29623         * modules/unistr/u8-cmp (Depends-on): Likewise.
29624
29625 2008-11-02  Bruno Haible  <bruno@clisp.org>
29626
29627         Mark 'memchr' obsolete.
29628         * modules/memchr (Status, Notice): New sections.
29629         * modules/argp (Depends-on): Add memchr.
29630         * modules/base64 (Depends-on): Likewise.
29631         * modules/c-strcasestr (Depends-on): Likewise.
29632         * modules/chdir-long (Depends-on): Likewise.
29633         * modules/fnmatch (Depends-on): Likewise.
29634         * modules/getsubopt (Depends-on): Likewise.
29635         * modules/git-merge-changelog (Depends-on): Likewise.
29636         * modules/glob (Depends-on): Likewise.
29637         * modules/strcasestr-simple (Depends-on): Likewise.
29638         * modules/strnlen (Depends-on): Likewise.
29639
29640 2008-11-02  Bruno Haible  <bruno@clisp.org>
29641
29642         Mark 'atexit' obsolete.
29643         * modules/atexit (Status, Notice): New sections.
29644         * modules/chdir-long (Depends-on): Add atexit.
29645         * modules/wait-process (Depends-on): Likewise.
29646
29647 2008-11-02  Bruno Haible  <bruno@clisp.org>
29648
29649         * gnulib-tool: New option --with-obsolete.
29650         (func_usage): Document it.
29651         (func_modules_transitive_closure): Drop obsolete dependencies if
29652         incobsolete is not true.
29653         (func_import): Read and save the incobsolete variable to the cache.
29654
29655 2008-11-02  Bruno Haible  <bruno@clisp.org>
29656
29657         * modules/TEMPLATE-EXTENDED: New field 'Status'.
29658         * gnulib-tool: New option --extract-status.
29659         (func_usage): Document it.
29660         (sed_extract_prog): Recognize it.
29661         (func_get_status): New function.
29662
29663 2008-10-30  Simon Josefsson  <simon@josefsson.org>
29664
29665         * modules/sockets (License): Change from LGPL to LGPLv2+.
29666
29667 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29668
29669         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
29670
29671 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29672
29673         * MODULES.html.sh (Support for systems lacking POSIX:2001):
29674         Mention times and sys_times.
29675         * modules/sys_times, modules/sys_times-tests: New modules.
29676         * modules/times, modules/times-tests: Likewise
29677         * m4/sys_times_h.m4: New file.
29678         * lib/sys_times.in.h: Likewise
29679         * lib/times.c: Likewise.
29680         * tests/test-sys_times.c: Likewise.
29681         * tests/test-times.c: Likewise.
29682         * doc/posix-headers/sys_times.texi: Update.
29683         * doc/posix-functions/times.texi: Update.
29684
29685 2008-10-28  Jim Meyering  <meyering@redhat.com>
29686
29687         * modules/tempname (Depends-on): Add lstat.
29688
29689         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
29690
29691 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29692
29693         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
29694         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
29695         using idiom used elsewhere in gnulib.
29696
29697 2008-10-27  Jim Meyering  <meyering@redhat.com>
29698
29699         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
29700
29701 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29702
29703         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
29704         TESTS_ENVIRONMENT, for shell scripts that needs to call built
29705         programs.
29706         * tests/test-argp-2.sh: Use $EXEEXT when needed.
29707
29708 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29709
29710         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
29711
29712 2008-10-27  Bruno Haible  <bruno@clisp.org>
29713
29714         * tests/test-lstat.c: Include <stdio.h>.
29715
29716 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29717
29718         * modules/lstat-tests: New module.
29719         * tests/test-lstat.c: New file.
29720
29721 2008-10-26  Jim Meyering  <meyering@redhat.com>
29722
29723         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
29724
29725 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29726             Bruno Haible  <bruno@clisp.org>
29727
29728         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
29729         * modules/configmake (Include): Add a note that the include must come
29730         after all system headers.
29731         * lib/javaversion.c: Include configmake.h after all other includes.
29732
29733 2008-10-26  Bruno Haible  <bruno@clisp.org>
29734
29735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
29736         HAVE_STRUCT_RANDOM_DATA to 1.
29737         (gl_STDLIB_H): Simplify.
29738
29739 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29740
29741         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
29742         substitute HAVE_STRUCT_RANDOM_DATA.
29743         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
29744         random_data.
29745         * modules/stdlib (Makefile.am): Substitute
29746         HAVE_STRUCT_RANDOM_DATA.
29747
29748 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29749
29750         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
29751         * doc/gnulib-intro.texi (Copyright): Likewise.
29752
29753 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29754
29755         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
29756         findings.
29757
29758 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
29759             Bruno Haible  <bruno@clisp.org>
29760
29761         * lib/unistd.in.h: Include <winsock2.h>.
29762         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
29763         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
29764         Provide dummy declarations.
29765         (gethostname): Override.
29766         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
29767         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
29768         gl_PREREQ_SYS_H_WINSOCK2.
29769         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
29770         * doc/posix-functions/gethostname.texi: More details.
29771
29772 2008-10-25  Bruno Haible  <bruno@clisp.org>
29773
29774         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
29775         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
29776         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
29777
29778         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
29779         here ...
29780         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
29781         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
29782         gl_UNISTD_H_DEFAULTS.
29783
29784 2008-10-25  Eric Blake  <ebb9@byu.net>
29785
29786         signbit: avoid spurious compiler failure
29787         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
29788         declarations inside function.
29789
29790 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29791             Bruno Haible  <bruno@clisp.org>
29792
29793         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
29794         * modules/random_r (Depends-on): Add stdint.
29795
29796 2008-10-24  Bruno Haible  <bruno@clisp.org>
29797
29798         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
29799         Eggert.
29800         * modules/strerror (License): Likewise.
29801
29802 2008-10-24  Jim Meyering  <meyering@redhat.com>
29803
29804         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
29805         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
29806
29807 2008-10-24  Eric Blake  <ebb9@byu.net>
29808
29809         getgroups: fix compilation when getgroups is available
29810         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
29811         but with <config.h> override of getgroups disabled.
29812
29813 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29814
29815         * doc/gnulib.texi (Header files): Add note about C++ problems.
29816         Explained by Bruno Haible <bruno@clisp.org>.
29817
29818 2008-10-23  Bruno Haible  <bruno@clisp.org>
29819
29820         Define a dummy SA_NODEFER macro on Interix.
29821         * lib/signal.in.h (SA_NODEFER): Define fallback.
29822         Reported by Aleksey Cheusov <cheusov@tut.by> via
29823         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
29824
29825 2008-10-23  Bruno Haible  <bruno@clisp.org>
29826
29827         * modules/freadahead (License): Change to LGPLv2+.
29828         Suggested by Simon Josefsson.
29829
29830 2008-10-23  Jim Meyering  <meyering@redhat.com>
29831
29832         random_r: new module
29833         * modules/random_r: New file.
29834         * m4/random_r.m4: New file.
29835         * lib/random_r.c: New file, from glibc.
29836         * modules/random_r-tests: New file.
29837         * tests/test-random_r.c: New file.
29838         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
29839          Declare.
29840         (RAND_MAX): Define.
29841         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
29842         * modules/stdlib: Substitute them, too.
29843         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
29844         * doc/glibc-functions/initstate_r.texi: Mention the new module.
29845         * doc/glibc-functions/random_r.texi: Likewise.
29846         * doc/glibc-functions/setstate_r.texi: Likewise.
29847         * doc/glibc-functions/srandom_r.texi: Likewise.
29848         * config/srclist.txt: Mention it.
29849
29850 2008-10-23  David Lutterkort  <lutter@redhat.com>
29851
29852         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
29853         link requirement
29854
29855 2008-10-23  Jim Meyering  <meyering@redhat.com>
29856
29857         selinux-h: mark parameters of stub functions as intentionally unused
29858         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
29859         * lib/se-context.in.h: Likewise.
29860
29861 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29862
29863         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
29864
29865 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29866
29867         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
29868
29869 2008-10-22  Eric Blake  <ebb9@byu.net>
29870
29871         glthread/thread: avoid compiler warning
29872         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
29873         Add unreachable abort to silence compiler.
29874
29875 2008-10-22  Eric Blake  <ebb9@byu.net>
29876
29877         netdb: also supply struct addrinfo for cygwin 1.5.x
29878         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
29879         older cygwin.
29880         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
29881         cygwin.
29882         * doc/posix-headers/netdb.texi (netdb.h): Document this.
29883
29884 2008-10-22  Bruno Haible  <bruno@clisp.org>
29885
29886         * users.txt: Update entry about pspp.
29887
29888 2008-10-21  Bruno Haible  <bruno@clisp.org>
29889
29890         Simplification.
29891         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
29892         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
29893
29894         Simplification.
29895         * lib/ioctl.c (ioctl): Don't undefine.
29896         * lib/socket.c (socket): Don't undefine.
29897
29898         Remove unused module indicator macros.
29899         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
29900         GNULIB_$1 as a C macro.
29901
29902         * doc/posix-functions/close.texi: Undo last change.
29903         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
29904         Windows platforms.
29905
29906 2008-10-21  Bruno Haible  <bruno@clisp.org>
29907
29908         Add gethostname() declaration to <unistd.h>.
29909         * lib/unistd.in.h (gethostname): New declaration.
29910         * lib/gethostname.c: Include <unistd.h>.
29911         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
29912         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
29913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
29914         and HAVE_GETHOSTNAME.
29915         * modules/gethostname (Depends-on): Add unistd.
29916         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29917         (Include): Specify <unistd.h>.
29918         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
29919         HAVE_GETHOSTNAME.
29920         * tests/test-gethostname.c: Include <unistd.h> first.
29921
29922 2008-10-21  Bruno Haible  <bruno@clisp.org>
29923
29924         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
29925         * modules/select-tests (Depends-on): Likewise.
29926         Reported by Simon Josefsson.
29927
29928 2008-10-21  Simon Josefsson  <simon@josefsson.org>
29929
29930         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
29931         * lib/accept.c: New file, based on winsock.c.
29932         * lib/bind.c: New file, based on winsock.c.
29933         * lib/connect.c: New file, based on winsock.c.
29934         * lib/getpeername.c: New file, based on winsock.c.
29935         * lib/getsockname.c: New file, based on winsock.c.
29936         * lib/getsockopt.c: New file, based on winsock.c.
29937         * lib/ioctl.c: New file, based on winsock.c.
29938         * lib/listen.c: New file, based on winsock.c.
29939         * lib/recv.c: New file, based on winsock.c.
29940         * lib/recvfrom.c: New file, based on winsock.c.
29941         * lib/send.c: New file, based on winsock.c.
29942         * lib/sendto.c: New file, based on winsock.c.
29943         * lib/setsockopt.c: New file, based on winsock.c.
29944         * lib/shutdown.c: New file, based on winsock.c.
29945         * lib/socket.c: New file, based on winsock.c.
29946         * lib/w32sock.h: New file, based on winsock.c.
29947         * lib/winsock.c: Remove file.
29948         * modules/accept: Likewise.
29949         * modules/bind: Likewise.
29950         * modules/connect: Likewise.
29951         * modules/getpeername: Likewise.
29952         * modules/getsockname: Likewise.
29953         * modules/getsockopt: Likewise.
29954         * modules/ioctl: Likewise.
29955         * modules/listen: Likewise.
29956         * modules/recv: Likewise.
29957         * modules/recvfrom: Likewise.
29958         * modules/send: Likewise.
29959         * modules/sendto: Likewise.
29960         * modules/setsockopt: Likewise.
29961         * modules/shutdown: Likewise.
29962         * modules/socket: Use socket.c instead of winsock.c.
29963         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
29964         * doc/posix-functions/accept.texi: Doc fix.
29965         * doc/posix-functions/bind.texi: Doc fix.
29966         * doc/posix-functions/close.texi: Doc fix.
29967         * doc/posix-functions/connect.texi: Doc fix.
29968         * doc/posix-functions/getpeername.texi: Doc fix.
29969         * doc/posix-functions/getsockname.texi: Doc fix.
29970         * doc/posix-functions/getsockopt.texi: Doc fix.
29971         * doc/posix-functions/ioctl.texi: Doc fix.
29972         * doc/posix-functions/listen.texi: Doc fix.
29973         * doc/posix-functions/recv.texi: Doc fix.
29974         * doc/posix-functions/recvfrom.texi: Doc fix.
29975         * doc/posix-functions/send.texi: Doc fix.
29976         * doc/posix-functions/sendto.texi: Doc fix.
29977         * doc/posix-functions/setsockopt.texi: Doc fix.
29978         * doc/posix-functions/shutdown.texi: Doc fix.
29979         * doc/posix-functions/socket.texi: Doc fix.
29980
29981 2008-10-20  Bruno Haible  <bruno@clisp.org>
29982
29983         Take into account the role of SIGABRT_COMPAT on Windows 2008.
29984         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
29985         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
29986         as an alias for SIGABRT.
29987         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
29988         (sigaction): Map it to SIGABRT.
29989         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
29990
29991 2008-10-20  Bruno Haible  <bruno@clisp.org>
29992
29993         * lib/fts.c: Don't include lstat.h.
29994         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
29995
29996         Move the lstat() declaration to <sys/stat.h>.
29997         * lib/lstat.h: Remove file.
29998         * lib/sys_stat.in.h: Add special invocation convention.
29999         (lstat): New declaration.
30000         * lib/lstat.c (orig_lstat): New function.
30001         (rpl_lstat): Use orig_lstat instead of lstat.
30002         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
30003         AC_C_INLINE. Set REPLACE_LSTAT.
30004         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
30005         and REPLACE_LSTAT.
30006         * modules/lstat (Files): Remove lib/lstat.h.
30007         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30008         (Include): Specify <sys/stat.h> instead of lstat.h.
30009         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
30010         REPLACE_LSTAT.
30011         * NEWS: Mention the change.
30012
30013 2008-10-20  Bruno Haible  <bruno@clisp.org>
30014
30015         * modules/posix_spawn-tests: New file.
30016         * tests/test-posix_spawn3.c: New file.
30017
30018 2008-10-20  Bruno Haible  <bruno@clisp.org>
30019
30020         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
30021         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30022         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
30023         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30024         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
30025
30026 2008-10-20  Bruno Haible  <bruno@clisp.org>
30027
30028         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
30029         of posix_spawn on AIX 5.3.
30030
30031 2008-10-20  Bruno Haible  <bruno@clisp.org>
30032
30033         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
30034
30035 2008-10-20  Bruno Haible  <bruno@clisp.org>
30036
30037         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
30038         of AC_LANG_PROGRAM.
30039
30040 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30041
30042         * lib/netdb.in.h: Don't define GNU specific constants until they
30043         are supported or needed.  Reported by Bruno Haible
30044         <bruno@clisp.org>.
30045
30046 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30047
30048         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
30049
30050 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30051
30052         * lib/getaddrinfo.h: Remove file.
30053         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
30054         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
30055         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
30056         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
30057         * modules/netdb: Substitute GNULIB_GETADDRINFO.
30058         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
30059         * tests/test-getaddrinfo.c: Likewise.
30060         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
30061         * NEWS: Mention change.
30062
30063 2008-10-19  Bruno Haible  <bruno@clisp.org>
30064
30065         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
30066
30067 2008-10-19  Bruno Haible  <bruno@clisp.org>
30068
30069         * lib/wait-process.c: Include simply <sys/wait.h>.
30070         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
30071         WIFSTOPPED): Remove fallback definitions.
30072         * modules/wait-process (Depends-on): Add sys_wait.
30073
30074         New module 'sys_wait'.
30075         * modules/sys_wait: New file.
30076         * lib/sys_wait.in.h: New file, partially copied from
30077         lib/wait-process.c.
30078         * m4/sys_wait_h.m4: New file.
30079         * doc/posix-headers/sys_wait.texi: Mention the new module.
30080
30081 2008-10-19  Bruno Haible  <bruno@clisp.org>
30082
30083         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
30084
30085 2008-10-19  Bruno Haible  <bruno@clisp.org>
30086
30087         Assume that waitpid() fills an 'int' status, not a 'union wait'.
30088         * lib/wait-process.c (WAIT_T): Remove type.
30089         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
30090         (wait_subprocess): Update.
30091
30092 2008-10-19  Bruno Haible  <bruno@clisp.org>
30093
30094         New module 'atoll'.
30095         * modules/atoll: New file.
30096         * lib/stdlib.in.h (atoll): New declaration.
30097         * lib/atoll.c: New file, from glibc with modifications.
30098         * m4/atoll.m4: New file.
30099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
30100         HAVE_ATOLL.
30101         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
30102         * doc/posix-functions/atoll.texi: Mention the new module.
30103
30104 2008-10-19  Bruno Haible  <bruno@clisp.org>
30105
30106         Add strtoull() declaration to <stdlib.h>.
30107         * lib/stdlib.in.h (strtoull): New declaration.
30108         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
30109         Set HAVE_STRTOULL.
30110         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
30111         HAVE_STRTOULL.
30112         * modules/strtoull (Depends-on): Add stdlib.
30113         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30114         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
30115         HAVE_STRTOULL.
30116
30117 2008-10-19  Bruno Haible  <bruno@clisp.org>
30118
30119         Add strtoll() declaration to <stdlib.h>.
30120         * lib/stdlib.in.h (strtoll): New declaration.
30121         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
30122         Set HAVE_STRTOLL.
30123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
30124         HAVE_STRTOLL.
30125         * modules/strtoll (Depends-on): Add stdlib.
30126         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30127         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
30128
30129 2008-10-19  Bruno Haible  <bruno@clisp.org>
30130
30131         * modules/bcopy (Depends-on): Add strings.
30132         (Include): Specify <strings.h>.
30133
30134 2008-10-19  Bruno Haible  <bruno@clisp.org>
30135
30136         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
30137
30138 2008-10-19  Bruno Haible  <bruno@clisp.org>
30139
30140         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
30141         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
30142         mingw.
30143
30144 2008-10-19  Bruno Haible  <bruno@clisp.org>
30145
30146         * lib/atanl.c: Don't include isnanl.h.
30147         * lib/cosl.c: Likewise.
30148         * lib/ldexpl.c: Likewise.
30149         * lib/logl.c: Likewise.
30150         * lib/sinl.c: Likewise.
30151         * lib/sqrtl.c: Likewise.
30152         * lib/tanl.c: Likewise.
30153
30154         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
30155         * lib/isnanf.h: Remove file.
30156         * lib/isnand.h: Remove file.
30157         * lib/isnanl.h: Remove file.
30158         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
30159         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
30160         macros.
30161         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
30162         HAVE_ISNANF, don't define it as a C macro.
30163         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
30164         HAVE_ISNAND, don't define it as a C macro.
30165         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
30166         HAVE_ISNANL, don't define it as a C macro.
30167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
30168         HAVE_ISNAN[FDL].
30169         * modules/isnanf (Files): Remove lib/isnanf.h.
30170         (Depends-on): Add math.
30171         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30172         (Include): Specify <math.h> instead of isnanf.h.
30173         * modules/isnand (Files): Remove lib/isnand.h.
30174         (Depends-on): Add math.
30175         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30176         (Include): Specify <math.h> instead of isnand.h.
30177         * modules/isnanl (Files): Remove lib/isnanl.h.
30178         (Depends-on): Add math.
30179         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30180         (Include): Specify <math.h> instead of isnanl.h.
30181         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
30182         HAVE_ISNAN[FDL].
30183         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
30184         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
30185         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
30186         * NEWS: Mention the change.
30187
30188 2008-10-18  Bruno Haible  <bruno@clisp.org>
30189
30190         Add getusershell(), setusershell(), endusershell() declarations to
30191         <unistd.h>.
30192         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
30193         declarations.
30194         * lib/getusershell.c: Include unistd.h.
30195         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
30196         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30197         HAVE_GETUSERSHELL.
30198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
30199         and HAVE_GETUSERSHELL.
30200         * modules/getusershell (Depends-on): Add unistd, extensions.
30201         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30202         (Include): Specify <unistd.h>.
30203         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
30204         HAVE_GETUSERSHELL.
30205
30206 2008-10-18  Bruno Haible  <bruno@clisp.org>
30207
30208         Add a getloadavg() declaration to <stdlib.h>.
30209         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
30210         getloadavg declaration.
30211         (getloadavg): New declaration.
30212         * lib/getloadavg.c: Include <stdlib.h> first.
30213         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
30214         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
30215         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
30216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
30217         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30218         * modules/getloadavg (Depends-on): Add stdlib, extensions.
30219         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30220         (Include): Specify <stdlib.h>.
30221         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
30222         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30223
30224 2008-10-18  Bruno Haible  <bruno@clisp.org>
30225
30226         * lib/dirchownmod.c: Don't include lchmod.h.
30227
30228         Move the lchmod() declaration to <sys/stat.h>.
30229         * lib/lchmod.h: Remove file.
30230         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
30231         (lchmod): New declaration, moved here from lib/lchown.h.
30232         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
30233         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
30234         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
30235         and HAVE_LCHMOD.
30236         * modules/lchmod (Files): Remove lib/lchmod.h.
30237         (Depends-on): Add sys_stat, extensions.
30238         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30239         (Include): Specify <sys/stat.h> instead of lchmod.h.
30240         * modules/sys_stat (Depends-on): Add link-warning.
30241         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
30242         definition of GL_LINK_WARNING.
30243         * NEWS: Mention the change.
30244
30245 2008-10-18  Bruno Haible  <bruno@clisp.org>
30246
30247         * lib/fchdir.c: Don't include dirfd.h.
30248         * lib/fts.c: Likewise.
30249         * lib/getcwd.c: Likewise.
30250         * lib/glob.c: Likewise.
30251
30252         Move the dirfd() declaration to <dirent.h>.
30253         * lib/dirfd.h: Remove file.
30254         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
30255         (dirfd): New declaration.
30256         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
30257         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
30258         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
30259         HAVE_DECL_DIRFD.
30260         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
30261         HAVE_DECL_DIRFD.
30262         * modules/dirfd (Files): Remove lib/dirfd.h.
30263         (Depends-on): Add dirent, extensions.
30264         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
30265         (Include): Specify <dirent.h> instead of dirfd.h.
30266         * modules/dirent (Depends-on): Add link-warning.
30267         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
30268         definition of GL_LINK_WARNING.
30269         * NEWS: Mention the change.
30270
30271 2008-10-18  Bruno Haible  <bruno@clisp.org>
30272
30273         Move the euidaccess() declaration to <unistd.h>.
30274         * lib/euidaccess.h: Remove file.
30275         * lib/unistd.in.h (euidaccess): New declaration.
30276         * lib/euidaccess.c: Don't include euidaccess.h.
30277         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
30278         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
30279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
30280         and HAVE_EUIDACCESS.
30281         * modules/euidaccess (Files): Remove lib/euidaccess.h.
30282         (Depends-on): Add unistd.
30283         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30284         (Include): Specify <unistd.h> instead of euidaccess.h.
30285         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
30286         HAVE_EUIDACCESS.
30287         * NEWS: Mention the change.
30288
30289 2008-10-18  Bruno Haible  <bruno@clisp.org>
30290
30291         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
30292
30293         Move the getdomainname() declaration to <unistd.h>.
30294         * lib/getdomainname.h: Remove file.
30295         * lib/unistd.in.h (getdomainname): New declaration.
30296         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
30297         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
30298         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30299         HAVE_GETDOMAINNAME.
30300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30301         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
30302         * modules/getdomainname (Files): Remove lib/getdomainname.h.
30303         (Depends-on): Add unistd, extensions.
30304         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30305         (Includes): Specify <unistd.h> instead of getdomainname.h.
30306         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
30307         HAVE_GETDOMAINNAME.
30308         * NEWS: Mention the change.
30309
30310 2008-10-18  Bruno Haible  <bruno@clisp.org>
30311
30312         * modules/dirent: New file.
30313         * m4/dirent_h.m4: New file.
30314         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
30315         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
30316         * modules/fchdir (Files): Remove lib/dirent.in.h.
30317         (Depends-on): Add dirent.
30318         (Makefile.am): Move rules to modules/dirent.
30319         * doc/posix-headers/dirent.texi: Mention the new module.
30320
30321 2008-10-18  Bruno Haible  <bruno@clisp.org>
30322
30323         Avoid -Wunused-parameter warnings in public gnulib header files.
30324         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
30325         macro.
30326         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
30327
30328 2008-10-18  Bruno Haible  <bruno@clisp.org>
30329
30330         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
30331         * doc/glibc-functions/error.texi: Mention the module 'error'.
30332         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
30333         * doc/glibc-functions/getdomainname.texi: Mention the module
30334         'getdomainname'.
30335         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
30336         * doc/glibc-functions/getpagesize.texi: Mention the module
30337         'getpagesize'.
30338         * doc/glibc-functions/getusershell.texi: Mention the module
30339         'getusershell'.
30340         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
30341         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
30342         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
30343         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
30344         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
30345         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
30346         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
30347         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
30348         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
30349         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
30350         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
30351         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
30352         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
30353         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
30354
30355 2008-10-17  Bruno Haible  <bruno@clisp.org>
30356
30357         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
30358         HP-UX and IRIX, use -0.0L.
30359         * tests/test-ceill.c (minus_zero): Likewise.
30360         * tests/test-floorl.c (minus_zero): Likewise.
30361         * tests/test-frexpl.c (minus_zero): Likewise.
30362         * tests/test-isnan.c (minus_zerol): Likewise.
30363         * tests/test-isnanl.h (minus_zero): Likewise.
30364         * tests/test-ldexpl.c (minus_zero): Likewise.
30365         * tests/test-roundl.c (minus_zero): Likewise.
30366         * tests/test-signbit.c (minus_zerol): Likewise.
30367         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30368         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30369         * tests/test-truncl.c (minus_zero): Likewise.
30370         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30371         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30372         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
30373         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
30374
30375 2008-10-17  Bruno Haible  <bruno@clisp.org>
30376
30377         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
30378         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
30379         that it gets activated only for gcc >= 3.0.
30380         * lib/dirent.in.h: Likewise.
30381         * lib/errno.in.h: Likewise.
30382         * lib/fcntl.in.h: Likewise.
30383         * lib/float.in.h: Likewise.
30384         * lib/iconv.in.h: Likewise.
30385         * lib/inttypes.in.h: Likewise.
30386         * lib/locale.in.h: Likewise.
30387         * lib/math.in.h: Likewise.
30388         * lib/netdb.in.h: Likewise.
30389         * lib/netinet_in.in.h: Likewise.
30390         * lib/search.in.h: Likewise.
30391         * lib/signal.in.h: Likewise.
30392         * lib/spawn.in.h: Likewise.
30393         * lib/stdarg.in.h: Likewise.
30394         * lib/stdint.in.h: Likewise.
30395         * lib/stdio.in.h: Likewise.
30396         * lib/stdlib.in.h: Likewise.
30397         * lib/string.in.h: Likewise.
30398         * lib/strings.in.h: Likewise.
30399         * lib/sys_file.in.h: Likewise.
30400         * lib/sys_ioctl.in.h: Likewise.
30401         * lib/sys_select.in.h: Likewise.
30402         * lib/sys_socket.in.h: Likewise.
30403         * lib/sys_stat.in.h: Likewise.
30404         * lib/sys_time.in.h: Likewise.
30405         * lib/sysexits.in.h: Likewise.
30406         * lib/time.in.h: Likewise.
30407         * lib/unistd.in.h: Likewise.
30408         * lib/wchar.in.h: Likewise.
30409         * lib/wctype.in.h: Likewise.
30410         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30411
30412 2008-10-17  Jim Meyering  <meyering@redhat.com>
30413
30414         ignore-value: don't depend on inline module
30415         * modules/ignore-value (Depends-on): Remove 'inline'.
30416         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
30417         Suggestion from Bruno Haible.
30418
30419 2008-10-17  Bruno Haible  <bruno@clisp.org>
30420
30421         New implementation of condition variables for Win32.
30422         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
30423         (gl_linked_waitqueue_t): New type.
30424         (gl_cond_t): Use it.
30425         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
30426         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
30427         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
30428         (glthread_cond_init_func, glthread_cond_wait_func,
30429         glthread_cond_timedwait_func, glthread_cond_signal_func,
30430         glthread_cond_broadcast_func, glthread_cond_destroy_func):
30431         Reimplemented on the basis of gl_linked_waitqueue_t.
30432         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
30433         gl_waitqueue_t.
30434         (gl_rwlock_t): Update.
30435         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
30436
30437 2008-10-17  Simon Josefsson  <simon@josefsson.org>
30438
30439         * modules/recvfrom (Depends-on): Add dependency on getpeername.
30440         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30441
30442 2008-10-17  Jim Meyering  <meyering@redhat.com>
30443
30444         ignore-value: new module
30445         * modules/ignore-value: New file.
30446         * lib/ignore-value.h: New file.
30447         * MODULES.html.sh (Compiler warning management): New section,
30448         just for this module.  More to come.
30449
30450 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30451
30452         open-safer.c: avoid 'signed and unsigned in conditional...' warning
30453         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
30454         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
30455
30456 2008-10-16  Jim Meyering  <meyering@redhat.com>
30457
30458         openat-die.c: avoid 'no previous prototype' warning
30459         * lib/openat-die.c: Include "openat.h".
30460         Reported by Reuben Thomas <rrt@sc3d.org>.
30461
30462 2008-10-16  Simon Josefsson  <simon@josefsson.org>
30463
30464         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
30465         * lib/netdb.in.h: Fix typo.
30466         Reported by Bruno Haible  <bruno@clisp.org>
30467
30468         * lib/netdb.in.h: Include sys/socket.h for platforms without
30469         netdb.h, to get structures like hostent on MinGW.
30470         * modules/netdb (Depends-on): Add sys_socket.
30471
30472 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30473
30474         * modules/netdb, modules/netdb-tests: New file.
30475         * m4/netdb_h.m4: New file.
30476         * lib/netdb.in.h: Add, currently just an empty file pending
30477         definitions.
30478         * tests/test-netdb.c: New file.
30479         * doc/posix-headers/netdb.texi: Mention that we replace it if
30480         needed.
30481         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30482         netdb.
30483
30484 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30485
30486         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
30487         with code.
30488
30489 2008-10-13  Bruno Haible  <bruno@clisp.org>
30490
30491         * lib/glthread/cond.c (glthread_cond_wait_func,
30492         glthread_cond_timedwait_func): Add a comment.
30493
30494 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30495
30496         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
30497         * tests/test-select.c: Likewise,
30498
30499 2008-10-13  Bruno Haible  <bruno@clisp.org>
30500
30501         * lib/glthread/cond.c (glthread_cond_wait_func,
30502         glthread_cond_timedwait_func): Fix variable name.
30503         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30504
30505 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
30506
30507         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
30508         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
30509         struct sockaddr.sa_len.
30510         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
30511
30512 2008-10-13  Simon Josefsson  <simon@josefsson.org>
30513
30514         * build-aux/pmccabe2html: Add css and css_url parameters.
30515
30516 2008-10-12  Bruno Haible  <bruno@clisp.org>
30517
30518         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
30519         calling aclx_get.
30520         Reported by Rainer Tammer <tammer@tammer.net>.
30521
30522 2008-10-12  Bruno Haible  <bruno@clisp.org>
30523
30524         Use msvcrt aware primitives for creation/termination of Win32 threads.
30525         * lib/glthread/thread.c: Include <process.h>.
30526         (glthread_create_func): Use _beginthreadex instead of CreateThread.
30527         (wrapper_func): Update signature.
30528         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
30529
30530 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30531             Bruno Haible  <bruno@clisp.org>
30532
30533         Provide a Win32 implementation of the 'cond' module.
30534         * lib/glthread/cond.h [USE_WIN32]: New implementation.
30535         * lib/glthread/cond.c (glthread_cond_init_func,
30536         glthread_cond_wait_func, glthread_cond_timedwait_func,
30537         glthread_cond_signal_func, glthread_cond_broadcast_func,
30538         glthread_cond_destroy_func) [USE_WIN32]: New functions.
30539         * modules/cond (Dependencies): Add gettimeofday.
30540
30541 2008-10-11  Bruno Haible  <bruno@clisp.org>
30542
30543         Make sleep work on older versions of mingw.
30544         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
30545         only whether it exists.
30546         * doc/posix-functions/sleep.texi: Mention the problem with older
30547         versions of mingw.
30548
30549 2008-10-11  Bruno Haible  <bruno@clisp.org>
30550
30551         New module 'shutdown'.
30552         * modules/shutdown: New file.
30553         * lib/sys_socket.in.h (shutdown): New declaration.
30554         * lib/winsock.c (shutdown): New function.
30555         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30556         GNULIB_SHUTDOWN.
30557         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
30558         * doc/posix-functions/shutdown.texi: Document the new module.
30559
30560 2008-10-11  Jim Meyering  <meyering@redhat.com>
30561
30562         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
30563
30564 2008-10-11  Bruno Haible  <bruno@clisp.org>
30565
30566         New module 'fclose'.
30567         * modules/fclose: New file.
30568         * lib/stdio.in.h (fclose): New declaration.
30569         * lib/fclose.c: New file.
30570         * m4/fclose.m4: New file.
30571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
30572         REPLACE_FCLOSE.
30573         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
30574         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
30575         REPLACE_FCLOSE.
30576         * modules/close (Depends-on): fclose.
30577         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
30578
30579 2008-10-11  Bruno Haible  <bruno@clisp.org>
30580
30581         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
30582         set errno and don't call _close.
30583
30584 2008-10-10  Bruno Haible  <bruno@clisp.org>
30585
30586         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
30587         ACL, not afterwards. Fixes test failure on Cygwin.
30588
30589 2008-10-09  Ben Pfaff  <blp@gnu.org>
30590
30591         * build-aux/announce-gen: Fix gnulib version related part of usage
30592         message.  Die with a useful error message if no tarballs are
30593         found.
30594
30595 2008-10-10  Jim Meyering  <meyering@redhat.com>
30596
30597         bootstrap: use git's --depth=N option only if it's supported
30598         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
30599         recognize the --depth option.  Reported by Pádraig Brady.
30600
30601 2008-10-09  Bruno Haible  <bruno@clisp.org>
30602
30603         New module 'ioctl'.
30604         * modules/ioctl: New file.
30605         * lib/sys_socket.in.h (ioctl): Remove declaration.
30606         * lib/winsock.c: Include <sys/ioctl.h>.
30607         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
30608         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30609         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
30610         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
30611         * doc/posix-functions/ioctl.texi: Mention the new module.
30612
30613 2008-10-09  Bruno Haible  <bruno@clisp.org>
30614
30615         New module 'sys_ioctl'.
30616         * lib/sys_ioctl.in.h: New file.
30617         * m4/sys_ioctl_h.m4: New file.
30618         * modules/sys_ioctl: New file.
30619         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
30620
30621 2008-10-09  Bruno Haible  <bruno@clisp.org>
30622
30623         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
30624         * lib/winsock.c: Include <stdarg.h>.
30625         (rpl_ioctl): Change to second argument 'int' and then varargs.
30626
30627 2008-10-09  Bruno Haible  <bruno@clisp.org>
30628
30629         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
30630         when the sys_socket module is present and the system has <winsock2.h>.
30631
30632 2008-10-09  Bruno Haible  <bruno@clisp.org>
30633
30634         * doc/posix-functions/close.texi: Mention module 'close' instead of
30635         module 'sys_socket'.
30636
30637 2008-10-09  Bruno Haible  <bruno@clisp.org>
30638
30639         * doc/glibc-headers/sys_ioctl.texi: New file.
30640         * doc/gnulib.texi: Include it.
30641
30642 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30643             Bruno Haible  <bruno@clisp.org>
30644
30645         Combine the two replacements of 'close'.
30646         * lib/sys_socket.in.h (close): Define to a reminder to include
30647         <unistd.h>.
30648         (_gl_close_fd_maybe_socket): New declaration.
30649         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
30650         * lib/winsock.c (close): Remove undefinition.
30651         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
30652         needed for the gnulib module 'close'.
30653         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
30654         define to an error symbol or to a warning, if suitable.
30655         * lib/close.c: Include <sys/socket.h>.
30656         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
30657         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
30658         UNISTD_H_HAVE_WINSOCK2_H.
30659         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
30660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30661         UNISTD_H_HAVE_WINSOCK2_H.
30662         * modules/sys_socket (Files): Add m4/unistd_h.m4.
30663         (configure.ac): Set a module indicator.
30664         (Makefile.am): Substitute GNULIB_CLOSE.
30665         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
30666         * modules/poll-tests (Depends-on): Add close.
30667         * modules/select-tests (Depends-on): Likewise.
30668
30669 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30670             Bruno Haible  <bruno@clisp.org>
30671
30672         New module 'close'.
30673         * modules/close: New file.
30674         * lib/unistd.in.h (close): Move declaration out of the
30675         FCHDIR_REPLACEMENT scope.
30676         (_gl_unregister_fd): New declaration.
30677         * lib/close.c: New file.
30678         * lib/fchdir.c (rpl_close): Remove function.
30679         * m4/close.m4: New file.
30680         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30681         close.
30682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
30683         REPLACE_CLOSE.
30684         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
30685         REPLACE_CLOSE.
30686         * modules/fchdir (Depends-on): Add close.
30687
30688 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30689             Bruno Haible  <bruno@clisp.org>
30690
30691         * lib/fcntl.in.h (open): Simplify conditionals.
30692         (_gl_register_fd): New declaration.
30693         * lib/fchdir.c (rpl_open): Remove function.
30694         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
30695         also.
30696         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
30697         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30698         open.
30699
30700 2008-10-09  Jim Meyering  <meyering@redhat.com>
30701
30702         GNUmakefile: use the more name-space-friendly "_version"
30703         * top/GNUmakefile (_dummy): Update.
30704         (_version): Rename from "version".
30705
30706 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30707             Bruno Haible  <bruno@clisp.org>
30708
30709         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
30710         rpl_close.
30711         (_gl_register_fd): New function, extracted from rpl_open.
30712         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
30713         (rpl_open, rpl_opendir): Use _gl_register_fd.
30714
30715 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30716
30717         Fix organization of 'open' replacement.
30718         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
30719         (gl_FUNC_OPEN): Use it.
30720         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
30721
30722 2008-10-08  Bruno Haible  <bruno@clisp.org>
30723
30724         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
30725
30726 2008-10-08  Simon Josefsson  <simon@josefsson.org>
30727
30728         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
30729         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
30730         listen).
30731
30732 2008-10-08  Eric Blake  <ebb9@byu.net>
30733
30734         GNUmakefile: add 'make version' target
30735         * top/GNUmakefile (_curr-ver): Split version update rules...
30736         (version): ...into a target.
30737
30738 2008-10-07  Bruno Haible  <bruno@clisp.org>
30739
30740         Use a more portable replacement expression for -0.0L.
30741         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
30742         instead of -0.0L. Fix m4 quotation.
30743
30744         * tests/test-signbit.c: Include <float.h>.
30745         (minus_zero): New variable.
30746         (test_signbitl): Use minus_zero instead of -zero.
30747         * modules/signbit-tests (Depends-on): Add float.
30748
30749         * tests/test-ceill.c: Include <float.h>.
30750         (zero): Remove variable.
30751         (minus_zero): New variable.
30752         (main): Use minus_zero instead of -zero.
30753         * modules/ceill-tests (Depends-on): Add float.
30754
30755         * tests/test-floorl.c: Include <float.h>.
30756         (zero): Remove variable.
30757         (minus_zero): New variable.
30758         (main): Use minus_zero instead of -zero.
30759         * modules/floorl-tests (Depends-on): Add float.
30760
30761         * tests/test-roundl.c: Include <float.h>.
30762         (zero): Remove variable.
30763         (minus_zero): New variable.
30764         (main): Use minus_zero instead of -zero.
30765         * modules/roundl-tests (Depends-on): Add float.
30766
30767         * tests/test-truncl.c: Include <float.h>.
30768         (zero): Remove variable.
30769         (minus_zero): New variable.
30770         (main): Use minus_zero instead of -zero.
30771         * modules/truncl-tests (Depends-on): Add float.
30772
30773         * tests/test-frexpl.c (zero): Remove variable.
30774         (minus_zero): New variable.
30775         (main): Use minus_zero instead of -zero.
30776         * modules/frexpl-tests (Depends-on): Add float.
30777
30778         * tests/test-isnan.c (zerol): Remove variable.
30779         (minus_zerol): New variable.
30780         (test_long_double): Use minus_zerol instead of -zerol.
30781         * modules/isnan-tests (Depends-on): Add float.
30782
30783         * tests/test-isnanl.h (zero): Remove variable.
30784         (minus_zero): New variable.
30785         (main): Use minus_zero instead of -zero.
30786         * modules/isnanl-nolibm-tests (Depends-on): Add float.
30787         * modules/isnanl-tests (Depends-on): Add float.
30788
30789         * tests/test-ldexpl.c (zero): Remove variable.
30790         (minus_zero): New variable.
30791         (main): Use minus_zero instead of -zero.
30792         * modules/ldexpl-tests (Depends-on): Add float.
30793
30794         * tests/test-snprintf-posix.h (zerol): Remove variable.
30795         (minus_zerol): New variable.
30796         (test_function): Use minus_zerol instead of -zerol.
30797         * modules/snprintf-posix-tests (Depends-on): Add float.
30798         * modules/vsnprintf-posix-tests (Depends-on): Add float.
30799
30800         * tests/test-sprintf-posix.h (zerol): Remove variable.
30801         (minus_zerol): New variable.
30802         (test_function): Use minus_zerol instead of -zerol.
30803         * modules/sprintf-posix-tests (Depends-on): Add float.
30804         * modules/vsprintf-posix-tests (Depends-on): Add float.
30805
30806         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
30807         (minus_zerol): New variable.
30808         (test_function): Use minus_zerol instead of -zerol.
30809         * modules/vasnprintf-posix-tests (Depends-on): Add float.
30810
30811         * tests/test-vasprintf-posix.c (zerol): Remove variable.
30812         (minus_zerol): New variable.
30813         (test_function): Use minus_zerol instead of -zerol.
30814         * modules/vasprintf-posix-tests (Depends-on): Add float.
30815
30816 2008-10-07  Simon Josefsson  <simon@josefsson.org>
30817
30818         * MODULES.html.sh (Support for building documentation): Mention
30819         pmccabe2html.  Sort entries.
30820
30821         Add pmccabe2html module, from gnupdf.
30822         * build-aux/pmccabe.css: New file.
30823         * build-aux/pmccabe2html: New file.
30824         * m4/pmccabe2html.m4: New file.
30825         * modules/pmccabe2html: New file.
30826
30827 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
30828
30829         flock: new module
30830         * MODULES.html.sh: Add to list of modules.
30831         * lib/flock.c: flock implementation for Windows and Unix systems
30832         which have fcntl.
30833         * doc/glibc-functions/flock.texi: Update documentation.
30834         * lib/sys_file.in.h: <sys/file.h> header file.
30835         * m4/flock.m4: M4 macros.
30836         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
30837         * modules/flock: flock module.
30838         * modules/flock-tests: flock tests module.
30839         * modules/sys_file: sys/file.h module.
30840         * tests/test-flock.c: test suite for flock.
30841
30842 2008-10-06  Jim Meyering  <meyering@redhat.com>
30843
30844         bootstrap: check for LT_INIT more portably still ;-)
30845         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
30846         Spotted by Bruno Haible.
30847
30848 2008-10-06  Eric Blake  <ebb9@byu.net>
30849
30850         test-signbit: avoid tripping Irix cc bug on -0.0L
30851         * tests/test-signbit.c (minus_zerol): Delete, and replace with
30852         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
30853         entire testsuite consistent and avoids an Irix 6.2 bug.
30854
30855 2008-10-05  Bruno Haible  <bruno@clisp.org>
30856             Jim Meyering  <jim@meyering.net>
30857
30858         Add an option for ignoring EPIPE during close_stdout.
30859         * lib/closeout.h: Include <stdbool.h>.
30860         (close_stdout_set_ignore_EPIPE): New declaration.
30861         * lib/closeout.c: Include <stdbool.h>.
30862         (ignore_EPIPE): New variable.
30863         (close_stdout_set_ignore_EPIPE): New function.
30864         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
30865         * lib/close-stream.c (close_stream): Mention the possible EPIPE
30866         failure.
30867         * modules/closeout (Depends-on): Add stdbool.
30868
30869 2008-10-05  Bruno Haible  <bruno@clisp.org>
30870
30871         * modules/accept: New file.
30872         * modules/bind: New file.
30873         * modules/connect: New file.
30874         * modules/getpeername: New file.
30875         * modules/getsockname: New file.
30876         * modules/getsockopt: New file.
30877         * modules/listen: New file.
30878         * modules/recv: New file.
30879         * modules/recvfrom: New file.
30880         * modules/send: New file.
30881         * modules/sendto: New file.
30882         * modules/setsockopt: New file.
30883         * modules/socket: New file.
30884         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
30885         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30886         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
30887         the particular module is requested. Add a link warning when the
30888         particular module is not requested.
30889         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
30890         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
30891         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
30892         the particular module is requested.
30893         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
30894         gl_SYS_SOCKET_H_DEFAULTS): New macros.
30895         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
30896         * modules/sys_socket (Depends-on): Add link-warning.
30897         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
30898         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
30899         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
30900         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
30901         GL_LINK_WARNING.
30902         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
30903         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
30904         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
30905         * doc/posix-functions/getpeername.texi: Mention the new module
30906         'getpeername'.
30907         * doc/posix-functions/getsockname.texi: Mention the new module
30908         'getsockname'.
30909         * doc/posix-functions/getsockopt.texi: Mention the new module
30910         'getsockopt'.
30911         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
30912         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
30913         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
30914         * doc/posix-functions/send.texi: Mention the new module 'send'.
30915         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
30916         * doc/posix-functions/setsockopt.texi: Mention the new module
30917         'setsockopt'.
30918         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
30919         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
30920         listen, connect, accept.
30921         * modules/select-tests (Depends-on): Likewise.
30922
30923 2008-10-05  Bruno Haible  <bruno@clisp.org>
30924
30925         * lib/winsock.c (strerror): Remove unused #undef.
30926         (rpl_close): Remove unused local variable.
30927
30928         * modules/sys_socket (Depends-on); Add errno.
30929
30930 2008-10-05  Bruno Haible  <bruno@clisp.org>
30931
30932         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
30933         (select): Add a link warning when the 'select' module is not used.
30934         * modules/sys_select (Depends-on): Add link-warning.
30935         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
30936         Suggested by Paolo Bonzini.
30937
30938 2008-10-05  Jim Meyering  <meyering@redhat.com>
30939
30940         bootstrap: check for LT_INIT more portably
30941         * build-aux/bootstrap: Avoid using grep -E, since it's not
30942         portable enough.  Suggestion from Bruno Haible.
30943
30944 2008-10-05  Bruno Haible  <bruno@clisp.org>
30945
30946         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
30947         as being fixed by gnulib.
30948
30949 2008-10-05  Bruno Haible  <bruno@clisp.org>
30950
30951         * modules/select-tests: New file, mostly copied from
30952         modules/sys_select-tests.
30953         * tests/test-select.c: New file, mostly copied from
30954         tests/test-sys_select.c.
30955         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
30956         * modules/sys_select-tests (Depends-on): Remove all dependencies.
30957         (Makefile.am): Remove test_sys_select_LDADD.
30958
30959         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
30960         to an undefined symbol, for an error message.
30961         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
30962         (gl_SYS_SELECT_H_DEFAULTS): New macro.
30963         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
30964         winsock-select.c here.
30965         * modules/sys_select (Files): Remove lib/winsock-select.c.
30966         (Depends-on): Remove alloca.
30967         (Makefile.am): Substitute GNULIB_SELECT.
30968         * modules/select: New file.
30969         * doc/posix-functions/select.texi: Update.
30970
30971 2008-10-05  Bruno Haible  <bruno@clisp.org>
30972
30973         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
30974         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
30975         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
30976         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
30977         getdtablesize.
30978         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
30979         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
30980
30981 2008-10-05  Bruno Haible  <bruno@clisp.org>
30982
30983         * modules/getdtablesize-tests: New file.
30984         * tests/test-getdtablesize.c: New file.
30985
30986         New module 'getdtablesize'.
30987         * lib/unistd.in.h (getdtablesize): New declaration.
30988         * lib/getdtablesize.c: New file.
30989         * m4/getdtablesize.m4: New file.
30990         * modules/getdtablesize: New file.
30991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30992         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
30993         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
30994         HAVE_GETDTABLESIZE.
30995         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
30996
30997 2008-10-05  Bruno Haible  <bruno@clisp.org>
30998
30999         * modules/sched (Makefile.am): Fix typo.
31000         Reported by Simon Josefsson.
31001
31002 2008-10-05  Jim Meyering  <meyering@redhat.com>
31003
31004         bootstrap: check for LT_INIT, too
31005         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
31006         are deprecated.  Suggestion from Ralf Wildenhues.
31007
31008 2008-10-05  Bruno Haible  <bruno@clisp.org>
31009
31010         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
31011         overriding them by ours.
31012         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
31013
31014 2008-10-05  Jim Meyering  <meyering@redhat.com>
31015
31016         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
31017         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
31018         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
31019
31020 2008-10-04  Bruno Haible  <bruno@clisp.org>
31021
31022         * modules/dup2 (License): Change to LGPLv2+.
31023         * modules/sleep (License): Likewise.
31024         * modules/perror (License): Likewise.
31025         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
31026         Blake.
31027         * modules/signal (License): Likewise.
31028         * modules/sigprocmask (License): Likewise.
31029         * modules/raise (License): Change to LGPLv2+, with approval by Jim
31030         Meyering.
31031
31032 2008-10-04  Bruno Haible  <bruno@clisp.org>
31033
31034         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
31035         Reported by Rainer Tammer <tammer@tammer.net>.
31036
31037 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
31038             Bruno Haible  <bruno@clisp.org>
31039
31040         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
31041         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
31042         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
31043
31044 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
31045
31046         filevercmp: new module
31047         * lib/filevercmp.h: New function filevercmp comparing version strings.
31048         * lib/filevercmp.c: Implementation of filevercmp function.
31049         * modules/filevercmp: Module metadata.
31050         * tests/test-filevercmp.c: Unit test for new module.
31051         * modules/filevercmp-tests: Unit test metadata.
31052         * MODULES.html.sh: Add filevercmp module.
31053
31054 2008-10-03  Bruno Haible  <bruno@clisp.org>
31055
31056         * lib/c-ctype.h: Add comment.
31057         Reported by Jim Meyering.
31058
31059 2008-10-02  Bruno Haible  <bruno@clisp.org>
31060
31061         * modules/posix_spawn-internal (Depends-on): Add 'open'.
31062
31063 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31064
31065         * build-aux/bootstrap: Allow renaming bootstrap, and change the
31066         name of bootstrap.conf accordingly.
31067
31068 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31069
31070         * build-aux/bootstrap: Install git-merge-changelog configuration
31071         items into .gitconfig if needed.
31072
31073 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31074
31075         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
31076         git repository, and initialize/update it accordingly.
31077
31078 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
31079
31080         * modules/fsync-tests: New file.
31081         * tests/test-fsync.c: New file.
31082
31083         New module 'fsync'.
31084         * lib/fsync.c: New file.
31085         * m4/fsync.m4: New file.
31086         * modules/fsync: New file.
31087         * lib/unistd.in.h (fsync): New declaration.
31088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
31089         GNULIB_FSYNC and HAVE_FSYNC.
31090         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
31091         * MODULES.html.sh (posix_functions): Add fsync.
31092         * doc/posix-functions/fsync.texi: Mention the new module.
31093
31094 2008-10-02  Jim Meyering  <meyering@redhat.com>
31095
31096         fts.c: sync with similar code from coreutils' remove.c
31097         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
31098         Guard also with "#if defined __linux__", since for now at least,
31099         this code is Linux-kernel-specific.
31100
31101 2008-10-02  Jim Meyering  <meyering@redhat.com>
31102
31103         fts: bug fixes
31104         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
31105         Include <sys/vfs.h>, not <sys/statfs.h>.
31106
31107         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
31108         Include <sys/vfs.h>, not <sys/statfs.h>.
31109
31110 2008-10-01  Bruno Haible  <bruno@clisp.org>
31111
31112         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
31113         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
31114         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
31115         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
31116         * doc/posix-functions/posix_spawnp.texi: Likewise.
31117         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
31118         whether posix_spawn actually works.
31119         * m4/pipe.m4 (gl_PIPE): Likewise.
31120         * modules/execute (Files): Add m4/posix_spawn.m4.
31121         * modules/pipe (Files): Add m4/posix_spawn.m4.
31122         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
31123
31124 2008-10-01  Jim Meyering  <meyering@redhat.com>
31125
31126         remove trailing spaces
31127         * NEWS: Likewise.
31128         * lib/poll.c (poll): Likewise.
31129         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
31130         * lib/winsock.c (rpl_close): Likewise.
31131         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
31132         * modules/yield: Likewise.
31133         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
31134         * tests/test-sys_select.c (connect_to_socket): Likewise.
31135
31136         fts.c: adjust a new interface to be more generally useful
31137         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
31138         (fts_build): Adjust caller.
31139
31140 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31141
31142         * modules/cond-tests: New file.
31143         * tests/test-cond.c: New file.
31144
31145 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31146             Bruno Haible  <bruno@clisp.org>
31147
31148         * modules/cond (Dependencies): Add errno, time.
31149         * lib/glthread/cond.h: Include <time.h>.
31150         (gl_cond_define, gl_cond_define_initialized): Use the same definition
31151         across platforms.
31152
31153 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31154             Bruno Haible  <bruno@clisp.org>
31155
31156         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
31157
31158 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31159             Bruno Haible  <bruno@clisp.org>
31160
31161         * modules/tls-tests (Depends-on): Add thread, yield.
31162         (configure.ac): Remove all checks.
31163         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
31164         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31165         gl_thread_self): Remove definitions. Include glthread/thread.h and
31166         glthread/yield.h instead.
31167         (test_tls): Pass an additional NULL argument to gl_thread_join.
31168
31169 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31170             Bruno Haible  <bruno@clisp.org>
31171
31172         * modules/lock-tests (Depends-on): Add thread, yield.
31173         (configure.ac): Remove all checks.
31174         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
31175         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31176         gl_thread_self): Remove definitions. Include glthread/thread.h and
31177         glthread/yield.h instead.
31178         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
31179         additional NULL argument to gl_thread_join.
31180
31181 2008-09-30  Bruno Haible  <bruno@clisp.org>
31182
31183         Fix the Win32 implementation of the 'thread' module.
31184         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
31185         pointer type.
31186         (gl_thread_self): Invoke gl_thread_self_func.
31187         (gl_thread_self_func): New declaration.
31188         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
31189         (do_init_self_key, init_self_key): New functions.
31190         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
31191         Remove some fields.
31192         (running_threads, running_lock): Remove variables.
31193         (get_current_thread_handle): New function.
31194         (gl_thread_self_func, wrapper_func, glthread_create_func,
31195         glthread_join_func, gl_thread_exit_func): Largely rewritten and
31196         simplified.
31197
31198 2008-09-30  Bruno Haible  <bruno@clisp.org>
31199
31200         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
31201         files.
31202
31203 2008-09-30  Jim Meyering  <meyering@redhat.com>
31204
31205         fts.m4: correct the test for statfs.f_type
31206         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
31207         when checking for statfs.f_type.
31208
31209 2008-09-15  Simon Josefsson  <simon@josefsson.org>
31210
31211         tests: avoid some compiler warnings
31212         * tests/test-memchr.c (main): Pass NULL indirectly.
31213         * tests/test-getdate.c (main): Remove unused variable 'ret'.
31214
31215 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
31216
31217         getdate.y: disallow countable dayshifts like "4 yesterday ago"
31218         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
31219         exactly specified dayshifts.
31220         (dayshift): New rule.
31221         (rel): Add dayshift.
31222         (relative_time_table) [tomorrow, yesterday, today, now]:
31223         Use tDAY_SHIFT in place of tDAY_UNIT.
31224         * tests/test-getdate.c: Add tests for now-disallowed countable
31225         dayshifts, e.g., "4 yesterday ago".
31226
31227 2008-09-29  Bruno Haible  <bruno@clisp.org>
31228
31229         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
31230         * tests/test-posix_spawn1.in.sh: Renamed from
31231         tests/test-posix_spawn.in.sh.
31232         * tests/test-posix_spawn2.c: New file.
31233         * tests/test-posix_spawn2.in.sh: New file.
31234         * modules/posix_spawnp-tests (Files): Update.
31235         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
31236
31237 2008-09-29  Bruno Haible  <bruno@clisp.org>
31238
31239         Propagate effects of putenv/setenv/unsetenv to child processes.
31240         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
31241         * lib/pipe.c (create_pipe): Likewise.
31242
31243 2008-09-29  Bruno Haible  <bruno@clisp.org>
31244
31245         Enable use of shell scripts as executables in mingw.
31246         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
31247         run the program as a shell script.
31248         * lib/pipe.c (create_pipe): Likewise.
31249         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
31250         resulting array.
31251
31252 2008-09-29  Eric Blake  <ebb9@byu.net>
31253
31254         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
31255
31256 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
31257
31258         * doc/posix-functions/accept.texi: Update mingw problems.
31259         * doc/posix-functions/bind.texi: Update mingw problems.
31260         * doc/posix-functions/close.texi: Update mingw problems.
31261         * doc/posix-functions/connect.texi: Update mingw problems.
31262         * doc/posix-functions/getpeername.texi: Update mingw problems.
31263         * doc/posix-functions/getsockname.texi: Update mingw problems.
31264         * doc/posix-functions/getsockopt.texi: Update mingw problems.
31265         * doc/posix-functions/ioctl.texi: Update mingw problems.
31266         * doc/posix-functions/listen.texi: Update mingw problems.
31267         * doc/posix-functions/recv.texi: Update mingw problems.
31268         * doc/posix-functions/recvfrom.texi: Update mingw problems.
31269         * doc/posix-functions/select.texi: Update mingw problems.
31270         * doc/posix-functions/send.texi: Update mingw problems.
31271         * doc/posix-functions/sendto.texi: Update mingw problems.
31272         * doc/posix-functions/setsockopt.texi: Update mingw problems.
31273         * doc/posix-functions/socket.texi: Update mingw problems.
31274
31275 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
31276             Bruno Haible  <bruno@clisp.org>
31277
31278         * lib/sys_select.in.h: Include sys/time.h.
31279         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
31280         * modules/sys_select: Depend on sys_time.
31281         * tests/test-sys_select.c: Test that sys/select.h defines struct
31282         timeval fully.
31283
31284 2008-09-29  Bruno Haible  <bruno@clisp.org>
31285
31286         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
31287         * lib/sys_select.in.h: Likewise.
31288
31289 2008-09-29  Bruno Haible  <bruno@clisp.org>
31290
31291         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
31292
31293 2008-09-29  Bruno Haible  <bruno@clisp.org>
31294
31295         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
31296         Set LIBSOCKET instead of augmenting LIBS.
31297         * modules/sockets (Link): New section.
31298         * modules/sockets-tests (test_sockets_LDADD): New variable.
31299         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
31300         * modules/poll-tests (test_poll_LDADD): New variable.
31301         * NEWS: Document the change.
31302
31303 2008-09-29  Bruno Haible  <bruno@clisp.org>
31304
31305         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
31306         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
31307         ARPA_INET_H directly.
31308         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31309
31310 2008-09-28  Bruno Haible  <bruno@clisp.org>
31311
31312         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
31313         from gl_HEADER_SYS_SOCKET.
31314         (gl_HEADER_SYS_SOCKET): Invoke it.
31315         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31316
31317 2008-09-28  Bruno Haible  <bruno@clisp.org>
31318
31319         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
31320         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
31321         Needed on OSF/1 4.0.
31322
31323 2008-09-28  Bruno Haible  <bruno@clisp.org>
31324
31325         Override open more carefully.
31326         * lib/open.c (orig_open): New function.
31327         (rpl_open): Use orig_open instead of open.
31328         * lib/fcntl.in.h: Add special invocation convention.
31329         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
31330         (gl_FUNC_OPEN): Invoke it.
31331
31332         Override freopen more carefully.
31333         * lib/freopen.c (orig_freopen): New function.
31334         (rpl_freopen): Use orig_freopen instead of freopen.
31335         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
31336         (gl_FUNC_FREOPEN): Invoke it.
31337
31338         Override fopen more carefully.
31339         * lib/fopen.c (orig_fopen): New function.
31340         (rpl_fopen): Use orig_fopen instead of fopen.
31341         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
31342         (gl_FUNC_FOPEN): Invoke it.
31343         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
31344
31345 2008-09-28  Bruno Haible  <bruno@clisp.org>
31346
31347         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
31348         SIGPIPE.
31349
31350 2008-09-28  Bruno Haible  <bruno@clisp.org>
31351
31352         * tests/test-sigaction.c (handler, main): Disable the check whether
31353         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
31354         glibc systems with LinuxThreads.
31355
31356 2008-09-28  Bruno Haible  <bruno@clisp.org>
31357
31358         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
31359
31360         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
31361         with AIX xlc.
31362         * lib/fcntl.in.h (open): Likewise.
31363         Reported by Rainer Tammer <tammer@tammer.net>.
31364
31365 2008-09-28  Bruno Haible  <bruno@clisp.org>
31366
31367         * modules/posix_spawnp-tests: New file.
31368         * tests/test-posix_spawn.c: New file.
31369         * tests/test-posix_spawn.in.sh: New file.
31370
31371         New module 'posix_spawnp'.
31372         * modules/posix_spawnp: New file.
31373         * lib/spawnp.c: New file, from GNU libc with modifications.
31374         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
31375
31376         New module 'posix_spawn'.
31377         * modules/posix_spawn: New file.
31378         * lib/spawn.c: New file, from GNU libc with modifications.
31379         * doc/posix-functions/posix_spawn.texi: Mention the new module.
31380
31381         New module 'posix_spawnattr_destroy'.
31382         * modules/posix_spawnattr_destroy: New file.
31383         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
31384         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
31385         module.
31386
31387         New module 'posix_spawnattr_setsigmask'.
31388         * modules/posix_spawnattr_setsigmask: New file.
31389         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
31390         modifications.
31391         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
31392         new module.
31393
31394         New module 'posix_spawnattr_getsigmask'.
31395         * modules/posix_spawnattr_getsigmask: New file.
31396         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
31397         modifications.
31398         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
31399         new module.
31400
31401         New module 'posix_spawnattr_setsigdefault'.
31402         * modules/posix_spawnattr_setsigdefault: New file.
31403         * lib/spawnattr_setdefault.c: New file, from GNU libc with
31404         modifications.
31405         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
31406         new module.
31407
31408         New module 'posix_spawnattr_getsigdefault'.
31409         * modules/posix_spawnattr_getsigdefault: New file.
31410         * lib/spawnattr_getdefault.c: New file, from GNU libc with
31411         modifications.
31412         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
31413         new module.
31414
31415         New module 'posix_spawnattr_setschedpolicy'.
31416         * modules/posix_spawnattr_setschedpolicy: New file.
31417         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
31418         modifications.
31419         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
31420         new module.
31421
31422         New module 'posix_spawnattr_getschedpolicy'.
31423         * modules/posix_spawnattr_getschedpolicy: New file.
31424         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
31425         modifications.
31426         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
31427         new module.
31428
31429         New module 'posix_spawnattr_setschedparam'.
31430         * modules/posix_spawnattr_setschedparam: New file.
31431         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
31432         modifications.
31433         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
31434         new module.
31435
31436         New module 'posix_spawnattr_getschedparam'.
31437         * modules/posix_spawnattr_getschedparam: New file.
31438         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
31439         modifications.
31440         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
31441         new module.
31442
31443         New module 'posix_spawnattr_setpgroup'.
31444         * modules/posix_spawnattr_setpgroup: New file.
31445         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
31446         modifications.
31447         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
31448         module.
31449
31450         New module 'posix_spawnattr_getpgroup'.
31451         * modules/posix_spawnattr_getpgroup: New file.
31452         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
31453         modifications.
31454         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
31455         module.
31456
31457         New module 'posix_spawnattr_setflags'.
31458         * modules/posix_spawnattr_setflags: New file.
31459         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
31460         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
31461         module.
31462
31463         New module 'posix_spawnattr_getflags'.
31464         * modules/posix_spawnattr_getflags: New file.
31465         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
31466         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
31467         module.
31468
31469         New module 'posix_spawnattr_init'.
31470         * modules/posix_spawnattr_init: New file.
31471         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
31472         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
31473         module.
31474
31475         New module 'posix_spawn_file_actions_destroy'.
31476         * modules/posix_spawn_file_actions_destroy: New file.
31477         * lib/spawn_faction_destroy.c: New file, from GNU libc with
31478         modifications.
31479         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
31480         the new module.
31481
31482         New module 'posix_spawn_file_actions_addopen'.
31483         * modules/posix_spawn_file_actions_addopen: New file.
31484         * lib/spawn_faction_addopen.c: New file, from GNU libc with
31485         modifications.
31486         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
31487         the new module.
31488
31489         New module 'posix_spawn_file_actions_adddup2'.
31490         * modules/posix_spawn_file_actions_adddup2: New file.
31491         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
31492         modifications.
31493         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
31494         the new module.
31495
31496         New module 'posix_spawn_file_actions_addclose'.
31497         * modules/posix_spawn_file_actions_addclose: New file.
31498         * lib/spawn_faction_addclose.c: New file, from GNU libc with
31499         modifications.
31500         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
31501         the new module.
31502
31503         New module 'posix_spawn_file_actions_init'.
31504         * modules/posix_spawn_file_actions_init: New file.
31505         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
31506         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
31507         new module.
31508
31509         New module 'posix_spawn-internal'.
31510         * modules/posix_spawn-internal: New file.
31511         * lib/spawn_int.h: New file, from GNU libc with modifications.
31512         * lib/spawni.c: New file, from GNU libc with modifications.
31513         * m4/posix_spawn.m4: New file.
31514
31515         New module 'spawn'.
31516         * modules/spawn: New file.
31517         * lib/spawn.in.h: New file, from GNU libc with modifications.
31518         * m4/spawn_h.m4: New file.
31519         * doc/posix-headers/spawn.texi: Mention the new module.
31520
31521 2008-09-28  Bruno Haible  <bruno@clisp.org>
31522
31523         * modules/sched-tests: New file.
31524         * tests/test-sched.c: New file.
31525
31526         New module 'sched'.
31527         * modules/sched: New file.
31528         * lib/sched.in.h: New file.
31529         * m4/sched_h.m4: New file.
31530         * doc/posix-headers/sched.texi: Mention the new module.
31531
31532 2008-09-27  Eric Blake  <ebb9@byu.net>
31533
31534         Fix previous patch, and tweak references to $0.
31535         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
31536         (func_version, func_gnulib_dir): Don't call this program
31537         gnulib-tool.
31538         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
31539         with using $0 in function.
31540         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
31541         (func_fatal_error): Reuse the name the user invoked us with.
31542
31543 2008-09-27  Bruno Haible  <bruno@clisp.org>
31544
31545         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
31546         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
31547         (gl_ICONV_H): Not here.
31548         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31549         instead of assigning ICONV_H directly.
31550
31551         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
31552         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
31553         WCHAR_H directly.
31554
31555 2008-09-27  Bruno Haible  <bruno@clisp.org>
31556
31557         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
31558         * modules/arpa_inet (Depends-on): Add link-warning.
31559         (Makefile.am): Insert the definition of GL_LINK-WARNING.
31560         * modules/unistd (Makefile.am): Likewise.
31561
31562 2008-09-26  Bruno Haible  <bruno@clisp.org>
31563
31564         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
31565         variables.
31566         (func_version): Essentially copied from gnulib-tool.
31567         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
31568         func_readlink): Copied from gnulib-tool.
31569
31570 2008-09-26  Bruno Haible  <bruno@clisp.org>
31571
31572         * gnulib-tool (func_version): Change directory to $gnulib_dir before
31573         invoking git-version-gen.
31574
31575 2008-09-26  Bruno Haible  <bruno@clisp.org>
31576
31577         * posix-modules: Update to directory names changed on 2008-01-19.
31578         Remove commas in output before splitting into words. No more need to
31579         avoid 'ftruncate' since 2007-02-19.
31580
31581 2008-09-26  Bruno Haible  <bruno@clisp.org>
31582
31583         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
31584
31585 2008-09-26  Bruno Haible  <bruno@clisp.org>
31586
31587         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
31588         * modules/fwriteerror (Depends-on): Add errno.
31589
31590 2008-09-26  Bruno Haible  <bruno@clisp.org>
31591
31592         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
31593         * tests/test-vc-list-files-cvs.sh: Likewise.
31594
31595 2008-09-26  Bruno Haible  <bruno@clisp.org>
31596
31597         * doc/posix-headers/sys_resource.texi: Reorder items.
31598
31599 2008-09-26  Jim Meyering  <meyering@redhat.com>
31600
31601         fts: tweak inode comparison function
31602         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
31603         inode numbers, as documented.
31604
31605         fts: sort dirent entries on inode number before traversing
31606         This avoids a quadratic, seek-related performance penalty when
31607         operating on a directory containing many entries (measurable at 10k;
31608         3.5 hours at 2 million entries with a cold cache) on certain types
31609         of file systems, including ext3 and ext4, but not tmpfs.
31610         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
31611         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
31612         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
31613         (fs_handles_readdir_ordered_dirents_efficiently): New function.
31614         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
31615         (fts_build): Set the stat.st_ino member from D_INO.
31616         If it is likely to be useful, sort dirent entries on inode number.
31617
31618         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
31619         and the struct statfs.f_type member.
31620         * modules/fts (Depends-on): Add d-ino.
31621
31622 2008-09-26  Bruno Haible  <bruno@clisp.org>
31623
31624         * modules/sigpipe-die (Depends-on): Add sigpipe.
31625
31626         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
31627         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
31628         and GNULIB_STDIO_H_SIGPIPE are set.
31629         * lib/stdio-write.c: New file.
31630         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
31631         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31632         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31633         REPLACE_STDIO_WRITE_FUNCS.
31634         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
31635         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31636         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31637         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31638         * modules/stdio (Files): Add lib/stdio-write.c.
31639         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
31640         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31641         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31642         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31643         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
31644         REPLACE_FPRINTF_POSIX.
31645         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
31646         REPLACE_PRINTF_POSIX.
31647         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
31648         REPLACE_VFPRINTF_POSIX.
31649         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
31650         REPLACE_VPRINTF_POSIX.
31651         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
31652         SIGPIPE issue.
31653         * doc/posix-functions/fputc.texi: Likewise.
31654         * doc/posix-functions/fputs.texi: Likewise.
31655         * doc/posix-functions/fwrite.texi: Likewise.
31656         * doc/posix-functions/printf.texi: Likewise.
31657         * doc/posix-functions/putc.texi: Likewise.
31658         * doc/posix-functions/putchar.texi: Likewise.
31659         * doc/posix-functions/puts.texi: Likewise.
31660         * doc/posix-functions/vfprintf.texi: Likewise.
31661         * doc/posix-functions/vprintf.texi: Likewise.
31662
31663         * modules/safe-write (Depends-on): Add write.
31664
31665         * modules/sigpipe-tests: New file.
31666         * tests/test-sigpipe.c: New file.
31667         * tests/test-sigpipe.sh: New file.
31668
31669         * modules/write: New file.
31670         * lib/unistd.in.h: Include <sys/types.h>.
31671         (write): New declaration.
31672         * lib/write.c: New file.
31673         * m4/write.m4: New file.
31674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31675         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
31676         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
31677         GNULIB_WRITE, REPLACE_WRITE.
31678         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
31679         and the SIGPIPE issue.
31680
31681         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
31682         (raise): New declaration.
31683         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
31684         (ext_signal): New function.
31685         (rpl_raise): New function.
31686         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31687         GNULIB_SIGNAL_H_SIGPIPE.
31688         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
31689         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
31690
31691         * modules/sigpipe: New file.
31692         * m4/sigpipe.m4: New file.
31693
31694 2008-09-25  Derek Price  <derek@ximbiot.com>
31695             Bruno Haible  <bruno@clisp.org>
31696
31697         * gnulib-tool (func_import): Report all license incompatibilities, not
31698         just the first one.
31699
31700 2008-09-25  Bruno Haible  <bruno@clisp.org>
31701
31702         * gnulib-tool (func_import): When computing the edits, consider not
31703         only the Makefile.ams that exist but also those that will be generated.
31704
31705 2008-09-25  Simon Josefsson  <simon@josefsson.org>
31706
31707         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
31708         fixes gnulib-tool --test warning about duplicate dependency.
31709
31710 2008-09-25  Bruno Haible  <bruno@clisp.org>
31711
31712         * gnulib-tool: Don't ask the user to perform edits in the generated
31713         Makefile.ams.
31714         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
31715         apply to the Makefile.am being generated.
31716         (func_emit_tests_Makefile_am): Execute edits that apply to the
31717         Makefile.am being generated.
31718         (func_import): Setup list of Makefile.am edits before emitting the
31719         Makefile.ams, not at the end.
31720         (func_create_testdir): Update.
31721         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31722
31723 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31724
31725         * gnulib-tool (func_import): Store the --tests-base option in the
31726         comment in gnulib-cache.m4.
31727
31728 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
31729
31730         * NEWS: Document increased portability that sys_select now provides.
31731
31732         * lib/sys_select.in.h: Install select wrapper.
31733         * lib/sys_socket.in.h: Use more descriptive name when there is no
31734         select wrapper.
31735         * lib/winsock-select.c: New.
31736         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
31737         Require gl_HEADER_SYS_SOCKET.
31738         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
31739         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
31740         * tests/test-sys_select.c: Add functional tests.
31741
31742 2008-09-24  Eric Blake  <ebb9@byu.net>
31743
31744         open, fopen: close fd leak in last patch
31745         * lib/open.c (rpl_open): Close fd before returning error.
31746         * lib/fopen.c (rpl_fopen): Close fd before returning error.
31747         * doc/posix-functions/open.texi (open): Document that Irix also
31748         has the bug.
31749         * doc/posix-functions/fopen.texi (fopen): Likewise.
31750         Reported by Paolo Bonzini.
31751
31752 2008-09-24  Bruno Haible  <bruno@clisp.org>
31753
31754         Ensure that a filename ending in a slash cannot be used to access a
31755         non-directory.
31756         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
31757         to check whether it's really a directory.
31758         * lib/fopen.c: Include fcntl.h, unistd.h.
31759         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
31760         and fdopen().
31761         * modules/fopen (Depends-on): Add unistd.
31762         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
31763         * tests/test-fopen.c (main): Likewise.
31764         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
31765         * doc/posix-functions/fopen.texi: Likewise.
31766         Reported by Eric Blake.
31767
31768 2008-09-23  Eric Blake  <ebb9@byu.net>
31769
31770         c-stack: avoid compiler optimizations when provoking overflow
31771         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
31772         recursion harder to optimize, to ensure a stack overflow occurs.
31773         * tests/test-c-stack.c (recurse): Likewise.
31774         Borrowed from libsigsegv.
31775
31776         c-stack: work around Irix sigaltstack bug
31777         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
31778         whether sigaltstack uses wrong end of stack_t (copied in part from
31779         libsigsegv).
31780         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
31781         Irix bug, without requiring an over-allocation.
31782         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
31783         bug.
31784
31785         fopen: document mingw bug on directories
31786         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
31787         not allowing a stream visiting a directory, even though reading
31788         from such a stream is not portable.
31789
31790 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31791
31792         * lib/poll.c: Rewrite.
31793         * modules/poll: Depend on alloca.
31794
31795 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31796
31797         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
31798         instead define prototypes for a full set of wrappers.  Ensure
31799         that Cygwin does not use the compatibility code, which is only
31800         for MinGW.
31801         * lib/winsock.c: New.
31802         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
31803         * modules/sys_socket: Add lib/winsock.c.
31804
31805         * modules/poll-tests: Add errno and perror.
31806         * tests/test-poll.c: Use ioctl, not ioctlsocket.
31807
31808 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31809
31810         * tests/test-poll.c: Downgrade minimum needed Winsock version.
31811
31812 2008-09-23  Bruno Haible  <bruno@clisp.org>
31813
31814         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
31815         * doc/glibc-functions/*: Likewise.
31816
31817 2008-09-23  Simon Josefsson  <simon@josefsson.org>
31818
31819         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
31820         success.
31821
31822 2008-09-22  Eric Blake  <ebb9@byu.net>
31823             Bruno Haible  <bruno@clisp.org>
31824
31825         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
31826         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
31827         supply %A but mishandle pseudo-NaN.
31828         Reported by Simon Josefsson.
31829
31830 2008-09-21  Bruno Haible  <bruno@clisp.org>
31831
31832         * tests/test-lock.c (main): Tweak skip message.
31833         * tests/test-tls.c (main): Likewise.
31834
31835 2008-09-21  Bruno Haible  <bruno@clisp.org>
31836
31837         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
31838         whether 'struct sigaction' has sa_sigaction here...
31839         (gl_PREREQ_SIG_HANDLER_H): ... not here.
31840         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
31841
31842 2008-09-21  Bruno Haible  <bruno@clisp.org>
31843
31844         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
31845         section.
31846         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
31847         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
31848         the new section.
31849         (Support for obsolete systems lacking POSIX:2001): New section.
31850         (String handling <string.h>): Move strdup to the new section.
31851         Suggested by Simon Josefsson and Paolo Bonzini.
31852
31853 2008-09-21  Bruno Haible  <bruno@clisp.org>
31854
31855         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
31856         exponents in %e and %g results on 'long double'. Needed for mingw's
31857         improved *printf functions.
31858         * tests/test-vasprintf-posix.c (test_function): Likewise.
31859         * tests/test-snprintf-posix.h (test_function): Likewise.
31860         * tests/test-sprintf-posix.h (test_function): Likewise.
31861         Reported by Eric Blake.
31862
31863 2008-09-21  Bruno Haible  <bruno@clisp.org>
31864
31865         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
31866         * tests/test-sprintf-posix.h (test_function): Likewise.
31867
31868 2008-09-21  Bruno Haible  <bruno@clisp.org>
31869
31870         * modules/getpass (Depends-on): Add strdup-posix.
31871
31872         New module 'strdup-posix'.
31873         * modules/strdup-posix: New file.
31874         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
31875         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
31876         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31877         REPLACE_STRDUP.
31878         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
31879         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
31880         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31881         strdup-posix.
31882
31883         * modules/strdup (Depends-on): Remove malloc-posix.
31884
31885 2008-09-20  Bruno Haible  <bruno@clisp.org>
31886
31887         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
31888         Wildenhues.
31889
31890 2008-09-20  Bruno Haible  <bruno@clisp.org>
31891
31892         Ensure that wint_t gets defined on IRIX 5.3.
31893         * lib/wchar.in.h (wint_t): Define if not defined by the system.
31894         * lib/wctype.in.h (wint_t): Likewise.
31895         (__wctype_wint_t): Remove type.
31896         (isw*): Use wint_t instead of __wctype_wint_t.
31897         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
31898         * modules/wchar (Files): Add m4/wint_t.m4.
31899         (Makefile.am): Substitute HAVE_WINT_T.
31900         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
31901         * tests/test-wctype.c: Check that wint_t is defined.
31902         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
31903         * doc/posix-headers/wctype.texi: Likewise.
31904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31905
31906 2008-09-18  Bruno Haible  <bruno@clisp.org>
31907
31908         * gnulib-tool (func_exit): Update comment.
31909
31910 2008-09-18  Simon Josefsson  <simon@josefsson.org>
31911
31912         * modules/getaddrinfo (Depends-on): Remove strdup, this module
31913         assumes strdup exists and does not depend on strdup to return
31914         ENOMEM on out of memory conditions.
31915
31916 2008-09-18  Bruno Haible  <bruno@clisp.org>
31917
31918         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
31919         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
31920         digits for the exponent.
31921
31922 2008-09-18  Jim Meyering  <meyering@redhat.com>
31923             Bruno Haible  <bruno@clisp.org>
31924
31925         * lib/vasnprintf.c (decimal_point_char): Define also if
31926         NEED_PRINTF_INFINITE_LONG_DOUBLE.
31927
31928 2008-09-16  Bruno Haible  <bruno@clisp.org>
31929         and Eric Blake  <ebb9@byu.net>
31930
31931         vasnprintf: support Irix 5.3
31932         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
31933         that mishandle long double infinity.
31934         Reported by Tom G. Christensen.
31935
31936 2008-09-16  Bruno Haible  <bruno@clisp.org>
31937
31938         * doc/glibc-functions/scandir.texi: Mention the function is missing on
31939         Solaris 9.
31940         * doc/glibc-functions/alphasort.texi: Likewise.
31941         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
31942
31943 2008-09-16  Jim Meyering  <meyering@redhat.com>
31944
31945         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
31946         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
31947         a umask modification leak out of a subshell.  Otherwise, the
31948         opensolaris /bin/sh would be accepted and thus cause unwarranted
31949         failures in the coreutils test suite.
31950
31951 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
31952
31953         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
31954         to succeed.
31955
31956 2008-09-16  Jim Meyering  <meyering@redhat.com>
31957
31958         avoid spurious test failure when library is built without ACL support
31959         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
31960         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
31961         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
31962         * tests/test-copy-acl.sh: Likewise.
31963
31964 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31965
31966         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
31967         based on character occurrence counts.
31968
31969 2008-09-15  Eric Blake  <ebb9@byu.net>
31970
31971         tests: avoid some compiler warnings
31972         * tests/test-memchr.c (main): Pass NULL indirectly.
31973         * tests/test-closein.c (main): Avoid unused variable.
31974
31975 2008-09-15  Bruno Haible  <bruno@clisp.org>
31976
31977         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
31978         are missing on OpenBSD 4.0 individually.
31979         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31980
31981 2008-09-15  Bruno Haible  <bruno@clisp.org>
31982
31983         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
31984         * doc/posix-functions/strerror.texi: Mention also Cygwin.
31985         * doc/posix-functions/perror.texi: Likewise.
31986         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
31987         is missing.
31988         Reported by Eric Blake.
31989
31990         * lib/errno.in.h: Use replacement values >= 2000.
31991         Reported by Eric Blake.
31992
31993 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31994
31995         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
31996         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
31997         limit.
31998         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
31999         compareseq was aborted.
32000
32001 2008-09-14  Bruno Haible  <bruno@clisp.org>
32002
32003         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
32004         yvec_edit_count.
32005         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
32006         (fstrcmp_bounded): Simplify result computation accordingly.
32007
32008 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32009
32010         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
32011         (fstrcmp): Define in terms of fstrcmp_bounded.
32012         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
32013         lower_bound argument.
32014         Return quickly if the result is certainly < lower_bound.
32015         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
32016
32017 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32018
32019         * lib/diffseq.h (EARLY_ABORT): New macro.
32020         (compareseq): Change return type to bool. Return true when EARLY_ABORT
32021         evaluates to true.
32022
32023 2008-09-14  Bruno Haible  <bruno@clisp.org>
32024
32025         * modules/perror-tests: New file.
32026         * tests/test-perror.sh: New file.
32027         * tests/test-perror.c: New file.
32028
32029         New module 'perror'.
32030         * lib/stdio.in.h (perror): New declaration.
32031         * lib/perror.c: New file.
32032         * m4/perror.m4: New file.
32033         * modules/perror: New file.
32034         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
32035         * doc/posix-functions/perror.texi: Mention the perror module.
32036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
32037         REPLACE_PERROR.
32038         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
32039         REPLACE_PERROR.
32040
32041 2008-09-14  Bruno Haible  <bruno@clisp.org>
32042
32043         * modules/stdio (Makefile.am): Reorder to match the order in
32044         lib/stdio.in.h.
32045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32046
32047 2008-09-13  Bruno Haible  <bruno@clisp.org>
32048
32049         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
32050
32051 2008-09-13  Bruno Haible  <bruno@clisp.org>
32052
32053         Extend strerror to cover the added errno values.
32054         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
32055         (rpl_strerror): Provide error messages for the added errno values and
32056         for the WSA* values.
32057         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
32058         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
32059         strerror.
32060         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
32061         * modules/strerror (Depends-on): Add errno.
32062         * doc/posix-functions/strerror.texi: Document the change.
32063         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
32064         and EOVERFLOW.
32065
32066 2008-09-13  Bruno Haible  <bruno@clisp.org>
32067
32068         * modules/EOVERFLOW: Remove file.
32069         * m4/eoverflow.m4: Remove file.
32070         * modules/EOVERFLOW-tests: Remove file.
32071         * tests/test-EOVERFLOW.c: Remove file.
32072         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
32073         * modules/ftell (Depends-on): Likewise.
32074         * modules/getdelim (Depends-on): Likewise.
32075         * modules/getugroups (Depends-on): Likewise.
32076         * modules/poll (Depends-on): Likewise.
32077         * modules/snprintf (Depends-on): Likewise.
32078         * modules/sprintf-posix (Depends-on): Likewise.
32079         * modules/vasnprintf (Depends-on): Likewise.
32080         * modules/vasprintf (Depends-on): Likewise.
32081         * modules/vfprintf-posix (Depends-on): Likewise.
32082         * modules/vsnprintf (Depends-on): Likewise.
32083         * modules/vsprintf-posix (Depends-on): Likewise.
32084         * modules/xvasprintf (Depends-on): Likewise.
32085         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32086         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
32087         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
32088         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
32089         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32090         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
32091         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
32092         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
32093         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32094         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
32095         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
32096         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
32097         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32098         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
32099         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
32100         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
32101         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32102         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
32103         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
32104         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
32105         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32106         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
32107         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
32108         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
32109         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
32110         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32111         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
32112         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
32113         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
32114         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
32115         * MODULES.html.sh: Remove EOVERFLOW.
32116         * NEWS: Mention the change.
32117
32118 2008-09-13  Bruno Haible  <bruno@clisp.org>
32119
32120         * modules/errno-tests: New file.
32121         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
32122
32123         * lib/errno.in.h: New file.
32124         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
32125         * modules/errno: New file.
32126         * doc/posix-headers/errno.texi: Update documentation.
32127         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
32128
32129 2008-09-13  Bruno Haible  <bruno@clisp.org>
32130
32131         * tests/test-poll.c: Use #if for native Windows, rather than testing
32132         __MSVCRT__.
32133
32134 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32135             Bruno Haible  <bruno@clisp.org>
32136
32137         * lib/glob.c: Don't include <pwd.h> on native Windows.
32138         (WINDOWS32): New macro.
32139         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
32140
32141 2008-09-13  Bruno Haible  <bruno@clisp.org>
32142
32143         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
32144         (ETIMEDOUT): Remove macro.
32145         (glthread_cond_timedwait_multithreaded): New declaration.
32146         (glthread_cond_timedwait): Use it.
32147         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
32148         (glthread_cond_timedwait_multithreaded): New function.
32149
32150 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32151
32152         * modules/poll-tests: Do not check for io.h.
32153         * tests/test-poll.c: Check for __MSVCRT__ instead.
32154
32155 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32156
32157         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
32158         * modules/poll-tests: Add inet_pton, stdbool, sockets.
32159         * tests/test-poll.c: Use them.  Use _pipe on Windows.
32160
32161 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32162
32163         * modules/poll-tests: New.
32164         * tests/test-poll.c: New.
32165
32166 2008-09-12  Eric Blake  <ebb9@byu.net>
32167
32168         frexp: test for NetBSD failure on -0.0
32169         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
32170         not all, bugs from NetBSD 3.0 have been fixed.
32171         * doc/posix-functions/frexp.texi (frexp): Document bug.
32172         Reported by Thomas Klausner.
32173
32174         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
32175         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
32176         literal -0.0.
32177         Reported by Jonathan C. Patschke <jp@centtech.com>.
32178
32179 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32180
32181         * lib/glthread/cond.h: Use dummy implementation also if
32182         USE_WIN32_THREADS.
32183
32184 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32185
32186         * modules/fnmatch-posix (License): Change to LGPLv2+.
32187         * modules/fnmatch-gnu (License): Likewise.
32188
32189 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32190
32191         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
32192
32193 2008-09-11  Jim Meyering  <meyering@redhat.com>
32194
32195         * users.txt: Add gtk-vnc.
32196
32197 2008-09-08  Simon Josefsson  <simon@josefsson.org>
32198
32199         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
32200         rotate amounts.
32201
32202         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
32203         required for 16-bit and 8-bit rotates.
32204         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
32205         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
32206         UINT8_MAX instead of hard-coded constants.
32207         Suggested by Paul Eggert.
32208
32209 2008-09-07  Bruno Haible  <bruno@clisp.org>
32210
32211         * tests/test-striconveh.c (main): Check behaviour when converting from
32212         UTF-7.
32213
32214         Make striconveh work better with stateful encodings.
32215         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
32216         that iconv does not increment the inptr when returning -1/EINVAL.
32217
32218 2008-09-07  Bruno Haible  <bruno@clisp.org>
32219
32220         * build-aux/config.rpath: Update according to libtool-2.2.6.
32221         * build-aux/config.libpath: Likewise.
32222
32223 2008-09-06  Bruno Haible  <bruno@clisp.org>
32224
32225         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
32226         * lib/freadptr.c (freadptr): Likewise.
32227         * lib/freadseek.c (freadptrinc): Likewise.
32228         Reported by Simon Josefsson.
32229
32230 2008-09-06  Bruno Haible  <bruno@clisp.org>
32231
32232         * modules/freadptr (License): Change to LGPLv2+.
32233         * modules/freadseek (License): Likewise.
32234         Suggested by Eric Blake.
32235
32236         * modules/memchr2 (License): Change to LGPLv2+.
32237         Approved by Eric Blake.
32238
32239 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32240             Bruno Haible  <bruno@clisp.org>
32241
32242         Make gnulib-tool work with native 'sed' on AIX.
32243         * gnulib-tool (sed_noop): New variable.
32244         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
32245         func_add_or_update, func_create_testdir): Use it to initialize sed
32246         script variables.
32247         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32248
32249 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
32250             Bruno Haible  <bruno@clisp.org>
32251
32252         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
32253         also works after #include directives.
32254
32255 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
32256
32257         getdate.y: reject an out-of-range timezone value
32258         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
32259         the range [-24...+24].  When specified with only one or two digits,
32260         * tests/test-getdate.c: Tests for the fix.
32261         * doc/getdate.texi: Document this change.
32262
32263 2008-09-03  Bruno Haible  <bruno@clisp.org>
32264
32265         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
32266
32267 2008-09-02  Simon Josefsson  <simon@josefsson.org>
32268
32269         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
32270         <bruce.korb@gmail.com> with ideas from Ben Pfaff
32271         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
32272         Blake <ebb9@byu.net>.
32273
32274         * tests/test-bitrotate.c: Add more test vectors.
32275
32276 2008-09-02  Eric Blake  <ebb9@byu.net>
32277
32278         vasnprintf-posix: handle large precision via %.*d
32279         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
32280         when handling it ourselves.
32281         * tests/test-vasnprintf-posix.c (test_function): Add test.
32282         * tests/test-snprintf-posix.h (test_function): Likewise.
32283         * tests/test-sprintf-posix.h (test_function): Likewise.
32284         * tests/test-vasprintf-posix.c (test_function): Likewise.
32285         Reported by Alain Guibert.
32286
32287 2008-09-01  Eric Blake  <ebb9@byu.net>
32288
32289         c-stack: make configure-time check more robust
32290         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
32291         successful sigaction call.
32292         Reported by Tom G. Christensen.
32293
32294 2008-09-01  Bruno Haible  <bruno@clisp.org>
32295
32296         New module 'findprog-lgpl'.
32297         * modules/findprog-lgpl: New file.
32298         * lib/findprog-lgpl.c: New file.
32299         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
32300         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
32301         to decide whether to use strdup or xstrdup, concatenated_filename or
32302         xconcatenated_filename.
32303
32304 2008-09-01  Bruno Haible  <bruno@clisp.org>
32305
32306         Split module 'concat-filename' into 'concat-filename' (LGPL) and
32307         'xconcat-filename' (GPL).
32308         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
32309         (License): Change to LGPLv2+.
32310         * modules/xconcat-filename: New file.
32311         * lib/concat-filename.h (concatenated_filename): Change specification.
32312         (xconcatenated_filename): New declaration.
32313         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
32314         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
32315         memory situations.
32316         * lib/xconcat-filename.c: New file.
32317         * NEWS: Mention the change.
32318         * lib/findprog.c: Include concat-filename.h, not filename.h.
32319         (find_in_path): Use xconcatenated_filename instead of
32320         concatenated_filename.
32321         * lib/javacomp.c: Include concat-filename.h, not filename.h.
32322         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
32323         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
32324         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
32325         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
32326         instead of concatenated_filename.
32327         * lib/javaexec.c: Include concat-filename.h, not filename.h.
32328         (execute_java_class): Use xconcatenated_filename instead of
32329         concatenated_filename.
32330         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
32331         * modules/javacomp (Depends-on): Likewise.
32332         * modules/javaexec (Depends-on): Likewise.
32333
32334 2008-09-01  Bruno Haible  <bruno@clisp.org>
32335
32336         Split module 'filename' into 'filename' and 'concat-filename'.
32337         * modules/filename: Keep only lib/filename.h.
32338         (License): Change to LGPLv2+.
32339         * modules/concat-filename: New file, extracted from modules/filename.
32340         * lib/filename.h (concatenated_filename): Remove declaration.
32341         * lib/concat-filename.h: New file, extracted from lib/filename.h.
32342         * lib/concat-filename.c: Include concat-filename.h.
32343         * NEWS: Mention the change.
32344
32345 2008-09-01  Simon Josefsson  <simon@josefsson.org>
32346
32347         * lib/bitrotate.h (rotl8, rotr8): Add.
32348
32349         * modules/bitrotate (configure.ac): Need
32350         AC_REQUIRE([AC_C_INLINE]).
32351         (Description): Mention stdint.h.  Reported by Bruno Haible
32352         <bruno@clisp.org>.
32353
32354         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
32355         Paolo Bonzini <bonzini@gnu.org>.
32356
32357 2008-08-31  Bruno Haible  <bruno@clisp.org>
32358
32359         Assume Solaris specific bi-arch conventions on Solaris systems.
32360         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
32361         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
32362         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
32363         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
32364         like acl_libdirstem.
32365         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
32366         acl_libdirstem.
32367         * NEWS: Mention the change.
32368         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
32369
32370 2008-08-31  Jim Meyering  <meyering@redhat.com>
32371
32372         * lib/strftime.h: Add comments describing the two added arguments.
32373
32374         remove duplicate #include directives
32375         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
32376         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
32377
32378 2008-08-31  Bruno Haible  <bruno@clisp.org>
32379
32380         New module 'sigpipe-die'.
32381         * modules/sigpipe-die: New file.
32382         * lib/sigpipe-die.h: New file.
32383         * lib/sigpipe-die.c: New file.
32384         * MODULES.html.sh (Signal handling): Add sigpipe-die.
32385
32386 2008-08-31  Bruno Haible  <bruno@clisp.org>
32387
32388         Don't override previously installed signal handlers.
32389         * lib/fatal-signal.c (saved_sigactions): New variable.
32390         (uninstall_handlers): Reset the signal to the saved handler, not
32391         to SIG_DFL (except when ignored).
32392         (install_handlers): Save the previous handlers.
32393
32394 2008-08-30  Bruno Haible  <bruno@clisp.org>
32395
32396         * gnulib-tool (func_reset_sigpipe): New function.
32397         (func_get_automake_snippet, func_modules_transitive_closure,
32398         func_import): Invoke it before a join command that reads from stdin,
32399         to avoid "echo: write error: Broken pipe" error messages on stderr.
32400         Reported by Sam Steingold <sds@gnu.org>.
32401
32402 2008-08-30  Bruno Haible  <bruno@clisp.org>
32403
32404         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
32405         Code copied from m4/open.m4.
32406         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
32407         access and the filename ends in a slash. Code copied from lib/open.c.
32408         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
32409         * tests/test-fopen.c (main): Check against bug with trailing slash.
32410
32411 2008-08-29  Bruno Haible  <bruno@clisp.org>
32412
32413         Avoid some "gcc -pedantic" warnings.
32414         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
32415         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
32416         * lib/dirent.in.h: Likewise.
32417         * lib/fcntl.in.h: Likewise.
32418         * lib/float.in.h: Likewise.
32419         * lib/iconv.in.h: Likewise.
32420         * lib/inttypes.in.h: Likewise.
32421         * lib/locale.in.h: Likewise.
32422         * lib/math.in.h: Likewise.
32423         * lib/netinet_in.in.h: Likewise.
32424         * lib/search.in.h: Likewise.
32425         * lib/signal.in.h: Likewise.
32426         * lib/stdarg.in.h: Likewise.
32427         * lib/stdint.in.h: Likewise.
32428         * lib/stdio.in.h: Likewise.
32429         * lib/stdlib.in.h: Likewise.
32430         * lib/string.in.h: Likewise.
32431         * lib/strings.in.h: Likewise.
32432         * lib/sys_select.in.h: Likewise.
32433         * lib/sys_socket.in.h: Likewise.
32434         * lib/sys_stat.in.h: Likewise.
32435         * lib/sys_time.in.h: Likewise.
32436         * lib/sysexits.in.h: Likewise.
32437         * lib/time.in.h: Likewise.
32438         * lib/unistd.in.h: Likewise.
32439         * lib/wchar.in.h: Likewise.
32440         * lib/wctype.in.h: Likewise.
32441         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
32442         * modules/fchdir (Makefile.am): Likewise.
32443         * modules/fcntl (Makefile.am): Likewise.
32444         * modules/float (Makefile.am): Likewise.
32445         * modules/iconv_open (Makefile.am): Likewise.
32446         * modules/inttypes (Makefile.am): Likewise.
32447         * modules/locale (Makefile.am): Likewise.
32448         * modules/math (Makefile.am): Likewise.
32449         * modules/netinet_in (Makefile.am): Likewise.
32450         * modules/search (Makefile.am): Likewise.
32451         * modules/signal (Makefile.am): Likewise.
32452         * modules/stdarg (Makefile.am): Likewise.
32453         * modules/stdint (Makefile.am): Likewise.
32454         * modules/stdio (Makefile.am): Likewise.
32455         * modules/stdlib (Makefile.am): Likewise.
32456         * modules/string (Makefile.am): Likewise.
32457         * modules/strings (Makefile.am): Likewise.
32458         * modules/sys_select (Makefile.am): Likewise.
32459         * modules/sys_socket (Makefile.am): Likewise.
32460         * modules/sys_stat (Makefile.am): Likewise.
32461         * modules/sys_time (Makefile.am): Likewise.
32462         * modules/sysexits (Makefile.am): Likewise.
32463         * modules/time (Makefile.am): Likewise.
32464         * modules/unistd (Makefile.am): Likewise.
32465         * modules/wchar (Makefile.am): Likewise.
32466         * modules/wctype (Makefile.am): Likewise.
32467         Reported by Reuben Thomas <rrt@sc3d.org>.
32468
32469 2008-08-29  Bruno Haible  <bruno@clisp.org>
32470
32471         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
32472         any more.
32473
32474 2008-08-29  Simon Josefsson  <simon@josefsson.org>
32475
32476         * MODULES.html.sh (Misc): Add bitrotate.
32477
32478         * modules/bitrotate: New file.
32479
32480         * lib/bitrotate.h: New file.
32481
32482         * modules/bitrotate-tests: New file.
32483
32484         * tests/test-bitrotate.c: New file.
32485
32486         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
32487         on the bitrotate module.
32488
32489         * lib/arctwo.c: Use new bitrotate module.
32490
32491 2008-08-29  Jim Meyering  <meyering@redhat.com>
32492
32493         bootstrap: merge changes from coreutils
32494         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
32495         of copied files.  Remove a kludge, now that this is fixed.
32496         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
32497         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
32498         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
32499
32500 2008-08-29  Bruno Haible  <bruno@clisp.org>
32501
32502         * MODULES.html.sh: Remove --cvs-urls option.
32503
32504 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
32505
32506         maint.mk: adjust to file name change
32507         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
32508
32509 2008-08-28  Jim Meyering  <meyering@redhat.com>
32510
32511         * modules/getndelim2 (License): Relicense to LGPLv2+.
32512         Approved by Richard Stallman for the version of 1995, and by
32513         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
32514
32515 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
32516
32517         * lib/getdelim.c (flockfile, funlockfile): Make all of them
32518         dummy if one is not available.  Do not touch them if
32519         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
32520         (getc_maybe_unlocked): New.
32521         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
32522
32523 2008-08-26  Eric Blake  <ebb9@byu.net>
32524
32525         doc/INSTALL: resync from autoconf
32526         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
32527         (INSTALL_PRELUDE): Delete; this is done more efficiently by
32528         moving...
32529         * install.texi [!autoconf]: ...here.  Resync from autoconf.
32530         * INSTALL: Regenerate.
32531         * INSTALL.ISO: New file.
32532         * INSTALL.UTF-8: Likewise.
32533
32534 2008-08-26  Jim Meyering  <meyering@redhat.com>
32535
32536         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
32537         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
32538         these definitions conditional, so that they may be overridden, too.
32539
32540 2008-08-26  Bruno Haible  <bruno@clisp.org>
32541
32542         Generate INSTALL file variants with prettier quotes.
32543         * doc/Makefile (INSTALL_PRELUDE): New macro.
32544         (INSTALL): Use it.
32545         (INSTALL.ISO, INSTALL.UTF-8): New rules.
32546
32547 2008-08-26  Bruno Haible  <bruno@clisp.org>
32548
32549         Run makeinfo in an English locale.
32550         * doc/Makefile (MAKEINFO): New variable.
32551
32552 2008-08-26  Bruno Haible  <bruno@clisp.org>
32553
32554         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
32555         Suggested by Eric Blake.
32556
32557 2008-08-25  Bruno Haible  <bruno@clisp.org>
32558
32559         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
32560
32561 2008-08-25  Eric Blake  <ebb9@byu.net>
32562
32563         c-stack: test that stack overflow can be caught
32564         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
32565         that platform allows handling stack overflow; at least OS/2 EMX
32566         has sigaltstack, but crashes before transferring control to
32567         handler on stack overflow.
32568         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
32569         check for HAVE_STACK_OVERFLOW_HANDLING.
32570         Reported by Elbert Pol.
32571
32572 2008-08-25  Bruno Haible  <bruno@clisp.org>
32573
32574         * doc/posix-functions/strftime.texi: Fix description of strftime
32575         module.
32576
32577 2008-08-24  Bruno Haible  <bruno@clisp.org>
32578
32579         * tests/uniwidth/test-uc_width2.c: New file.
32580         * tests/uniwidth/test-uc_width2.sh: New file.
32581         * modules/uniwidth/width-tests (Files): Add the new files.
32582         (TESTS): Add uniwidth/test-uc_width2.sh.
32583         (TESTS_ENVIRONMENT): New variable.
32584         (check_PROGRAMS): Add test-uc_width2.
32585         (test_uc_width2_SOURCES): New variable.
32586
32587         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
32588         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
32589         not 0x00AB.
32590         Reported by Alexander V. Lukyanov <lav@netis.ru>.
32591
32592 2008-08-22  Eric Blake  <ebb9@byu.net>
32593
32594         test-lock, test-tls: mention why a test is skipped
32595         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
32596         skipped.
32597         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
32598
32599         count-one-bits: relax license
32600         * modules/count-one-bits (License): Relicense to LGPLv2+.
32601         Suggested by Ludovic Courtès, approved by Ben Pfaff.
32602
32603 2008-08-22  Andreas Schwab  <schwab@suse.de>
32604
32605         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32606         Remove spurious space in assignment.
32607
32608 2008-08-21  Simon Josefsson  <simon@josefsson.org>
32609
32610         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
32611         Paul Eggert <eggert@CS.UCLA.EDU>.
32612
32613 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
32614
32615         * modules/gettext: Add m4/threadlib.m4.
32616
32617 2008-08-19  Eric Blake  <ebb9@byu.net>
32618
32619         test-c-stack: fix compilation failure on FreeBSD 5.0
32620         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
32621         headers before <sys/resource.h>.
32622         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
32623         the bug.
32624         Reported by Nelson H. F. Beebe.
32625
32626         strverscmp: migrate from "strverscmp.h" to <string.h>
32627         * modules/string (Makefile.am): Add new hooks.
32628         * modules/strverscmp (Files): Remove strverscmp.h.
32629         (Depends-on): Add string.
32630         (configure.ac): Add indicator.
32631         (Include): Mention new header.
32632         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
32633         defaults.
32634         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
32635         results.
32636         * lib/strverscmp.h: Delete.
32637         * lib/string.in.h (strverscmp): Provide declaration, when needed.
32638         * tests/test-strverscmp.c (includes): Adjust client.
32639         * lib/check-version.c (includes): Likewise.
32640         * NEWS: Document the change.
32641
32642         strverscmp: add unit test
32643         * modules/strverscmp-tests: New file.
32644         * tests/test-strverscmp.c: Likewise.
32645
32646 2008-08-19  Simon Josefsson  <simon@josefsson.org>
32647
32648         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
32649         regarding Windows crypto stuff, from Mono.
32650
32651 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
32652
32653         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
32654         if present, for intel RND.  Return error on failures.
32655
32656 2008-08-18  Ben Pfaff  <blp@gnu.org>
32657
32658         gitlog-to-changelog: give better diagnostic for failed pipe-open
32659         * build-aux/gitlog-to-changelog: Improve error message: suggest
32660         that the version of Git may be too old.
32661
32662 2008-08-18  Simon Josefsson  <simon@josefsson.org>
32663
32664         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
32665         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
32666
32667 2008-08-18  Bruno Haible  <bruno@clisp.org>
32668
32669         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
32670         pthread_in_use().
32671
32672 2008-08-18  Bruno Haible  <bruno@clisp.org>
32673
32674         * lib/glthread/threadlib.c: Include <pthread.h>.
32675
32676 2008-08-18  Bruno Haible  <bruno@clisp.org>
32677
32678         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
32679         glthread_recursive_lock_* macros.
32680         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
32681         Fix syntax error.
32682
32683 2008-08-18  Bruno Haible  <bruno@clisp.org>
32684
32685         * lib/glthread/thread.c: Avoid forcing a context switch right after
32686         thread creation.
32687
32688 2008-08-17  Bruno Haible  <bruno@clisp.org>
32689
32690         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
32691         * lib/glthread/thread.h: Provide Win32 specific implementation.
32692         * modules/thread (Files): Add lib/glthread/thread.c.
32693         (Depends-on): Add lock.
32694         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
32695
32696 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32697
32698         New module 'yield'.
32699         * modules/yield: New file.
32700         * lib/glthread/yield.h: New file.
32701         * m4/yield.m4: New file.
32702         * MODULES.html.sh (Multithreading): Add yield.
32703
32704 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32705
32706         New module 'thread'.
32707         * modules/thread: New file.
32708         * lib/glthread/thread.h: New file.
32709         * m4/thread.m4: New file.
32710         * MODULES.html.sh (Multithreading): Add thread.
32711
32712 2008-08-17  Bruno Haible  <bruno@clisp.org>
32713
32714         * lib/glthread/lock.h: Include <stdlib.h> always.
32715         * lib/glthread/tls.h: Likewise.
32716         * lib/glthread/cond.h: Likewise.
32717
32718 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32719
32720         New module 'cond'.
32721         * modules/cond: New file.
32722         * lib/glthread/cond.h: New file.
32723         * lib/glthread/cond.c: New file.
32724         * m4/cond.m4: New file.
32725         * MODULES.html.sh (Multithreading): Add cond.
32726
32727 2008-08-16  Eric Blake  <ebb9@byu.net>
32728
32729         c-stack: fix regression on Irix 5.3 from 2008-06-21
32730         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
32731         sa_sigaction...
32732         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
32733         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
32734         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
32735         * modules/signal (Makefile.am): Use the value.
32736         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
32737         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
32738         * doc/posix-headers/signal.texi (signal.h): Document this
32739         portability issue.
32740         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
32741         Reported by Tom G. Christensen.
32742
32743 2008-08-17  Bruno Haible  <bruno@clisp.org>
32744
32745         New module 'threadlib'.
32746         * modules/threadlib: New file.
32747         * lib/glthread/threadlib.c: New file, extracted from
32748         lib/glthread/lock.c.
32749         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
32750         functions.
32751         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
32752         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
32753         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
32754         macros.
32755         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
32756         (gl_DISABLE_THREADS): Remove macro.
32757         * modules/lock (Files): Remove build-aux/config.rpath.
32758         (Depends-on): Remove havelib. Add threadlib.
32759         (configure.ac-early): Remove section.
32760         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
32761         * modules/tls (Depends-on): Remove lock. Add threadlib.
32762         (Link): New section, copied from threadlib.
32763         * MODULES.html.sh (Multithreading): Add threadlib.
32764
32765 2008-08-14  Bruno Haible  <bruno@clisp.org>
32766
32767         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
32768         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
32769         glthread_rwlock_unlock, glthread_rwlock_destroy,
32770         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
32771         glthread_recursive_lock_destroy): Define as macros always.
32772         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
32773         glthread_lock_lock.
32774         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
32775         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
32776         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
32777         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
32778         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
32779         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
32780         (glthread_recursive_lock_lock_func): Renamed from
32781         glthread_recursive_lock_lock.
32782         (glthread_recursive_lock_unlock_func): Renamed from
32783         glthread_recursive_lock_unlock.
32784         (glthread_recursive_lock_destroy_func): Renamed from
32785         glthread_recursive_lock_destroy.
32786
32787 2008-08-14  Bruno Haible  <bruno@clisp.org>
32788
32789         * lib/glthread/lock.h: Renamed from lib/lock.h.
32790         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
32791         * lib/glthread/tls.h: Renamed from lib/tls.h.
32792         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
32793         * lib/fstrcmp.c: Update includes.
32794         * lib/strsignal.c: Update includes.
32795         * modules/lock (Files, Makefile.am): Update.
32796         (Include): Change to "glthread/lock.h".
32797         * modules/tls (Files, Makefile.am): Update.
32798         (Include): Change to "glthread/tls.h".
32799         * tests/test-lock.c: Update includes.
32800         * tests/test-tls.c: Update includes.
32801         * NEWS: Mention the renamed header files.
32802
32803 2008-08-11  Jim Meyering  <meyering@redhat.com>
32804
32805         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
32806
32807 2008-08-11  Eric Blake  <ebb9@byu.net>
32808
32809         test-c-stack: avoid C99-ism
32810         * tests/test-c-stack.c (main): Fix whitespace, move declaration
32811         before statement.
32812         Reported by Alain Guibert.
32813
32814 2008-08-10  Jim Meyering  <meyering@redhat.com>
32815
32816         ensure that return value of uinttostr et al are not ignored
32817         * lib/inttostr.h (__GNUC_PREREQ): Define.
32818         (__attribute_warn_unused_result__): Define.
32819         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
32820
32821 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
32822
32823         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
32824         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
32825
32826 2008-08-07  Jim Meyering  <meyering@redhat.com>
32827
32828         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
32829
32830         * modules/mkstemp (License): Relicense under LGPLv2+.
32831         * modules/tempname (License): Likewise.
32832
32833 2008-08-06  Bruno Haible  <bruno@clisp.org>
32834
32835         * lib/poll.c (poll): Further micro-optimization.
32836
32837 2008-08-06  Jim Meyering  <meyering@redhat.com>
32838
32839         inet_pton.c: use locale-independent tolower
32840         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
32841         (inet_pton6): Use c_tolower rather than tolower.
32842         * modules/inet_pton (Depends-on): Add c-ctype.
32843
32844 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
32845
32846         * lib/poll.c (poll): Avoid division when timeout is 0, cache
32847         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
32848
32849 2008-08-06  Jim Meyering  <meyering@redhat.com>
32850
32851         * modules/inet_pton (License): Relicense under LGPLv2+.
32852
32853 2008-08-03  Bruno Haible  <bruno@clisp.org>
32854
32855         Additional non-aborting API for lock and tls.
32856         * lib/lock.h: Include <errno.h>.
32857         (glthread_lock_init): New macro/function.
32858         (gl_lock_init): Define as wrapper around glthread_lock_init.
32859         (glthread_lock_lock): New macro/function.
32860         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
32861         (glthread_lock_unlock): New macro/function.
32862         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
32863         (glthread_lock_destroy): New macro/function.
32864         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
32865         (glthread_rwlock_init): New macro/function.
32866         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
32867         (glthread_rwlock_rdlock): New macro/function.
32868         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
32869         (glthread_rwlock_wrlock): New macro/function.
32870         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
32871         (glthread_rwlock_unlock): New macro/function.
32872         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
32873         (glthread_rwlock_destroy): New macro/function.
32874         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
32875         (glthread_recursive_lock_init): New macro/function.
32876         (gl_recursive_lock_init): Define as wrapper around
32877         glthread_recursive_lock_init.
32878         (glthread_recursive_lock_lock): New macro/function.
32879         (gl_recursive_lock_lock): Define as wrapper around
32880         glthread_recursive_lock_lock.
32881         (glthread_recursive_lock_unlock): New macro/function.
32882         (gl_recursive_lock_unlock): Define as wrapper around
32883         glthread_recursive_lock_unlock.
32884         (glthread_recursive_lock_destroy): New macro/function.
32885         (gl_recursive_lock_destroy): Define as wrapper around
32886         glthread_recursive_lock_destroy.
32887         (glthread_once): New macro/function.
32888         (gl_once): Define as wrapper around glthread_once.
32889         Update function declarations.
32890         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
32891         glthread_rwlock_init. Return error code.
32892         (glthread_rwlock_rdlock_multithreaded): Renamed from
32893         glthread_rwlock_rdlock. Return error code.
32894         (glthread_rwlock_wrlock_multithreaded): Renamed from
32895         glthread_rwlock_wrlock. Return error code.
32896         (glthread_rwlock_unlock_multithreaded): Renamed from
32897         glthread_rwlock_unlock. Return error code.
32898         (glthread_rwlock_destroy_multithreaded): Renamed from
32899         glthread_rwlock_destroy. Return error code.
32900         (glthread_recursive_lock_init_multithreaded): Renamed from
32901         glthread_recursive_lock_init. Return error code.
32902         (glthread_recursive_lock_lock_multithreaded): Renamed from
32903         glthread_recursive_lock_lock. Return error code.
32904         (glthread_recursive_lock_unlock_multithreaded): Renamed from
32905         glthread_recursive_lock_unlock. Return error code.
32906         (glthread_recursive_lock_destroy_multithreaded): Renamed from
32907         glthread_recursive_lock_destroy. Return error code.
32908         (glthread_once_call): Make static.
32909         (glthread_once_multithreaded): Renamed from glthread_once.
32910         * lib/tls.h: Include <errno.h>.
32911         (glthread_tls_key_init): New macro/function.
32912         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
32913         (glthread_tls_set): New macro/function.
32914         (gl_tls_set): Define as wrapper around glthread_tls_set.
32915         (glthread_tls_key_destroy): New macro/function.
32916         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
32917         Update function declarations.
32918         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
32919         glthread_tls_get.
32920         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32921
32922 2008-08-04  Eric Blake  <ebb9@byu.net>
32923
32924         gnumakefile: use space, not TAB, outside of targets
32925         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
32926
32927 2008-08-02  Jim Meyering  <meyering@redhat.com>
32928
32929         getdate.y: avoid locale-dependent date parsing failure
32930         In Turkish locales, getdate would fail to recognize keywords
32931         containing a lowercase "i".  The solution is not to rely on
32932         locale-sensitive case-conversion.
32933         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
32934         (lookup_word): Use c_toupper in place of toupper.
32935         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
32936         Reported by Vefa Bicakci <bicave@superonline.com> in
32937         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
32938         * modules/getdate (Depends-on): Add c-ctype.
32939
32940 2008-08-02  Bruno Haible  <bruno@clisp.org>
32941
32942         * gnulib-tool (func_import): When updating or creating a .gitignore
32943         file, prepend each added line with a slash, and ignore leading slashes
32944         from the existing lines.
32945         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32946
32947 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32948
32949         Portability fix for GNU make 3.79.1.
32950         * top/GNUmakefile: Avoid 'else COND', which older GNU make
32951         versions do not understand.
32952
32953 2008-08-01  Bruno Haible  <bruno@clisp.org>
32954
32955         Work around bug of HP-UX 10.20 cc with -0.0 literal.
32956         * tests/test-isnanf.h (zero): New variable.
32957         (main): Avoid literal -0.0f.
32958         * tests/test-isnand.h (zero): New variable.
32959         (main): Avoid literal -0.0.
32960         * tests/test-isnanl.h (zero): New variable.
32961         (main): Avoid literal -0.0L.
32962         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
32963         (test_float, test_double, test_long_double): Avoid literals -0.0f,
32964         -0.0, -0.0L.
32965         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
32966         (test_signbitd): Avoid literal -0.0.
32967         (test_signbitl): Avoid literal -0.0L.
32968         * tests/test-ceilf1.c (zero): New variable.
32969         (main): Avoid literal -0.0f.
32970         * tests/test-ceill.c (zero): New variable.
32971         (main): Avoid literal -0.0L.
32972         * tests/test-floorf1.c (zero): New variable.
32973         (main): Avoid literal -0.0f.
32974         * tests/test-floorl.c (zero): New variable.
32975         (main): Avoid literal -0.0L.
32976         * tests/test-roundf1.c (zero): New variable.
32977         (main): Avoid literal -0.0f.
32978         * tests/test-round1.c (zero): New variable.
32979         (main): Avoid literal -0.0.
32980         * tests/test-roundl.c (zero): New variable.
32981         (main): Avoid literal -0.0L.
32982         * tests/test-truncf1.c (zero): New variable.
32983         (main): Avoid literal -0.0f.
32984         * tests/test-trunc1.c (zero): New variable.
32985         (main): Avoid literal -0.0.
32986         * tests/test-truncl.c (zero): New variable.
32987         (main): Avoid literal -0.0L.
32988         * tests/test-frexp.c (zero): New variable.
32989         (main): Avoid literal -0.0.
32990         * tests/test-frexpl.c (zero): New variable.
32991         (main): Avoid literal -0.0L.
32992         * tests/test-ldexpl.c (zero): New variable.
32993         (main): Avoid literal -0.0L.
32994         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32995         (zerod, zerol): New variables.
32996         (test_function): Avoid literals -0.0, -0.0L.
32997         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32998         (zerod, zerol): New variables.
32999         (test_function): Avoid literals -0.0, -0.0L.
33000         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33001         (zerod, zerol): New variables.
33002         (test_function): Avoid literals -0.0, -0.0L.
33003         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33004         (zerod, zerol): New variables.
33005         (test_function): Avoid literals -0.0, -0.0L.
33006         * tests/test-strtod.c (zero): New variable.
33007         (main): Avoid literal -0.0.
33008         Reported by Jonathan C. Patschke <jp@centtech.com>.
33009
33010 2008-07-31  Jim Meyering  <meyering@redhat.com>
33011
33012         sha256.h: correct definition of SHA224_DIGEST_SIZE
33013         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
33014         Reported by Paulie Pena IV <paulie4@gmail.com>.
33015         Define as 224 / 8, rather than as a literal.
33016         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
33017         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
33018         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
33019
33020 2008-07-31  Bruno Haible  <bruno@clisp.org>
33021
33022         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
33023         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
33024         Reported by Jonathan Patschke <jp@centtech.com>.
33025
33026 2008-07-31  Bruno Haible  <bruno@clisp.org>
33027
33028         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
33029         Reported by Paolo Bonzini <bonzini@gnu.org>.
33030
33031 2008-07-30  Eric Blake  <ebb9@byu.net>
33032
33033         test-strtod: allow compilation without -lm
33034         * tests/test-strtod.c (main): Avoid link dependence on fabs.
33035         Reported by Dennis Clarke <blastwave@gmail.com>.
33036
33037 2008-07-28  Jim Meyering  <meyering@redhat.com>
33038
33039         bootstrap: work also when there are no .po files in po/
33040         * build-aux/bootstrap (update_po_files): Complete the change
33041         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
33042
33043 2008-07-27  Jim Meyering  <meyering@redhat.com>
33044
33045         * users.txt: Add zile.
33046
33047 2008-07-26  Ben Pfaff  <blp@gnu.org>
33048
33049         Add missing dependencies on new m4/exponent[fdl].m4 files.
33050         * modules/isnanf-nolibm: Add m4/exponentf.m4.
33051         * modules/isnand-nolibm: Add m4/exponentd.m4.
33052         * modules/isnanl-nolibm: Add m4/exponentl.m4.
33053         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
33054         m4/isnan[fdl].m4, because the macros actually used moved.
33055         Reported by Jim Meyering.
33056
33057 2008-07-14  Ben Pfaff  <blp@gnu.org>
33058
33059         Add isinf module.
33060         * lib/isinf.c: New file.
33061         * lib/math.in.h: Define isinf macro if we have decided to replace
33062         it.
33063         * m4/isinf.m4: New file.
33064         * m4/math_h.m4: Initialize and substitute variables for isinf
33065         module.
33066         * modules/isinf: New file.
33067         * modules/isinf-tests: New file.
33068         * modules/math: Add substitutions for new module.
33069         * tests/test-isinf.c: New file.
33070         * doc/posix-functions/isinf.texi: Mention new module.
33071         * MODULES.html.sh: Mention new module.
33072
33073 2008-07-14  Ben Pfaff  <blp@gnu.org>
33074
33075         Factor out some macros for use by additional modules.
33076         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
33077         exponentf.m4.
33078         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
33079         exponentd.m4.
33080         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
33081         file exponentl.m4.
33082         * m4/exponentf.m4: New file.
33083         * m4/exponentd.m4: New file.
33084         * m4/exponentl.m4: New file.
33085         * modules/isnanf: Use new file m4/exponentf.m4.
33086         * modules/isnand: Use new file m4/exponentd.m4.
33087         * modules/isnanl: Use new file m4/exponentl.m4.
33088
33089 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
33090
33091         mktime.c: normalize tp->tm_isdst value to -1/0/1.
33092         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
33093         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
33094         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
33095
33096         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
33097         readlink on platforms without PATH_MAX.
33098
33099 2008-07-21  Eric Blake  <ebb9@byu.net>
33100
33101         Warn, not fail, on stale version.
33102         * top/GNUmakefile (_curr-ver): Tone down previous patch.
33103
33104         Don't allow installation with stale devel version number.
33105         * top/GNUmakefile (_is-install-target): New macro.
33106         (_curr-ver): Forbid installation with stale version number.
33107
33108 2008-07-20  Bruno Haible  <bruno@clisp.org>
33109
33110         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
33111         TESTS_ENVIRONMENT.
33112         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
33113
33114 2008-07-20  Bruno Haible  <bruno@clisp.org>
33115
33116         * lib/c-stack.h (c_stack_action): Add documentation.
33117         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
33118
33119 2008-07-20  Bruno Haible  <bruno@clisp.org>
33120
33121         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
33122         * modules/readlink (License): Likewise.
33123
33124 2008-07-17  Eric Blake  <ebb9@byu.net>
33125
33126         * modules/c-stack (Link): Fix typo.
33127
33128         Make c-stack use libsigsegv, when available.
33129         * modules/c-stack (Depends-on): Add libsigsegv.
33130         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
33131         needed.
33132         * lib/c-stack.c (SIGSTKSZ): Define fallback.
33133         (segv_handler, overflow_handler, c_stack_action)
33134         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
33135         implementation when libsigsegv is available, but only when using
33136         the library is necessary.
33137         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
33138         comment, explaining why XSI check fails on Linux.
33139         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
33140         * tests/test-c-stack2.sh: Tweak skip message.
33141         * NEWS: Document new link-time requirements.
33142
33143 2008-07-16  Eric Blake  <ebb9@byu.net>
33144
33145         c-stack: Expose false positives when not using libsigsegv.
33146         * modules/c-stack-tests (Files): Expand test.
33147         * tests/test-c-stack.c (main): Add means to conditionally trigger
33148         non-overflow SIGSEGV.
33149         * tests/test-c-stack2.sh: New file.
33150
33151 2008-07-14  Bruno Haible  <bruno@clisp.org>
33152
33153         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
33154         Reported by Eric Blake.
33155
33156 2008-07-14  Sam Steingold  <sds@gnu.org>
33157             Bruno Haible  <bruno@clisp.org>
33158
33159         New module libsigsegv.
33160         * modules/libsigsegv: New file.
33161         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
33162         modifications.
33163         * MODULES.html.sh (Signal handling): New section.
33164
33165 2008-07-14  Bruno Haible  <bruno@clisp.org>
33166
33167         * modules/unictype/ctype-* (Description): Add the word "function".
33168         Improves the resulting doc in MODULES.html.
33169
33170 2008-07-12  Ben Pfaff  <blp@gnu.org>
33171
33172         Add longlong module.
33173         * modules/longlong: New file.
33174
33175 2008-07-12  Bruno Haible  <bruno@clisp.org>
33176
33177         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
33178         to empty.
33179
33180 2008-07-10  Ben Pfaff  <blp@gnu.org>
33181
33182         Add isnan module.
33183         * doc/posix-functions/isnan.texi: Mention new module.
33184         * lib/math.in.h: Define isnan macro if we have decided to replace
33185         it.
33186         * m4/isnan.m4: New file.
33187         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
33188         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
33189         also.
33190         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
33191         redundancy.
33192         * m4/math_h.m4: Initialize and substitute variables for isnan
33193         module.
33194         * modules/isnan: New file.
33195         * modules/isnan-tests: New file.
33196         * modules/math: Add substitutions for new module.
33197         * tests/test-isnan.c: New file.
33198         * MODULES.html.sh: Mention new module.
33199
33200 2008-07-10  Ben Pfaff  <blp@gnu.org>
33201
33202         Add isnanf module.
33203         * lib/isnanf.m4: New file.
33204         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
33205         (gl_HAVE_ISNANF_IN_LIBM): New macro.
33206         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
33207         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
33208         * modules/isnanf: New file.
33209         * modules/isnanf-tests: New file.
33210         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
33211         files.
33212         * tests/test-isnanf-nolibm.c: factored most of its contents into
33213         new file tests/test-isnanf.h.
33214         * tests/test-isnanf.h: New file.
33215         * tests/test-isnanf.c: New file.
33216         * MODULES.html.sh: Mention new module.
33217         * doc/glibc-functions/isnanf.texi: Mention new module.
33218
33219 2008-07-10  Ben Pfaff  <blp@gnu.org>
33220
33221         Add isnand module.
33222         * lib/isnand.h: New file.
33223         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
33224         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
33225         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
33226         functionality also.
33227         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
33228         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
33229         (gl_HAVE_ISNAND_IN_LIBM): New macro.
33230         * modules/isnand: New file.
33231         * modules/isnand-tests: New file.
33232         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
33233         files.
33234         * tests/test-isnand-nolibm.c: factored most of its contents into
33235         new file tests/test-isnand.h.
33236         * tests/test-isnand.h: New file.
33237         * tests/test-isnand.c: New file.
33238         * MODULES.html.sh: Mention new module.
33239
33240 2008-07-10  Ben Pfaff  <blp@gnu.org>
33241
33242         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
33243         * lib/isnand.h: Rename lib/isnand-nolibm.h.
33244         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
33245         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
33246         * modules/isnanf-nolibm: Update references to renamed files.
33247         * modules/isnand-nolibm: Likewise.
33248         * modules/isnanf-nolibm-tests: Likewise.
33249         * modules/isnand-nolibm-tests: Likewise.
33250         * lib/frexp.c: Likewise.
33251         * lib/isfinite.c: Likewise.
33252         * lib/signbitd.c: Likewise.
33253         * lib/signbitf.c: Likewise.
33254         * lib/vasnprintf.c: Likewise.
33255         * tests/test-ceilf1.c: Likewise.
33256         * tests/test-ceilf2.c: Likewise.
33257         * tests/test-floorf1.c: Likewise.
33258         * tests/test-floorf2.c: Likewise.
33259         * tests/test-frexp.c: Likewise.
33260         * tests/test-round1.c: Likewise.
33261         * tests/test-round2.c: Likewise.
33262         * tests/test-roundf1.c: Likewise.
33263         * tests/test-strtod.c: Likewise.
33264         * tests/test-trunc1.c: Likewise.
33265         * tests/test-trunc2.c: Likewise.
33266         * tests/test-truncf1.c: Likewise.
33267         * tests/test-truncf2.c: Likewise.
33268         * NEWS: Mention the renamed header files.
33269
33270 2008-07-11  Jim Meyering  <meyering@redhat.com>
33271
33272         vc-list-files: make the last-resort awk code more portable
33273         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
33274         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
33275         does not support it.
33276
33277 2008-07-10  Eric Blake  <ebb9@byu.net>
33278
33279         Work with tar's bootstrap.
33280         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
33281         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
33282         an m4 comment.
33283
33284 2008-07-09  Jim Meyering  <meyering@redhat.com>
33285
33286         posix-shell.m4: fix typo that made this test malfunction
33287         * m4/posix-shell.m4: Remove capitalization in variable name.
33288
33289 2008-07-08  Bruno Haible  <bruno@clisp.org>
33290
33291         * m4/onceonly.m4: Update comments.
33292         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33293
33294 2008-07-04  Jim Meyering  <meyering@redhat.com>
33295
33296         * users.txt: Add vc-dwim.
33297         (bison, coreutils): Use the gitweb URL.
33298
33299 2008-07-03  Jim Meyering  <meyering@redhat.com>
33300
33301         * users.txt: Add libffcall.  From Sam Steingold.
33302
33303 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
33304
33305         getdate.y: do not ignore TZ with relative day, month or year offset
33306         * lib/getdate.y (get_date): Move the tz-handling block to follow the
33307         relative-date-handling, since otherwise, the latter would clobber the
33308         sole output (an updated Start value) of the tz-handling block.
33309         * tests/test-getdate.c: Tests for the fix
33310
33311 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33312
33313         Recognize 'foo_LIBRARIES += libgnu.a'.
33314         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
33315         makefile snippet has already specified an installation location,
33316         also using '+='.
33317
33318 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
33319
33320         getdate.y: factor out common actions
33321         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
33322         Use them in place of open-coded actions.
33323
33324 2008-07-01  Simon Josefsson  <simon@josefsson.org>
33325
33326         Add self-test for getdate module.
33327         * modules/getdate-tests: New file.
33328         * tests/test-getdate.c: New file.
33329
33330 2008-06-29  Bruno Haible  <bruno@clisp.org>
33331
33332         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
33333         .gitignore.
33334         Reported by Sylvain Beucler <beuc@beuc.net>.
33335
33336 2008-06-29  Bruno Haible  <bruno@clisp.org>
33337
33338         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
33339         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
33340
33341 2008-06-29  Bruno Haible  <bruno@clisp.org>
33342
33343         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
33344         EXTRA_DIST.
33345         Reported by Sylvain Beucler <beuc@beuc.net>.
33346
33347 2008-06-26  Jim Meyering  <meyering@redhat.com>
33348
33349         make several modules depend on the "open" module
33350         This provides slightly increased consistency when opening-for-write
33351         the name of a non-directory spelled with a trailing slash.
33352         * modules/chdir-safer: Likewise.
33353         * modules/chown: Likewise.
33354         * modules/clean-temp: Likewise.
33355         * modules/copy-file: Likewise.
33356         * modules/fchdir: Likewise.
33357         * modules/fcntl-safer: Likewise.
33358         * modules/pipe: Likewise.
33359         * modules/utime: Likewise.
33360         Prompted by Eric Blake and Bruno Haible.
33361
33362 2008-06-24  Andreas Schwab  <schwab@suse.de>
33363
33364         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
33365         literals can be used as initializers for global variables.
33366
33367 2008-06-23  Eric Blake  <ebb9@byu.net>
33368
33369         Make gnulib-cache.m4 easier to diff.
33370         * gnulib-tool (func_import): Allow newlines when reading cached
33371         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
33372
33373 2008-06-23  Bruno Haible  <bruno@clisp.org>
33374
33375         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
33376         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
33377         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
33378         m4/signalblocking.m4.
33379         (gl_PREREQ_SIGACTION): Don't invoke it.
33380         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
33381         gl_PREREQ_SIG_HANDLER_H.
33382         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33383         Don't check for sigaction here.
33384
33385 2008-06-23  Bruno Haible  <bruno@clisp.org>
33386
33387         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
33388         (install_handlers): Don't set the SA_RESETHAND flag.
33389
33390 2008-06-23  Bruno Haible  <bruno@clisp.org>
33391
33392         * m4/sigaction.m4: Comment fixes.
33393         * lib/signal.in.h: Likewise.
33394
33395 2008-06-23  Eric Blake  <ebb9@byu.net>
33396
33397         Fix typo.
33398         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
33399
33400         Avoid SA_ namespace.
33401         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
33402         Reported by Ralf Wildenhues.
33403
33404         Avoid test failure due to SA_RESTORER.
33405         * tests/test-sigaction.c (SA_MASK): New macro.
33406         (main): Avoid failing due to extension flags being set.
33407         Reported by Jim Meyering.
33408
33409         Revert use of sig-handler.h in sigprocmask.c.
33410         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
33411         it requires the existence of struct sigaction.
33412         * lib/sigprocmask.c (handler_t): Restore typedef.
33413         (rpl_signal, old_handlers): Use local type.
33414
33415 2008-06-22  Bruno Haible  <bruno@clisp.org>
33416
33417         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
33418         conditionally.
33419         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33420
33421 2008-06-22  Bruno Haible  <bruno@clisp.org>
33422
33423         * doc/posix-functions/siginterrupt.texi: Move note.
33424
33425         * lib/signal.in.h (SA_RESTART): New macro.
33426         * lib/sigaction.c: Update comment.
33427
33428         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
33429
33430         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
33431         (gl_PREREQ_SIGPROCMASK): Invoke it.
33432         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
33433
33434         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
33435
33436         * lib/sigprocmask.c: Update a comment.
33437
33438 2008-06-21  Eric Blake  <ebb9@byu.net>
33439
33440         Use sigaction module rather than signal().
33441         * modules/c-stack (Depends-on): Add sigaction.
33442         * modules/fatal-signal (Depends-on): Likewise.
33443         * modules/nanosleep (Depends-on): Likewise.
33444         * modules/sigprocmask (Files): Add sig-handler.h.
33445         * modules/sigaction (Files): Likewise.
33446         * lib/sig-handler.h (get_handler): New file, suggested by Paul
33447         Eggert.
33448         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
33449         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
33450         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
33451         (init_fatal_signals): Likewise.
33452         * lib/nanosleep.c (rpl_nanosleep): Likewise.
33453         (siginterrupt): Delete fallback.
33454         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
33455         instead.
33456         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
33457         siginterrupt.
33458
33459         New module sigaction, for mingw.
33460         * modules/sigaction: New module...
33461         * modules/sigaction-tests: ...and its test.
33462         * m4/sigaction.m4: New file.
33463         * lib/sigaction.c: Likewise.
33464         * tests/test-sigaction.c: Likewise.
33465         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
33466         * modules/signal (Makefile.am): Likewise.
33467         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
33468         needed.
33469         * doc/posix-headers/signal.texi (signal.h): Mention provided
33470         types.
33471         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
33472         that sigaction is preferable.
33473         * doc/posix-functions/sigaction.texi (sigaction): Mention new
33474         module.
33475         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33476         sigaction.
33477
33478         Improve robustness of sigprocmask by overriding signal.
33479         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
33480         is in use.
33481         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
33482         (SIGKILL, SIGSTOP): Provide fallbacks.
33483         (rpl_signal): Implement.
33484         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
33485         signal can be called inside handlers.
33486
33487         Fix nanosleep module on mingw.
33488         * modules/nanosleep (Depends-on): Add sys_select.
33489         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
33490
33491         Fix licensing of sigprocmask.
33492         * modules/raise (License): Relicense as LGPL.
33493
33494 2008-06-21  Bruno Haible  <bruno@clisp.org>
33495
33496         * lib/propername.c (proper_name_utf8): Don't use the transliterated
33497         result if it contains question marks.
33498         Reported by Michael Geng <linux@michaelgeng.de>.
33499
33500 2008-06-19  Bruno Haible  <bruno@clisp.org>
33501
33502         Fix CVS-ism.
33503         * doc/gnulib.texi: Include updated-stamp.texi.
33504         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
33505         (updated-stamp.texi): New rule.
33506         (gnulib.info): Depend on it.
33507         * doc/.gitignore: Add updated-stamp.texi.
33508         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
33509
33510 2008-06-19  Bruno Haible  <bruno@clisp.org>
33511
33512         * doc/Makefile (gnulib.info): Update and simplify dependencies.
33513         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33514
33515 2008-06-19  Eric Blake  <ebb9@byu.net>
33516
33517         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
33518         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
33519         Reported by Stepan Kasal.
33520
33521 2008-06-18  Bruno Haible  <bruno@clisp.org>
33522
33523         * lib/fatal-signal.c (init_fatal_signals): Add comment.
33524         Reported by Eric Blake.
33525
33526 2008-06-18  Eric Blake  <ebb9@byu.net>
33527
33528         Work around cygwin 1.5.25 strsignal bug.
33529         * tests/test-strsignal.c: Allow for const char *.
33530         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
33531
33532 2008-06-18  Simon Josefsson  <simon@josefsson.org>
33533
33534         * users.txt: Update URL to article and add author/date
33535         information.
33536
33537 2008-06-17  Bruno Haible  <bruno@clisp.org>
33538
33539         New macro gl_DISABLE_THREADS.
33540         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
33541         if the user did not pass --enable-threads or --disable-threads option.
33542         (gl_DISABLE_THREADS): New macro.
33543         Reported by Eric Blake <ebb9@byu.net>.
33544
33545 2008-06-17  Bruno Haible  <bruno@clisp.org>
33546
33547         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
33548         when the macro ignores it.
33549         Based on a patch by Eric Blake <ebb9@byu.net>.
33550
33551 2008-06-17  Bruno Haible  <bruno@clisp.org>
33552
33553         * modules/tls (License): Change to LGPLv2+.
33554         Reported by Eric Blake.
33555
33556 2008-06-17  Eric Blake  <ebb9@byu.net>
33557
33558         Simplify c-stack prerequisites.
33559         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
33560         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
33561         no longer requires <ucontext.h> to exist.  Optimize setrlimit
33562         check.
33563         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
33564         <sys/resource.h>.
33565
33566         Move c-stack test into testsuite.
33567         * modules/c-stack-tests: New file.
33568         * lib/c-stack.c [DEBUG]: Move test program...
33569         * tests/test-c-stack.c: ...into this new file.  Skip rather than
33570         fail test if sigaltstack is lacking.
33571         * tests/test-c-stack.sh: New driver file.
33572
33573 2008-06-16  Eric Blake  <ebb9@byu.net>
33574
33575         Use raise module consistently.
33576         * modules/fatal-signal (Depends-on): Add raise.
33577         * modules/sigprocmask (Depends-on): Likewise.
33578         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
33579         * lib/sigprocmask.c (sigprocmask): Likewise.
33580         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33581         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
33582
33583         Fix compliance bug in sigpending.
33584         * lib/sigprocmask.c (sigpending): Return pending array via
33585         parameter, not return value.
33586
33587 2008-06-14  Eric Blake  <ebb9@byu.net>
33588
33589         Improve obstack-printf test code.
33590         * tests/test-obstack-printf.c (test_function): Fix comment, and
33591         simplify usage of obstack_* in macros.  Add a test for coverage.
33592         Reported by Bruno Haible.
33593
33594 2008-06-14  Bruno Haible  <bruno@clisp.org>
33595
33596         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
33597         array size as a constant, not as a const variable.
33598         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
33599         AC_USE_SYSTEM_EXTENSIONS.
33600         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33601         Test whether the obstack_printf function actually exists.
33602         * modules/obstack-printf (Depends-on): Add extensions.
33603         (Include): Remove obstack.h.
33604         * modules/obstack-printf-posix (Depends-on): Add extensions.
33605         (Include): Remove obstack.h.
33606
33607 2008-06-13  Eric Blake  <ebb9@byu.net>
33608
33609         Add obstack-printf and obstack-printf-posix modules.
33610         * modules/obstack-printf: New file.
33611         * modules/obstack-printf-posix: Likewise.
33612         * MODULES.html.sh (Misc): Mention them.
33613         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33614         Likewise.
33615         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33616         Likewise.
33617         * modules/stdio (Makefile.am): Accomodate new modules.
33618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33619         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
33620         Declare.
33621         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
33622         functions.
33623         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
33624         (gl_REPLACE_OBSTACK_PRINTF): New macros
33625         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
33626         * tests/test-obstack-printf.c: New file.
33627         * modules/obstack-printf-tests: Likewise.
33628         * modules/obstack-printf-posix-tests: Likewise.
33629
33630 2008-06-11  Bruno Haible  <bruno@clisp.org>
33631
33632         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
33633         * lib/open.c: Include errno.h.
33634         (open): Fail when attempting to write to a file that has a trailing
33635         slash.
33636         * tests/test-open.c (main): Test against trailing slash bug.
33637         * doc/posix-functions/open.texi: Mention the trailing slash bug.
33638
33639 2008-06-10  Bruno Haible  <bruno@clisp.org>
33640
33641         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
33642         for $? to work inside the trap command, with various /bin/sh-s.
33643         * tests/test-vc-list-files-cvs.sh: Likewise.
33644
33645 2008-06-10  Bruno Haible  <bruno@clisp.org>
33646
33647         * lib/acl-internal.h: Don't include gettext.h here.
33648         * lib/set-mode-acl.c: Include gettext.h here.
33649         * lib/copy-acl.c: Likewise.
33650
33651 2008-06-10  Bruno Haible  <bruno@clisp.org>
33652
33653         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
33654         * lib/wait-process.c (wait_subprocess): Likewise.
33655         * lib/execute.h (execute): Add termsigp argument.
33656         * lib/execute.c (execute): Likewise.
33657         * lib/csharpcomp.c (compile_csharp_using_pnet,
33658         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
33659         * lib/csharpexec.c (execute_csharp_using_pnet,
33660         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
33661         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
33662         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
33663         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
33664         is_jikes_present): Update.
33665         * lib/javaexec.c (execute_java_class): Update.
33666         * lib/javaversion.c (execute_and_read_line): Update.
33667         * NEWS: Document the changes.
33668         Reported by Eric Blake.
33669
33670 2008-06-10  Eric Blake  <ebb9@byu.net>
33671
33672         Add missing include.
33673         * tests/test-strstr.c (includes): Add <signal.h>.
33674         * tests/test-strcasestr.c (includes): Likewise.
33675         * tests/test-memmem.c (includes): Likewise.
33676
33677 2008-06-10  Bruno Haible  <bruno@clisp.org>
33678
33679         * lib/wait-process.c (wait_subprocess): Add an assertion.
33680
33681 2008-06-10  Bruno Haible  <bruno@clisp.org>
33682
33683         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
33684
33685 2008-06-10  Bruno Haible  <bruno@clisp.org>
33686
33687         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
33688         using alarm().
33689         * tests/test-strcasestr.c (main): Likewise.
33690         * tests/test-strstr.c (main): Likewise.
33691
33692 2008-06-09  Bruno Haible  <bruno@clisp.org>
33693
33694         Work around the Solaris 10 ACE ACLs ABI change.
33695         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
33696         declare if ACL_NO_TRIVIAL is present.
33697         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
33698         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
33699         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
33700         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
33701         define if ACL_NO_TRIVIAL is present.
33702         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
33703         and use the current ABI.
33704         (file_has_acl): Use same #if condition as elsewhere.
33705         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
33706         in use, and use the current ABI.
33707         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
33708         Reported by Jim Meyering.
33709
33710 2008-06-09  Eric Blake  <ebb9@byu.net>
33711
33712         Work around environments that (stupidly) ignore SIGALRM.
33713         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
33714         before using alarm().
33715         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33716         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33717         Reported by Ian Beckwith <ianb@erislabs.net>.
33718
33719         Produce autobuild blurb earlier in log.
33720         * modules/autobuild (configure.ac-early): Move AB_INIT here.
33721
33722 2008-06-09  Jim Meyering  <meyering@redhat.com>
33723         and OndÅ™ej Vašík  <ovasik@redhat.com>
33724
33725         utimens.c: correct kernel bug work-around
33726         OndÅ™ej Vašík found that the invalid return value of 280 indicates
33727         failure, not success, and the kernel bug we're trying to work
33728         around affects not just the utimensat call, but also the fallback
33729         futimens call.
33730         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
33731         not success.
33732         [HAVE_FUTIMENS]: Use the same work-around, here.
33733
33734 2008-06-09  Jim Meyering  <meyering@redhat.com>
33735
33736         add more guards around definition of ACE_-related code
33737         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
33738         ALLOW and ACE_OWNER are also defined.
33739
33740 2008-06-08  Bruno Haible  <bruno@clisp.org>
33741
33742         * lib/acl-internal.h: Add me as co-author.
33743         * lib/file-has-acl.c: Likewise.
33744         * lib/set-mode-acl.c: Likewise.
33745         * lib/copy-acl.c: Likewise.
33746
33747 2008-06-08  Bruno Haible  <bruno@clisp.org>
33748
33749         Add support for AIX ACLs.
33750         * lib/acl-internal.h (acl_nontrivial): New declaration.
33751         * lib/file-has-acl.c (acl_nontrivial): New function.
33752         (file_has_acl): Add implementation using AIX 4 ACL API.
33753         * lib/set-mode-acl.c (qset_acl): Likewise.
33754         * lib/copy-acl.c (qcopy_acl): Likewise.
33755
33756 2008-06-08  Bruno Haible  <bruno@clisp.org>
33757
33758         Add support for HP-UX ACLs.
33759         * lib/acl-internal.h (acl_nontrivial): New declaration.
33760         * lib/file-has-acl.c (acl_nontrivial): New function.
33761         (file_has_acl): Add implementation using HP-UX 11 ACL API.
33762         * lib/set-mode-acl.c (qset_acl): Likewise.
33763         * lib/copy-acl.c (qcopy_acl): Likewise.
33764
33765 2008-06-08  Bruno Haible  <bruno@clisp.org>
33766
33767         Add support for Cygwin ACLs.
33768         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
33769         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
33770         the chmod_or_fchmod call.
33771         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
33772
33773 2008-06-08  Bruno Haible  <bruno@clisp.org>
33774
33775         Fix bug with setuid modes in Solaris 10+ code.
33776         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
33777         succeeded, when the mode contains some special bits.
33778
33779 2008-06-08  Bruno Haible  <bruno@clisp.org>
33780
33781         Add support for Solaris 7..10 ACLs.
33782         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
33783         declarations.
33784         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
33785         functions.
33786         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
33787         * lib/set-mode-acl.c (qset_acl): Likewise.
33788         * lib/copy-acl.c (qcopy_acl): Likewise.
33789
33790 2008-06-08  Bruno Haible  <bruno@clisp.org>
33791
33792         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
33793         declaration.
33794         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
33795         (acl_access_nontrivial): Remove MacOS X case.
33796         (file_has_acl): Use acl_extended_nontrivial.
33797         * lib/copy-acl.c (qcopy_acl): Likewise.
33798
33799 2008-06-08  Bruno Haible  <bruno@clisp.org>
33800
33801         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
33802
33803 2008-06-08  Jim Meyering  <meyering@redhat.com>
33804
33805         * modules/acl (Maintainer): Add Bruno Haible.
33806
33807 2008-06-07  Bruno Haible  <bruno@clisp.org>
33808
33809         Improve support for Tru64 ACLs.
33810         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
33811         ACL on OSF/1.
33812
33813 2008-06-07  Bruno Haible  <bruno@clisp.org>
33814
33815         Add support for MacOS X ACLs.
33816         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
33817         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
33818         * lib/set-mode-acl.c (qset_acl): Likewise.
33819         * lib/copy-acl.c (qcopy_acl): Likewise.
33820
33821 2008-06-07  Bruno Haible  <bruno@clisp.org>
33822
33823         Fix memory leak introduced on 2008-05-22.
33824         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
33825         use.
33826
33827 2008-06-07  Bruno Haible  <bruno@clisp.org>
33828
33829         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
33830         to construct an empty ACL.
33831
33832 2008-06-07  Bruno Haible  <bruno@clisp.org>
33833
33834         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
33835         precisely.
33836         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
33837
33838 2008-06-07  Bruno Haible  <bruno@clisp.org>
33839
33840         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
33841         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
33842
33843 2008-06-07  Bruno Haible  <bruno@clisp.org>
33844
33845         * doc/posix-functions/_setjmp.texi: Explain the use of this function
33846         regardless of POSIX.
33847         * doc/posix-functions/_longjmp.texi: Likewise.
33848         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
33849         SystemV platform in this case.
33850
33851 2008-06-06  Eric Blake  <ebb9@byu.net>
33852
33853         Document abort() bugs.
33854         * doc/posix-functions/abort.texi (abort): Mention anomalies.
33855
33856         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
33857         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
33858         sigsetjmp.
33859         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
33860         siglongjmp, but only as a macro.
33861         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
33862         is obsolete.
33863         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
33864
33865         Tweak documentation to cover cygwin argz bugs.
33866         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
33867         argz bug fix; no code change needed since no cygwin releases
33868         occurred between the last fix and the bug being tested.
33869         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
33870         module and recently fixed cygwin bugs.
33871         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
33872         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
33873         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
33874         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
33875         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
33876         Likewise.
33877         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
33878         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
33879         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
33880         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
33881         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
33882         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
33883         Likewise.
33884
33885         Avoid gcc warning on cygwin.
33886         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
33887         !ACL_NO_TRIVIAL]: Avoid unused variable.
33888
33889 2008-06-05  Eric Blake  <ebb9@byu.net>
33890
33891         Be tolerant of UNKNOWN version in gnulib-tool test dir.
33892         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
33893         git-version-gen fails to come up with a version.
33894         Reported by Simon Josefsson.
33895
33896 2008-06-05  Jim Meyering  <meyering@redhat.com>
33897             Paul Eggert  <eggert@cs.ucla.edu>
33898
33899         utimens.c: work around a probable Linux kernel bug
33900         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
33901         appears to be a kernel bug that causes utimensat to return 280
33902         instead of 0, indicating success.
33903
33904 2008-06-04  Bruno Haible  <bruno@clisp.org>
33905
33906         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
33907         2008-06-01 commit.
33908
33909 2008-06-04  Bruno Haible  <bruno@clisp.org>
33910
33911         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
33912         * lib/file-has-acl.c (acl_access_nontrivial): New function.
33913         (file_has_acl): Use it. Save errno afterwards.
33914         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
33915
33916 2008-06-03  Bruno Haible  <bruno@clisp.org>
33917
33918         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
33919         draft code. Simplify #ifs.
33920         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
33921         Put Solaris code after POSIX-draft code. Fix comments regarding
33922         Solaris 10, HP-UX. Mention Cygwin.
33923         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
33924
33925 2008-06-03  Eric Blake  <ebb9@byu.net>
33926
33927         Provide fallback for older kernels.
33928         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
33929         Provide runtime fallback if kernel lacks support.
33930         Reported by Mike Frysinger.
33931
33932 2008-06-02  Bruno Haible  <bruno@clisp.org>
33933
33934         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
33935         it exists.
33936
33937 2008-06-02  Bruno Haible  <bruno@clisp.org>
33938
33939         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
33940         * lib/copy-acl.c (qcopy_acl): Update comment.
33941
33942 2008-06-02  Bruno Haible  <bruno@clisp.org>
33943
33944         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
33945         like ACL APIs.
33946
33947 2008-06-02  Bruno Haible  <bruno@clisp.org>
33948
33949         * tests/test-file-has-acl.sh: Use different code for Cygwin.
33950         * tests/test-set-mode-acl.sh: Likewise.
33951         * tests/test-copy-acl.sh: Likewise.
33952         * tests/test-copy-file.sh: Likewise.
33953
33954 2008-06-02  Bruno Haible  <bruno@clisp.org>
33955
33956         * tests/test-file-has-acl.sh: Remove unused code.
33957
33958 2008-06-01  Bruno Haible  <bruno@clisp.org>
33959
33960         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
33961         (copy_acl): Just a wrapper around qcopy_acl that emits the error
33962         messages.
33963         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
33964
33965 2008-06-01  Bruno Haible  <bruno@clisp.org>
33966
33967         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
33968         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
33969         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
33970         APIs.
33971         * modules/acl-tests (configure.ac): Remove tests now contained in
33972         m4/acl.m4.
33973
33974 2008-06-02  Jim Meyering  <meyering@redhat.com>
33975
33976         announce-gen: use a better key-server host name
33977         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
33978         it may be more consistently reliable.  Suggested by Werner Koch
33979         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
33980
33981 2008-06-01  Bruno Haible  <bruno@clisp.org>
33982
33983         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
33984         Reported by Voroskoi Andras <voroskoi@gmail.com>.
33985
33986 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
33987
33988         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
33989
33990 2008-06-01  Bruno Haible  <bruno@clisp.org>
33991
33992         New ACL tests.
33993         * tests/test-file-has-acl.sh: New file.
33994         * tests/test-file-has-acl.c: New file.
33995         * tests/test-set-mode-acl.sh: New file.
33996         * tests/test-set-mode-acl.c: New file.
33997         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
33998         * tests/test-copy-acl.c: New file.
33999         * modules/acl-tests: New file, based on modules/copy-file-tests.
34000         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
34001         (Depends-on): Add acl-tests.
34002         (configure.ac): Remove checks.
34003         (Makefile.am): Don't create test-sameacls program here any more.
34004
34005 2008-06-01  Bruno Haible  <bruno@clisp.org>
34006
34007         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
34008         * tests/test-sameacls.c: Include progname.h.
34009         (main): Invoke set_program_name. Portability fixes for MacOS X,
34010         Solaris, HP-UX.
34011
34012 2008-06-01  Bruno Haible  <bruno@clisp.org>
34013
34014         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
34015         function.
34016         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
34017
34018 2008-06-01  Bruno Haible  <bruno@clisp.org>
34019
34020         * modules/rpmatch (Depends-on): Add strdup.
34021
34022 2008-06-01  Bruno Haible  <bruno@clisp.org>
34023
34024         * lib/pipe.c: Include unistd-safer.h.
34025         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
34026         * modules/pipe (Depends-on): Add unistd-safer.
34027
34028 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34029
34030         * modules/autobuild (configure.ac): Call AB_INIT.
34031
34032 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34033
34034         * tests/test-getaddrinfo.c: Don't print debug messages by default.
34035         Suggested by Bruno Haible <bruno@clisp.org>.
34036
34037 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34038
34039         * tests/test-base64.c: Cast size_t to unsigned long when invoking
34040         printf.  Use %lu instead of %d.  Reported by Bruno Haible
34041         <bruno@clisp.org>.
34042
34043 2008-05-29  Eric Blake  <ebb9@byu.net>
34044
34045         Prefer new POSIX 200x interfaces over futimesat.
34046         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
34047         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
34048         when available.
34049         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
34050
34051 2008-05-28  Bruno Haible  <bruno@clisp.org>
34052
34053         * modules/stpcpy (License): Change to LGPLv2+.
34054         Requested by David Lutterkort <dlutter@redhat.com>.
34055
34056 2008-05-27  Bruno Haible  <bruno@clisp.org>
34057
34058         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
34059         current mingw.
34060         Reported by Jose E. Marchesi <jemarch@gnu.org>.
34061
34062 2008-05-27  Bruno Haible  <bruno@clisp.org>
34063
34064         * modules/iconv_open (Link): New section, from module 'iconv'.
34065         * modules/striconv (Link): Likewise.
34066         * modules/striconveh (Link): Likewise.
34067         * modules/xstriconv (Link): Likewise.
34068         * modules/unicodeio (Link): Likewise.
34069         * modules/propername (Link): Likewise.
34070         Reported by Jim Meyering.
34071
34072 2008-05-26  Jim Meyering  <meyering@redhat.com>
34073
34074         sha256: do not artificially restrict buffer length to be < 2^32
34075         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
34076         uint32_t to size_t.
34077         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
34078         to match.
34079
34080         avoid unaligned access errors, e.g., on sparc
34081         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
34082         direct access through a possibly-unaligned uint64* pointer.
34083         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
34084         direct access through a possibly-unaligned uint32* pointer.
34085         Prompted by this patch from Tom "spot" Callaway:
34086         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
34087
34088         sha512.c: fix typo in comment
34089         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
34090
34091 2008-05-25  Bruno Haible  <bruno@clisp.org>
34092
34093         * lib/set-mode-acl.c: Renamed from lib/acl.c.
34094         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
34095         (Makefile.am): Update lib_SOURCES.
34096
34097 2008-05-25  Bruno Haible  <bruno@clisp.org>
34098
34099         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
34100
34101 2008-05-25  Jim Meyering  <meyering@redhat.com>
34102
34103         useless-if-before-free: freed expr may have white-space differences
34104         * build-aux/useless-if-before-free: Recognize cases in which the
34105         freed expression differs from the tested one in embedded white
34106         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
34107         $1 was used, so we can't make any regexp shy.  Improved tests now
34108         detect this.
34109
34110         useless-if-before-free: accept white space in the expression.
34111         * build-aux/useless-if-before-free: For now, any white space
34112         in the expression must be identical in the free argument.
34113
34114         useless-if-before-free: efficiency tweak
34115         * build-aux/useless-if-before-free: Make the expression-matching
34116         regexp "shy".
34117         Make the *outer* regexp shy, not the expr-matching one.
34118
34119         update code-in-comment to accept cast of free arg
34120         * build-aux/useless-if-before-free: Update regexp.
34121
34122 2008-05-25  Bruno Haible  <bruno@clisp.org>
34123
34124         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
34125         * modules/copy-file-tests (Files, Makefile.am): Update.
34126         * tests/test-copy-file.c (func_test_copy): Update.
34127
34128 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
34129
34130         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
34131
34132 2008-05-23  Bruno Haible  <bruno@clisp.org>
34133
34134         Improve support for ACLs on OSF/1.
34135         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
34136         Remove fallback for unknown flavors of ACLs.
34137
34138 2008-05-22  Bruno Haible  <bruno@clisp.org>
34139
34140         Add support for ACLs on OSF/1.
34141         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
34142         replacements.
34143         (acl_free_text): New macro fallback.
34144         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
34145         acl_free.
34146         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
34147         acl_free_text function. Require AC_C_INLINE.
34148
34149 2008-05-22  Bruno Haible  <bruno@clisp.org>
34150
34151         Make copy_acl work on MacOS X 10.5.
34152         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
34153         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
34154         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
34155         If MODE_INSIDE_ACL, don't assume that every system has the same text
34156         representation for ACLs as FreeBSD.
34157         * lib/copy-acl.c (copy_acl): Add support for platforms with
34158         !MODE_INSIDE_ACL.
34159         * lib/file-has-acl.c (file_has_acl): Likewise.
34160         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
34161         FreeBSD, MacOS X, or IRIX, respectively.
34162
34163 2008-05-22  Bruno Haible  <bruno@clisp.org>
34164
34165         * lib/acl.h: Don't include <sys/acl.h>.
34166         (GETACLCNT): Move fallback to lib/acl-internal.h.
34167         * lib/acl-internal.h: Include <sys/acl.h> here.
34168         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
34169
34170 2008-05-22  Bruno Haible  <bruno@clisp.org>
34171
34172         Split off copy_acl function to separate file.
34173         * lib/copy-acl.c: New file, extracted from lib/acl.c.
34174         * lib/acl.c (copy_acl): Moved function to separate file.
34175         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
34176         * modules/acl (Files): Add lib/copy-acl.c.
34177         (Makefiles.am): Augment lib_SOURCES.
34178
34179 2008-05-22  Bruno Haible  <bruno@clisp.org>
34180
34181         * modules/copy-file-tests: New file.
34182         * tests/test-copy-file.sh: New file.
34183         * tests/test-copy-file.c: New file.
34184         * tests/test-copy-file-sameacls.c: New file.
34185
34186 2008-05-22  Eric Blake  <ebb9@byu.net>
34187
34188         Avoid gcc warning.
34189         * tests/test-memcmp.c (main): Pass NULL indirectly.
34190
34191 2008-05-21  Bruno Haible  <bruno@clisp.org>
34192
34193         Add reference doc about ACLs.
34194         * doc/acl-resources.txt: New file.
34195         * doc/acl-cygwin.txt: New file.
34196
34197 2008-05-21  Bruno Haible  <bruno@clisp.org>
34198
34199         Avoid one more warning from gcc.
34200         * lib/vasnprintf.c (IF_LINT): Update comments.
34201         (VASNPRINTF): Use it also for the 'prefix' array initializer.
34202
34203 2008-05-21  Jim Meyering  <meyering@redhat.com>
34204
34205         avoid a warning from gcc
34206         * lib/vasnprintf.c (IF_LINT): Define.
34207         (scale10_round_decimal_long_double):
34208         Use it to avoid a "may be used uninitialized" warning.
34209         (scale10_round_decimal_double): Likewise.
34210
34211 2008-05-21  Simon Josefsson  <simon@josefsson.org>
34212
34213         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
34214         declared.
34215
34216 2008-05-20  Bruno Haible  <bruno@clisp.org>
34217
34218         * tests/test-memcmp.c (main): Test also the sign of the result. Test
34219         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
34220
34221 2008-05-20  Simon Josefsson  <simon@josefsson.org>
34222
34223         * modules/memcmp-tests: New file.
34224         * tests/test-memcmp.c: New file.
34225
34226 2008-05-19  Bruno Haible  <bruno@clisp.org>
34227
34228         * modules/propername (Notice, configure.ac): Put quoted "..." into
34229         --keyword option.
34230         * lib/propername.h: Update comments accordingly.
34231         Reported by Eric Blake.
34232
34233 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
34234
34235         * modules/getpass-gnu (Depends-on): Add fseeko.
34236
34237 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34238
34239         * modules/base64-tests: New file.
34240
34241 2008-05-19  Bo Borgerson <gigabo@gmail.com>
34242
34243         * lib/base64.c (base64_decode_ctx): If a decode context structure
34244         was passed in use it to ignore newlines.  If a context structure
34245         was _not_ passed in, continue to treat newlines as garbage (this
34246         is the historical behavior).  Formerly base64_decode.
34247         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34248         takes a decode context structure.
34249         * lib/base64.h (base64_decode): Macro for four-argument calls.
34250         (base64_decode_alloc): Likewise.
34251         * lib/base64.c (base64_decode_ctx): If a decode context structure
34252         was passed in use it to ignore newlines.  If a context structure
34253         was _not_ passed in, continue to treat newlines as garbage (this
34254         is the historical behavior).  Formerly base64_decode.
34255         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34256         takes a decode context structure.
34257         * lib/base64.h (base64_decode): Macro for four-argument calls.
34258         (base64_decode_alloc): Likewise.
34259
34260 2008-05-19  Jim Meyering  <meyering@redhat.com>
34261
34262         avoid a warning from gcc
34263         * lib/trim.c (IF_LINT): Define.
34264         (trim2): Use it to avoid a "may be used uninitialized" warning.
34265
34266         Fix doc typo.
34267         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
34268
34269 2008-05-19  Bruno Haible  <bruno@clisp.org>
34270
34271         * doc/glibc-functions/getpass.texi: Document limits of other
34272         implementations.
34273
34274 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34275             Bruno Haible <bruno@clisp.org>
34276
34277         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
34278
34279 2008-05-18  Bruno Haible  <bruno@clisp.org>
34280
34281         * modules/propername: New file, from GNU gettext.
34282         * lib/propername.h: New file, from GNU gettext.
34283         * lib/propername.c: New file, from GNU gettext.
34284         * MODULES.html.sh (Internationalization functions): Add propername.
34285
34286 2008-05-16  Jim Meyering  <meyering@redhat.com>
34287             Bruno Haible  <bruno@clisp.org>
34288
34289         Avoid some warnings from "gcc -Wshadow".
34290         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
34291
34292 2008-05-15  Eric Blake  <ebb9@byu.net>
34293
34294         Extend previous patch to cygwin 1.7.0.
34295         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
34296         fast implementation in cygwin >= 1.7.0.
34297         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34299
34300 2008-05-15  Bruno Haible  <bruno@clisp.org>
34301
34302         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
34303         implementation in glibc >= 2.9.
34304         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34305         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34306
34307 2008-05-15  Bruno Haible  <bruno@clisp.org>
34308
34309         * MODULES.html.sh (Internationalization functions): Remove linebreak.
34310         (Unicode string functions): Add unilbrk/*.
34311         Reported by Karl Berry.
34312
34313 2008-05-15  Eric Blake  <ebb9@byu.net>
34314
34315         Fix violation of <stdbool.h> replacement in regex.
34316         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
34317         * lib/regexec.c (re_search_internal): Likewise.
34318         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
34319
34320 2008-05-15  Jim Meyering  <meyering@redhat.com>
34321
34322         avoid distracting test output when git or cvs is not found
34323         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
34324         * tests/test-vc-list-files-git.sh: Likewise.
34325
34326 2008-05-15  Eric Blake  <ebb9@byu.net>
34327
34328         Glibc finally accepted the memmem speedup code, bugzilla #5514.
34329         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
34330         glibc version.
34331         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34332         * doc/posix-functions/strstr.texi (strstr): Likewise.
34333         * lib/str-two-way.h (MAX): Sychronize with glibc.
34334
34335 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
34336
34337         * lib/regcomp.c (optimize_utf8): Add a note on why we test
34338         opr.ctx_type.
34339         (calc_first): Initialize constraint field.
34340         (duplicate_node_closure): Use it instead of special casing ANCHORS.
34341         Fix grammar.
34342         (duplicate_node): Merge constraint field for all node types.
34343         (calc_eclosure_iter): Look at constraint field for all node types.
34344         * lib/regex_internal.c (create_cd_newstate): Don't look at
34345         opr.ctx_type.
34346
34347 2008-05-14  Bruno Haible  <bruno@clisp.org>
34348
34349         Help GCC to do better code generation.
34350         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
34351         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
34352         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
34353         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
34354         Declare with attribute 'malloc' if supported.
34355
34356 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
34357
34358         use "echo STR|wc -c" rather than unportable "expr length STR"
34359         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
34360         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
34361
34362 2008-05-14  Jim Meyering  <meyering@redhat.com>
34363
34364         use dd ibs=$n count=1 ... rather than less-portable head -c$n
34365         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
34366         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
34367         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
34368         via Collin Lasse.
34369
34370 2008-05-14  Eric Blake  <ebb9@byu.net>
34371
34372         Avoid quadratic growth in gl_LIBSOURCES.
34373         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
34374         Suggested by Bruno Haible.
34375
34376         Test xmemdup0.
34377         * modules/xmemdup0-tests: New file.
34378         * tests/test-xmemdup0.c: Likewise.
34379
34380 2008-05-13  Eric Blake  <ebb9@byu.net>
34381
34382         Split xmemdup0 into its own module.
34383         * modules/xmemdup0: New file.
34384         * lib/xmemdup0.h: Likewise.
34385         * lib/xmemdup0.c: Likewise.
34386         * MODULES.html.sh (Memory management functions): Add xmemdup0.
34387         * lib/xalloc.h (xmemdup0): Remove.
34388         * lib/xmalloc.c (xmemdup0): Likewise.
34389
34390 2008-05-13  Eric Blake  <ebb9@byu.net>
34391             Bruno Haible  <bruno@clisp.org>
34392
34393         Reduce number of forks required during autoconf.
34394         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
34395         and gl_LIBSOURCES_DIR.
34396         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
34397         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
34398         m4_syscmd per file.
34399         <m4_foreach_w>: Move...
34400         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
34401
34402 2008-05-13  Eric Blake  <ebb9@byu.net>
34403
34404         * gnulib-tool: Fix various comment typos.
34405
34406 2008-05-12  Bruno Haible  <bruno@clisp.org>
34407
34408         Tailor the linebreaking algorithm.
34409         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
34410
34411 2008-05-12  Bruno Haible  <bruno@clisp.org>
34412
34413         Update to Unicode 5.0.0.
34414         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34415         LBP_JV, LBP_JT. Redistribute values.
34416         (unilbrk_table): Change size.
34417         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
34418         Unicode TR#14 rev. 22.
34419         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34420         LBP_JV, LBP_JT. Redistribute values.
34421         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
34422         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
34423         Update.
34424         * lib/unilbrk/lbrkprop1.h: Regenerated.
34425         * lib/unilbrk/lbrkprop2.h: Regenerated.
34426         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
34427         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
34428         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
34429         Likewise.
34430         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
34431         Likewise.
34432         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
34433         result.
34434         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
34435         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
34436         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
34437         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
34438         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
34439         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
34440
34441 2008-05-11  Bruno Haible  <bruno@clisp.org>
34442
34443         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
34444
34445 2008-05-11  Bruno Haible  <bruno@clisp.org>
34446
34447         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
34448         * modules/unilbrk/gen-lbrk: New file.
34449
34450 2008-05-11  Bruno Haible  <bruno@clisp.org>
34451
34452         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
34453         * m4/sha512.m4 (gl_SHA512): Likewise.
34454
34455 2008-05-11  Jim Meyering  <meyering@redhat.com>
34456
34457         New modules: crypto/sha256, crypto/sha512 (from coreutils)
34458         * modules/crypto/sha256: New file.
34459         * modules/crypto/sha512: Likewise.
34460         * lib/sha256.c: Likewise.
34461         * lib/sha256.h: Likewise.
34462         * lib/sha512.c: Likewise.
34463         * lib/sha512.h: Likewise.
34464         * lib/u64.h: Likewise.
34465         * m4/sha256.m4: Likewise.
34466         * m4/sha512.m4: Likewise.
34467         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
34468
34469 2008-05-10  Bruno Haible  <bruno@clisp.org>
34470
34471         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
34472         (Input/Output <stdio.h>): Add xprintf.
34473         (Signal handling <signal.h>): Add strsignal.
34474         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
34475         (Core language properties): Add func.
34476         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
34477         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
34478         strings.
34479         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
34480         (Input/output): New section.
34481         (File system functions): Add openat-die, stat-macros.
34482         (Networking functions): Add sockets.
34483         (Unicode string functions): Add unictype/*.
34484         (Support for building libraries and executables): Add gperf.
34485         (Support for building documentation): Add agpl-3.0.
34486         (Misc): Add nocrash.
34487
34488 2008-05-10  Bruno Haible  <bruno@clisp.org>
34489
34490         * modules/unictype/gen-ctype: New file.
34491
34492 2008-05-10  Jim Meyering  <meyering@redhat.com>
34493
34494         Make chdir-safer.c more efficient on a system with no symlinks.
34495         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
34496         also if ELOOP is zero.  Suggested by Bruno Haible.
34497
34498         Make chdir-safer.c slightly safer.
34499         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
34500         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
34501
34502         Avoid compile failure on systems without ELOOP (like mingw).
34503         * lib/chdir-safer.c (ELOOP): Define if not already defined.
34504         Reported by Bruno Haible.
34505
34506 2008-05-10  Bruno Haible  <bruno@clisp.org>
34507
34508         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
34509         (is_utf8_encoding): Use a case-insensitive comparison.
34510         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
34511         streq.
34512
34513 2008-05-10  Bruno Haible  <bruno@clisp.org>
34514
34515         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
34516         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
34517         * lib/unilbrk/ulc-common.h (iconv_string_length,
34518         iconv_string_keeping_offsets): Remove declarations.
34519         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
34520         Don't include <iconv.h>, streq.h, xsize.h.
34521         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
34522         conversion.
34523         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
34524         <iconv.h>, streq.h, xsize.h.
34525         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
34526         conversion.
34527         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
34528         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
34529         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
34530         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
34531
34532 2008-05-10  Bruno Haible  <bruno@clisp.org>
34533
34534         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
34535         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
34536
34537         * modules/unilbrk/u32-width-linebreaks-tests: New file.
34538         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
34539
34540         * modules/unilbrk/u16-width-linebreaks-tests: New file.
34541         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
34542
34543         * modules/unilbrk/u8-width-linebreaks-tests: New file.
34544         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
34545
34546         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
34547         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
34548
34549         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
34550         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
34551
34552         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
34553         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
34554
34555         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
34556         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
34557
34558 2008-05-10  Bruno Haible  <bruno@clisp.org>
34559
34560         Split up 'linebreak' module.
34561         * lib/unilbrk.h: New file, based on lib/linebreak.h.
34562         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
34563         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
34564         modifications.
34565         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
34566         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
34567         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
34568         lib/linebreak.c.
34569         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
34570         lib/linebreak.c.
34571         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
34572         lib/linebreak.c.
34573         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
34574         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
34575         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
34576         lib/linebreak.c.
34577         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
34578         lib/linebreak.c.
34579         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
34580         lib/linebreak.c.
34581         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
34582         lib/linebreak.c.
34583         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
34584         lib/linebreak.c.
34585         * modules/unilbrk/base: New file.
34586         * modules/unilbrk/tables: New file.
34587         * modules/unilbrk/u8-possible-linebreaks: New file.
34588         * modules/unilbrk/u16-possible-linebreaks: New file.
34589         * modules/unilbrk/u32-possible-linebreaks: New file.
34590         * modules/unilbrk/ulc-common: New file.
34591         * modules/unilbrk/ulc-possible-linebreaks: New file.
34592         * modules/unilbrk/u8-width-linebreaks: New file.
34593         * modules/unilbrk/u16-width-linebreaks: New file.
34594         * modules/unilbrk/u32-width-linebreaks: New file.
34595         * modules/unilbrk/ulc-width-linebreaks: New file.
34596         * lib/linebreak.h: Remove file.
34597         * lib/linebreak.c: Remove file.
34598         * m4/linebreak.m4: Remove file.
34599         * modules/linebreak: Remove file.
34600         * NEWS: Mention the changes.
34601
34602 2008-05-09  Eric Blake  <ebb9@byu.net>
34603
34604         Add xmemdup0.
34605         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
34606         implementation.
34607         * lib/xmalloc.c (xmemdup0): New C implementation.
34608
34609 2008-05-08  Bruno Haible  <bruno@clisp.org>
34610
34611         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
34612
34613 2008-05-07  Eric Blake  <ebb9@byu.net>
34614
34615         Support cross-compilation of <wctype.h>.
34616         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
34617         AC_CACHE_CHECK.
34618
34619 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
34620
34621         * build-aux/vc-list-files: Add support for bzr.
34622
34623 2008-05-03  Jim Meyering  <meyering@redhat.com>
34624
34625         avoid failed assertion with tight malloc
34626         * tests/test-getndelim2.c: Correct an off-by-one assertion.
34627
34628 2008-05-03  Simon Josefsson  <simon@josefsson.org>
34629
34630         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
34631         are needed from arpa/inet.h.
34632         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
34633         Reported by Bruno Haible.
34634
34635 2008-05-02  Jim Meyering  <meyering@redhat.com>
34636
34637         avoid compilation error on FreeBSD 6
34638         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
34639
34640 2008-05-01  Jim Meyering  <meyering@redhat.com>
34641
34642         useless-if-before-free: correct --help's exit status description
34643         * build-aux/useless-if-before-free (usage): Like grep, exit 0
34644         for one or more matches, etc.  Reported by Bruno Haible.
34645
34646         vc-list-files: make the stand-alone gnulib test work
34647         * modules/vc-list-files-tests (configure.ac):
34648         Define and AC_SUBST abs_aux_dir.
34649         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
34650         $(abs_top_srcdir) to each script and having each of them
34651         duplicate the work of setting PATH, set PATH here, using
34652         the new variable, abs_aux_dir instead.
34653         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
34654         * tests/test-vc-list-files-git.sh: Likewise.
34655         Reported by Bruno Haible.
34656
34657 2008-05-01  Bruno Haible  <bruno@clisp.org>
34658
34659         * lib/getndelim2.c (getndelim2): Fix newsize computation during
34660         reallocation. Rename 'done' to 'found_delimiter'.
34661
34662 2008-05-01  Jim Meyering  <meyering@redhat.com>
34663
34664         vc-list-files: accommodate /bin/sh like the one from Solaris 10
34665         * build-aux/vc-list-files: Use `...`, not $(...).
34666
34667 2008-04-30  Jim Meyering  <meyering@redhat.com>
34668
34669         add tests for vc-list-files
34670         * modules/vc-list-files-tests: New module.
34671         * tests/test-vc-list-files-cvs.sh: New file.
34672         * tests/test-vc-list-files-git.sh: New file.
34673
34674         avoid a warning from gcc
34675         * lib/getndelim2.c (IF_LINT): Define.
34676         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
34677
34678         vc-list-files: work properly with build-aux/cvsu, too
34679         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
34680         to all cvs-based clauses.
34681
34682         vc-list-files: work properly in the CVS+awk case, too
34683         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
34684
34685         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
34686         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
34687         take more than one file argument, so .  Add quotes, just in case $dir
34688         ever contains a shell meta-character.  Prompted by Soren Hansen in
34689         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
34690
34691 2008-04-29  Eric Blake  <ebb9@byu.net>
34692
34693         Optimize getndelim2 to use block operations when possible.
34694         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
34695         freadseek, and memchr2.
34696         * lib/getndelim2.c (getndelim2): Use them for block reads.
34697
34698 2008-04-29  Bruno Haible  <bruno@clisp.org>
34699
34700         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
34701         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34702         * modules/inet_ntop (Depends-on): Add extensions.
34703         * modules/inet_pton (Depends-on): Likewise.
34704         Reported by Simon Josefsson.
34705
34706 2008-04-29  Jim Meyering  <meyering@redhat.com>
34707
34708         When the is more than one match in a block, match all of them.
34709         * build-aux/useless-if-before-free: Iterate through each block
34710         until there are no more matches.
34711
34712         Fix broken useless-if-before-free script.
34713         * build-aux/useless-if-before-free: Fix typo: missing "?" after
34714         the expression to match cast of argument to free-like function.
34715
34716 2008-04-29  Eric Blake  <ebb9@byu.net>
34717
34718         Use new header.
34719         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
34720
34721 2008-04-29  Jim Meyering  <meyering@redhat.com>
34722
34723         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
34724         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
34725         by gnulib to exist and to declare e.g., inet_ntop.
34726         Don't include "inet_ntop.h", now removed.
34727
34728         * m4/arpa_inet_h.m4: Remove trailing blanks.
34729
34730 2008-04-29  Eric Blake  <ebb9@byu.net>
34731
34732         Silence valgrind on safe reads beyond potential array bounds.
34733         * lib/rawmemchr.valgrind: New file.
34734         * lib/strchrnul.valgrind: Likewise.
34735         * modules/rawmemchr (Files): Distribute new file.
34736         * modules/strchrnul (Files): Likewise.
34737         Suggested by Bruno Haible.
34738
34739 2008-04-29  Bruno Haible  <bruno@clisp.org>
34740
34741         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
34742         (inet_ntop, inet_pton): Change portability warning's wording.
34743         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
34744         Invoke gl_CHECK_NEXT_HEADERS.
34745         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
34746         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
34747         set ARPA_INET_H.
34748         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34749         * modules/arpa_inet (Description): No longer only for systems that
34750         lack it.
34751         (Depends-on): Add include_next.
34752         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
34753         HAVE_ARPA_INET_H.
34754
34755 2008-04-29  Jim Meyering  <meyering@redhat.com>
34756
34757         * modules/mkdir (License): Re-license as LGPLv2+.
34758
34759 2008-04-29  Bruno Haible  <bruno@clisp.org>
34760
34761         * modules/rawmemchr (Maintainer): Set to Eric.
34762         * modules/strchrnul (Maintainer): Likewise.
34763
34764 2008-04-29  Simon Josefsson  <simon@josefsson.org>
34765
34766         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
34767         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
34768
34769         * modules/arpa_inet (arpa/inet.h): Use them.
34770
34771 2008-04-28  Eric Blake  <ebb9@byu.net>
34772
34773         Test getndelim2.
34774         * modules/getndelim2-tests: New file.
34775         * tests/test-getndelim2.c: Likewise.
34776         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
34777         stream.
34778         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
34779
34780         * MODULES.html.sh: Document new module.
34781
34782 2008-04-20  Bruno Haible  <bruno@clisp.org>
34783
34784         * lib/c-stack.c (die): Use raise.
34785         * modules/c-stack (Depends-on): Add raise.
34786
34787 2008-04-28  Bruno Haible  <bruno@clisp.org>
34788
34789         Expect rpmatch to be declared.
34790         * lib/yesno.c (rpmatch): Remove declaration.
34791
34792         Declare rpmatch.
34793         * lib/stdlib.in.h (rpmatch): New declaration.
34794         * lib/rpmatch.c: Include <stdlib.h> first.
34795         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
34796         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
34797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
34798         HAVE_RPMATCH.
34799         * modules/rpmatch (Depends-on): Add stdlib, extensions.
34800         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34801         (Include): Set to <stdlib.h>.
34802         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
34803         HAVE_RPMATCH.
34804         * NEWS: Document the change.
34805
34806 2008-04-28  Bruno Haible  <bruno@clisp.org>
34807
34808         Change rpmatch to use nl_langinfo when appropriate.
34809         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
34810         (N_): New macro.
34811         (localized_pattern): New function/macro.
34812         (try): Remove match, nomatch arguments. Copy the pattern into safe
34813         memory before caching it.
34814         (rpmatch): Use localized_pattern. Add translator comments.
34815         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
34816         Suggested by Eric Blake.
34817         * modules/rpmatch (Depends-on): Add stdbool.
34818
34819 2008-04-28  Eric Blake  <ebb9@byu.net>
34820
34821         Add rawmemchr module, matching glibc.
34822         * modules/string (Makefile.am): New indicator.
34823         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
34824         * lib/string.in.h (rawmemchr): Declare when appropriate.
34825         * modules/rawmemchr: New file.
34826         * m4/rawmemchr.m4: Likewise.
34827         * lib/rawmemchr.c: Likewise.
34828         * modules/rawmemchr-tests: Likewise.
34829         * tests/test-rawmemchr.c: Likewise.
34830         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
34831         module.
34832         * modules/strchrnul (Depends-on): Add rawmemchr.
34833         * lib/strchrnul.c (strchrnul): Optimize a corner case.
34834
34835         Whitespace cleanup.
34836         * tests/test-strchrnul.c: Reindent.
34837         * lib/strchrnul.c: Likewise.
34838
34839         Optimize and test strchrnul.
34840         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
34841         * modules/strchrnul-tests: New file.
34842         * tests/test-strchrnul.c: Likewise.
34843
34844         Remove intprops dependency.
34845         * modules/memchr (Depends-on): Remove intprops.
34846         * modules/memrchr (Depends-on): Likewise.
34847         * modules/memchr2 (Depends-on): Likewise.
34848         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
34849         * lib/memrchr.c (__memrchr): Likewise.
34850         * lib/memrchr2.c (memchr2): Likewise.
34851         Reported by Simon Josefsson.
34852
34853 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34854
34855         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
34856         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34857
34858 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34859
34860         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
34861
34862         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
34863
34864         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
34865
34866         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
34867         declarations.
34868         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
34869
34870         * m4/inet_pton.m4: Don't check for header files.
34871
34872         * m4/inet_ntop.m4: Don't check for header files.
34873
34874 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34875
34876         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
34877         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
34878         trigger for cygwin).
34879         Reported by Bruno Haible  <bruno@clisp.org>.
34880
34881 2008-04-28  Bruno Haible  <bruno@clisp.org>
34882
34883         * doc/posix-functions/strdup.texi: Mention mingw problem.
34884
34885 2008-04-27  Bruno Haible  <bruno@clisp.org>
34886
34887         * modules/stat-time-tests (Depends-on): Add sleep.
34888         * tests/test-stat-time.c (force_unlink): New function.
34889         (cleanup): Use it.
34890         (test_mtime): Remove the ctime related tests.
34891         (test_ctime): New function, containing the ctime related tests.
34892         (main): Call test_ctime, except on native Windows platforms.
34893
34894 2008-04-27  Bruno Haible  <bruno@clisp.org>
34895
34896         * lib/rpmatch.c (rpmatch): Add some comments.
34897         Reported by James Youngman <jay@gnu.org>.
34898
34899 2008-04-27  Bruno Haible  <bruno@clisp.org>
34900
34901         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
34902         quiet NaNs.
34903
34904 2008-04-27  Bruno Haible  <bruno@clisp.org>
34905
34906         Make test-yesno.sh work on mingw.
34907         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
34908         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
34909         (main): Set stdin to binary mode.
34910         * modules/yesno-tests (Depends-on): Add binary-io.
34911
34912 2008-04-27  Bruno Haible  <bruno@clisp.org>
34913
34914         Fix 'isfinite' on x86, x86_64, ia64 platforms.
34915         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
34916         argument that lie outside the IEEE 854 domain.
34917         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
34918         (gl_ISFINITE): Use it.
34919         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
34920
34921 2008-04-27  Bruno Haible  <bruno@clisp.org>
34922
34923         Allow local renaming in config.h.
34924         * lib/memrchr.c (memrchr): Don't undefine outside libc.
34925
34926 2008-04-27  Bruno Haible  <bruno@clisp.org>
34927
34928         * lib/memchr.c (__memchr): Change type of 'i'.
34929         * lib/memchr2.c (memchr2): Likewise.
34930
34931 2008-04-26  Eric Blake  <ebb9@byu.net>
34932         and Bruno Haible  <bruno@clisp.org>
34933
34934         Optimize and test memrchr.
34935         * modules/memrchr (Depends-on): Add intprops.
34936         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
34937         * modules/memrchr-tests: New file.
34938         * tests/test-memrchr.c: New file.
34939
34940 2008-04-26  Bruno Haible  <bruno@clisp.org>
34941
34942         Add tentative support for DragonFly BSD.
34943         * lib/stdio-impl.h: Add macros for DragonFly BSD.
34944         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
34945         fp.
34946         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34947         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
34948         * lib/fpurge.c (fpurge): Likewise.
34949         * lib/freadable.c (freaadable): Likewise.
34950         * lib/freadahead.c (freadahead): Likewise.
34951         * lib/freading.c (freading): Likewise.
34952         * lib/freadptr.c (freadptr): Likewise.
34953         * lib/freadseek.c (freadptrinc): Likewise.
34954         * lib/fseeko.c (fseeko): Likewise.
34955         * lib/fseterr.c (fseterr): Likewise.
34956         * lib/fwritable.c (fwritable): Likewise.
34957         * lib/fwriting.c (fwriting): Likewise.
34958
34959 2008-04-26  Bruno Haible  <bruno@clisp.org>
34960
34961         * lib/stdio-impl.h: New file.
34962         * lib/fbufmode.c: Include stdio-impl.h.
34963         (fbufmode): Use fp_, remove redundant #defines.
34964         * lib/fflush.c: Include stdio-impl.h.
34965         (clear_ungetc_buffer): Remove redundant #defines.
34966         * lib/fpurge.c: Include stdio-impl.h.
34967         (fpurge): Remove redundant #defines.
34968         * lib/freadable.c: Include stdio-impl.h.
34969         (freadable): Remove redundant #defines.
34970         * lib/freadahead.c: Include stdio-impl.h.
34971         (freadahead): Remove redundant #defines.
34972         * lib/freading.c: Include stdio-impl.h.
34973         (freading): Remove redundant #defines.
34974         * lib/freadptr.c: Include stdio-impl.h.
34975         (freadptr): Remove redundant #defines.
34976         * lib/freadseek.c: Include stdio-impl.h.
34977         (freadptrinc): Remove redundant #defines.
34978         * lib/fseeko.c: Include stdio-impl.h.
34979         (rpl_fseeko): Remove redundant #defines.
34980         * lib/fseterr.c: Include stdio-impl.h.
34981         (fseterr): Remove redundant #defines.
34982         * lib/fwritable.c: Include stdio-impl.h.
34983         (fwritable: Remove redundant #defines.
34984         * lib/fwriting.c: Include stdio-impl.h.
34985         (fwriting): Remove redundant #defines.
34986         * modules/fbufmode (Files): Add lib/stdio-impl.h.
34987         * modules/fflush (Files): Likewise.
34988         * modules/fpurge (Files): Likewise.
34989         * modules/freadable (Files): Likewise.
34990         * modules/freadahead (Files): Likewise.
34991         * modules/freading (Files): Likewise.
34992         * modules/freadptr (Files): Likewise.
34993         * modules/freadseek (Files): Likewise.
34994         * modules/fseeko (Files): Likewise.
34995         * modules/fseterr (Files): Likewise.
34996         * modules/fwritable (Files): Likewise.
34997         * modules/fwriting (Files): Likewise.
34998
34999 2008-04-26  Bruno Haible  <bruno@clisp.org>
35000
35001         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
35002         restore_seek_optimization, update_fpos_cache): New functions, extracted
35003         from rpl_fflush.
35004         (rpl_fflush): Use them.
35005         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
35006         (gl_REPLACE_FFLUSH): Use it.
35007
35008 2008-04-26  Bruno Haible  <bruno@clisp.org>
35009
35010         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
35011         on Solaris.
35012         * tests/test-xstrtoimax.sh: Likewise.
35013         * tests/test-xstrtoumax.sh: Likewise.
35014         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35015
35016 2008-04-26  Bruno Haible  <bruno@clisp.org>
35017
35018         * modules/memchr-tests: New file.
35019         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
35020
35021 2008-04-26  Eric Blake  <ebb9@byu.net>
35022             Bruno Haible  <bruno@clisp.org>
35023
35024         * lib/memchr.c: Include intprops.h.
35025         (__memchr): Optimize parallel detection of matching bytes. Rename local
35026         variables. Add explanatory comments.
35027
35028 2008-04-26  Bruno Haible  <bruno@clisp.org>
35029
35030         Fix module 'memchr', broken since 2000-10-28.
35031         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
35032
35033 2008-04-26  Bruno Haible  <bruno@clisp.org>
35034
35035         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
35036         comments.
35037
35038 2008-04-25  Eric Blake  <ebb9@byu.net>
35039
35040         Use native fstatat on cygwin 1.7.0.
35041         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
35042         first.
35043
35044 2008-04-23  Eric Blake  <ebb9@byu.net>
35045
35046         Improve memchr2 performance.
35047         * lib/memchr2.c (memchr2): Further optimize parallel detection of
35048         NUL bytes.
35049         * modules/memchr2 (Depends-on): Use intprops.h.
35050
35051 2008-04-23  Simon Josefsson  <simon@josefsson.org>
35052
35053         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
35054         an inline function instead of a CPP macro.  Patch by Ben Pfaff
35055         <blp@cs.stanford.edu>.
35056
35057 2008-04-23  Simon Josefsson  <simon@josefsson.org>
35058
35059         * lib/arpa_inet.in.h: New file.
35060
35061         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
35062         (Makefile.am): Sed in substitute header file.
35063
35064         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
35065         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
35066
35067         * modules/inet_ntop (configure.ac): Use
35068         gl_ARPA_INET_MODULE_INDICATOR.
35069
35070         * modules/inet_pton (configure.ac): Use
35071         gl_ARPA_INET_MODULE_INDICATOR.
35072
35073 2008-04-22  Jim Meyering  <meyering@redhat.com>
35074
35075         * modules/verify (License): Re-license as LGPLv2+.
35076
35077 2008-04-22  Simon Josefsson  <simon@josefsson.org>
35078
35079         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
35080         parameter to void* as per POSIX standard (MinGW uses char*).
35081
35082 2008-04-21  Bruno Haible  <bruno@clisp.org>
35083
35084         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
35085         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
35086         Define to replacements if REPLACE_ISWCNTRL is 1.
35087         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
35088         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
35089         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
35090         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
35091         what it fixes.
35092         * doc/posix-functions/iswalpha.texi: Likewise.
35093         * doc/posix-functions/iswblank.texi: Likewise.
35094         * doc/posix-functions/iswcntrl.texi: Likewise.
35095         * doc/posix-functions/iswdigit.texi: Likewise.
35096         * doc/posix-functions/iswgraph.texi: Likewise.
35097         * doc/posix-functions/iswlower.texi: Likewise.
35098         * doc/posix-functions/iswprint.texi: Likewise.
35099         * doc/posix-functions/iswpunct.texi: Likewise.
35100         * doc/posix-functions/iswspace.texi: Likewise.
35101         * doc/posix-functions/iswupper.texi: Likewise.
35102         * doc/posix-functions/iswxdigit.texi: Likewise.
35103         Reported by Alain Guibert.
35104
35105 2008-04-21  Bruno Haible  <bruno@clisp.org>
35106
35107         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
35108         Patch by Alain Guibert.
35109
35110 2008-04-21  Bruno Haible  <bruno@clisp.org>
35111
35112         Fix test failures on mingw.
35113         * tests/test-xstrtol.c (print_no_progname): New function.
35114         (main): Install it in error_print_progname hook.
35115         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
35116         * tests/test-xstrtoimax.sh: Likewise.
35117         * tests/test-xstrtoumax.sh: Likewise.
35118
35119 2008-04-21  Bruno Haible  <bruno@clisp.org>
35120
35121         Fix test failure on mingw.
35122         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
35123
35124 2008-04-21  Bruno Haible  <bruno@clisp.org>
35125
35126         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
35127         Actually assign a value.
35128
35129 2008-04-20  Bruno Haible  <bruno@clisp.org>
35130
35131         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
35132         take 2.
35133         * lib/canonicalize.c (canonicalize_file_name): Elide if the
35134         'canonicalize-lgpl' module is also used.
35135         * lib/canonicalize-lgpl.c: Undo last change.
35136         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
35137
35138 2008-04-20  Bruno Haible  <bruno@clisp.org>
35139
35140         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
35141         config.h. Provide _mkdir based fallback for mingw.
35142         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
35143         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
35144         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
35145         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
35146         rather than defining mkdir in config.h.
35147         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
35148         (gl_SYS_STAT_H_DEFAULTS): New macro.
35149         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
35150         HAVE_IO_H any more.
35151         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
35152         HAVE_DECL_MKDIR and HAVE_IO_H.
35153
35154 2008-04-20  Bruno Haible  <bruno@clisp.org>
35155
35156         * lib/isapipe.c: Port to native Windows platforms.
35157
35158 2008-04-20  Bruno Haible  <bruno@clisp.org>
35159
35160         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
35161
35162 2008-04-21  Eric Blake  <ebb9@byu.net>
35163
35164         Work around preprocessors that don't handle UINTMAX_MAX.
35165         * lib/memchr2.c (memchr2): Avoid embedded #if.
35166         Reported by Alain Guibert, fix suggested by Bruno Haible.
35167
35168 2008-04-21  Simon Josefsson  <simon@josefsson.org>
35169
35170         * doc/posix-functions/strftime.texi (strftime): Explain better
35171         Windows incompatibility.  Suggested by Micah Cowan
35172         <micah@cowan.name>.
35173
35174 2008-04-20  Bruno Haible  <bruno@clisp.org>
35175
35176         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
35177         unistr/u8-mblen.
35178
35179 2008-04-20  Bruno Haible  <bruno@clisp.org>
35180
35181         Fix test failure on platforms with non-GNU iconv.
35182         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
35183         (U_TO_U8): Use it, rather than u16_to_u8.
35184         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
35185         units at the end of the input string.
35186         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
35187
35188 2008-04-20  Bruno Haible  <bruno@clisp.org>
35189
35190         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
35191         when the resulting length is 0.
35192         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
35193
35194 2008-04-20  Bruno Haible  <bruno@clisp.org>
35195
35196         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
35197         works.
35198         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
35199
35200 2008-04-20  Bruno Haible  <bruno@clisp.org>
35201
35202         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
35203         * modules/tsearch-tests (configure.ac): Test for initstate function.
35204
35205 2008-04-20  Bruno Haible  <bruno@clisp.org>
35206
35207         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
35208         for nlink_t if missing.
35209         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
35210
35211 2008-04-19  Bruno Haible  <bruno@clisp.org>
35212
35213         Work around snprintf bug on Linux libc5.
35214         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
35215         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35216         gl_SNPRINTF_SIZE1.
35217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35218         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
35219         that test failed.
35220         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35221         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
35222         * modules/snprintf (Files): Add m4/printf.m4.
35223         * modules/vsnprintf (Files): Likewise.
35224         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
35225         * doc/posix-functions/vsnprintf.texi: Likewise.
35226
35227 2008-04-19  Bruno Haible  <bruno@clisp.org>
35228
35229         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
35230         from 0.0058 to less than 10^-7.
35231
35232 2008-04-19  Bruno Haible  <bruno@clisp.org>
35233
35234         Fix rounding when a precision is given.
35235         * lib/vasnprintf.c (is_borderline): New function.
35236         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
35237         9...9x.
35238         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
35239         %e, %g.
35240         * tests/test-vasprintf-posix.c (test_function): Likewise.
35241         * tests/test-snprintf-posix.h (test_function): Likewise.
35242         * tests/test-sprintf-posix.h (test_function): Likewise.
35243         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
35244         * tests/test-printf-posix.h (test_function): Likewise.
35245         * tests/test-printf-posix.output: Update.
35246         Reported by John Darrington <john@darrington.wattle.id.au> via
35247         Ben Pfaff <blp@cs.stanford.edu>.
35248
35249 2008-04-18  Simon Josefsson  <simon@josefsson.org>
35250
35251         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
35252         Suggested by Bruno Haible <bruno@clisp.org>.
35253
35254 2008-04-17  Bruno Haible  <bruno@clisp.org>
35255
35256         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
35257         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
35258         implementation.
35259         Patch by Bruce Merry <bmerry@gmail.com>.
35260
35261 2008-04-17  Simon Josefsson  <simon@josefsson.org>
35262
35263         * doc/posix-functions/strftime.texi (strftime): Mention that %e
35264         doesn't work under Windows.
35265
35266 2008-04-16  Bruno Haible  <bruno@clisp.org>
35267
35268         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
35269         New macros.
35270         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
35271         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
35272         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
35273         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
35274         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
35275         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
35276         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
35277         macros.
35278         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
35279         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
35280         Northern Sotho, Uighur.
35281
35282 2008-04-16  Bruno Haible  <bruno@clisp.org>
35283
35284         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
35285         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
35286         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
35287         Reported by Daniel Bergström <daniel@octocode.com>.
35288
35289 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
35290             Bruno Haible  <bruno@clisp.org>
35291
35292         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
35293         function.
35294         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
35295         New functions, mostly extracted from gl_locale_name_default.
35296         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
35297
35298 2008-04-16  Eric Blake  <ebb9@byu.net>
35299
35300         Adjust strtod detection to catch glibc 2.7 bug.
35301         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
35302         Reported by John Gatewood Ham.
35303
35304 2008-04-16  Bruno Haible  <bruno@clisp.org>
35305
35306         Add tentative support for Linux libc5.
35307         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
35308         * lib/fpurge.c (fpurge): Likewise.
35309         * lib/freadable.c (freadable): Likewise.
35310         * lib/freadahead.c (freadahead): Likewise.
35311         * lib/freading.c (freading): Likewise.
35312         * lib/freadptr.c (freadptr): Likewise.
35313         * lib/freadseek.c (freadptrinc): Likewise.
35314         * lib/fseeko.c (rpl_fseeko): Likewise.
35315         * lib/fseterr.c (fseterr): Likewise.
35316         * lib/fwritable.c (fwritable): Likewise.
35317         * lib/fwriting.c (fwriting): Likewise.
35318         Reported by Alain Guibert <alguibert+bts@free.fr>.
35319
35320 2008-04-15  Bruno Haible  <bruno@clisp.org>
35321
35322         * modules/mathl (configure.ac): Define module indicator.
35323
35324 2008-04-15  Bruno Haible  <bruno@clisp.org>
35325
35326         * lib/logl.c (logl): Remove unused variables.
35327
35328 2008-04-15  Bruno Haible  <bruno@clisp.org>
35329
35330         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
35331         fails.
35332
35333 2008-04-15  Bruno Haible  <bruno@clisp.org>
35334
35335         * lib/trim.c (trim2): Fix argument of isspace() macro.
35336
35337 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
35338
35339         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
35340         to 0.
35341         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
35342
35343 2008-04-14  Bruno Haible  <bruno@clisp.org>
35344
35345         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
35346         AC_LANG_PROGRAM argument.
35347         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
35348         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
35349         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35350         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35351         * m4/math_h.m4 (gl_MATH_H): Likewise.
35352         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
35353         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35354         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
35355         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
35356         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
35357         * m4/regex.m4 (gl_REGEX): Likewise.
35358         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
35359         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
35360         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35361         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
35362         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35363         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35364         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35365         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35366
35367 2008-04-14  Jim Meyering  <meyering@redhat.com>
35368
35369         test-strtod: fix typos: s/abs/fabs/
35370         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
35371
35372 2008-04-13  Bruno Haible  <bruno@clisp.org>
35373
35374         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
35375         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
35376         module is also used and while not building the reloc-wrapper.
35377
35378 2008-04-13  Bruno Haible  <bruno@clisp.org>
35379
35380         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
35381
35382 2008-04-13  Bruno Haible  <bruno@clisp.org>
35383
35384         Fix AIX compilation failure introduced on 2008-04-02.
35385         * tests/test-frexp.c (exp): Undefine before redefining.
35386         * tests/test-frexpl.c (exp): Likewise.
35387
35388 2008-04-13  Bruno Haible  <bruno@clisp.org>
35389
35390         Work around a HP-UX stdio bug.
35391         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
35392         * tests/test-ftello.c (main): Likewise.
35393         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
35394         * doc/posix-functions/ftello.texi: Likewise.
35395
35396 2008-04-13  Bruno Haible  <bruno@clisp.org>
35397
35398         Make test-signbit pass on HP-UX/hppa.
35399         * tests/test-signbit.c (minus_zerol): New variable.
35400         (test_signbitl): Use it.
35401
35402 2008-04-13  Bruno Haible  <bruno@clisp.org>
35403
35404         Make truncl work on OSF/1 4.0.
35405         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
35406         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35407         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
35409         HAVE_DECL_TRUNCL.
35410         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
35411         HAVE_DECL_TRUNCL.
35412         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
35413
35414 2008-04-13  Bruno Haible  <bruno@clisp.org>
35415
35416         * lib/unictype.h: Remove trailing comma from enumeration definitions.
35417
35418 2008-04-13  Bruno Haible  <bruno@clisp.org>
35419
35420         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
35421         expression, so as to avoid HP-UX 11 cc compiler bug.
35422
35423 2008-04-13  Bruno Haible  <bruno@clisp.org>
35424
35425         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
35426
35427 2008-04-13  Bruno Haible  <bruno@clisp.org>
35428
35429         * lib/git-merge-changelog.c: Remove empty declaration outside of
35430         functions.
35431
35432 2008-04-13  Bruno Haible  <bruno@clisp.org>
35433
35434         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
35435
35436 2008-04-13  Bruno Haible  <bruno@clisp.org>
35437
35438         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
35439         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
35440         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
35441         also if it exists but lacks definitions of the SHUT_* macros.
35442         * modules/sys_socket (Description): Update.
35443         Reported by Elbert Pol <e.pol@chello.nl>.
35444
35445 2008-04-13  Bruno Haible  <bruno@clisp.org>
35446
35447         * lib/localcharset.c (OS2): Don't redefine if already defined.
35448         Reported by Elbert Pol <e.pol@chello.nl>.
35449
35450 2008-04-13  Bruno Haible  <bruno@clisp.org>
35451
35452         * lib/binary-io.h [__EMX__]: Include <io.h>.
35453         Reported by Elbert Pol <e.pol@chello.nl>.
35454
35455 2008-04-12  Bruno Haible  <bruno@clisp.org>
35456
35457         * lib/fpucw.h: Enable the definitions also for x86_64.
35458         Needed for NetBSD/x86_64.
35459         Reported by Thomas Klausner <tk@giga.or.at>.
35460
35461 2008-04-12  Bruno Haible  <bruno@clisp.org>
35462
35463         * tests/test-strtod.c: Include isnand.h.
35464         (main): Use isnand instead of isnan.
35465         Reported by Jim Meyering.
35466
35467 2008-04-12  Bruno Haible  <bruno@clisp.org>
35468
35469         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
35470         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35471
35472 2008-04-12  Jim Meyering  <meyering@redhat.com>
35473
35474         * m4/math_h.m4 (gl_MATH_H): Fix typos.
35475
35476 2008-04-12  Bruno Haible  <bruno@clisp.org>
35477
35478         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
35479         Reported by Elbert Pol <e.pol@chello.nl>.
35480
35481 2008-04-12  Eric Blake  <ebb9@byu.net>
35482
35483         Work around Solaris 10 math.h bug.
35484         * m4/math_h.m4 (gl_MATH_H): Check for bug.
35485         (gl_MATH_H_DEFAULTS): Set up default.
35486         * modules/math (Makefile.am): Replace new indicators.
35487         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
35488         * tests/test-math.c (main): Test this.
35489         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
35490         * doc/posix-headers/math.texi (math.h): Mention bug.
35491         Reported by Nelson H. F. Beebe and Jim Meyering.
35492
35493 2008-04-11  Bruno Haible  <bruno@clisp.org>
35494
35495         Adapt to future versions of Apple GCC.
35496         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
35497         Reported by Peter O'Gorman <peter@pogma.com>.
35498
35499 2008-04-11  Bruno Haible  <bruno@clisp.org>
35500
35501         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
35502
35503 2008-04-11  Bruno Haible  <bruno@clisp.org>
35504
35505         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
35506
35507         * modules/getaddrinfo-tests (Makefile.am): Define
35508         test_getaddrinfo_LDADD.
35509
35510 2008-04-11  Bruno Haible  <bruno@clisp.org>
35511
35512         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
35513         (init): Fix syntax error.
35514         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
35515         is declared.
35516
35517 2008-04-11  Bruno Haible  <bruno@clisp.org>
35518
35519         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
35520         * modules/glob (Depends-on): Add stdbool.
35521
35522 2008-04-11  Bruno Haible  <bruno@clisp.org>
35523
35524         * lib/trim.c: Include <string.h>.
35525
35526 2008-04-11  Eric Blake  <ebb9@byu.net>
35527
35528         Avoid compile failure on OS/2.
35529         * lib/regex_internal.h (internal_function): Disable optimization
35530         on OS/2 (__EMX__), where it caused compiler error.
35531         Reported by Elbert Pol.
35532
35533 2008-04-11  Bruno Haible  <bruno@clisp.org>
35534
35535         Flush the standard error stream before aborting. Needed on mingw.
35536         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
35537         * tests/test-array_list.c (ASSERT): Likewise.
35538         * tests/test-array_oset.c (ASSERT): Likewise.
35539         * tests/test-avltree_list.c (ASSERT): Likewise.
35540         * tests/test-avltree_oset.c (ASSERT): Likewise.
35541         * tests/test-avltreehash_list.c (ASSERT): Likewise.
35542         * tests/test-binary-io.c (ASSERT): Likewise.
35543         * tests/test-byteswap.c (ASSERT): Likewise.
35544         * tests/test-c-ctype.c (ASSERT): Likewise.
35545         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
35546         * tests/test-c-strcasestr.c (ASSERT): Likewise.
35547         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
35548         * tests/test-c-strstr.c (ASSERT): Likewise.
35549         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
35550         * tests/test-canonicalize.c (ASSERT): Likewise.
35551         * tests/test-carray_list.c (ASSERT): Likewise.
35552         * tests/test-ceilf1.c (ASSERT): Likewise.
35553         * tests/test-ceilf2.c (ASSERT): Likewise.
35554         * tests/test-ceill.c (ASSERT): Likewise.
35555         * tests/test-count-one-bits.c (ASSERT): Likewise.
35556         * tests/test-fbufmode.c (ASSERT): Likewise.
35557         * tests/test-fflush2.c (ASSERT): Likewise.
35558         * tests/test-floorf1.c (ASSERT): Likewise.
35559         * tests/test-floorf2.c (ASSERT): Likewise.
35560         * tests/test-floorl.c (ASSERT): Likewise.
35561         * tests/test-fopen.c (ASSERT): Likewise.
35562         * tests/test-fpending.c (ASSERT): Likewise.
35563         * tests/test-fprintf-posix.c (ASSERT): Likewise.
35564         * tests/test-fpurge.c (ASSERT): Likewise.
35565         * tests/test-freadable.c (ASSERT): Likewise.
35566         * tests/test-freadahead.c (ASSERT): Likewise.
35567         * tests/test-freading.c (ASSERT): Likewise.
35568         * tests/test-freadptr.c (ASSERT): Likewise.
35569         * tests/test-freadptr2.c (ASSERT): Likewise.
35570         * tests/test-freadseek.c (ASSERT): Likewise.
35571         * tests/test-freopen.c (ASSERT): Likewise.
35572         * tests/test-frexp.c (ASSERT): Likewise.
35573         * tests/test-frexpl.c (ASSERT): Likewise.
35574         * tests/test-fseek.c (ASSERT): Likewise.
35575         * tests/test-fseeko.c (ASSERT): Likewise.
35576         * tests/test-fstrcmp.c (ASSERT): Likewise.
35577         * tests/test-ftell.c (ASSERT): Likewise.
35578         * tests/test-ftello.c (ASSERT): Likewise.
35579         * tests/test-func.c (ASSERT): Likewise.
35580         * tests/test-fwritable.c (ASSERT): Likewise.
35581         * tests/test-fwriting.c (ASSERT): Likewise.
35582         * tests/test-getdelim.c (ASSERT): Likewise.
35583         * tests/test-getline.c (ASSERT): Likewise.
35584         * tests/test-i-ring.c (ASSERT): Likewise.
35585         * tests/test-iconv-utf.c (ASSERT): Likewise.
35586         * tests/test-iconv.c (ASSERT): Likewise.
35587         * tests/test-isfinite.c (ASSERT): Likewise.
35588         * tests/test-isnand.c (ASSERT): Likewise.
35589         * tests/test-isnanf.c (ASSERT): Likewise.
35590         * tests/test-isnanl.h (ASSERT): Likewise.
35591         * tests/test-ldexpl.c (ASSERT): Likewise.
35592         * tests/test-linked_list.c (ASSERT): Likewise.
35593         * tests/test-linkedhash_list.c (ASSERT): Likewise.
35594         * tests/test-localename.c (ASSERT): Likewise.
35595         * tests/test-lseek.c (ASSERT): Likewise.
35596         * tests/test-mbscasecmp.c (ASSERT): Likewise.
35597         * tests/test-mbscasestr1.c (ASSERT): Likewise.
35598         * tests/test-mbscasestr2.c (ASSERT): Likewise.
35599         * tests/test-mbscasestr3.c (ASSERT): Likewise.
35600         * tests/test-mbscasestr4.c (ASSERT): Likewise.
35601         * tests/test-mbschr.c (ASSERT): Likewise.
35602         * tests/test-mbscspn.c (ASSERT): Likewise.
35603         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
35604         * tests/test-mbspbrk.c (ASSERT): Likewise.
35605         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
35606         * tests/test-mbsrchr.c (ASSERT): Likewise.
35607         * tests/test-mbsspn.c (ASSERT): Likewise.
35608         * tests/test-mbsstr1.c (ASSERT): Likewise.
35609         * tests/test-mbsstr2.c (ASSERT): Likewise.
35610         * tests/test-mbsstr3.c (ASSERT): Likewise.
35611         * tests/test-memchr2.c (ASSERT): Likewise.
35612         * tests/test-memmem.c (ASSERT): Likewise.
35613         * tests/test-open.c (ASSERT): Likewise.
35614         * tests/test-printf-frexp.c (ASSERT): Likewise.
35615         * tests/test-printf-frexpl.c (ASSERT): Likewise.
35616         * tests/test-printf-posix.c (ASSERT): Likewise.
35617         * tests/test-quotearg.c (ASSERT): Likewise.
35618         * tests/test-rbtree_list.c (ASSERT): Likewise.
35619         * tests/test-rbtree_oset.c (ASSERT): Likewise.
35620         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
35621         * tests/test-round1.c (ASSERT): Likewise.
35622         * tests/test-roundf1.c (ASSERT): Likewise.
35623         * tests/test-roundl.c (ASSERT): Likewise.
35624         * tests/test-signbit.c (ASSERT): Likewise.
35625         * tests/test-sleep.c (ASSERT): Likewise.
35626         * tests/test-snprintf-posix.c (ASSERT): Likewise.
35627         * tests/test-snprintf.c (ASSERT): Likewise.
35628         * tests/test-sprintf-posix.c (ASSERT): Likewise.
35629         * tests/test-stat-time.c (ASSERT): Likewise.
35630         * tests/test-strcasestr.c (ASSERT): Likewise.
35631         * tests/test-strerror.c (ASSERT): Likewise.
35632         * tests/test-striconv.c (ASSERT): Likewise.
35633         * tests/test-striconveh.c (ASSERT): Likewise.
35634         * tests/test-striconveha.c (ASSERT): Likewise.
35635         * tests/test-strsignal.c (ASSERT): Likewise.
35636         * tests/test-strstr.c (ASSERT): Likewise.
35637         * tests/test-strtod.c (ASSERT): Likewise.
35638         * tests/test-trunc1.c (ASSERT): Likewise.
35639         * tests/test-trunc2.c (ASSERT): Likewise.
35640         * tests/test-truncf1.c (ASSERT): Likewise.
35641         * tests/test-truncf2.c (ASSERT): Likewise.
35642         * tests/test-truncl.c (ASSERT): Likewise.
35643         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
35644         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
35645         * tests/test-vasnprintf.c (ASSERT): Likewise.
35646         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
35647         * tests/test-vasprintf.c (ASSERT): Likewise.
35648         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
35649         * tests/test-vprintf-posix.c (ASSERT): Likewise.
35650         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
35651         * tests/test-vsnprintf.c (ASSERT): Likewise.
35652         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
35653         * tests/test-wcwidth.c (ASSERT): Likewise.
35654         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
35655         * tests/test-xprintf-posix.c (ASSERT): Likewise.
35656         * tests/test-xvasprintf.c (ASSERT): Likewise.
35657         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
35658         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
35659         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
35660         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
35661         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
35662         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
35663         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
35664         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
35665         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
35666         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
35667         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
35668         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
35669         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
35670         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
35671         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
35672         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
35673         * tests/unictype/test-block_list.c (ASSERT): Likewise.
35674         * tests/unictype/test-block_of.c (ASSERT): Likewise.
35675         * tests/unictype/test-block_test.c (ASSERT): Likewise.
35676         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
35677         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
35678         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
35679         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
35680         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
35681         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
35682         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
35683         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
35684         * tests/unictype/test-combining.c (ASSERT): Likewise.
35685         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
35686         * tests/unictype/test-digit.c (ASSERT): Likewise.
35687         * tests/unictype/test-mirror.c (ASSERT): Likewise.
35688         * tests/unictype/test-numeric.c (ASSERT): Likewise.
35689         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
35690         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
35691         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
35692         * tests/unictype/test-scripts.c (ASSERT): Likewise.
35693         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
35694         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
35695         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
35696         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
35697         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
35698         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
35699         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
35700         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
35701         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
35702         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
35703         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
35704         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
35705         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
35706         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
35707         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
35708         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
35709         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
35710         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
35711         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
35712         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
35713         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
35714         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
35715         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
35716         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
35717         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
35718         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
35719         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
35720         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
35721         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
35722         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
35723         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
35724         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
35725         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
35726         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
35727         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
35728         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
35729         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
35730         Reported by Eric Blake.
35731
35732 2008-04-11  Bruno Haible  <bruno@clisp.org>
35733
35734         * lib/wchar.in.h: Tweak comment.
35735
35736 2008-04-11  Bruno Haible  <bruno@clisp.org>
35737
35738         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
35739         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
35740         gl_COMMON.
35741         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
35742
35743 2008-04-11  Bruno Haible  <bruno@clisp.org>
35744
35745         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
35746
35747 2008-04-11  Simon Josefsson  <simon@josefsson.org>
35748
35749         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
35750         of attempting to use non-existing /dev/*random.  Based on patch
35751         from Adam Strzelecki <ono@java.pl> in
35752         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
35753
35754 2008-04-08  Bruno Haible  <bruno@clisp.org>
35755
35756         Add tentative support for emx+gcc.
35757         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
35758         * lib/fpurge.c (fpurge): Likewise.
35759         * lib/freadable.c (freadable): Likewise.
35760         * lib/freadahead.c (freadahead): Likewise.
35761         * lib/freading.c (freading): Likewise.
35762         * lib/freadptr.c (freadptr): Likewise.
35763         * lib/freadseek.c (freadptrinc): Likewise.
35764         * lib/fseeko.c (rpl_fseeko): Likewise.
35765         * lib/fseterr.c (fseterr): Likewise.
35766         * lib/fwritable.c (fwritable): Likewise.
35767         * lib/fwriting.c (fwriting): Likewise.
35768         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
35769
35770 2008-04-09  Eric Blake  <ebb9@byu.net>
35771
35772         Avoid some autoconf warnings.
35773         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
35774         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
35775         * m4/afs.m4 (gl_AFS): Likewise.
35776         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
35777         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
35778         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35779         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
35780         (gl_INTEGER_TYPE_SUFFIX): Likewise.
35781         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
35782         (AC_CHECK_DECLS_ONCE): Likewise.
35783         Rename file...
35784         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
35785         gnulib-tool requires autoconf 2.59 or better.
35786         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
35787
35788 2008-04-08  Eric Blake  <ebb9@byu.net>
35789
35790         Use 'git describe --match' if present (added in git 1.5.5).
35791         * build-aux/git-version-gen: Limit result to tags that match 'v*'
35792         if possible.
35793
35794 2008-04-08  Bruno Haible  <bruno@clisp.org>
35795
35796         Add tentative support for OpenServer.
35797         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
35798         _ptr, _cnt.
35799         * lib/fpurge.c (fpurge): Likewise.
35800         * lib/freadable.c (freadable): Likewise.
35801         * lib/freadahead.c (freadahead): Likewise.
35802         * lib/freading.c (freading): Likewise.
35803         * lib/freadptr.c (freadptr): Likewise.
35804         * lib/freadseek.c (freadptrinc): Likewise.
35805         * lib/fseeko.c (rpl_fseeko): Likewise.
35806         * lib/fseterr.c (fseterr): Likewise.
35807         * lib/fwritable.c (fwritable): Likewise.
35808         * lib/fwriting.c (fwriting): Likewise.
35809         Reported by Roger Cornelius <rac@tenzing.org> and
35810         Brian K. White <brian@aljex.com>.
35811
35812 2008-04-06  Jim Meyering  <meyering@redhat.com>
35813
35814         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
35815
35816 2008-04-06  Bruno Haible  <bruno@clisp.org>
35817
35818         Avoid possible error with non-ASCII bytes in UTF-8 locales.
35819         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
35820         * tests/test-printf-posix.sh: Likewise.
35821         * tests/test-vfprintf-posix.sh: Likewise.
35822         * tests/test-vprintf-posix.sh: Likewise.
35823         * tests/test-xprintf-posix.sh: Likewise.
35824
35825 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35826
35827         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
35828         hide error from 'ls', needed on OS/2.
35829         Report by Elbert Pol <elbert.pol@gmail.com>.
35830
35831 2008-04-04  Eric Blake  <ebb9@byu.net>
35832
35833         Make test-fseeko.c failures meaningful.
35834         * tests/test-fseeko.c: Print line number on failure.
35835         * tests/test-fseek.c: Likewise.
35836         Reported by Nelson H. F. Beebe.
35837
35838         Improve strtod bug detection check.
35839         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
35840         required for Solaris 10.
35841         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
35842
35843 2008-04-04  Bruno Haible  <bruno@clisp.org>
35844
35845         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
35846         by m4/setenv.m4.
35847
35848 2008-04-03  Eric Blake  <ebb9@byu.net>
35849
35850         Ensure sane .version contents.
35851         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
35852         version string.
35853         * build-aux/git-version-gen: Improve documentation.
35854
35855         Make GNU make output nicer.
35856         * top/GNUmakefile [!_have-Makefile]: Add dependency on
35857         MAKECMDGOALS to enforce message for all command line targets.  Set
35858         srcdir for use in maint.mk.
35859
35860         Another maintainer tweak.
35861         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
35862         a target that regenerates version.
35863
35864 2008-04-03  Jim Meyering  <meyering@redhat.com>
35865
35866         vc-list-files: don't cause coreutils "make po-check" failure
35867         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
35868
35869 2008-04-03  Eric Blake  <ebb9@byu.net>
35870
35871         Allow VPATH usage of vc-list-files.
35872         * build-aux/vc-list-files (scriptversion): Add timestamp.
35873         (options): Add --help, --version, -C.
35874         (CVS): Support installed cvsu.
35875
35876 2008-04-02  Bruno Haible  <bruno@clisp.org>
35877
35878         Avoid some "statement with no effect" warnings from gcc.
35879         * tests/test-wctype.c (main): Explicitly ignore unused values.
35880         Reported by Jim Meyering.
35881
35882 2008-04-02  Jim Meyering  <meyering@redhat.com>
35883
35884         Avoid some warnings from "gcc -Wshadow".
35885         * tests/test-frexp.c (exp): Define to a different identifier.
35886         * tests/test-frexpl.c (exp): Likewise.
35887
35888 2008-04-03  Jim Meyering  <meyering@redhat.com>
35889
35890         bootstrap: remove dangling *.[ch] symlinks from lib
35891         * build-aux/bootstrap [dangling symlink removal]: Move find's
35892         -depth option to precede all others, to avoid a warning.
35893         Remove *.[ch] files too, and from "$source_base" (usually lib/).
35894
35895 2008-04-02  Bruno Haible  <bruno@clisp.org>
35896
35897         Avoid some warnings from "gcc -Wshadow".
35898         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
35899         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
35900         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
35901         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
35902         Reported by Jim Meyering.
35903
35904 2008-04-01  Bruno Haible  <bruno@clisp.org>
35905
35906         Fix test to work on IRIX 6.5 with cc.
35907         * tests/test-math.c (numeric_equal): New function.
35908         (main): Use it.
35909
35910 2008-04-01  Bruno Haible  <bruno@clisp.org>
35911
35912         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
35913
35914 2008-04-01  Bruno Haible  <bruno@clisp.org>
35915
35916         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
35917         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35918         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
35919         (Depends-on): Remove math.
35920
35921         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
35922         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35923         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
35924         (Depends-on): Remove math.
35925
35926         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
35927         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35928         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
35929         (Depends-on): Remove math.
35930         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
35931         (Depends-on): Remove math.
35932
35933         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
35934         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35935         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
35936         (Depends-on): Remove math.
35937         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
35938         (Depends-on): Remove math.
35939
35940         * tests/test-round1.c: Include nan.h.
35941         (main): Use NaNd instead of NAN.
35942         * modules/round-tests (Files): Add tests/nan.h.
35943
35944         * tests/test-trunc1.c: Include nan.h.
35945         (main): Use NaNd instead of NAN.
35946         * modules/trunc-tests (Files): Add tests/nan.h.
35947
35948         * tests/test-roundf1.c: Include nan.h.
35949         (main): Use NaNf instead of NAN.
35950         * modules/roundf-tests (Files): Add tests/nan.h.
35951
35952         * tests/test-truncf1.c: Include nan.h.
35953         (main): Use NaNf instead of NAN.
35954         * modules/truncf-tests (Files): Add tests/nan.h.
35955
35956         * tests/test-ceilf1.c: Include nan.h.
35957         (main): Use NaNf instead of NAN.
35958         * modules/ceilf-tests (Files): Add tests/nan.h.
35959
35960         * tests/test-floorf1.c: Include nan.h.
35961         (main): Use NaNf instead of NAN.
35962         * modules/floorf-tests (Files): Add tests/nan.h.
35963
35964         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
35965         (main): Use NaNf instead of NAN.
35966         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
35967
35968         * tests/test-isnand.c: Include nan.h instead of <math.h>.
35969         (main): Use NaNd instead of NAN.
35970         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
35971
35972         * tests/test-frexp.c: Include nan.h.
35973         (main): Use NaNd instead of NAN.
35974         * modules/frexp-tests (Files): Add tests/nan.h.
35975
35976         * lib/isnan.c: Don't include <math.h>.
35977         (FUNC): Don't use NAN macro.
35978         * modules/isnand-nolibm (Depends-on): Remove math.
35979         * modules/isnanf-nolibm (Depends-on): Remove math.
35980         * modules/isnanl (Depends-on): Remove math.
35981         * modules/isnanl-nolibm (Depends-on): Remove math.
35982
35983         * tests/nan.h: New file.
35984
35985 2008-04-01  Eric Blake  <ebb9@byu.net>
35986
35987         Fix typos.
35988         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
35989         values to be the right type.
35990
35991         For now, cater to gnulib strtod inaccuracies.
35992         * tests/test-strtod.c (main): Allow 1-ulp error on expected
35993         fractional results.  While not as nice from a QoI perspective, it
35994         is a quicker patch than correctly implementing decimal to binary
35995         rounding.
35996
35997 2008-03-31  Eric Blake  <ebb9@byu.net>
35998
35999         Guarantee a definition of NAN.
36000         * lib/math.in.h (NAN): Define if missing.
36001         * tests/test-math.c (main): Test it.
36002         * doc/posix-headers/math.texi (math.h): Document this.
36003         * lib/isnan.c (rpl_isnand): Use it.
36004         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
36005         * tests/test-floorf1.c (NaN): Likewise.
36006         * tests/test-frexp.c (NaN): Likewise.
36007         * tests/test-isnand.c (NaN): Likewise.
36008         * tests/test-isnanf.c (NaN): Likewise.
36009         * tests/test-round1.c (NaN): Likewise.
36010         * tests/test-roundf1.c (NaN): Likewise.
36011         * tests/test-snprintf-posix.h (NaN): Likewise.
36012         * tests/test-sprintf-posix.h (NaN): Likewise.
36013         * tests/test-trunc1.c (NaN): Likewise.
36014         * tests/test-truncf1.c (NaN): Likewise.
36015         * tests/test-vasnprintf-posix.c (NaN): Likewise.
36016         * tests/test-vasprintf-posix.c (NaN): Likewise.
36017         * modules/isnand-nolibm (Depends-on): Add math.
36018         * modules/isnanf-nolibm (Depends-on): Likewise.
36019         * modules/isnanl (Depends-on): Likewise.
36020         * modules/isnanl-nolibm (Depends-on): Likewise.
36021         * modules/snprintf-posix-tests (Depends-on): Likewise.
36022         * modules/sprintf-posix-tests (Depends-on): Likewise.
36023         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
36024         * modules/vsprintf-posix-tests (Depends-on): Likewise.
36025         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
36026         * modules/vasprintf-posix-tests (Depends-on): Likewise.
36027
36028 2008-03-31  Bruno Haible  <bruno@clisp.org>
36029
36030         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
36031         * doc/posix-functions/strtod.texi: Likewise.
36032
36033 2008-03-31  Bruno Haible  <bruno@clisp.org>
36034
36035         * tests/test-strtod.c (main): Don't use C99 syntax.
36036
36037 2008-03-31  Bruno Haible  <bruno@clisp.org>
36038
36039         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
36040         Reported by Eric Blake.
36041
36042 2008-03-31  Jim Meyering  <meyering@redhat.com>
36043
36044         Don't compare actual signbit return values.
36045         * tests/test-strtod.c (main): Rather, compare only their
36046         zero/non-zero nature.
36047
36048 2008-03-31  Eric Blake  <ebb9@byu.net>
36049
36050         More strtod documentation.
36051         * doc/posix-functions/strtod.texi (strtod): Interpret more test
36052         failures as distinct bugs.
36053
36054 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36055
36056         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
36057         Problem reported by Erik Benada in
36058         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
36059
36060 2008-03-30  Bruno Haible  <bruno@clisp.org>
36061
36062         * tests/test-strtod.c: Add comments about which assertion fails on which
36063         platform.
36064         * doc/posix-functions/strtod.texi: Add info about many more platforms.
36065
36066 2008-03-30  Eric Blake  <ebb9@byu.net>
36067
36068         Test signbit behavior on zeros.
36069         * tests/test-signbit.c (test_signbitf): Add tests for zero.
36070         (test_signbitd, test_signbitl): Likewise.
36071
36072         More strtod touchups.
36073         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
36074         sign of negative underflow, for now.  Use .5, not .1.
36075         * doc/posix-functions/strtod.texi (strtod): Mention these
36076         limitations.
36077         Reported by Jim Meyering.
36078
36079 2008-03-30  Bruno Haible  <bruno@clisp.org>
36080
36081         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
36082         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
36083
36084 2008-03-30  Bruno Haible  <bruno@clisp.org>
36085
36086         Avoid failure when attempting to return empty iconv results on some
36087         platforms.
36088         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
36089         allocation, don't report ENOMEM when the resulting string is empty.
36090
36091 2008-03-30  Bruno Haible  <bruno@clisp.org>
36092
36093         Fix buffer overrun.
36094         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
36095         Don't consider the width for tmp_length. Check count against tmp_length
36096         before doing the padding. Ensure enough allocation during padding.
36097
36098 2008-03-30  Eric Blake  <ebb9@byu.net>
36099
36100         strtod touchups.
36101         * lib/strtod.c (strtod): Avoid compiler warnings.
36102         Reported by Jim Meyering.
36103
36104 2008-03-30  Bruno Haible  <bruno@clisp.org>
36105
36106         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
36107         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
36108         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
36109         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
36110         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
36111         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
36112         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
36113         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
36114
36115         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
36116         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
36117         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
36118         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
36119         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
36120         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
36121         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
36122         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
36123
36124         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
36125         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
36126         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
36127         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
36128         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
36129         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
36130         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
36131         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
36132
36133         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
36134         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
36135
36136         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
36137         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
36138
36139         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
36140         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
36141
36142         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
36143         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
36144         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
36145
36146         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
36147         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
36148         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
36149
36150         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
36151         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
36152         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
36153
36154         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
36155         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
36156         * modules/vasprintf (Depends-on): Add EOVERFLOW.
36157
36158         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
36159         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
36160         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
36161         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
36162         (Depends-on): Add EOVERFLOW.
36163         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
36164         (Depends-on): Add EOVERFLOW.
36165         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36166         (Depends-on): Add EOVERFLOW.
36167         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36168         (Depends-on): Add EOVERFLOW.
36169         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36170         (Depends-on): Add EOVERFLOW.
36171         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36172         (Depends-on): Add EOVERFLOW.
36173         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36174         (Depends-on): Add EOVERFLOW.
36175         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36176         (Depends-on): Add EOVERFLOW.
36177
36178         * lib/sprintf.c (EOVERFLOW): Remove fallback.
36179         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
36180         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
36181
36182         * lib/snprintf.c (EOVERFLOW): Remove fallback.
36183         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
36184         * modules/snprintf (Depends-on): Add EOVERFLOW.
36185
36186         * lib/poll.c (EOVERFLOW): Remove fallback.
36187         * modules/poll (Depends-on): Add EOVERFLOW.
36188
36189         * lib/getugroups.c (EOVERFLOW): Remove fallback.
36190         * modules/getugroups (Depends-on): Add EOVERFLOW.
36191
36192         * lib/getdelim.c (EOVERFLOW): Remove fallback.
36193         * modules/getdelim (Depends-on): Add EOVERFLOW.
36194
36195         * lib/ftell.c (EOVERFLOW): Remove fallback.
36196         * modules/ftell (Depends-on): Add EOVERFLOW.
36197
36198         * lib/fprintf.c (EOVERFLOW): Remove fallback.
36199         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
36200         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
36201
36202         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
36203
36204         * modules/EOVERFLOW-tests: New file.
36205         * tests/test-EOVERFLOW.c: New file.
36206
36207         * modules/EOVERFLOW: New file.
36208         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
36209
36210 2008-03-30  Bruno Haible  <bruno@clisp.org>
36211
36212         Fix bug introduced on 2007-06-10.
36213         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
36214         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
36215
36216 2008-03-30  Bruno Haible  <bruno@clisp.org>
36217
36218         Improve freadseek's efficiency after ungetc.
36219         * lib/freadseek.c: Include freadahead.h.
36220         (freadptrinc): New function, extracted from freadseek.
36221         (freadseek): Use it in a loop. Use freadahead to determine the number
36222         of loop iterations.
36223         * modules/freadseek (Depends-on): Add freadahead.
36224         (configure.ac): Require AC_C_INLINE.
36225
36226 2008-03-30  Bruno Haible  <bruno@clisp.org>
36227
36228         * lib/freadseek.c (freadseek): Don't ignore the return value of
36229         freadptr.
36230
36231 2008-03-29  Eric Blake  <ebb9@byu.net>
36232
36233         Add hex float support.
36234         * modules/strtod (Depends-on): Add c-ctype.
36235         (Link): Mention POW_LIB.
36236         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
36237         whitespace between 'e' and exponent.
36238         * tests/test-strtod.c (main): Enable hex float tests.
36239         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
36240         now provides.
36241
36242         Document various strtod bugs, with some fixes.
36243         * doc/posix-functions/strtod.texi (strtod): Document bugs with
36244         "-0x", "inf", "nan", and hex constants.
36245         * doc/posix-functions/atof.texi (atof): Likewise.
36246         * modules/stdlib (Makefile.am): Support strtod.
36247         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36248         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
36249         detect additional strtod bugs.
36250         * lib/stdlib.in.h (rpl_strtod): Add declarations.
36251         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
36252         bool where appropriate.  Parse 'inf' and 'nan'.
36253         * tests/test-strtod.c: New file.
36254         * modules/strtod (Depends-on): Add stdbool, stdlib.
36255         (configure.ac): Turn on module indicator.
36256         * modules/strtod-tests: New module.
36257
36258 2008-03-29  Eric Blake  <ebb9@byu.net>
36259
36260         Fix ftell on mingw.
36261         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
36262         * modules/ftell-tests (Depends-on): Add binary-io.
36263         * modules/ftello-tests (Depends-on): Likewise.
36264         * tests/test-ftell.c (main): Enhance test to cover behavior after
36265         ungetc.  Enforce binary mode.
36266         * tests/test-ftello.c (main): Likewise.
36267
36268         Pass test-freadseek on cygwin.
36269         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
36270         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
36271         ungetc buffer.
36272
36273         * tests/test-fflush2.c (main): Fix typo.
36274
36275 2008-03-29  Bruno Haible  <bruno@clisp.org>
36276
36277         * tests/test-fflush2.c (main): Temporarily disable the contents of
36278         this test.
36279         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
36280         Reported by Eric Blake.
36281
36282 2008-03-28  Simon Josefsson  <simon@josefsson.org>
36283
36284         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
36285         (GC_SHA224_DIGEST_SIZE): Add.
36286
36287         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
36288         (gc_hash_digest_length): Likewise.
36289         (gc_hash_buffer): Likewise.
36290
36291 2008-03-25  Bruno Haible  <bruno@clisp.org>
36292
36293         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
36294         detail which gettext release to use.
36295         Reported by Simon Josefsson.
36296
36297 2008-03-26  Jim Meyering  <meyering@redhat.com>
36298
36299         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
36300         * modules/gnumakefile (clean-GNUmakefile): Also, use
36301         test ... && ... || : syntax rather than if-then ... fi.
36302
36303         gnumakefile: Don't double-quote-expand $(VPATH) value.
36304         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
36305
36306 2008-03-24  Eric Blake  <ebb9@byu.net>
36307
36308         Alter GNUmakefile to install into top directory.
36309         * modules/maintainer-makefile: Split, and add dependency...
36310         * modules/gnumakefile: to this new module.
36311         * build-aux/GNUmakefile: Move...
36312         * top/GNUmakefile: ...here.
36313         * build-aux/maint.mk: Move...
36314         * top/maint.mk: ...here.
36315         * MODULES.html.sh (Support for maintaining...): Document new
36316         module.
36317
36318 2008-03-23  Bruno Haible  <bruno@clisp.org>
36319
36320         * gnulib-tool: New options --vc-files, --no-vc-files.
36321         (func_usage): Document them.
36322         (vc_files): New variable.
36323         (func_import): Consider vc_files.
36324         (func_create_testdir): Set vc_files to empty.
36325         Suggested by Jim Meyering and Karl Berry.
36326
36327 2008-03-23  Bruno Haible  <bruno@clisp.org>
36328
36329         Fix regex compilation error on HP-UX 11.
36330         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
36331         * modules/regex (Files): Add m4/mbstate_t.m4.
36332         Reported by Ton Voon <ton.voon@altinity.com>.
36333
36334 2008-03-23  Bruno Haible  <bruno@clisp.org>
36335
36336         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
36337
36338 2008-03-23  Eric Blake  <ebb9@byu.net>
36339             Bruno Haible  <bruno@clisp.org>
36340
36341         Install files from top/ in the destination directory.
36342         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36343         augmentation also for the files from top/.
36344         (func_import, func_create_testdir): Rewrite file names:
36345         top/filename -> filename.
36346
36347 2008-03-23  Bruno Haible  <bruno@clisp.org>
36348
36349         Tweak "gnulib --version" output.
36350         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
36351
36352 2008-03-23  Bruno Haible  <bruno@clisp.org>
36353
36354         Tweak "gnulib --version" output.
36355         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
36356         rather than contents of ChangeLog, when possible.
36357
36358 2008-03-21  Eric Blake  <ebb9@byu.net>
36359
36360         More --version tweaks.
36361         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
36362         date of last ChangeLog entry.
36363
36364 2008-03-21  Jim Meyering  <meyering@redhat.com>
36365
36366         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
36367
36368 2008-03-20  Eric Blake  <ebb9@byu.net>
36369
36370         VPATH fix.
36371         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
36372
36373 2008-03-20  Simon Josefsson  <simon@josefsson.org>
36374
36375         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
36376         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
36377
36378 2008-03-20  Eric Blake  <ebb9@byu.net>
36379
36380         Sync GNUmakefile with coreutils.
36381         * build-aux/GNUmakefile (have-Makefile): Rename...
36382         (_have-Makefile): ...to this, for namespace consideration.
36383         (GNUmakefile.cfg): Include, if present.
36384         (_autoreconf): Define a default.
36385         (_is-dist-target): New rule for rebuilds to pick up intra-release
36386         version.
36387         (maint-cfg.mk): Rename...
36388         (cfg.mk): ...to this.
36389
36390 2008-03-18  Jim Meyering  <meyering@redhat.com>
36391
36392         New script and module: mktempd
36393         * MODULES.html.sh (maint+release support): Add mktempd.
36394         * build-aux/mktempd: New file.
36395         * modules/mktempd: New file.
36396
36397 2008-03-15  Jim Meyering  <meyering@redhat.com>
36398
36399         Undo last change.
36400         * lib/sha1.c, lib/md5.c: 63 != ~63.
36401         Reported by Andreas Schwab.
36402
36403         sha1.c, md5.c: Hoist a redundant expression.
36404         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
36405         "ctx->buflen" only once, before calling *_process_block.
36406         * lib/md5.c (md5_process_bytes): Likewise.
36407
36408 2008-03-14  Eric Blake  <ebb9@byu.net>
36409
36410         Bump copyright year in files generated by gnulib-tool.
36411         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
36412         gnulib-tool, rather than hard-coding it.
36413
36414         Fix 'gnulib-tool --version' output to work with git.
36415         * gnulib-tool (func_gnulib_dir): New function, extracted from...
36416         (startup): ...here.
36417         (func_version): Use it to invoke git-version-gen, rather than
36418         relying on CVS keyword expansion.  Modernize wording.
36419         (cvsdatestamp, last_checkin_date, version): Kill unused
36420         variables.
36421
36422 2008-03-12  Jim Meyering  <meyering@redhat.com>
36423
36424         Recognize optional cast of the argument to free.
36425         * build-aux/useless-if-before-free: Update regexps.
36426
36427         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
36428
36429 2008-03-11  Bruno Haible  <bruno@clisp.org>
36430
36431         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
36432         by a single package.
36433         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
36434         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
36435         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
36436         Reported by Sam Steingold <sds@gnu.org>.
36437
36438 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36439
36440         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
36441         repositories.
36442
36443 2008-03-11  Bruno Haible  <bruno@clisp.org>
36444
36445         Avoid conflicts between local macro definitions.
36446         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
36447         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
36448
36449 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
36450             Bruno Haible  <bruno@clisp.org>
36451
36452         Make va_copy work with some version of xlc on AIX 5.1.
36453         * lib/stdarg.in.h: New file.
36454         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
36455         On AIX, use a <stdarg.h> file substitute.
36456         * modules/stdarg (Files): Add lib/stdarg.in.h.
36457         (Depends-on): Add include_next.
36458         (Makefile.am): Build a stdarg.h substitute if requested.
36459         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
36460
36461 2008-03-10  Bruno Haible  <bruno@clisp.org>
36462
36463         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
36464         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36465         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36466
36467 2008-03-10  Bruno Haible  <bruno@clisp.org>
36468
36469         * modules/stdlib (Depends-on): Add include_next, remove
36470         absolute-header.
36471
36472 2008-03-09  Bruno Haible  <bruno@clisp.org>
36473
36474         * lib/freadahead.h (freadahead): Document more precisely.
36475         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
36476         the sum of both buffer sizes.
36477         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
36478         * NEWS: Document the change.
36479
36480 2008-03-09  Bruno Haible  <bruno@clisp.org>
36481
36482         Extend freadptr to return also the buffer size.
36483         * lib/freadptr.h (freadptr): Add sizep argument.
36484         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
36485         (freadptr): Add sizep argument. Determine buffer size like freadahead
36486         does.
36487         * tests/test-freadptr.c: Don't include freadahead.h.
36488         (main): Adapt for new calling convention of freadptr.
36489         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
36490         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
36491         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
36492         tests/test-freadptr2.sh.
36493         (Depends): Remove freadahead.
36494         (TESTS): Add test-freadptr2.sh.
36495         (check_PROGRAMS): Add test-freadptr2.
36496
36497 2008-03-09  Bruno Haible  <bruno@clisp.org>
36498
36499         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
36500         Report and solution by Simon Josefsson.
36501
36502 2008-03-06  Bruno Haible  <bruno@clisp.org>
36503
36504         Make fflush after ungetc work on BSD platforms.
36505         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
36506         * tests/test-fflush2.c: New file.
36507         * tests/test-fflush2.sh: New file.
36508         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
36509         tests/test-fflush2.c.
36510         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
36511         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
36512
36513 2008-03-06  Eric Blake  <ebb9@byu.net>
36514
36515         Likewise for ftello.
36516         * modules/ftello (Dependencies): Add extensions.
36517         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
36518
36519 2008-03-06  Bruno Haible  <bruno@clisp.org>
36520
36521         * modules/fseeko (Dependencies): Add extensions.
36522         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
36523         Needed on glibc systems.
36524
36525 2008-03-06  Bruno Haible  <bruno@clisp.org>
36526
36527         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
36528         email address.
36529         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36530
36531 2008-03-06  Bruno Haible  <bruno@clisp.org>
36532
36533         * users.txt: Add libgnupdf.
36534
36535 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
36536
36537         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
36538         (Header File Substitutes, Function Substitutes,
36539         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
36540         (Build robot for gnulib): Fix typo.
36541
36542 2008-03-06  Bruno Haible  <bruno@clisp.org>
36543
36544         * doc/gnulib-tool.texi (VCS Issues): Small updates.
36545         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36546
36547 2008-03-06  Bruno Haible  <bruno@clisp.org>
36548
36549         * doc/func.texi: New file, extracted from doc/gnulib.texi.
36550         * doc/gnulib.texi: Include it.
36551
36552 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36553
36554         * modules/func (License): Change license to unlimited; there was
36555         no LGPL parts in the module anyway.
36556
36557 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36558
36559         * modules/__func__: Renamed to modules/func.
36560         * modules/__func__-tests: Renamed to modules/func-tests.
36561         * tests/test-__func__.c: Renamed to tests/test-func.c.
36562         * m4/__func__.m4: Renamed to m4/func.m4.
36563         * doc/gnulib.texi (__func__): Section renamed to func.
36564         Suggested by Eric Blake <ebb9@byu.net>.
36565
36566 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36567
36568         * doc/gnulib.texi (__func__): Use C99 terminology when talking
36569         about __func__.  Make example self-contained.  Suggested by Eric
36570         Blake <ebb9@byu.net>.
36571
36572         * tests/test-__func__.c (main): Avoid extraneous () around __func.
36573         Suggested by Eric Blake <ebb9@byu.net>.
36574
36575 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36576
36577         * modules/__func__: New file.
36578         * modules/__func__-tests: New file.
36579         * tests/test-__func__.c: New file.
36580         * m4/__func__.m4: New file.
36581         * doc/gnulib.texi (__func__): Document __func__ module.
36582
36583 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36584
36585         * modules/byteswap (License): Re-license as LGPLv2+.
36586
36587 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36588
36589         * doc/Makefile: Add pdf target.
36590
36591 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36592
36593         * modules/inline (License): Use 'unlimited', since there are only
36594         *.m4 files in this module.
36595
36596 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36597             Bruno Haible  <bruno@clisp.org>
36598
36599         Add support for HP C 7.1 on OpenVMS 8.3.
36600         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
36601
36602 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36603
36604         Update VMS specifics.
36605         * lib/getopt.c [VMS]: Remove include of unixlib.h.
36606
36607 2008-03-02  Jim Meyering  <meyering@redhat.com>
36608
36609         Remove the last dependency on the "free" module.
36610         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
36611         Reported by Bob Proulx.
36612
36613         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
36614
36615         Remove useless "if" tests before free.  Deprecate "free" module.
36616         * doc/posix-functions/free.texi: Mention that this
36617         module is no longer useful.
36618         * modules/free (Notice): Say this module is obsolete.
36619         * modules/readutmp (Depends-on): Remove free.
36620         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
36621         * lib/putenv.c (putenv): Likewise.
36622         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
36623         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
36624         * tests/test-c-strcasestr.c (main): Likewise.
36625         * tests/test-c-strstr.c (main): Likewise.
36626         * tests/test-mbscasestr1.c (main): Likewise.
36627         * tests/test-mbscasestr2.c (main): Likewise.
36628         * tests/test-mbsstr1.c (main): Likewise.
36629         * tests/test-mbsstr2.c (main): Likewise.
36630         * tests/test-memmem.c (main): Likewise.
36631         * tests/test-strcasestr.c (main): Likewise.
36632         * tests/test-striconv.c (main): Likewise.
36633         * tests/test-striconveh.c (main): Likewise.
36634         * tests/test-striconveha.c (main): Likewise.
36635         * tests/test-strstr.c (main): Likewise.
36636
36637         * build-aux/git-version-gen: Adjust a comment and the Usage string.
36638
36639         bootstrap: sync from coreutils again
36640         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
36641
36642 2008-03-01  Jim Meyering  <meyering@redhat.com>
36643
36644         bootstrap: sync from coreutils
36645         * build-aux/bootstrap (update_po_files): Copy a .po file into place
36646         also when the target doesn't exist.
36647
36648 2008-03-01  Eric Blake  <ebb9@byu.net>
36649
36650         Fix bugs in last patch.
36651         * lib/memchr2.c (memchr2): Fix typo.
36652         * tests/test-memchr2.c: Test previous bug, and don't use GNU
36653         extension.
36654         Reported by Bruce Korb.
36655
36656         New module 'memchr2'.
36657         * modules/memchr2: New file.
36658         * modules/memchr2-tests: Likewise.
36659         * lib/memchr2.h: Likewise.
36660         * lib/memchr2.c: Likewise, based on memchr.c.
36661         * tests/test-memchr2.c: New test.
36662         * MODULES.html.sh (String handling): Add memchr2.
36663
36664 2008-02-29  Bruno Haible  <bruno@clisp.org>
36665
36666         * modules/freadseek-tests: New file.
36667         * tests/test-freadseek.sh: New file.
36668         * tests/test-freadseek.c: New file.
36669
36670         New module 'freadseek'.
36671         * modules/freadseek: New file.
36672         * lib/freadseek.h: New file.
36673         * lib/freadseek.c: New file.
36674         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
36675
36676 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
36677
36678         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
36679         wydawca.
36680
36681         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
36682         program_invocation_name and program_invocation_short_name are
36683         present.
36684
36685 2008-02-28  Bruno Haible  <bruno@clisp.org>
36686
36687         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
36688         * tests/test-freadptr.sh: Also test non-seekable stdin.
36689
36690 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
36691
36692         * build-aux/bootstrap (source_base, m4_base)
36693         (doc_base, tests_base): New variables.
36694         (gnulib_tool_options): Do not hardcode base directories, use
36695         the above variables instead.
36696
36697 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
36698
36699         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
36700
36701 2008-02-28  Bruno Haible  <bruno@clisp.org>
36702
36703         * modules/freadptr-tests: New file.
36704         * tests/test-freadptr.sh: New file.
36705         * tests/test-freadptr.c: New file.
36706
36707         New module 'freadptr'.
36708         * modules/freadptr: New file.
36709         * lib/freadptr.h: New file.
36710         * lib/freadptr.c: New file.
36711         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
36712
36713 2008-02-26  Karl Berry  <karl@freefriends.org>
36714
36715         Sync from Libtool:
36716         * libltdl/argz.c (argz_add, argz_count): New functions.
36717         * libltdl/argz.in.h: Declare them.
36718         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
36719
36720 2008-02-22  Bruno Haible  <bruno@clisp.org>
36721
36722         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
36723         is a pointer type.  Needed for HP-UX 10.
36724         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
36725         * doc/posix-functions/gmtime_r.texi: Likewise.
36726         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36727
36728 2008-02-24  Bruno Haible  <bruno@clisp.org>
36729
36730         * modules/environ-tests: New file.
36731         * tests/test-environ.c: New file.
36732
36733         New module 'environ'.
36734         * modules/environ: New file.
36735         * lib/unistd.in.h (environ): New declaration.
36736         * m4/environ.m4: New file.
36737         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
36738         after use.
36739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
36740         HAVE_DECL_ENVIRON.
36741         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
36742         HAVE_DECL_ENVIRON.
36743         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
36744         wrong claim that 'environ' is missing on some systems.
36745         * modules/execute (Depends-on): Add environ.
36746         * lib/execute.c (environ): Remove fallback declaration.
36747         * modules/pipe (Depends-on): Add environ.
36748         * lib/pipe.c (environ): Remove fallback declaration.
36749         * modules/setenv (Depends-on): Add environ.
36750         * lib/setenv.c (environ): Remove fallback declaration.
36751         * modules/unsetenv (Depends-on): Add environ.
36752         * lib/unsetenv.c (environ): Remove fallback declaration.
36753         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
36754         m4/environ.m4.
36755         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
36756         (gl_PREREQ_UNSETENV): Likewise.
36757
36758 2008-02-24  Bruno Haible  <bruno@clisp.org>
36759
36760         * doc/posix-functions/environ.texi: Document the MacOS X problem.
36761
36762 2008-02-20  Bob Proulx  <bob@proulx.com>
36763
36764         Enable use of older two part flavor 'git describe'.
36765         * build-aux/git-version-gen: If using the older two part flavor of
36766         git version then recreate the third part now present in the
36767         newer three part flavor of git describe.
36768
36769 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
36770
36771         * lib/fts.c (fts_build): Typo correction to comment.
36772
36773 2008-02-17  Bruno Haible  <bruno@clisp.org>
36774
36775         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
36776         generating no-op conflicts.
36777
36778 2008-02-17  Bruno Haible  <bruno@clisp.org>
36779
36780         Speed up by 10%.
36781         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
36782         result_entries, rather than an index-based loop.
36783
36784 2008-02-17  Bruno Haible  <bruno@clisp.org>
36785
36786         Speed up by 25%.
36787         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
36788         'hashcode_cached'.
36789         (entry_create): New function.
36790         (entry_hashcode): Use the cached hashcode if possible.
36791         (read_changelog_file, try_split_merged_entry): Use entry_create.
36792
36793 2008-02-17  Bruno Haible  <bruno@clisp.org>
36794
36795         Speed up from O(n^2) to O(n) for long ChangeLog files.
36796         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
36797         (read_changelog_file): Change implementation of entries_reversed list
36798         to rbtreehash.
36799         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
36800
36801 2008-02-17  Bruno Haible  <bruno@clisp.org>
36802
36803         New option --split-merged-entry.
36804         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
36805         (find_paragraph_end, try_split_merged_entry): New functions.
36806         (long_options): Add option --split-merged-entry.
36807         (usage): Document option --split-merged-entry.
36808         (main): Implement option --split-merged-entry.
36809         Reported by Eric Blake.
36810
36811 2008-02-17  Bruno Haible  <bruno@clisp.org>
36812
36813         * lib/git-merge-changelog.c: Include c-strstr.h.
36814         (main): Support the "git pull --rebase" situation.
36815         * modules/git-merge-changelog (Depends-on): Add c-strstr.
36816         Reported by Eric Blake.
36817
36818 2008-02-16  Eric Blake  <ebb9@byu.net>
36819
36820         Avoid doubling \ in common case of "c-maybe" quoting style.
36821         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
36822         eliding outer quotes.
36823         * lib/quotearg.h: Document this.
36824         * tests/test-quotearg.c (result_strings, inputs, results_g)
36825         (flag_results, locale_results): Test it by adding a new string to
36826         each test group.
36827         (compare_strings): Test new string.
36828
36829 2008-02-13  Eric Blake  <ebb9@byu.net>
36830
36831         Avoid trigraph quoting in default output.
36832         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
36833         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
36834         unless explicitly requested.
36835         * tests/test-quotearg.c (flag_results, main): Add additional tests.
36836
36837 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
36838
36839         Don't rely on signed integer overflowing to negative value.
36840         * lib/getugroups.c (getugroups): Include <limits.h>.
36841         Instead, compare against INT_MAX, and increment only if the test passes.
36842
36843 2008-02-13  Jim Meyering  <meyering@redhat.com>
36844         and Eric Blake  <ebb9@byu.net>
36845
36846         Avoid shadowing warning and compile errors on Linux.
36847         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
36848         forwarding macros on Linux.
36849         (dcgettext): Define a stub, for Linux.
36850         (results_g, main): Avoid warnings.
36851
36852 2008-02-12  Eric Blake  <ebb9@byu.net>
36853
36854         Silence warning in last patch.
36855         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
36856
36857         Quotearg part 4: add tests, fix c-maybe colon quoting.
36858         * lib/quotearg.h: Improve documentation.
36859         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
36860         escapes when adding outer quotes.  When quoting trigraphs, use
36861         valid C notation.  When quoting NUL, omit extra characters if next
36862         character is not digit.  Alter prototype.
36863         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
36864         callers.
36865         * modules/quotearg-tests: New module.
36866         * tests/test-quotearg.c: New test.
36867
36868 2008-02-07  Eric Blake  <ebb9@byu.net>
36869
36870         Quotearg part 3: add flag to control outer quote elision.
36871         * lib/quotearg.h (c_maybe_quoting_style): New style.
36872         (enum quoting_flags): Better documentation of flags.
36873         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
36874         c-maybe style.
36875         (quotearg_buffer_restyled): Handle new flag to elide outer
36876         quotes.
36877
36878         Quotearg part 2: add flag that can control NUL elision.
36879         * lib/quotearg.h (set_quoting_flags): New prototype.
36880         * lib/quotearg.c (struct quoting_options): Add flag field.
36881         (set_quoting_flags): New function.
36882         (quotearg_buffer_restyled): Add flags parameter.
36883         (quotearg_alloc_mem): Set the flag if length cannot be returned.
36884         (quotearg_n_options): Set the flag, since length cannot be
36885         returned.
36886         (quoting_options_from_style): Default flags correctly.
36887
36888         Quotearg part 1: more wrappers, restore quotearg_char state.
36889         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
36890         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
36891         (quotearg_colon_mem): New wrappers.
36892         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
36893         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
36894         functions.
36895         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
36896         (quotearg_colon_mem): New functions.
36897
36898 2008-02-11  Bruno Haible  <bruno@clisp.org>
36899
36900         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
36901         library in the current directory: it does not work with parallel make.
36902         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36903
36904 2008-02-11  Bruno Haible  <bruno@clisp.org>
36905
36906         * .gitattributes: New file.
36907
36908 2008-02-11  Jim Meyering  <meyering@redhat.com>
36909
36910         useless-if-before-free: Fix reversed exit values.
36911         * build-aux/useless-if-before-free: Use correct values
36912         for EXIT_MATCH and EXIT_NO_MATCH.
36913
36914         * build-aux/useless-if-before-free: Close stdout carefully.
36915
36916 2008-02-10  Bruno Haible  <bruno@clisp.org>
36917
36918         New module 'git-merge-changelog'.
36919         * modules/git-merge-changelog: New file.
36920         * lib/git-merge-changelog.c: New file.
36921
36922 2008-02-10  Jim Meyering  <meyering@redhat.com>
36923
36924         useless-if-before-free: New option: --list (-l).
36925
36926         useless-if-before-free: Don't exit immediately upon open failure.
36927         * build-aux/useless-if-before-free: Exit 2 for errors.
36928         Upon failure to open a file, don't exit immediately.
36929         Rather, just warn and continue with any remaining files.
36930
36931 2008-02-10  Bruno Haible  <bruno@clisp.org>
36932
36933         New abstract list operation 'node_set_value'.
36934         * lib/gl_list.h (gl_list_node_set_value): New function.
36935         (struct gl_list_implementation): New field node_set_value.
36936         * lib/gl_list.c (gl_list_node_set_value): New function.
36937         * lib/gl_array_list.c (gl_array_node_set_value): New function.
36938         (gl_array_list_implementation): Update.
36939         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
36940         (gl_carray_list_implementation): Update.
36941         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
36942         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36943         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36944         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
36945         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36946         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36947         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36948         Update.
36949         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
36950         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
36951         (gl_sublist_list_implementation): Update.
36952
36953 2008-02-10  Bruno Haible  <bruno@clisp.org>
36954
36955         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
36956         Needed when ELEMENT is #defined to 'some_type *'.
36957
36958 2008-02-10  Jim Meyering  <meyering@redhat.com>
36959
36960         New script and module: useless-if-before-free
36961         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
36962         * build-aux/useless-if-before-free: New file.
36963         * modules/useless-if-before-free: New file.
36964
36965         * build-aux/gitlog-to-changelog: Use committer date, not author date.
36966
36967         xstrtol_error: Fix typo.
36968         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
36969         s/exit_failure/exit_status/.
36970
36971 2008-02-09  Jim Meyering  <meyering@redhat.com>
36972
36973         New script and module: gitlog-to-changelog
36974         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
36975         * modules/gitlog-to-changelog: New file.
36976         * build-aux/gitlog-to-changelog: New file.
36977
36978 2008-02-08  Jim Meyering  <meyering@redhat.com>
36979
36980         Avoid two "parameter unused" warnings.
36981         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
36982         Mark "st" as used.
36983
36984         Use "git COMMAND", not "git-COMMAND".
36985         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
36986         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
36987         * build-aux/git-version-gen: Use "git status", not "git-status".
36988
36989 2008-02-07  Bruno Haible  <bruno@clisp.org>
36990
36991         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
36992         Avoids a crash on Windows Vista.
36993         Reported by Adam Strzelecki <ono@java.pl> via
36994         Simon Josefsson <simon@josefsson.org>.
36995
36996 2008-02-06  Bruno Haible  <bruno@clisp.org>
36997
36998         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
36999         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
37000         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
37001         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
37002         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37003         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37004         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
37005         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
37006         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37007         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37008         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37009         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37010         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37011         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37012         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37013         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
37014         left-adjust flag.
37015         * tests/test-snprintf-posix.h (test_function): Likewise.
37016         * tests/test-sprintf-posix.h (test_function): Likewise.
37017         * tests/test-vasprintf-posix.c (test_function): Likewise.
37018         * doc/posix-functions/fprintf.texi: Update.
37019         * doc/posix-functions/printf.texi: Update.
37020         * doc/posix-functions/snprintf.texi: Update.
37021         * doc/posix-functions/sprintf.texi: Update.
37022         * doc/posix-functions/vfprintf.texi: Update.
37023         * doc/posix-functions/vprintf.texi: Update.
37024         * doc/posix-functions/vsnprintf.texi: Update.
37025         * doc/posix-functions/vsprintf.texi: Update.
37026         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37027
37028 2008-02-06  Bruno Haible  <bruno@clisp.org>
37029
37030         Fix bug introduced on 2008-01-26.
37031         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
37032
37033 2008-02-06  Bruno Haible  <bruno@clisp.org>
37034
37035         Fix bug introduced on 2007-06-10.
37036         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
37037         !NEED_PRINTF_FLAG_ZERO.
37038
37039 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
37040
37041         getloadavg: use libperfstat on AIX5
37042         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
37043
37044 2008-02-03  Bruno Haible  <bruno@clisp.org>
37045
37046         * lib/diffseq.h: Add comments about required #includes.
37047         Reported by Michael Biggs <gnulib@doubleplum.net>.
37048
37049 2008-02-01  Bruno Haible  <bruno@clisp.org>
37050
37051         * users.txt: Add gnuit.
37052
37053 2008-01-31  Bruno Haible  <bruno@clisp.org>
37054
37055         * lib/md4.c (set_uint32): Mark as inline.
37056         * lib/md5.c (set_uint32): Likewise.
37057         * lib/sha1.c (set_uint32): Likewise.
37058         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
37059         * m4/md5.m4 (gl_MD5): Likewise.
37060         * m4/sha1.m4 (gl_SHA1): Likewise.
37061
37062 2008-01-31  Jim Meyering  <meyering@redhat.com>
37063
37064         Use "sizeof VAR", rather than a literal "4".
37065         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
37066         * lib/md4.c (md4_read_ctx): Likewise.
37067         * lib/sha1.c (sha1_read_ctx): Likewise.
37068
37069 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37070
37071         * tests/test-sha1.c: New file, based on test-md5.c.
37072
37073         * modules/crypto/sha1-tests: New file.
37074
37075 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37076
37077         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
37078
37079 2008-01-31  Jim Meyering  <meyering@redhat.com>
37080
37081         Prefer "sizeof v" over the equivalent "4".
37082         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
37083         * lib/md5.c (set_uint32): Likewise.
37084         * lib/sha1.c (set_uint32): Likewise.
37085
37086 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37087
37088         * lib/sha1.c (set_uint32): Mark function as static.
37089
37090 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37091
37092         md2: clarify comments to say that alignment is not required.
37093         * lib/md2.h: Remove warning about alignment in comment.
37094         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
37095         never been required.
37096
37097 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37098
37099         md4: adapt alignment constraint fix from sha1.
37100         * lib/md4.c (set_uint32): New function, from sha1.c
37101         (md4_read_ctx): Use it.
37102         (md4_finish_ctx): Doc fix.
37103         * lib/md4.h: Doc fix.
37104
37105 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37106
37107         md5: adapt alignment constraint fix from sha1.
37108         * lib/md5.c (set_uint32): New function, from sha1.c
37109         (md5_read_ctx): Use it.
37110         (md5_finish_ctx): Doc fix.
37111         * lib/md5.h: Doc fix.
37112
37113 2008-01-30  Peter Palfrader  <weasel@debian.org>
37114
37115         sha1: remove the result buffer alignment constraint
37116         * lib/sha1.c (set_uint32): New function.
37117         (sha1_read_ctx): Rewrite to remove the result buffer alignment
37118         constraint.
37119         (sha1_finish_ctx): Remove comment warning about alignment constraint.
37120         * lib/sha1.h: Likewise.
37121
37122 2008-01-30  Andreas Schwab  <schwab@suse.de>
37123             Bruno Haible  <bruno@clisp.org>
37124
37125         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
37126         correct definition of LDBL_MIN_EXP.
37127
37128 2008-01-30  Karl Berry  <karl@gnu.org>
37129
37130         * config/srclist-update: try to preserve x bit on updates.
37131         * config/srclistvars.sh: update for karl.
37132
37133 2008-01-29  Jim Meyering  <meyering@redhat.com>
37134
37135         vasnprintf.c: Avoid warning about unused label
37136         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
37137         "overflow" label definition and associated code with the
37138         same cpp condition that guards the sole use of that label.
37139
37140 2008-01-26  Bruno Haible  <bruno@clisp.org>
37141
37142         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
37143         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
37144         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
37145         * lib/isnanl-nolibm.h (isnanl): Likewise.
37146         Reported by Paul Eggert <eggert@cs.ucla.edu>.
37147
37148 2008-01-26  Bruno Haible  <bruno@clisp.org>
37149
37150         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
37151         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
37152
37153 2008-01-26  Bruno Haible  <bruno@clisp.org>
37154
37155         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
37156         GCC >= 4.0 built-in.
37157         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
37158
37159 2008-01-26  Bruno Haible  <bruno@clisp.org>
37160
37161         Rename isnan, applicable to 'double' only, to isnand.
37162         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
37163         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
37164         (configure.ac): Update.
37165         (Include): Replace "isnan.h" with "isnand.h".
37166         * m4/isnand.m4: Renamed from m4/isnan.m4.
37167         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
37168         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
37169         instead of isnan.c.
37170         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
37171         instead of HAVE_ISNAN_IN_LIBC.
37172         (isnand): Renamed from isnan.
37173         * lib/isnand.c: New file.
37174         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
37175         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
37176         (Makefile.am): Update.
37177         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
37178         Include isnand.h instead of isnan.h.
37179         (main): Test isnand instead of isnan.
37180         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
37181         isnan-nolibm.
37182         * modules/frexp (Depends-on): Likewise.
37183         * modules/frexp-tests (Depends-on): Likewise.
37184         * modules/frexp-nolibm (Depends-on): Likewise.
37185         * modules/frexp-nolibm-tests (Depends-on): Likewise.
37186         * modules/isfinite (Depends-on): Likewise.
37187         * modules/round-tests (Depends-on): Likewise.
37188         * modules/signbit (Depends-on): Likewise.
37189         * modules/signbit-tests (Depends-on): Likewise.
37190         * modules/snprintf-posix (Depends-on): Likewise.
37191         * modules/sprintf-posix (Depends-on): Likewise.
37192         * modules/trunc-tests (Depends-on): Likewise.
37193         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37194         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37195         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37196         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37197         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37198         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37199         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37200         * modules/vasnprintf-posix (Depends-on): Likewise.
37201         * modules/vasprintf-posix (Depends-on): Likewise.
37202         * modules/vfprintf-posix (Depends-on): Likewise.
37203         * modules/vsnprintf-posix (Depends-on): Likewise.
37204         * modules/vsprintf-posix (Depends-on): Likewise.
37205         * lib/frexp.c: Include isnand.h instead of isnan.h.
37206         (ISNAN): Set to isnand instead of isnan.
37207         * lib/isfinite.c: Include isnand.h instead of isnan.h.
37208         (gl_isfinited): Use isnand instead of isnan.
37209         * lib/signbitd.c: Include isnand.h instead of isnan.h.
37210         (gl_signbitd): Use isnand instead of isnan.
37211         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
37212         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
37213         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
37214         (main): Use isnand instead of isnan.
37215         * tests/test-round1.c: Include isnand.h.
37216         (main): Use isnand instead of isnan.
37217         * tests/test-round2.c: Include isnand.h instead of isnan.h.
37218         (ISNAN): Set to isnand instead of isnan.
37219         * tests/test-trunc1.c: Include isnand.h.
37220         (main): Use isnand instead of isnan.
37221         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
37222         (equal): Use isnand instead of isnan.
37223         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
37224         isnand-nolibm.
37225         * NEWS: Mention the change.
37226
37227 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
37228             Bruno Haible  <bruno@clisp.org>
37229
37230         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
37231         the GCC builtins for signbits are present and set
37232         REPLACE_SIGNBIT_USING_GCC if so.
37233         * lib/math.in.h (signbit): Define using GCC builtins if
37234         REPLACE_SIGNBIT_USING_GCC is set.
37235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
37236         REPLACE_SIGNBIT_USING_GCC.
37237         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
37238
37239 2008-01-25  Jim Meyering  <meyering@redhat.com>
37240
37241         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
37242         * lib/poll.c: Include <config.h>, not "config.h".
37243         * tests/test-getaddrinfo.c: Likewise.
37244
37245 2008-01-25  Simon Josefsson  <simon@josefsson.org>
37246
37247         * modules/sockets-tests: New file.
37248
37249 2008-01-24  Simon Josefsson  <simon@josefsson.org>
37250
37251         * modules/sockets: New module, can be used to call WSA_Startup and
37252         WSA_Cleanup when needed.
37253
37254         * lib/sockets.h, lib/sockets.c: New files.
37255
37256         * m4/sockets.m4: New file.
37257
37258         * tests/test-sockets.c: New file.
37259
37260 2008-01-19  Bruno Haible  <bruno@clisp.org>
37261
37262         * doc/posix-headers: Renamed from doc/headers.
37263         * doc/posix-functions: Renamed from doc/functions.
37264         * doc/gnulib.texi: Update.
37265
37266 2008-01-19  Bruno Haible  <bruno@clisp.org>
37267
37268         * doc/glibc-functions/strcasestr.texi: Include contents of
37269         doc/functions/strcasestr.texi, fixing the list of platforms.
37270         * doc/functions/strcasestr.texi: Remove file.
37271
37272 2008-01-19  Bruno Haible  <bruno@clisp.org>
37273
37274         * doc/glibc-functions/memmem.texi: Include contents of
37275         doc/functions/memmem.texi.
37276         * doc/functions/memmem.texi: Remove file.
37277
37278 2008-01-18  Bruno Haible  <bruno@clisp.org>
37279
37280         * doc/glibc-functions/*.texi: New files.
37281         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
37282         to use the new files.
37283
37284 2008-01-17  Bruno Haible  <bruno@clisp.org>
37285
37286         * tests/test-gethostname.c (main): Fix printf statement.
37287
37288 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37289
37290         * modules/gethostname-tests: New file.
37291
37292         * tests/test-gethostname.c: New file.
37293
37294 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37295
37296         * lib/gethostname.c: Include string.h unconditionally, strncpy is
37297         used by the UNAME case.  Reported by Bruno Haible
37298         <bruno@clisp.org>.
37299
37300 2008-01-17  Eric Blake  <ebb9@byu.net>
37301
37302         Convert c-strcasestr to be more efficient.
37303         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
37304         (Depends-on): Add c-strcase, remove malloca, strnlen.
37305         * tests/test-c-strcasestr.c (main): Enhance test.
37306         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
37307
37308 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
37309
37310         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
37311         Use it in creating po/Makevars.
37312
37313 2008-01-15  Simon Josefsson  <simon@josefsson.org>
37314
37315         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
37316         Applications that requires it should initialize libgcrypt
37317         manually.
37318
37319 2008-01-16  Simon Josefsson  <simon@josefsson.org>
37320
37321         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
37322
37323 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
37324
37325         Fix problem with getdate on mingw32 reported by Simon Josefsson
37326         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
37327         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
37328         tzname", when deciding whether to declare tzname.
37329         * lib/strftime.c (tzname): Likewise.
37330
37331 2008-01-15  Bruno Haible  <bruno@clisp.org>
37332
37333         Work around a MacOS X 10.5 bug in frexpl().
37334         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
37335         * doc/functions/frexpl.texi: Document the bug.
37336         Reported by Elias Pipping <pipping@gentoo.org>.
37337
37338 2008-01-14  Eric Blake  <ebb9@byu.net>
37339
37340         Touch up previous patch.
37341         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
37342         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
37343
37344         Convert strcasestr module to use Two-Way algorithm.
37345         * modules/strcasestr-simple: New module, based on the old
37346         strcasestr, but with Two-Way rather than KMP.
37347         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
37348         * lib/string.in.h (rpl_strcasestr): Declare.
37349         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
37350         performance.
37351         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
37352         * modules/string (Makefile.am): Support strcasestr.
37353         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37354         * modules/strcasestr-tests (Depends-on): Check for alarm.
37355         * tests/test-strcasestr.c: Augment test.
37356         * lib/str-two-way.h: Clean up stray macro.
37357         * NEWS: Document new module.
37358         * MODULES.html.sh (string handling): Likewise.
37359         * doc/functions/strcasestr.texi: New file.
37360         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
37361         here, since it is not a POSIX function.
37362
37363 2008-01-14  Colin Watson  <cjwatson@debian.org>
37364             Bruno Haible  <bruno@clisp.org>
37365
37366         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
37367         works fine; if not, set REPLACE_STRSIGNAL.
37368         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
37369         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37370         REPLACE_STRSIGNAL.
37371         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
37372         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
37373         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
37374
37375 2008-01-14  Bruno Haible  <bruno@clisp.org>
37376
37377         * modules/strsignal (Include): Change to <string.h>.
37378
37379 2008-01-14  Colin Watson  <cjwatson@debian.org>
37380
37381         * modules/argp (Notice): Add a notice recommending to change
37382         XGETTEXT_OPTIONS.
37383         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
37384
37385 2008-01-13  Colin Watson  <cjwatson@debian.org>
37386
37387         * modules/strsignal-tests: New file.
37388         * tests/test-strsignal.c: New file.
37389
37390         * lib/strsignal.c: New file, from glibc with modifications.
37391         * lib/siglist.h: New file, from glibc with modifications.
37392         * lib/string.in.h (strsignal): New declaration.
37393         * m4/strsignal.m4: New file.
37394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37395         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
37396         * modules/strsignal: New file.
37397         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
37398         HAVE_DECL_STRSIGNAL.
37399
37400 2008-01-13  Bruno Haible  <bruno@clisp.org>
37401
37402         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
37403         locale encoding is not ASCII. Needed for OpenBSD 4.0.
37404         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37405         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37406
37407 2008-01-13  Bruno Haible  <bruno@clisp.org>
37408
37409         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
37410         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
37411         * lib/argp.h (__attribute__): Likewise.
37412         * lib/c-stack.c (__attribute__): Likewise.
37413         * lib/error.h (__attribute__): Likewise.
37414         * lib/fts.c (__attribute__): Likewise.
37415         * lib/openat.h (__attribute__): Likewise.
37416         * lib/stdio.in.h (__attribute__): Likewise.
37417         * lib/string.in.h (__attribute__): Likewise.
37418         * lib/utimens.c (__attribute__): Likewise.
37419         * lib/vasnprintf.h (__attribute__): Likewise.
37420         * lib/xalloc.h (__attribute__): Likewise.
37421         * lib/xprintf.h (__attribute__): Likewise.
37422         * lib/xstrtol.h (__attribute__): Likewise.
37423         * lib/xvasprintf.h (__attribute__): Likewise.
37424
37425 2008-01-12  Bruno Haible  <bruno@clisp.org>
37426
37427         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
37428         * doc/glibc-headers/a.out.texi: New file.
37429         * doc/glibc-headers/aliases.texi: New file.
37430         * doc/glibc-headers/alloca.texi: New file.
37431         * doc/glibc-headers/ar.texi: New file.
37432         * doc/glibc-headers/argp.texi: New file.
37433         * doc/glibc-headers/argz.texi: New file.
37434         * doc/glibc-headers/byteswap.texi: New file.
37435         * doc/glibc-headers/crypt.texi: New file.
37436         * doc/glibc-headers/endian.texi: New file.
37437         * doc/glibc-headers/envz.texi: New file.
37438         * doc/glibc-headers/err.texi: New file.
37439         * doc/glibc-headers/error.texi: New file.
37440         * doc/glibc-headers/execinfo.texi: New file.
37441         * doc/glibc-headers/fpu_control.texi: New file.
37442         * doc/glibc-headers/fstab.texi: New file.
37443         * doc/glibc-headers/fts.texi: New file.
37444         * doc/glibc-headers/getopt.texi: New file.
37445         * doc/glibc-headers/ieee754.texi: New file.
37446         * doc/glibc-headers/ifaddrs.texi: New file.
37447         * doc/glibc-headers/libintl.texi: New file.
37448         * doc/glibc-headers/mcheck.texi: New file.
37449         * doc/glibc-headers/mntent.texi: New file.
37450         * doc/glibc-headers/obstack.texi: New file.
37451         * doc/glibc-headers/paths.texi: New file.
37452         * doc/glibc-headers/printf.texi: New file.
37453         * doc/glibc-headers/pty.texi: New file.
37454         * doc/glibc-headers/resolv.texi: New file.
37455         * doc/glibc-headers/shadow.texi: New file.
37456         * doc/glibc-headers/sysexits.texi: New file.
37457         * doc/glibc-headers/ttyent.texi: New file.
37458
37459 2008-01-12  Jim Meyering  <meyering@redhat.com>
37460
37461         announce-gen: emit Gnulib's git-based version string.
37462         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
37463         New option --gnulib-version=V, where V is expected to be
37464         the output of running git describe in the gnulib directory.
37465         (get_tool_versions): Request feedback on xdelta.  I suspect it's
37466         not useful, and plan to stop publishing an xdelta file with each
37467         coreutils release.
37468
37469         * build-aux/announce-gen: Also check for lzma-compressed files.
37470
37471 2008-01-11  Bruno Haible  <bruno@clisp.org>
37472
37473         * tests/test-memmem.c (main): Increase maximum allowed time.
37474         * tests/test-strstr.c (main): Likewise.
37475
37476 2008-01-11  Bruno Haible  <bruno@clisp.org>
37477
37478         * doc/functions/memmem.texi: Add more precisions about platforms.
37479         * doc/functions/strstr.texi: Likewise.
37480
37481 2008-01-10  Eric Blake  <ebb9@byu.net>
37482
37483         * m4/strstr.m4: Delete cruft from copy-n-paste.
37484         Reported by Bruno Haible.
37485
37486 2008-01-10  Bruno Haible  <bruno@clisp.org>
37487
37488         Make c-strstr rely on strstr.
37489         * lib/c-strstr.c: Don't include str-kmp.h.
37490         (c_strstr): Define in terms of strstr.
37491         * modules/c-strstr (Files): Remove lib/str-kmp.h.
37492         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
37493
37494 2008-01-10  Bruno Haible  <bruno@clisp.org>
37495
37496         * doc/gnulib.texi (String Functions in C Locale): New section.
37497         * doc/c-ctype.texi: New file.
37498         * doc/c-strcase.texi: New file.
37499         * doc/c-strcaseeq.texi: New file.
37500         * doc/c-strcasestr.texi: New file.
37501         * doc/c-strstr.texi: New file.
37502         * doc/c-strtod.texi: New file.
37503         * doc/c-strtold.texi: New file.
37504
37505 2008-01-10  Eric Blake  <ebb9@byu.net>
37506
37507         * lib/relocatable.h: Fix a comment.
37508
37509 2008-01-10  Eric Blake  <ebb9@byu.net>
37510
37511         Share two-way algorithm.
37512         * lib/str-two-way.h: New file, merged from...
37513         * lib/memmem.c: ...here...
37514         * lib/strstr.c: ...and here.
37515         * modules/memmem (Files): Use it.
37516         * modules/strstr (Files): Likewise.
37517
37518         Avoid quadratic strstr implementations.
37519         * lib/strstr.c: New file.
37520         * m4/strstr.m4: Likewise.
37521         * modules/strstr: Likewise.
37522         * modules/strstr-tests: Likewise.
37523         * tests/test-strstr.c: Likewise.
37524         * lib/string.in.h (rpl_strstr): Declare.
37525         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
37526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
37527         * modules/string (Makefile.am): Likewise.
37528         * MODULES.html.sh (string handling): Mention new module.
37529         * doc/functions/strstr.texi (strstr): Document the bug.
37530
37531 2008-01-10  Bruno Haible  <bruno@clisp.org>
37532
37533         * lib/relocatable.h (relocate): State whether result is freshly
37534         allocated or not.
37535         * lib/relocatable.c (relocate): Return a freshly allocated string
37536         instead of a pointer to a privately held string.
37537         Reported by Sylvain Beucler <beuc@gnu.org>.
37538
37539 2008-01-10  Colin Watson  <cjwatson@debian.org>
37540
37541         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
37542         s/S_ISNLK/S_ISLNK/.
37543
37544 2008-01-09  Bruno Haible  <bruno@clisp.org>
37545
37546         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
37547         and other files.
37548         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
37549         if it's only a guess.
37550         * modules/memmem: Simplify by depending on memmem-simple.
37551
37552 2008-01-09  Bruno Haible  <bruno@clisp.org>
37553
37554         Work around OpenBSD 4.0 tdelete() bug.
37555         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
37556         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
37557         macros and don't redefine the enum values.
37558         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
37559         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
37560         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
37561
37562 2008-01-09  Bruno Haible  <bruno@clisp.org>
37563
37564         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
37565         (main): Don't perform the tests if setlocale did not install a UTF-8
37566         locale. Needed on OpenBSD 4.0.
37567         * modules/wcwidth-tests (Depends-on): Add localcharset.
37568
37569 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37570
37571         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
37572         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
37573         * NEWS: announce this.
37574         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
37575
37576 2008-01-09  Simon Josefsson  <simon@josefsson.org>
37577         and Eric Blake  <ebb9@byu.net>
37578
37579         Add memmem-simple module.
37580         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
37581         (gl_FUNC_MEMMEM): Separate performance from presence checks.
37582         * modules/memmem-simple: New file.
37583         * modules/memmem (Description): Tweak.
37584         * MODULES.html.sh (string handling): Mention new module.
37585         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
37586         addressed by memmem-simple.
37587         * NEWS: Document the difference.
37588
37589 2008-01-09  Eric Blake  <ebb9@byu.net>
37590
37591         Give gcc some memmem optimization hints.
37592         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
37593         (strcasestr): Declare as pure.
37594         * modules/memmem (Maintainer): Claim my implementation.
37595
37596 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37597
37598         Support AIX 6.1 and higher.
37599         * build-aux/config.libpath: Likewise.
37600         * build-aux/config.rpath: Likewise.
37601
37602 2008-01-08  Jim Meyering  <meyering@redhat.com>
37603             Bruno Haible  <bruno@clisp.org>
37604
37605         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
37606         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
37607         Reported by Peter Fales in
37608         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
37609
37610 2008-01-08  Bruno Haible  <bruno@clisp.org>
37611
37612         * modules/unictype/category-of (Depends-on): Add
37613         unictype/category-none.
37614         * modules/unictype/category-and-tests (Depends-on): Add
37615         unictype/category-{L,N,Lu,Nd}.
37616         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
37617         * modules/unictype/category-or-tests (Depends-on): Add
37618         unictype/category-{L,N}.
37619         * modules/unictype/category-name-tests (Depends-on): Add
37620         unictype/category-{Z,Nl}.
37621         Reported by Simon Josefsson.
37622
37623 2008-01-08  Bruno Haible  <bruno@clisp.org>
37624
37625         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
37626         convention better.
37627         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
37628         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
37629         Reported by Peter Miller <millerp@canb.auug.org.au>.
37630
37631 2008-01-08  Eric Blake  <ebb9@byu.net>
37632
37633         Rewrite memmem to guarantee linear complexity without malloc.
37634         * lib/memmem.c (memmem): Use Two-Way rather than
37635         Knuth-Morris-Pratt, to allow O(1) space usage.
37636         (critical_factorization, two_way_short_needle)
37637         (two_way_long_needle): New functions.
37638         (knuth_morris_pratt): Delete.
37639         * modules/memmem (Depends-on): No longer need malloca or stdbool.
37640         Add stdint.
37641         * tests/test-memmem.c (main): Add tests for periodic needle and
37642         sublinear performance.
37643         * doc/functions/memmem.texi (memmem): Document other deficiencies
37644         in cygwin and older glibc.
37645
37646 2008-01-08  Bruno Haible  <bruno@clisp.org>
37647
37648         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
37649         augmentation.
37650
37651 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
37652
37653         Add a configure time option: --disable-acl.
37654         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
37655         AC_ARG_ENABLE(acl).
37656
37657 2008-01-06  Simon Josefsson  <simon@josefsson.org>
37658
37659         * tests/test-localename.c: Don't include obsolete "setenv.h".
37660
37661         * modules/localename-tests (Depends-on): Need unsetenv.
37662
37663 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37664
37665         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
37666
37667 2008-01-06  Colin Watson  <cjwatson@debian.org>
37668
37669         * users.txt: Add man-db.
37670
37671 2008-01-07  Bruno Haible  <bruno@clisp.org>
37672
37673         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
37674         previous section name.
37675
37676 2008-01-07  Bruno Haible  <bruno@clisp.org>
37677
37678         * lib/progname.c (set_program_name): Don't strip off a leading
37679         "lt-" prefix outside a .libs directory.
37680         Suggested by Paul Eggert.
37681
37682 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
37683             Bruno Haible  <bruno@clisp.org>
37684
37685         Improve memory cleanup in 'relocatable' module.
37686         * lib/relocatable.h (compute_curr_prefix): Change return type to
37687         'char *'.
37688         * lib/relocatable.c (compute_curr_prefix): Change return type to
37689         'char *'. Free curr_installdir after use.
37690         (relocate): Free curr_prefix_better after use.
37691         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
37692
37693 2008-01-01  Bruno Haible  <bruno@clisp.org>
37694
37695         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
37696         failure on older glibc systems.
37697         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37698
37699 2008-01-05  Eric Blake  <ebb9@byu.net>
37700
37701         Avoid quadratic system memmem.
37702         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
37703         Reported by Ralf Wildenhues.
37704
37705         Fix memmem test for mingw.
37706         * modules/memmem-tests (configure.ac): Check for alarm.
37707         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
37708         it.
37709         * doc/functions/memmem.texi: New file.
37710         * doc/gnulib.texi (Function Substitutes): Add memmem.
37711         Reported by Bruno Haible.
37712
37713 2008-01-04  Bruno Haible  <bruno@clisp.org>
37714
37715         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
37716         Require gl_HEADER_STRINGS_H_DEFAULTS, not
37717         gl_HEADER_STRING_H_DEFAULTS.
37718
37719 2008-01-04  Eric Blake  <ebb9@byu.net>
37720
37721         Shorten duration of memmem test.
37722         * tests/test-memmem.c (main): Use alarm to declare failure if test
37723         is taking too long.
37724         Reported by Ralf Wildenhues.
37725
37726 2007-12-21  Simon Josefsson  <simon@josefsson.org>
37727
37728         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
37729         string, needed by strerror.
37730
37731 2008-01-03  Colin Watson  <cjwatson@debian.org>
37732             Bruno Haible  <bruno@clisp.org>
37733
37734         * doc/gnulib-tool.texi (Localization): New section.
37735
37736 2008-01-02  Bruno Haible  <bruno@clisp.org>
37737
37738         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
37739         variables to 'unsigned char *' type.
37740         Reported by Paul Eggert.
37741
37742 2008-01-02  Jim Meyering  <jim@meyering.net>
37743
37744         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
37745
37746 2007-12-31  Jim Meyering  <jim@meyering.net>
37747
37748         Avoid use of private FTS type name.
37749         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
37750
37751 2007-12-30  Karl Berry  <karl@gnu.org>
37752
37753         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
37754         work around defect in Texinfo and/or the standalone Info browser.
37755
37756 2007-12-30  Bruno Haible  <bruno@clisp.org>
37757
37758         Unify 5 copies of the KMP code.
37759         * lib/str-kmp.h: New file.
37760         * lib/c-strcasestr.c: Include str-kmp.h.
37761         (knuth_morris_pratt): Remove function.
37762         (c_strcasestr): Update.
37763         * lib/c-strstr.c: Include str-kmp.h.
37764         (knuth_morris_pratt): Remove function.
37765         (c_strcasestr): Update.
37766         * lib/mbscasestr.c: Include str-kmp.h.
37767         (knuth_morris_pratt_unibyte): Remove function.
37768         * lib/mbsstr.c: Include str-kmp.h.
37769         (knuth_morris_pratt_unibyte): Remove function.
37770         * lib/strcasestr.c: Include str-kmp.h.
37771         (knuth_morris_pratt): Remove function.
37772         (strcasestr): Update.
37773         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
37774         * modules/c-strstr (Files): Likewise.
37775         * modules/mbscasestr (Files): Likewise.
37776         * modules/mbsstr (Files): Likewise.
37777         * modules/strcasestr (Files): Likewise.
37778         Suggested by Paul Eggert.
37779
37780 2007-12-30  Bruno Haible  <bruno@clisp.org>
37781
37782         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
37783         defined.
37784
37785 2007-12-30  Bruno Haible  <bruno@clisp.org>
37786
37787         * lib/xmalloca.h: Include xalloc.h.
37788         (xnmalloca): New macro.
37789
37790 2007-12-30  Bruno Haible  <bruno@clisp.org>
37791
37792         * lib/malloca.h (nmalloca): New macro.
37793         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
37794         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
37795         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
37796         knuth_morris_pratt_multibyte): Likewise.
37797         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
37798         knuth_morris_pratt_multibyte): Likewise.
37799         * lib/memmem.c (knuth_morris_pratt): Likewise.
37800         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
37801
37802 2007-12-25  Bruno Haible  <bruno@clisp.org>
37803
37804         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
37805         * lib/glob.c: Don't include openat.h.
37806         (link_exists2_p): Add back the code that deals with the
37807         !GLOB_ALTDIRFUNC case.
37808         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
37809         let it do the filename concatenation.
37810         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
37811         * modules/glob (Depends-on): Remove openat.
37812
37813 2007-12-31  Bruno Haible  <bruno@clisp.org>
37814
37815         * modules/dirfd (License): Change to LGPLv2+.
37816         Approved by Jim Meyering.
37817
37818 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37819
37820         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
37821         when multiplying M by sizeof (size_t).
37822
37823 2007-12-10  Martin Lambers  <marlam@marlam.de>
37824
37825         Override getpagesize on mingw.
37826         * lib/getpagesize.c: New file.
37827         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
37828         * modules/getpagesize (Files): Add lib/getpagesize.c.
37829         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
37830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37831         REPLACE_GETPAGESIZE.
37832         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
37833
37834 2007-12-25  Bruno Haible  <bruno@clisp.org>
37835
37836         * modules/localcharset (Notice): New field.
37837         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
37838         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
37839
37840 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37841             Bruno Haible  <bruno@clisp.org>
37842
37843         Avoid using the syntax symbol() in formatted documentation.
37844         * MODULES.html.sh (func_module): When replacing symbol() with a
37845         hyperlink, remove the parentheses. Show an error if some remain.
37846         Recognize and render the '...' syntax.
37847         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
37848         Rework. Add paragraph about GCC's inlining.
37849         * doc/alloca.texi: Likewise.
37850         * doc/error.texi: Remove parentheses from symbol reference.
37851         * doc/gnulib-intro.texi: Likewise.
37852         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
37853         * modules/fnmatch (Description): Reword to say "the ... function".
37854         * modules/full-read (Description): Likewise.
37855         * modules/full-write (Description): Likewise.
37856         * modules/safe-read (Description): Likewise.
37857         * modules/safe-write (Description): Likewise.
37858         * modules/strchrnul (Description): Likewise.
37859         * modules/trim (Description): Likewise.
37860         * modules/error (Description): Remove parentheses from symbol
37861         references.
37862         * modules/verror (Description): Likewise.
37863         Reported by Karl Berry.
37864
37865 2007-12-25  Bruno Haible  <bruno@clisp.org>
37866
37867         Fixup after 2007-10-16 commit.
37868         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
37869
37870 2007-12-24  Bruno Haible  <bruno@clisp.org>
37871
37872         Make --enable-relocatable work with DESTDIR.
37873         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
37874         to compute installdir from destprog.
37875         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
37876         also set the RELOC_DESTDIR variable.
37877         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37878
37879 2007-12-24  Bruno Haible  <bruno@clisp.org>
37880
37881         Fix link error due to xalloc_die().
37882         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
37883         of xreadlink.
37884         * lib/relocwrapper.c: Update comments.
37885         * build-aux/install-reloc: Remove xreadlink.c from file list.
37886         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
37887         xreadlink.c.
37888         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37889
37890 2007-12-24  Bruno Haible  <bruno@clisp.org>
37891
37892         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
37893         * lib/setenv.h: Remove file.
37894         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
37895         lib/setenv.h.
37896         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
37897         (Depends-on): Add stdlib.
37898         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
37899         gl_FUNC_UNSETENV.
37900         (Include): Replace setenv.h with <stdlib.h>.
37901         * modules/unsetenv: New file.
37902         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
37903         * lib/unsetenv.c: Include <stdlib.h> first.
37904         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
37905         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
37906         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
37907         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
37908         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
37909         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
37911         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37912         * doc/functions/unsetenv.texi: Update.
37913         * modules/xsetenv (Depends-on): Add unsetenv.
37914         * modules/getdate (Depends-on): Likewise.
37915         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
37916         * lib/xsetenv.c: Don't include setenv.h.
37917         * lib/getdate.y: Likewise.
37918         * lib/relocwrapper.c: Likewise.
37919         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
37920         (Depends-on): Add stdlib.
37921         * NEWS: Mention the changes.
37922         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37923
37924 2007-12-23  Bruno Haible  <bruno@clisp.org>
37925
37926         * lib/memmem.c (memmem): Use lowercase variable names. Tab
37927         indentation.
37928
37929 2007-12-23  Bruno Haible  <bruno@clisp.org>
37930
37931         * lib/c-strcasestr.c: Add more comments.
37932         * lib/c-strstr.c: Likewise.
37933         * lib/mbscasestr.c: Likewise.
37934         * lib/mbsstr.c: Likewise.
37935         * lib/strcasestr.c: Likewise.
37936         * lib/memmem.c: Likewise.
37937
37938 2007-12-23  Bruno Haible  <bruno@clisp.org>
37939
37940         * tests/test-memmem.c: Include <string.h> first.
37941
37942 2007-12-22  Bruno Haible  <bruno@clisp.org>
37943
37944         * gnulib-tool (func_create_testdir): Change $auxdir while generating
37945         the contents of $testsbase.
37946         Reported by Ralf Wildenhues.
37947
37948 2007-12-22  Bruno Haible  <bruno@clisp.org>
37949
37950         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
37951         two variables local_ldadd_before, local_ldadd_last.
37952
37953 2007-12-20  Eric Blake  <ebb9@byu.net>
37954
37955         Work around circular library issue when cross-compiling.
37956         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
37957         that progname.o does not need to pull in rpl_memcmp.
37958
37959 2007-12-19  Eric Blake  <ebb9@byu.net>
37960
37961         Fix memmem to avoid O(n^2) worst-case complexity.
37962         * lib/memmem.c (knuth_morris_pratt): New function.
37963         (memmem): Use it if first few naive iterations fail.
37964         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
37965         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
37966         * modules/memchr (License): Likewise.
37967         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
37968         malloca.
37969         * tests/test-memmem.c: Rewrite, borrowing ideas from
37970         test-mbsstr1.c; the old version wouldn't even compile!
37971         * modules/memmem-tests: New file.
37972         * lib/string.in.h (rpl_memmem): Add declaration.
37973         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
37974         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
37975         REPLACE_MEMMEM.
37976
37977 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37978
37979         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
37980         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
37981         before any system include files, and undef after them all.  This
37982         should fix a problem on VMS reported by John E. Malmberg in
37983         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
37984
37985 2007-12-17  Eric Blake  <ebb9@byu.net>
37986
37987         Revert addition of verify, for BSD/OS.
37988         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
37989         can't handle large files, for the sake of obsolete platforms.
37990         * modules/fseeko (Depends-on): Remove verify.
37991         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
37992         * doc/functions/ftello.texi (ftello): Likewise.
37993         * doc/functions/fgetpos.texi (fgetpos): Likewise.
37994         Reported by Larry Jones.
37995
37996 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
37997
37998         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
37999         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
38000
38001 2007-12-17  Jim Meyering  <meyering@redhat.com>
38002
38003         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
38004         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
38005         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
38006         * modules/getcwd (Depends-on): Add openat.
38007         Reported by Petr Salinger.
38008
38009 2007-12-17  Bruno Haible  <bruno@clisp.org>
38010
38011         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
38012         avoid a segmentation fault of the configure test on x86_64 systems.
38013
38014 2007-12-15  Jim Meyering  <meyering@redhat.com>
38015
38016         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
38017
38018 2007-12-13  Eric Blake  <ebb9@byu.net>
38019
38020         Another fseek test.
38021         * tests/test-fseek.c (main): Also test ungetc handling.
38022         * tests/test-fseeko.c (main): Likewise.
38023         * modules/fseeko (Depends-on): Add verify.
38024         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
38025         large.
38026         Reported by Larry Jones.
38027
38028         Fix fseeko on mingw.
38029         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
38030         seek.
38031
38032         Beef up fseek tests.
38033         * tests/test-fseek.c (main): Also test eof handling.
38034         * tests/test-fseeko.c (main): Likewise.
38035         Reported by Larry Jones.
38036
38037 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
38038
38039         Fix fseeko on BSD-based platforms.
38040         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
38041         successful seek.
38042
38043 2007-12-12  Eric Blake  <ebb9@byu.net>
38044
38045         Allow circular dependency of separate libtests.a
38046         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
38047         when use_libtests.
38048
38049 2007-12-11  Eric Blake  <ebb9@byu.net>
38050
38051         Fix bug with -0.0L in previous patch.
38052         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
38053         * tests/test-isnan.c (main): Also test on zeroes.
38054         * tests/test-isnanf.c (main): Likewise.
38055         * tests/test-isnanl.h (main): Likewise.
38056
38057         Detect pseudo-denormals on x86 even when cross-compiling.
38058         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
38059         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
38060         invalid bit patterns that happen to satisfy ==.
38061
38062         Avoid link failures with separate libtests.a.
38063         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
38064         last, to satisfy circular dependencies.
38065
38066 2007-12-11  Eric Blake  <ebb9@byu.net>
38067         and Bruno Haible  <bruno@clisp.org>
38068
38069         Fix OpenBSD 4.0 <float.h> handling of long double.
38070         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
38071         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
38072         * doc/headers/float.texi (float.h): Document OpenBSD bug.
38073
38074 2007-12-11  Jim Meyering  <meyering@redhat.com>
38075
38076         * users.txt: Add libvirt.
38077
38078         Support versions of autoconf prior to 2.59c.
38079         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
38080         if it is not already defined.
38081
38082 2007-12-09  Bruno Haible  <bruno@clisp.org>
38083
38084         Let 'gnulib-tool --import' collect sources needed for the tests in
38085         tests/ rather than in lib/.
38086         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
38087         argument. If true, add rules to generate libtests.a, and put libtests.a
38088         into $(LDADD). Consider source files in subdirectories and set
38089         uses_subdirs.
38090         (func_emit_initmacro_start, func_emit_initmacro_end,
38091         func_emit_initmacro_done): Pass all arguments explicitly.
38092         (func_import): Determine two module lists main_modules,
38093         testsrelated_modules. Determine use_libtests. Determine two variables
38094         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
38095         instead of just sed_transform_lib_file. Determine two variables
38096         main_files and testsrelated_files. Compute 'files' as the union of
38097         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
38098         func_add_or_update. In the generated gnulib-comp.m4, collect the
38099         object files for tests/ in different variables than those for lib/.
38100         Substitute LIBTESTS_LIBDEPS.
38101         (func_create_testdir): Combine the uses_subdirs results from
38102         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
38103
38104 2007-12-09  Bruno Haible  <bruno@clisp.org>
38105
38106         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
38107         the build-aux directory.
38108
38109 2007-12-09  Bruno Haible  <bruno@clisp.org>
38110
38111         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
38112         introduced on 2006-09-09.
38113
38114 2007-12-07  Jim Meyering  <meyering@redhat.com>
38115
38116         Let these macros work also with autoconf-2.59.
38117         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
38118         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
38119         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38120
38121 2007-12-06  Jim Meyering  <meyering@redhat.com>
38122
38123         Avoid a configure-time syntax error in gl_FUNC_ACL.
38124         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
38125         function in each branch, before testing the cache variable.
38126
38127 2007-12-04  Eric Blake  <ebb9@byu.net>
38128
38129         Make scripts executable.
38130         * build-aux/config.guess: Add execute permissions.
38131         * build-aux/config.sub: Likewise.
38132         * build-aux/gendocs.sh: Likewise.
38133
38134         Fix frexp on mingw.
38135         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
38136         cross-compiling.
38137         * doc/functions/frexp.texi (frexp): Document the bug.
38138
38139         Make cygwin fseeko check more reliable.
38140         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
38141         version numbers, rather than unrelated feature check.
38142         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
38143         * doc/functions/ftello.texi (ftello): Likewise.
38144         Reported by Bruno Haible.
38145
38146         * m4/strerror.m4: Bump version number.
38147
38148 2007-12-03  Bruno Haible  <bruno@clisp.org>
38149
38150         * doc/functions/mprotect.texi: Mention the mingw problem.
38151
38152 2007-12-03  Eric Blake  <ebb9@byu.net>
38153
38154         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
38155         REPLACE_STRERROR is initialized before this macro.
38156
38157 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38158
38159         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
38160         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
38161         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
38162         put -lsec in even for programs other than 'ls'.  This fixes a problem
38163         for gettext reported by Bruno Haible in
38164         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
38165         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
38166         Add support for Solaris 10.  This isn't efficient, but should get the
38167         job done for now.
38168
38169 2007-12-03  James Youngman  <jay@gnu.org>
38170
38171         * doc/regexprops-generic.texi: change "an close-group" to "a
38172         close-group" and "illegal" to "not allowed".
38173
38174 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38175
38176         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
38177         pr_byname.h. Needed for the rare case when the maintainer has done
38178         "make maintainer-clean" in the source directory and then attempts a
38179         build outside the source directory.
38180         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
38181         scripts_byname.h.
38182
38183 2007-12-02  Martin Lambers <marlam@marlam.de>
38184             Bruno Haible  <bruno@clisp.org>
38185
38186         * lib/getpagesize.h: Remove file.
38187         * lib/unistd.in.h: Include declaration of getpagesize here.
38188         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
38189         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
38190         HAVE_SYS_PARAM_H.
38191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
38192         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38193         * modules/getpagesize (Files): Remove lib/getpagesize.h.
38194         (Depends-on): Add unistd.
38195         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38196         (Include): Use <unistd.h> instead of getpagesize.h.
38197         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
38198         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38199         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
38200         gl_GETPAGESIZE invocation, already handled by module dependency.
38201         * lib/pagealign_alloc.c: Don't include getpagesize.h.
38202
38203 2007-12-02  Bruno Haible  <bruno@clisp.org>
38204
38205         * modules/strings-tests: New file.
38206         * tests/test-strings.c: New file.
38207
38208         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
38209         * lib/strings.in.h: New file.
38210         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
38211         * m4/strings_h.m4: New file.
38212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
38213         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
38214         * modules/strings: New file.
38215         * modules/string (Makefile.am): Update.
38216         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
38217         Reported by Karl Berry.
38218
38219 2007-12-01  Eric Blake  <ebb9@byu.net>
38220
38221         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
38222         accomodate fix in cygwin 1.5.25.
38223
38224 2007-12-01  Jim Meyering  <meyering@redhat.com>
38225
38226         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
38227         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
38228         that would inhibit utf8-optimization of a regexp containing line-
38229         or buffer-anchors, e.g., `^', `$'.
38230
38231 2007-11-30  Bruno Haible  <bruno@clisp.org>
38232
38233         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
38234         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
38235         glthread_recursive_lock_init.
38236         * lib/lock.c (glthread_recursive_lock_init)
38237         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
38238         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38239
38240 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
38241
38242         New function qset_acl, like set_acl but with syscall semantics.
38243         * lib/acl.h (qset_acl): New decl.
38244         * lib/acl.c (qset_acl): New function.
38245         (set_acl): Use new function.  Use more-consistent diagnostics.
38246
38247 2007-11-28  Jim Meyering  <meyering@redhat.com>
38248
38249         * modules/physmem (License): Change from GPL to LGPLv2+.
38250
38251 2007-11-26  Bruno Haible  <bruno@clisp.org>
38252
38253         * lib/vasnprintf.c (decode_long_double): Don't abort if the
38254         'long double' type has excess precision.
38255         Reported by Jim Meyering in
38256         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
38257
38258 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38259
38260         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
38261         Sync from <http://gnu.org/licenses>.
38262         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
38263         with license text from same location.
38264         * doc/maintain.texi, doc/standards.texi:  Sync from
38265         <http://savannah.gnu.org/projects/gnustandards>.
38266
38267 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
38268         and Jim Meyering  <meyering@redhat.com>
38269
38270         Adjust getdate' grammar to accept a slightly more regular language.
38271         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
38272         Before, the former was rejected.
38273         * lib/getdate.y (digits_to_date_time): New function, factored
38274         out of ...
38275         (number): ...here.  Just call digits_to_date_time.
38276         (hybrid): New non-terminal to handle an <unsigned number,
38277         signed relative offset> sequence consistently.
38278
38279 2007-11-18  Jim Meyering  <meyering@redhat.com>
38280
38281         Pull my changes from coreutils:
38282         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
38283         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
38284         use of $gnulib_tool_option_extras, so that it's separated from the
38285         preceding argument.
38286
38287         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
38288         * build-aux/bootstrap (cp_mark_as_generated): Create any required
38289         parent destination directories before copying a file into place.
38290
38291 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
38292
38293         bootstrap: work also with 4-argument variant of AC_INIT
38294         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
38295
38296 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38297
38298         Port test-getaddrinfo to Solaris.
38299         Problem reported by Bruno Haible in
38300         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
38301         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
38302         explanation of setting 'hints'.
38303         Don't reject an implementation merely because it returns EAI_SERVICE.
38304         (EAI_SERVICE): Define to 0 if not defined.
38305
38306 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
38307
38308         The license of gnu-make and posix-shell is now "GPLed build tool".
38309         * modules/gnu-make (License): Likewise.
38310         * modules/posix-shell (License): Likewise.
38311
38312         New module posix-shell, for determining a POSIX shell
38313         or perhaps something that is close enough to a POSIX shell.
38314         * m4/posix-shell.m4: New file.
38315         * modules/posix-shell: New file.
38316
38317         * MODULES.html.sh: Mention new module.
38318
38319         New module gnu-make, for determining whether we're using GNU Make.
38320         * m4/gnu-make.m4: New file.
38321         * modules/gnu-make: New file.
38322         * MODULES.html.sh: Mention new module.
38323
38324 2007-11-14  Jim Meyering  <meyering@redhat.com>
38325
38326         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
38327         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
38328         use this macro to create a function _definition_.
38329         Remove useless "#undef ARGMATCH_DIE".
38330
38331 2007-11-14  Bruno Haible  <bruno@clisp.org>
38332
38333         * lib/config.charset: Update for OpenBSD 4.1.
38334         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
38335
38336 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
38337
38338         Document 64-bit #if problems in stdint.texi.
38339         * doc/headers/stdint.texi (stdint.h): Mention problems with
38340         64-bit-#if, and how to work around them.
38341
38342         Don't insist on 'long long int' support in the preprocessor.  It
38343         breaks too many things.  For example, PRIdMAX still uses a 'long
38344         long int' format with the latest Sun compiler, even though
38345         HAVE_LONG_LONG_INT isn't defined due to that compiler's
38346         preprocessor problem.  This causes the latest coreutils to dump
38347         core on Solaris 10 sparc with the Sun C compiler.
38348         Instead, fix the 2007-10-16 problem in a different way, by evaluating
38349         the troublesome expressions at configure-time, not at #if-time.
38350         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
38351         preprocessor.
38352         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
38353         compile-time C checks, done at 'configure'-time.
38354         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
38355         * modules/inttypes (Makefile): Substitute the new symbols that
38356         gl_INTTYPES_H now generates.
38357         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
38358
38359 2007-11-12  Bruno Haible  <bruno@clisp.org>
38360
38361         Tests for Unicode character classification functions.
38362
38363         * modules/unictype/bidicategory-byname-tests: New file.
38364         * modules/unictype/bidicategory-name-tests: New file.
38365         * modules/unictype/bidicategory-of-tests: New file.
38366         * modules/unictype/bidicategory-test-tests: New file.
38367         * modules/unictype/block-list-tests: New file.
38368         * modules/unictype/block-of-tests: New file.
38369         * modules/unictype/block-test-tests: New file.
38370         * modules/unictype/category-C-tests: New file.
38371         * modules/unictype/category-Cc-tests: New file.
38372         * modules/unictype/category-Cf-tests: New file.
38373         * modules/unictype/category-Cn-tests: New file.
38374         * modules/unictype/category-Co-tests: New file.
38375         * modules/unictype/category-Cs-tests: New file.
38376         * modules/unictype/category-L-tests: New file.
38377         * modules/unictype/category-Ll-tests: New file.
38378         * modules/unictype/category-Lm-tests: New file.
38379         * modules/unictype/category-Lo-tests: New file.
38380         * modules/unictype/category-Lt-tests: New file.
38381         * modules/unictype/category-Lu-tests: New file.
38382         * modules/unictype/category-M-tests: New file.
38383         * modules/unictype/category-Mc-tests: New file.
38384         * modules/unictype/category-Me-tests: New file.
38385         * modules/unictype/category-Mn-tests: New file.
38386         * modules/unictype/category-N-tests: New file.
38387         * modules/unictype/category-Nd-tests: New file.
38388         * modules/unictype/category-Nl-tests: New file.
38389         * modules/unictype/category-No-tests: New file.
38390         * modules/unictype/category-P-tests: New file.
38391         * modules/unictype/category-Pc-tests: New file.
38392         * modules/unictype/category-Pd-tests: New file.
38393         * modules/unictype/category-Pe-tests: New file.
38394         * modules/unictype/category-Pf-tests: New file.
38395         * modules/unictype/category-Pi-tests: New file.
38396         * modules/unictype/category-Po-tests: New file.
38397         * modules/unictype/category-Ps-tests: New file.
38398         * modules/unictype/category-S-tests: New file.
38399         * modules/unictype/category-Sc-tests: New file.
38400         * modules/unictype/category-Sk-tests: New file.
38401         * modules/unictype/category-Sm-tests: New file.
38402         * modules/unictype/category-So-tests: New file.
38403         * modules/unictype/category-Z-tests: New file.
38404         * modules/unictype/category-Zl-tests: New file.
38405         * modules/unictype/category-Zp-tests: New file.
38406         * modules/unictype/category-Zs-tests: New file.
38407         * modules/unictype/category-and-not-tests: New file.
38408         * modules/unictype/category-and-tests: New file.
38409         * modules/unictype/category-byname-tests: New file.
38410         * modules/unictype/category-name-tests: New file.
38411         * modules/unictype/category-none-tests: New file.
38412         * modules/unictype/category-of-tests: New file.
38413         * modules/unictype/category-or-tests: New file.
38414         * modules/unictype/category-test-withtable-tests: New file.
38415         * modules/unictype/combining-class-tests: New file.
38416         * modules/unictype/ctype-alnum-tests: New file.
38417         * modules/unictype/ctype-alpha-tests: New file.
38418         * modules/unictype/ctype-blank-tests: New file.
38419         * modules/unictype/ctype-cntrl-tests: New file.
38420         * modules/unictype/ctype-digit-tests: New file.
38421         * modules/unictype/ctype-graph-tests: New file.
38422         * modules/unictype/ctype-lower-tests: New file.
38423         * modules/unictype/ctype-print-tests: New file.
38424         * modules/unictype/ctype-punct-tests: New file.
38425         * modules/unictype/ctype-space-tests: New file.
38426         * modules/unictype/ctype-upper-tests: New file.
38427         * modules/unictype/ctype-xdigit-tests: New file.
38428         * modules/unictype/decimal-digit-tests: New file.
38429         * modules/unictype/digit-tests: New file.
38430         * modules/unictype/mirror-tests: New file.
38431         * modules/unictype/numeric-tests: New file.
38432         * modules/unictype/property-alphabetic-tests: New file.
38433         * modules/unictype/property-ascii-hex-digit-tests: New file.
38434         * modules/unictype/property-bidi-arabic-digit-tests: New file.
38435         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
38436         * modules/unictype/property-bidi-block-separator-tests: New file.
38437         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
38438         * modules/unictype/property-bidi-common-separator-tests: New file.
38439         * modules/unictype/property-bidi-control-tests: New file.
38440         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
38441         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
38442         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
38443         * modules/unictype/property-bidi-european-digit-tests: New file.
38444         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
38445         * modules/unictype/property-bidi-left-to-right-tests: New file.
38446         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
38447         * modules/unictype/property-bidi-other-neutral-tests: New file.
38448         * modules/unictype/property-bidi-pdf-tests: New file.
38449         * modules/unictype/property-bidi-segment-separator-tests: New file.
38450         * modules/unictype/property-bidi-whitespace-tests: New file.
38451         * modules/unictype/property-byname-tests: New file.
38452         * modules/unictype/property-combining-tests: New file.
38453         * modules/unictype/property-composite-tests: New file.
38454         * modules/unictype/property-currency-symbol-tests: New file.
38455         * modules/unictype/property-dash-tests: New file.
38456         * modules/unictype/property-decimal-digit-tests: New file.
38457         * modules/unictype/property-default-ignorable-code-point-tests: New file.
38458         * modules/unictype/property-deprecated-tests: New file.
38459         * modules/unictype/property-diacritic-tests: New file.
38460         * modules/unictype/property-extender-tests: New file.
38461         * modules/unictype/property-format-control-tests: New file.
38462         * modules/unictype/property-grapheme-base-tests: New file.
38463         * modules/unictype/property-grapheme-extend-tests: New file.
38464         * modules/unictype/property-grapheme-link-tests: New file.
38465         * modules/unictype/property-hex-digit-tests: New file.
38466         * modules/unictype/property-hyphen-tests: New file.
38467         * modules/unictype/property-id-continue-tests: New file.
38468         * modules/unictype/property-id-start-tests: New file.
38469         * modules/unictype/property-ideographic-tests: New file.
38470         * modules/unictype/property-ids-binary-operator-tests: New file.
38471         * modules/unictype/property-ids-trinary-operator-tests: New file.
38472         * modules/unictype/property-ignorable-control-tests: New file.
38473         * modules/unictype/property-iso-control-tests: New file.
38474         * modules/unictype/property-join-control-tests: New file.
38475         * modules/unictype/property-left-of-pair-tests: New file.
38476         * modules/unictype/property-line-separator-tests: New file.
38477         * modules/unictype/property-logical-order-exception-tests: New file.
38478         * modules/unictype/property-lowercase-tests: New file.
38479         * modules/unictype/property-math-tests: New file.
38480         * modules/unictype/property-non-break-tests: New file.
38481         * modules/unictype/property-not-a-character-tests: New file.
38482         * modules/unictype/property-numeric-tests: New file.
38483         * modules/unictype/property-other-alphabetic-tests: New file.
38484         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
38485         * modules/unictype/property-other-grapheme-extend-tests: New file.
38486         * modules/unictype/property-other-id-continue-tests: New file.
38487         * modules/unictype/property-other-id-start-tests: New file.
38488         * modules/unictype/property-other-lowercase-tests: New file.
38489         * modules/unictype/property-other-math-tests: New file.
38490         * modules/unictype/property-other-uppercase-tests: New file.
38491         * modules/unictype/property-paired-punctuation-tests: New file.
38492         * modules/unictype/property-paragraph-separator-tests: New file.
38493         * modules/unictype/property-pattern-syntax-tests: New file.
38494         * modules/unictype/property-pattern-white-space-tests: New file.
38495         * modules/unictype/property-private-use-tests: New file.
38496         * modules/unictype/property-punctuation-tests: New file.
38497         * modules/unictype/property-quotation-mark-tests: New file.
38498         * modules/unictype/property-radical-tests: New file.
38499         * modules/unictype/property-sentence-terminal-tests: New file.
38500         * modules/unictype/property-soft-dotted-tests: New file.
38501         * modules/unictype/property-space-tests: New file.
38502         * modules/unictype/property-terminal-punctuation-tests: New file.
38503         * modules/unictype/property-test-tests: New file.
38504         * modules/unictype/property-titlecase-tests: New file.
38505         * modules/unictype/property-unassigned-code-value-tests: New file.
38506         * modules/unictype/property-unified-ideograph-tests: New file.
38507         * modules/unictype/property-uppercase-tests: New file.
38508         * modules/unictype/property-variation-selector-tests: New file.
38509         * modules/unictype/property-white-space-tests: New file.
38510         * modules/unictype/property-xid-continue-tests: New file.
38511         * modules/unictype/property-xid-start-tests: New file.
38512         * modules/unictype/property-zero-width-tests: New file.
38513         * modules/unictype/scripts-tests: New file.
38514         * modules/unictype/syntax-c-ident-tests: New file.
38515         * modules/unictype/syntax-c-whitespace-tests: New file.
38516         * modules/unictype/syntax-java-ident-tests: New file.
38517         * modules/unictype/syntax-java-whitespace-tests: New file.
38518         * tests/unictype/test-bidi_byname.c: New file.
38519         * tests/unictype/test-bidi_name.c: New file.
38520         * tests/unictype/test-bidi_of.c: New file.
38521         * tests/unictype/test-bidi_test.c: New file.
38522         * tests/unictype/test-block_list.c: New file.
38523         * tests/unictype/test-block_of.c: New file.
38524         * tests/unictype/test-block_test.c: New file.
38525         * tests/unictype/test-categ_and.c: New file.
38526         * tests/unictype/test-categ_and_not.c: New file.
38527         * tests/unictype/test-categ_byname.c: New file.
38528         * tests/unictype/test-categ_name.c: New file.
38529         * tests/unictype/test-categ_none.c: New file.
38530         * tests/unictype/test-categ_of.c: New file.
38531         * tests/unictype/test-categ_or.c: New file.
38532         * tests/unictype/test-categ_test_withtable.c: New file.
38533         * tests/unictype/test-combining.c: New file.
38534         * tests/unictype/test-decdigit.c: New file.
38535         * tests/unictype/test-digit.c: New file.
38536         * tests/unictype/test-mirror.c: New file.
38537         * tests/unictype/test-numeric.c: New file.
38538         * tests/unictype/test-pr_byname.c: New file.
38539         * tests/unictype/test-pr_test.c: New file.
38540         * tests/unictype/test-predicate-part1.h: New file.
38541         * tests/unictype/test-predicate-part2.h: New file.
38542         * tests/unictype/test-scripts.c: New file.
38543         * tests/unictype/test-sy_c_ident.c: New file.
38544         * tests/unictype/test-sy_java_ident.c: New file.
38545
38546         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
38547         for Unicode 5.0.0.
38548         * tests/unictype/test-categ_Cc.c: Likewise.
38549         * tests/unictype/test-categ_Cf.c: Likewise.
38550         * tests/unictype/test-categ_Cn.c: Likewise.
38551         * tests/unictype/test-categ_Co.c: Likewise.
38552         * tests/unictype/test-categ_Cs.c: Likewise.
38553         * tests/unictype/test-categ_L.c: Likewise.
38554         * tests/unictype/test-categ_Ll.c: Likewise.
38555         * tests/unictype/test-categ_Lm.c: Likewise.
38556         * tests/unictype/test-categ_Lo.c: Likewise.
38557         * tests/unictype/test-categ_Lt.c: Likewise.
38558         * tests/unictype/test-categ_Lu.c: Likewise.
38559         * tests/unictype/test-categ_M.c: Likewise.
38560         * tests/unictype/test-categ_Mc.c: Likewise.
38561         * tests/unictype/test-categ_Me.c: Likewise.
38562         * tests/unictype/test-categ_Mn.c: Likewise.
38563         * tests/unictype/test-categ_N.c: Likewise.
38564         * tests/unictype/test-categ_Nd.c: Likewise.
38565         * tests/unictype/test-categ_Nl.c: Likewise.
38566         * tests/unictype/test-categ_No.c: Likewise.
38567         * tests/unictype/test-categ_P.c: Likewise.
38568         * tests/unictype/test-categ_Pc.c: Likewise.
38569         * tests/unictype/test-categ_Pd.c: Likewise.
38570         * tests/unictype/test-categ_Pe.c: Likewise.
38571         * tests/unictype/test-categ_Pf.c: Likewise.
38572         * tests/unictype/test-categ_Pi.c: Likewise.
38573         * tests/unictype/test-categ_Po.c: Likewise.
38574         * tests/unictype/test-categ_Ps.c: Likewise.
38575         * tests/unictype/test-categ_S.c: Likewise.
38576         * tests/unictype/test-categ_Sc.c: Likewise.
38577         * tests/unictype/test-categ_Sk.c: Likewise.
38578         * tests/unictype/test-categ_Sm.c: Likewise.
38579         * tests/unictype/test-categ_So.c: Likewise.
38580         * tests/unictype/test-categ_Z.c: Likewise.
38581         * tests/unictype/test-categ_Zl.c: Likewise.
38582         * tests/unictype/test-categ_Zp.c: Likewise.
38583         * tests/unictype/test-categ_Zs.c: Likewise.
38584         * tests/unictype/test-ctype_alnum.c: Likewise.
38585         * tests/unictype/test-ctype_alpha.c: Likewise.
38586         * tests/unictype/test-ctype_blank.c: Likewise.
38587         * tests/unictype/test-ctype_cntrl.c: Likewise.
38588         * tests/unictype/test-ctype_digit.c: Likewise.
38589         * tests/unictype/test-ctype_graph.c: Likewise.
38590         * tests/unictype/test-ctype_lower.c: Likewise.
38591         * tests/unictype/test-ctype_print.c: Likewise.
38592         * tests/unictype/test-ctype_punct.c: Likewise.
38593         * tests/unictype/test-ctype_space.c: Likewise.
38594         * tests/unictype/test-ctype_upper.c: Likewise.
38595         * tests/unictype/test-ctype_xdigit.c: Likewise.
38596         * tests/unictype/test-decdigit.h: Likewise.
38597         * tests/unictype/test-digit.h: Likewise.
38598         * tests/unictype/test-numeric.h: Likewise.
38599         * tests/unictype/test-pr_alphabetic.c: Likewise.
38600         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
38601         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
38602         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
38603         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
38604         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
38605         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
38606         * tests/unictype/test-pr_bidi_control.c: Likewise.
38607         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
38608         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
38609         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
38610         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
38611         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
38612         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
38613         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
38614         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
38615         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
38616         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
38617         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
38618         * tests/unictype/test-pr_combining.c: Likewise.
38619         * tests/unictype/test-pr_composite.c: Likewise.
38620         * tests/unictype/test-pr_currency_symbol.c: Likewise.
38621         * tests/unictype/test-pr_dash.c: Likewise.
38622         * tests/unictype/test-pr_decimal_digit.c: Likewise.
38623         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
38624         * tests/unictype/test-pr_deprecated.c: Likewise.
38625         * tests/unictype/test-pr_diacritic.c: Likewise.
38626         * tests/unictype/test-pr_extender.c: Likewise.
38627         * tests/unictype/test-pr_format_control.c: Likewise.
38628         * tests/unictype/test-pr_grapheme_base.c: Likewise.
38629         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
38630         * tests/unictype/test-pr_grapheme_link.c: Likewise.
38631         * tests/unictype/test-pr_hex_digit.c: Likewise.
38632         * tests/unictype/test-pr_hyphen.c: Likewise.
38633         * tests/unictype/test-pr_id_continue.c: Likewise.
38634         * tests/unictype/test-pr_id_start.c: Likewise.
38635         * tests/unictype/test-pr_ideographic.c: Likewise.
38636         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
38637         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
38638         * tests/unictype/test-pr_ignorable_control.c: Likewise.
38639         * tests/unictype/test-pr_iso_control.c: Likewise.
38640         * tests/unictype/test-pr_join_control.c: Likewise.
38641         * tests/unictype/test-pr_left_of_pair.c: Likewise.
38642         * tests/unictype/test-pr_line_separator.c: Likewise.
38643         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
38644         * tests/unictype/test-pr_lowercase.c: Likewise.
38645         * tests/unictype/test-pr_math.c: Likewise.
38646         * tests/unictype/test-pr_non_break.c: Likewise.
38647         * tests/unictype/test-pr_not_a_character.c: Likewise.
38648         * tests/unictype/test-pr_numeric.c: Likewise.
38649         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
38650         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
38651         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
38652         * tests/unictype/test-pr_other_id_continue.c: Likewise.
38653         * tests/unictype/test-pr_other_id_start.c: Likewise.
38654         * tests/unictype/test-pr_other_lowercase.c: Likewise.
38655         * tests/unictype/test-pr_other_math.c: Likewise.
38656         * tests/unictype/test-pr_other_uppercase.c: Likewise.
38657         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
38658         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
38659         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
38660         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
38661         * tests/unictype/test-pr_private_use.c: Likewise.
38662         * tests/unictype/test-pr_punctuation.c: Likewise.
38663         * tests/unictype/test-pr_quotation_mark.c: Likewise.
38664         * tests/unictype/test-pr_radical.c: Likewise.
38665         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
38666         * tests/unictype/test-pr_soft_dotted.c: Likewise.
38667         * tests/unictype/test-pr_space.c: Likewise.
38668         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
38669         * tests/unictype/test-pr_titlecase.c: Likewise.
38670         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
38671         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
38672         * tests/unictype/test-pr_uppercase.c: Likewise.
38673         * tests/unictype/test-pr_variation_selector.c: Likewise.
38674         * tests/unictype/test-pr_white_space.c: Likewise.
38675         * tests/unictype/test-pr_xid_continue.c: Likewise.
38676         * tests/unictype/test-pr_xid_start.c: Likewise.
38677         * tests/unictype/test-pr_zero_width.c: Likewise.
38678         * tests/unictype/test-sy_c_whitespace.c: Likewise.
38679         * tests/unictype/test-sy_java_whitespace.c: Likewise.
38680
38681 2007-11-12  Bruno Haible  <bruno@clisp.org>
38682
38683         Unicode character classification functions.
38684         * lib/unictype.h: New file.
38685         * modules/unictype/base: New file.
38686         * modules/unictype/category-L: New file.
38687         * modules/unictype/category-Lu: New file.
38688         * modules/unictype/category-Ll: New file.
38689         * modules/unictype/category-Lt: New file.
38690         * modules/unictype/category-Lm: New file.
38691         * modules/unictype/category-Lo: New file.
38692         * modules/unictype/category-M: New file.
38693         * modules/unictype/category-Mn: New file.
38694         * modules/unictype/category-Mc: New file.
38695         * modules/unictype/category-Me: New file.
38696         * modules/unictype/category-N: New file.
38697         * modules/unictype/category-Nd: New file.
38698         * modules/unictype/category-Nl: New file.
38699         * modules/unictype/category-No: New file.
38700         * modules/unictype/category-P: New file.
38701         * modules/unictype/category-Pc: New file.
38702         * modules/unictype/category-Pd: New file.
38703         * modules/unictype/category-Ps: New file.
38704         * modules/unictype/category-Pe: New file.
38705         * modules/unictype/category-Pi: New file.
38706         * modules/unictype/category-Pf: New file.
38707         * modules/unictype/category-Po: New file.
38708         * modules/unictype/category-S: New file.
38709         * modules/unictype/category-Sm: New file.
38710         * modules/unictype/category-Sc: New file.
38711         * modules/unictype/category-Sk: New file.
38712         * modules/unictype/category-So: New file.
38713         * modules/unictype/category-Z: New file.
38714         * modules/unictype/category-Zs: New file.
38715         * modules/unictype/category-Zl: New file.
38716         * modules/unictype/category-Zp: New file.
38717         * modules/unictype/category-C: New file.
38718         * modules/unictype/category-Cc: New file.
38719         * modules/unictype/category-Cf: New file.
38720         * modules/unictype/category-Cs: New file.
38721         * modules/unictype/category-Co: New file.
38722         * modules/unictype/category-Cn: New file.
38723         * modules/unictype/category-or: New file.
38724         * modules/unictype/category-of: New file.
38725         * modules/unictype/category-test: New file.
38726         * modules/unictype/category-test-withtable: New file.
38727         * modules/unictype/category-byname: New file.
38728         * modules/unictype/category-none: New file.
38729         * modules/unictype/category-and: New file.
38730         * modules/unictype/category-and-not: New file.
38731         * modules/unictype/category-name: New file.
38732         * modules/unictype/combining-class: New file.
38733         * modules/unictype/category-all: New file.
38734         * modules/unictype/bidicategory-all: New file.
38735         * modules/unictype/bidicategory-byname: New file.
38736         * modules/unictype/bidicategory-name: New file.
38737         * modules/unictype/bidicategory-of: New file.
38738         * modules/unictype/bidicategory-test: New file.
38739         * modules/unictype/decimal-digit: New file.
38740         * modules/unictype/digit: New file.
38741         * modules/unictype/numeric: New file.
38742         * modules/unictype/mirror: New file.
38743         * modules/unictype/property-white-space: New file.
38744         * modules/unictype/property-alphabetic: New file.
38745         * modules/unictype/property-other-alphabetic: New file.
38746         * modules/unictype/property-not-a-character: New file.
38747         * modules/unictype/property-default-ignorable-code-point: New file.
38748         * modules/unictype/property-other-default-ignorable-code-point: New
38749         file.
38750         * modules/unictype/property-deprecated: New file.
38751         * modules/unictype/property-logical-order-exception: New file.
38752         * modules/unictype/property-variation-selector: New file.
38753         * modules/unictype/property-private-use: New file.
38754         * modules/unictype/property-unassigned-code-value: New file.
38755         * modules/unictype/property-uppercase: New file.
38756         * modules/unictype/property-other-uppercase: New file.
38757         * modules/unictype/property-lowercase: New file.
38758         * modules/unictype/property-other-lowercase: New file.
38759         * modules/unictype/property-titlecase: New file.
38760         * modules/unictype/property-soft-dotted: New file.
38761         * modules/unictype/property-id-start: New file.
38762         * modules/unictype/property-other-id-start: New file.
38763         * modules/unictype/property-id-continue: New file.
38764         * modules/unictype/property-other-id-continue: New file.
38765         * modules/unictype/property-xid-start: New file.
38766         * modules/unictype/property-xid-continue: New file.
38767         * modules/unictype/property-pattern-white-space: New file.
38768         * modules/unictype/property-pattern-syntax: New file.
38769         * modules/unictype/property-join-control: New file.
38770         * modules/unictype/property-grapheme-base: New file.
38771         * modules/unictype/property-grapheme-extend: New file.
38772         * modules/unictype/property-other-grapheme-extend: New file.
38773         * modules/unictype/property-grapheme-link: New file.
38774         * modules/unictype/property-bidi-control: New file.
38775         * modules/unictype/property-bidi-left-to-right: New file.
38776         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
38777         * modules/unictype/property-bidi-arabic-right-to-left: New file.
38778         * modules/unictype/property-bidi-european-digit: New file.
38779         * modules/unictype/property-bidi-eur-num-separator: New file.
38780         * modules/unictype/property-bidi-eur-num-terminator: New file.
38781         * modules/unictype/property-bidi-arabic-digit: New file.
38782         * modules/unictype/property-bidi-common-separator: New file.
38783         * modules/unictype/property-bidi-block-separator: New file.
38784         * modules/unictype/property-bidi-segment-separator: New file.
38785         * modules/unictype/property-bidi-whitespace: New file.
38786         * modules/unictype/property-bidi-non-spacing-mark: New file.
38787         * modules/unictype/property-bidi-boundary-neutral: New file.
38788         * modules/unictype/property-bidi-pdf: New file.
38789         * modules/unictype/property-bidi-embedding-or-override: New file.
38790         * modules/unictype/property-bidi-other-neutral: New file.
38791         * modules/unictype/property-hex-digit: New file.
38792         * modules/unictype/property-ascii-hex-digit: New file.
38793         * modules/unictype/property-ideographic: New file.
38794         * modules/unictype/property-unified-ideograph: New file.
38795         * modules/unictype/property-radical: New file.
38796         * modules/unictype/property-ids-binary-operator: New file.
38797         * modules/unictype/property-ids-trinary-operator: New file.
38798         * modules/unictype/property-zero-width: New file.
38799         * modules/unictype/property-space: New file.
38800         * modules/unictype/property-non-break: New file.
38801         * modules/unictype/property-iso-control: New file.
38802         * modules/unictype/property-format-control: New file.
38803         * modules/unictype/property-dash: New file.
38804         * modules/unictype/property-hyphen: New file.
38805         * modules/unictype/property-punctuation: New file.
38806         * modules/unictype/property-line-separator: New file.
38807         * modules/unictype/property-paragraph-separator: New file.
38808         * modules/unictype/property-quotation-mark: New file.
38809         * modules/unictype/property-sentence-terminal: New file.
38810         * modules/unictype/property-terminal-punctuation: New file.
38811         * modules/unictype/property-currency-symbol: New file.
38812         * modules/unictype/property-math: New file.
38813         * modules/unictype/property-other-math: New file.
38814         * modules/unictype/property-paired-punctuation: New file.
38815         * modules/unictype/property-left-of-pair: New file.
38816         * modules/unictype/property-combining: New file.
38817         * modules/unictype/property-composite: New file.
38818         * modules/unictype/property-decimal-digit: New file.
38819         * modules/unictype/property-numeric: New file.
38820         * modules/unictype/property-diacritic: New file.
38821         * modules/unictype/property-extender: New file.
38822         * modules/unictype/property-ignorable-control: New file.
38823         * modules/unictype/property-test: New file.
38824         * modules/unictype/property-byname: New file.
38825         * modules/unictype/property-all: New file.
38826         * modules/unictype/scripts: New file.
38827         * modules/unictype/scripts-all: New file.
38828         * modules/unictype/block-of: New file.
38829         * modules/unictype/block-test: New file.
38830         * modules/unictype/block-list: New file.
38831         * modules/unictype/block-all: New file.
38832         * modules/unictype/syntax-c-whitespace: New file.
38833         * modules/unictype/syntax-java-whitespace: New file.
38834         * modules/unictype/syntax-c-ident: New file.
38835         * modules/unictype/syntax-java-ident: New file.
38836         * modules/unictype/ctype-alnum: New file.
38837         * modules/unictype/ctype-alpha: New file.
38838         * modules/unictype/ctype-cntrl: New file.
38839         * modules/unictype/ctype-digit: New file.
38840         * modules/unictype/ctype-graph: New file.
38841         * modules/unictype/ctype-lower: New file.
38842         * modules/unictype/ctype-print: New file.
38843         * modules/unictype/ctype-punct: New file.
38844         * modules/unictype/ctype-space: New file.
38845         * modules/unictype/ctype-upper: New file.
38846         * modules/unictype/ctype-xdigit: New file.
38847         * modules/unictype/ctype-blank: New file.
38848         * lib/unictype/bidi_byname.c: New file.
38849         * lib/unictype/bidi_name.c: New file.
38850         * lib/unictype/bidi_of.c: New file.
38851         * lib/unictype/bidi_test.c: New file.
38852         * lib/unictype/bitmap.h: New file.
38853         * lib/unictype/block_test.c: New file.
38854         * lib/unictype/blocks.c: New file.
38855         * lib/unictype/categ_C.c: New file.
38856         * lib/unictype/categ_Cc.c: New file.
38857         * lib/unictype/categ_Cf.c: New file.
38858         * lib/unictype/categ_Cn.c: New file.
38859         * lib/unictype/categ_Co.c: New file.
38860         * lib/unictype/categ_Cs.c: New file.
38861         * lib/unictype/categ_L.c: New file.
38862         * lib/unictype/categ_Ll.c: New file.
38863         * lib/unictype/categ_Lm.c: New file.
38864         * lib/unictype/categ_Lo.c: New file.
38865         * lib/unictype/categ_Lt.c: New file.
38866         * lib/unictype/categ_Lu.c: New file.
38867         * lib/unictype/categ_M.c: New file.
38868         * lib/unictype/categ_Mc.c: New file.
38869         * lib/unictype/categ_Me.c: New file.
38870         * lib/unictype/categ_Mn.c: New file.
38871         * lib/unictype/categ_N.c: New file.
38872         * lib/unictype/categ_Nd.c: New file.
38873         * lib/unictype/categ_Nl.c: New file.
38874         * lib/unictype/categ_No.c: New file.
38875         * lib/unictype/categ_P.c: New file.
38876         * lib/unictype/categ_Pc.c: New file.
38877         * lib/unictype/categ_Pd.c: New file.
38878         * lib/unictype/categ_Pe.c: New file.
38879         * lib/unictype/categ_Pf.c: New file.
38880         * lib/unictype/categ_Pi.c: New file.
38881         * lib/unictype/categ_Po.c: New file.
38882         * lib/unictype/categ_Ps.c: New file.
38883         * lib/unictype/categ_S.c: New file.
38884         * lib/unictype/categ_Sc.c: New file.
38885         * lib/unictype/categ_Sk.c: New file.
38886         * lib/unictype/categ_Sm.c: New file.
38887         * lib/unictype/categ_So.c: New file.
38888         * lib/unictype/categ_Z.c: New file.
38889         * lib/unictype/categ_Zl.c: New file.
38890         * lib/unictype/categ_Zp.c: New file.
38891         * lib/unictype/categ_Zs.c: New file.
38892         * lib/unictype/categ_and.c: New file.
38893         * lib/unictype/categ_and_not.c: New file.
38894         * lib/unictype/categ_byname.c: New file.
38895         * lib/unictype/categ_name.c: New file.
38896         * lib/unictype/categ_none.c: New file.
38897         * lib/unictype/categ_of.c: New file.
38898         * lib/unictype/categ_or.c: New file.
38899         * lib/unictype/categ_test.c: New file.
38900         * lib/unictype/combining.c: New file.
38901         * lib/unictype/ctype_alnum.c: New file.
38902         * lib/unictype/ctype_alpha.c: New file.
38903         * lib/unictype/ctype_blank.c: New file.
38904         * lib/unictype/ctype_cntrl.c: New file.
38905         * lib/unictype/ctype_digit.c: New file.
38906         * lib/unictype/ctype_graph.c: New file.
38907         * lib/unictype/ctype_lower.c: New file.
38908         * lib/unictype/ctype_print.c: New file.
38909         * lib/unictype/ctype_punct.c: New file.
38910         * lib/unictype/ctype_space.c: New file.
38911         * lib/unictype/ctype_upper.c: New file.
38912         * lib/unictype/ctype_xdigit.c: New file.
38913         * lib/unictype/decdigit.c: New file.
38914         * lib/unictype/digit.c: New file.
38915         * lib/unictype/identsyntaxmap.h: New file.
38916         * lib/unictype/mirror.c: New file.
38917         * lib/unictype/numeric.c: New file.
38918         * lib/unictype/pr_alphabetic.c: New file.
38919         * lib/unictype/pr_ascii_hex_digit.c: New file.
38920         * lib/unictype/pr_bidi_arabic_digit.c: New file.
38921         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
38922         * lib/unictype/pr_bidi_block_separator.c: New file.
38923         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
38924         * lib/unictype/pr_bidi_common_separator.c: New file.
38925         * lib/unictype/pr_bidi_control.c: New file.
38926         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
38927         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
38928         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
38929         * lib/unictype/pr_bidi_european_digit.c: New file.
38930         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
38931         * lib/unictype/pr_bidi_left_to_right.c: New file.
38932         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
38933         * lib/unictype/pr_bidi_other_neutral.c: New file.
38934         * lib/unictype/pr_bidi_pdf.c: New file.
38935         * lib/unictype/pr_bidi_segment_separator.c: New file.
38936         * lib/unictype/pr_bidi_whitespace.c: New file.
38937         * lib/unictype/pr_byname.c: New file.
38938         * lib/unictype/pr_byname.gperf: New file.
38939         * lib/unictype/pr_combining.c: New file.
38940         * lib/unictype/pr_composite.c: New file.
38941         * lib/unictype/pr_currency_symbol.c: New file.
38942         * lib/unictype/pr_dash.c: New file.
38943         * lib/unictype/pr_decimal_digit.c: New file.
38944         * lib/unictype/pr_default_ignorable_code_point.c: New file.
38945         * lib/unictype/pr_deprecated.c: New file.
38946         * lib/unictype/pr_diacritic.c: New file.
38947         * lib/unictype/pr_extender.c: New file.
38948         * lib/unictype/pr_format_control.c: New file.
38949         * lib/unictype/pr_grapheme_base.c: New file.
38950         * lib/unictype/pr_grapheme_extend.c: New file.
38951         * lib/unictype/pr_grapheme_link.c: New file.
38952         * lib/unictype/pr_hex_digit.c: New file.
38953         * lib/unictype/pr_hyphen.c: New file.
38954         * lib/unictype/pr_id_continue.c: New file.
38955         * lib/unictype/pr_id_start.c: New file.
38956         * lib/unictype/pr_ideographic.c: New file.
38957         * lib/unictype/pr_ids_binary_operator.c: New file.
38958         * lib/unictype/pr_ids_trinary_operator.c: New file.
38959         * lib/unictype/pr_ignorable_control.c: New file.
38960         * lib/unictype/pr_iso_control.c: New file.
38961         * lib/unictype/pr_join_control.c: New file.
38962         * lib/unictype/pr_left_of_pair.c: New file.
38963         * lib/unictype/pr_line_separator.c: New file.
38964         * lib/unictype/pr_logical_order_exception.c: New file.
38965         * lib/unictype/pr_lowercase.c: New file.
38966         * lib/unictype/pr_math.c: New file.
38967         * lib/unictype/pr_non_break.c: New file.
38968         * lib/unictype/pr_not_a_character.c: New file.
38969         * lib/unictype/pr_numeric.c: New file.
38970         * lib/unictype/pr_other_alphabetic.c: New file.
38971         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
38972         * lib/unictype/pr_other_grapheme_extend.c: New file.
38973         * lib/unictype/pr_other_id_continue.c: New file.
38974         * lib/unictype/pr_other_id_start.c: New file.
38975         * lib/unictype/pr_other_lowercase.c: New file.
38976         * lib/unictype/pr_other_math.c: New file.
38977         * lib/unictype/pr_other_uppercase.c: New file.
38978         * lib/unictype/pr_paired_punctuation.c: New file.
38979         * lib/unictype/pr_paragraph_separator.c: New file.
38980         * lib/unictype/pr_pattern_syntax.c: New file.
38981         * lib/unictype/pr_pattern_white_space.c: New file.
38982         * lib/unictype/pr_private_use.c: New file.
38983         * lib/unictype/pr_punctuation.c: New file.
38984         * lib/unictype/pr_quotation_mark.c: New file.
38985         * lib/unictype/pr_radical.c: New file.
38986         * lib/unictype/pr_sentence_terminal.c: New file.
38987         * lib/unictype/pr_soft_dotted.c: New file.
38988         * lib/unictype/pr_space.c: New file.
38989         * lib/unictype/pr_terminal_punctuation.c: New file.
38990         * lib/unictype/pr_test.c: New file.
38991         * lib/unictype/pr_titlecase.c: New file.
38992         * lib/unictype/pr_unassigned_code_value.c: New file.
38993         * lib/unictype/pr_unified_ideograph.c: New file.
38994         * lib/unictype/pr_uppercase.c: New file.
38995         * lib/unictype/pr_variation_selector.c: New file.
38996         * lib/unictype/pr_white_space.c: New file.
38997         * lib/unictype/pr_xid_continue.c: New file.
38998         * lib/unictype/pr_xid_start.c: New file.
38999         * lib/unictype/pr_zero_width.c: New file.
39000         * lib/unictype/scripts.c: New file.
39001         * lib/unictype/sy_c_ident.c: New file.
39002         * lib/unictype/sy_c_whitespace.c: New file.
39003         * lib/unictype/sy_java_ident.c: New file.
39004         * lib/unictype/sy_java_whitespace.c: New file.
39005
39006         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
39007         Unicode 5.0.0.
39008         * lib/unictype/blocks.h: Likewise.
39009         * lib/unictype/categ_C.h: Likewise.
39010         * lib/unictype/categ_Cc.h: Likewise.
39011         * lib/unictype/categ_Cf.h: Likewise.
39012         * lib/unictype/categ_Cn.h: Likewise.
39013         * lib/unictype/categ_Co.h: Likewise.
39014         * lib/unictype/categ_Cs.h: Likewise.
39015         * lib/unictype/categ_L.h: Likewise.
39016         * lib/unictype/categ_Ll.h: Likewise.
39017         * lib/unictype/categ_Lm.h: Likewise.
39018         * lib/unictype/categ_Lo.h: Likewise.
39019         * lib/unictype/categ_Lt.h: Likewise.
39020         * lib/unictype/categ_Lu.h: Likewise.
39021         * lib/unictype/categ_M.h: Likewise.
39022         * lib/unictype/categ_Mc.h: Likewise.
39023         * lib/unictype/categ_Me.h: Likewise.
39024         * lib/unictype/categ_Mn.h: Likewise.
39025         * lib/unictype/categ_N.h: Likewise.
39026         * lib/unictype/categ_Nd.h: Likewise.
39027         * lib/unictype/categ_Nl.h: Likewise.
39028         * lib/unictype/categ_No.h: Likewise.
39029         * lib/unictype/categ_P.h: Likewise.
39030         * lib/unictype/categ_Pc.h: Likewise.
39031         * lib/unictype/categ_Pd.h: Likewise.
39032         * lib/unictype/categ_Pe.h: Likewise.
39033         * lib/unictype/categ_Pf.h: Likewise.
39034         * lib/unictype/categ_Pi.h: Likewise.
39035         * lib/unictype/categ_Po.h: Likewise.
39036         * lib/unictype/categ_Ps.h: Likewise.
39037         * lib/unictype/categ_S.h: Likewise.
39038         * lib/unictype/categ_Sc.h: Likewise.
39039         * lib/unictype/categ_Sk.h: Likewise.
39040         * lib/unictype/categ_Sm.h: Likewise.
39041         * lib/unictype/categ_So.h: Likewise.
39042         * lib/unictype/categ_Z.h: Likewise.
39043         * lib/unictype/categ_Zl.h: Likewise.
39044         * lib/unictype/categ_Zp.h: Likewise.
39045         * lib/unictype/categ_Zs.h: Likewise.
39046         * lib/unictype/categ_of.h: Likewise.
39047         * lib/unictype/combining.h: Likewise.
39048         * lib/unictype/ctype_alnum.h: Likewise.
39049         * lib/unictype/ctype_alpha.h: Likewise.
39050         * lib/unictype/ctype_blank.h: Likewise.
39051         * lib/unictype/ctype_cntrl.h: Likewise.
39052         * lib/unictype/ctype_digit.h: Likewise.
39053         * lib/unictype/ctype_graph.h: Likewise.
39054         * lib/unictype/ctype_lower.h: Likewise.
39055         * lib/unictype/ctype_print.h: Likewise.
39056         * lib/unictype/ctype_punct.h: Likewise.
39057         * lib/unictype/ctype_space.h: Likewise.
39058         * lib/unictype/ctype_upper.h: Likewise.
39059         * lib/unictype/ctype_xdigit.h: Likewise.
39060         * lib/unictype/decdigit.h: Likewise.
39061         * lib/unictype/digit.h: Likewise.
39062         * lib/unictype/mirror.h: Likewise.
39063         * lib/unictype/numeric.h: Likewise.
39064         * lib/unictype/pr_alphabetic.h: Likewise.
39065         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
39066         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
39067         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
39068         * lib/unictype/pr_bidi_block_separator.h: Likewise.
39069         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
39070         * lib/unictype/pr_bidi_common_separator.h: Likewise.
39071         * lib/unictype/pr_bidi_control.h: Likewise.
39072         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
39073         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
39074         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
39075         * lib/unictype/pr_bidi_european_digit.h: Likewise.
39076         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
39077         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
39078         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
39079         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
39080         * lib/unictype/pr_bidi_pdf.h: Likewise.
39081         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
39082         * lib/unictype/pr_bidi_whitespace.h: Likewise.
39083         * lib/unictype/pr_combining.h: Likewise.
39084         * lib/unictype/pr_composite.h: Likewise.
39085         * lib/unictype/pr_currency_symbol.h: Likewise.
39086         * lib/unictype/pr_dash.h: Likewise.
39087         * lib/unictype/pr_decimal_digit.h: Likewise.
39088         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
39089         * lib/unictype/pr_deprecated.h: Likewise.
39090         * lib/unictype/pr_diacritic.h: Likewise.
39091         * lib/unictype/pr_extender.h: Likewise.
39092         * lib/unictype/pr_format_control.h: Likewise.
39093         * lib/unictype/pr_grapheme_base.h: Likewise.
39094         * lib/unictype/pr_grapheme_extend.h: Likewise.
39095         * lib/unictype/pr_grapheme_link.h: Likewise.
39096         * lib/unictype/pr_hex_digit.h: Likewise.
39097         * lib/unictype/pr_hyphen.h: Likewise.
39098         * lib/unictype/pr_id_continue.h: Likewise.
39099         * lib/unictype/pr_id_start.h: Likewise.
39100         * lib/unictype/pr_ideographic.h: Likewise.
39101         * lib/unictype/pr_ids_binary_operator.h: Likewise.
39102         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
39103         * lib/unictype/pr_ignorable_control.h: Likewise.
39104         * lib/unictype/pr_iso_control.h: Likewise.
39105         * lib/unictype/pr_join_control.h: Likewise.
39106         * lib/unictype/pr_left_of_pair.h: Likewise.
39107         * lib/unictype/pr_line_separator.h: Likewise.
39108         * lib/unictype/pr_logical_order_exception.h: Likewise.
39109         * lib/unictype/pr_lowercase.h: Likewise.
39110         * lib/unictype/pr_math.h: Likewise.
39111         * lib/unictype/pr_non_break.h: Likewise.
39112         * lib/unictype/pr_not_a_character.h: Likewise.
39113         * lib/unictype/pr_numeric.h: Likewise.
39114         * lib/unictype/pr_other_alphabetic.h: Likewise.
39115         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
39116         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
39117         * lib/unictype/pr_other_id_continue.h: Likewise.
39118         * lib/unictype/pr_other_id_start.h: Likewise.
39119         * lib/unictype/pr_other_lowercase.h: Likewise.
39120         * lib/unictype/pr_other_math.h: Likewise.
39121         * lib/unictype/pr_other_uppercase.h: Likewise.
39122         * lib/unictype/pr_paired_punctuation.h: Likewise.
39123         * lib/unictype/pr_paragraph_separator.h: Likewise.
39124         * lib/unictype/pr_pattern_syntax.h: Likewise.
39125         * lib/unictype/pr_pattern_white_space.h: Likewise.
39126         * lib/unictype/pr_private_use.h: Likewise.
39127         * lib/unictype/pr_punctuation.h: Likewise.
39128         * lib/unictype/pr_quotation_mark.h: Likewise.
39129         * lib/unictype/pr_radical.h: Likewise.
39130         * lib/unictype/pr_sentence_terminal.h: Likewise.
39131         * lib/unictype/pr_soft_dotted.h: Likewise.
39132         * lib/unictype/pr_space.h: Likewise.
39133         * lib/unictype/pr_terminal_punctuation.h: Likewise.
39134         * lib/unictype/pr_titlecase.h: Likewise.
39135         * lib/unictype/pr_unassigned_code_value.h: Likewise.
39136         * lib/unictype/pr_unified_ideograph.h: Likewise.
39137         * lib/unictype/pr_uppercase.h: Likewise.
39138         * lib/unictype/pr_variation_selector.h: Likewise.
39139         * lib/unictype/pr_white_space.h: Likewise.
39140         * lib/unictype/pr_xid_continue.h: Likewise.
39141         * lib/unictype/pr_xid_start.h: Likewise.
39142         * lib/unictype/pr_zero_width.h: Likewise.
39143         * lib/unictype/scripts.h: Likewise.
39144         * lib/unictype/scripts_byname.gperf: Likewise.
39145         * lib/unictype/sy_c_ident.h: Likewise.
39146         * lib/unictype/sy_c_whitespace.h: Likewise.
39147         * lib/unictype/sy_java_ident.h: Likewise.
39148         * lib/unictype/sy_java_whitespace.h: Likewise.
39149
39150         * lib/unictype/Makefile: New file.
39151         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
39152         glibc.
39153         * lib/unictype/3level.h: New file, copied from glibc.
39154         * lib/unictype/3levelbit.h: New file.
39155
39156 2007-11-11  Bruno Haible  <bruno@clisp.org>
39157
39158         * modules/gperf: New file.
39159         * modules/iconv_open (Depends-on): Add it.
39160         (Makefile.am): Remove the GPERF definition.
39161
39162 2007-11-11  Bruno Haible  <bruno@clisp.org>
39163
39164         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
39165         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
39166
39167 2007-11-11  Bruno Haible  <bruno@clisp.org>
39168
39169         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
39170         (usage): Remove function.
39171
39172 2007-11-11  Bruno Haible  <bruno@clisp.org>
39173
39174         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
39175         gl_FUNC_CEILF_LIBS.
39176         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
39177         gl_FUNC_CEIL_LIBS.
39178         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
39179         gl_FUNC_CEILL_LIBS.
39180         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
39181         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
39182         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
39183
39184 2007-11-11  Bruno Haible  <bruno@clisp.org>
39185
39186         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
39187         roundf were declared but do not exist on functions.
39188         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
39189         roundl were declared but do not exist on functions.
39190         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
39191         HAVE_FLOORL_AND_CEILL, respectively.
39192         Needed for Sun C on Solaris 10.
39193
39194 2007-11-11  Bruno Haible  <bruno@clisp.org>
39195
39196         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
39197         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
39198         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
39199         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
39200         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
39201         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
39202         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
39203         HAVE_DECL_ROUNDF.
39204         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
39205         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
39206         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
39207         of HAVE_DECL_ROUND*.
39208         * modules/math (Makefile.am): Update.
39209
39210 2007-11-10  Bruno Haible  <bruno@clisp.org>
39211
39212         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
39213         ptrdiff_t as m4/intl.m4.
39214
39215 2007-11-10  Jim Meyering  <meyering@redhat.com>
39216
39217         Avoid link failure for the argmatch test.
39218         * tests/test-argmatch.c (usage): Define function to avoid a link
39219         failure: argmatch_die requires a usage function.
39220
39221 2007-11-09  Bruno Haible  <bruno@clisp.org>
39222
39223         * doc/functions/snprintf.texi: Mention BeOS deficiency.
39224         * doc/functions/vsnprintf.texi: Likewise.
39225         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
39226         with a size argument < 2.
39227
39228 2007-11-09  Bruno Haible  <bruno@clisp.org>
39229
39230         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
39231         buffer. Fixes an inefficiency introduced on 2007-11-03.
39232
39233 2007-11-09  Bruno Haible  <bruno@clisp.org>
39234
39235         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
39236         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
39237
39238 2007-11-08  Jim Meyering  <meyering@redhat.com>
39239
39240         Change cache variable name prefix "jm_" to "gl_" everywhere.
39241         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
39242         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
39243         * m4/uptime.m4: s/gl_/jm_/
39244
39245 2007-11-07  Bruno Haible  <bruno@clisp.org>
39246
39247         Update to GNU gettext 0.17.
39248         * m4/intl.m4: Update to GNU gettext 0.17.
39249         * m4/po.m4: Likewise.
39250         * modules/gettext (Files): Remove m4/ulonglong.m4.
39251         (configure.ac): Require gettext infrastructure from version 0.17.
39252
39253 2007-11-06  Bruno Haible  <bruno@clisp.org>
39254
39255         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
39256         symbolic values are not defined in a public header.
39257         * lib/freadable.c (freadable) [QNX]: Likewise.
39258         * lib/freadahead.c (freadahead) [QNX]: Likewise.
39259         * lib/freading.c (freading) [QNX]: Likewise.
39260         * lib/fseterr.c (fseterr) [QNX]: Likewise.
39261         * lib/fwritable.c (fwritable) [QNX]: Likewise.
39262         * lib/fwriting.c (fwriting) [QNX]: Likewise.
39263         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
39264         Reported by Alain Magloire.
39265
39266         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
39267
39268 2007-11-05  Bruno Haible  <bruno@clisp.org>
39269
39270         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
39271         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
39272         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
39273         Reported by Eric Blake.
39274
39275 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39276             Bruno Haible  <bruno@clisp.org>
39277
39278         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
39279         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
39280         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
39281         (malloc): Undefine also before including <stdlib.h>.
39282         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
39283         Needed on OSF/1 4.0.
39284
39285 2007-11-05  Jim Meyering  <meyering@redhat.com>
39286
39287         git-version-gen: sync from coreutils.
39288         * build-aux/git-version-gen: Add comments.
39289         Change the first '-' to '.' in the snapshot version string,
39290         e.g., 6.9-377-08144 -> 6.9.377-08144
39291         Remove first parameter.
39292         Don't declare a version "-dirty" merely because a time
39293         stamp has changed.
39294
39295 2007-11-04  Bruno Haible  <bruno@clisp.org>
39296
39297         * lib/lock.h: Protect all macro definitions containing an 'if'
39298         statement through a "do { ... } while (0)".
39299         * lib/tls.h: Likewise.
39300
39301 2007-11-04  Bruno Haible  <bruno@clisp.org>
39302
39303         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
39304
39305 2007-11-04  Bruno Haible  <bruno@clisp.org>
39306
39307         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
39308         * modules/fprintf-posix (Depends-on): Add nocrash.
39309         * modules/snprintf-posix (Depends-on): Likewise.
39310         * modules/sprintf-posix (Depends-on): Likewise.
39311         * modules/vasnprintf-posix (Depends-on): Likewise.
39312         * modules/vasprintf-posix (Depends-on): Likewise.
39313         * modules/vfprintf-posix (Depends-on): Likewise.
39314         * modules/vsnprintf-posix (Depends-on): Likewise.
39315         * modules/vsprintf-posix (Depends-on): Likewise.
39316         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39317         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39318         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39319         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39320         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39321         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39322         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39323
39324 2007-11-04  Bruno Haible  <bruno@clisp.org>
39325
39326         * modules/nocrash: New file.
39327         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
39328         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
39329
39330 2007-11-04  Bruno Haible  <bruno@clisp.org>
39331
39332         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
39333         precision handling.
39334         * tests/test-vasprintf-posix.c (test_function): Likewise.
39335         * tests/test-snprintf-posix.h (test_function): Likewise.
39336         * tests/test-sprintf-posix.h (test_function): Likewise.
39337
39338         Fix *printf behaviour for large precisions on mingw and BeOS.
39339         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
39340         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
39341         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
39342         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39343         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39344         gl_PRINTF_PRECISION and test its result. Invoke
39345         gl_PREREQ_VASNPRINTF_PRECISION.
39346         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39347         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39348         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39349         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39350         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39351         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39352         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39353         * doc/functions/fprintf.texi: Update.
39354         * doc/functions/printf.texi: Update.
39355         * doc/functions/snprintf.texi: Update.
39356         * doc/functions/sprintf.texi: Update.
39357         * doc/functions/vfprintf.texi: Update.
39358         * doc/functions/vprintf.texi: Update.
39359         * doc/functions/vsnprintf.texi: Update.
39360         * doc/functions/vsprintf.texi: Update.
39361
39362 2007-11-04  Bruno Haible  <bruno@clisp.org>
39363
39364         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
39365
39366 2007-11-04  Bruno Haible  <bruno@clisp.org>
39367
39368         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
39369         Reported by Sylvain Beucler <beuc@gnu.org>.
39370
39371 2007-11-03  Bruno Haible  <bruno@clisp.org>
39372
39373         * tests/test-fprintf-posix2.sh: New file.
39374         * tests/test-fprintf-posix2.c: New file.
39375         * modules/fprintf-posix-tests (Files): Add them.
39376         (TESTS): Add test-fprintf-posix2.sh.
39377         (configure.ac): Check for getrlimit and setrlimit.
39378         (check_PROGRAMS): Add test-fprintf-posix2.
39379
39380         * tests/test-printf-posix2.sh: New file.
39381         * tests/test-printf-posix2.c: New file.
39382         * modules/printf-posix-tests (Files): Add them.
39383         (TESTS): Add test-printf-posix2.sh.
39384         (configure.ac): Check for getrlimit and setrlimit.
39385         (check_PROGRAMS): Add test-printf-posix2.
39386
39387         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
39388         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
39389         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
39390         (decode_double): New function, copied from decode_long_double.
39391         (scale10_round_decimal_decoded): New function, extracted from
39392         scale10_round_decimal_long_double.
39393         (scale10_round_decimal_long_double): Use it.
39394         (scale10_round_decimal_double): New function.
39395         (floorlog10): New function.
39396         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
39397         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
39398         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39399         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39400         gl_PRINTF_ENOMEM and test its result. Invoke
39401         gl_PREREQ_VASNPRINTF_ENOMEM.
39402         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39403         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39404         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39405         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39406         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39407         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39408         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39409         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
39410         * modules/snprintf-posix (Depends-on): Likewise.
39411         * modules/sprintf-posix (Depends-on): Likewise.
39412         * modules/vasnprintf-posix (Depends-on): Likewise.
39413         * modules/vasprintf-posix (Depends-on): Likewise.
39414         * modules/vfprintf-posix (Depends-on): Likewise.
39415         * modules/vsnprintf-posix (Depends-on): Likewise.
39416         * modules/vsprintf-posix (Depends-on): Likewise.
39417         * doc/functions/fprintf.texi: Update.
39418         * doc/functions/printf.texi: Update.
39419         * doc/functions/snprintf.texi: Update.
39420         * doc/functions/sprintf.texi: Update.
39421         * doc/functions/vfprintf.texi: Update.
39422         * doc/functions/vprintf.texi: Update.
39423         * doc/functions/vsnprintf.texi: Update.
39424         * doc/functions/vsprintf.texi: Update.
39425
39426 2007-11-03  Bruno Haible  <bruno@clisp.org>
39427
39428         * modules/frexp-nolibm-tests: New file.
39429
39430         * modules/frexp-nolibm: New file.
39431         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
39432
39433 2007-11-03  Bruno Haible  <bruno@clisp.org>
39434
39435         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
39436         value is C99 compliant.
39437         Needed for OSF/1 5.1.
39438
39439 2007-11-03  Bruno Haible  <bruno@clisp.org>
39440
39441         Fix out-of-memory handling of vasnprintf.
39442         * lib/printf-parse.c: Include <errno.h>.
39443         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
39444         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
39445         is already set.
39446
39447 2007-11-02  Eric Blake  <ebb9@byu.net>
39448
39449         Fix tests on cygwin.
39450         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
39451
39452 2007-11-01  Bruno Haible  <bruno@clisp.org>
39453
39454         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
39455         warning.
39456         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
39457         needed for POSIX compatibility.
39458
39459 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39460
39461         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
39462         for compatibility with GNU.
39463
39464 2007-11-01  Bruno Haible  <bruno@clisp.org>
39465
39466         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
39467         (putenv): Renamed from rpl_putenv. Change argument type from
39468         'const char *' to 'char *'.
39469         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
39470         of defining putenv in config.h, just set REPLACE_PUTENV.
39471         * modules/putenv (Depends-on): Add stdlib.
39472         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39473         (Include): Use <stdlib.h>.
39474         * lib/stdlib.in.h (putenv): New declaration.
39475         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
39476         REPLACE_PUTENV.
39477         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
39478         REPLACE_PUTENV.
39479         Needed for MacOS X 10.5.0.
39480         Reported by Peter O'Gorman <peter@pogma.com>.
39481
39482 2007-11-01  Jim Meyering  <meyering@redhat.com>
39483
39484         Treat an empty date string exactly like "0".
39485         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
39486         if the remaining date string (to be parsed) is empty, use "0".
39487         Reported by Mischa Molhoek and discussed in this thread:
39488         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
39489
39490 2007-10-31  Bruno Haible  <bruno@clisp.org>
39491
39492         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
39493         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
39494         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
39495         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
39496         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
39497         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
39498
39499 2007-10-31  Bruno Haible  <bruno@clisp.org>
39500
39501         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
39502         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
39503         (AC_TYPE_LONG_LONG_INT): Use it.
39504         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
39505         it as well.
39506         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
39507         to m4/longlong.m4.
39508         * modules/stdint (Files): Remove m4/ulonglong.m4.
39509         * modules/strtoull (Files): Use m4/longlong.m4 instead of
39510         m4/ulonglong.m4.
39511         * modules/strtoumax (Files): Likewise.
39512
39513 2007-10-30  Bruno Haible  <bruno@clisp.org>
39514
39515         * modules/xvasprintf-posix: New file.
39516         Suggested by Eric Blake.
39517
39518 2007-10-30  Bruno Haible  <bruno@clisp.org>
39519
39520         * modules/xprintf-posix-tests: New file.
39521         * tests/test-xprintf-posix.sh: New file.
39522         * tests/test-xprintf-posix.c: New file.
39523         * tests/test-xfprintf-posix.c: New file.
39524
39525         * modules/xprintf-posix: New file.
39526
39527 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39528
39529         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
39530         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
39531         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
39532
39533 2007-10-29  Bruno Haible  <bruno@clisp.org>
39534
39535         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
39536         contain the special marker '_cv_'.
39537         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39538         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39539         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39540         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
39541         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39542         Reported by Ralf Wildenhues.
39543
39544 2007-10-29  Bruno Haible  <bruno@clisp.org>
39545
39546         * gnulib-tool (func_import): When --lgpl is not specified, set
39547         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
39548         GPLv3.
39549         Reported by Simon Josefsson.
39550
39551 2007-10-28  Bruno Haible  <bruno@clisp.org>
39552
39553         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
39554         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
39555         HAVE_DECL_ISFINITE.
39556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39557         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
39558         HAVE_DECL_ISFINITE.
39559
39560 2007-10-28  Bruno Haible  <bruno@clisp.org>
39561
39562         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
39563         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
39564
39565 2007-10-28  Bruno Haible  <bruno@clisp.org>
39566
39567         Fix link errors with Sun C 5.0 on Solaris 10.
39568         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
39569         function is declared but not present in the compiler's libm.
39570         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
39571         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
39572         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
39573         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
39574         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
39575         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
39576         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
39577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39578         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
39579         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
39580         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
39581         HAVE_DECL_FLOORL.
39582
39583 2007-10-28  Bruno Haible  <bruno@clisp.org>
39584
39585         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
39586         gl_FUNC_FLOORL. Cache the result.
39587         (gl_FUNC_FLOORL): Use it.
39588         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
39589         gl_FUNC_CEILL. Cache the result.
39590         (gl_FUNC_CEILL): Use it.
39591
39592         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
39593         gl_FUNC_FLOOR. Cache the result.
39594         (gl_FUNC_FLOOR): Use it.
39595         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
39596         gl_FUNC_CEIL. Cache the result.
39597         (gl_FUNC_CEIL): Use it.
39598
39599         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
39600         gl_FUNC_FLOORF. Cache the result.
39601         (gl_FUNC_FLOORF): Use it.
39602         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
39603         gl_FUNC_CEILF. Cache the result.
39604         (gl_FUNC_CEILF): Use it.
39605
39606 2007-10-28  Bruno Haible  <bruno@clisp.org>
39607
39608         * gnulib-tool: Allow specifying the LGPL version number through
39609         --lgpl=2 or --lgpl=3.
39610         (func_usage): Document --lgpl with argument.
39611         Handle --lgpl=... arguments.
39612         (func_import): Recognize also gl_LGPL calls with an argument. When
39613         --lgpl=2 is used and the module's license is just LGPL, report an
39614         error. Set sed_transform_lib_file according to the lgpl variable. In
39615         the generated files, use --lgpl or gl_LGPL invocations with argument,
39616         if necessary.
39617         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
39618         an LGPv2+ license.
39619         * doc/gnulib-tool.texi (Modified imports): Update explanation of
39620         gl_LGPL macro.
39621
39622 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39623             Bruno Haible  <bruno@clisp.org>
39624
39625         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
39626         (u16_uctomb_aux): Likewise.
39627         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
39628         !HAVE_INLINE.
39629         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
39630
39631 2007-10-28  Bruno Haible  <bruno@clisp.org>
39632
39633         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
39634         Invoke AM_GETTEXT_OPTION if it exists.
39635         * modules/vasprintf: Likewise.
39636         * modules/verror: Likewise.
39637         * modules/xprintf: Likewise.
39638         * modules/xvasprintf: Likewise.
39639
39640 2007-10-27  Ben Pfaff  <blp@gnu.org>
39641
39642         * lib/math.in.h: Define isfinite macro and prototypes for
39643         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
39644         implementations.
39645         * m4/math_h.m4: New substitutions for isfinite module.
39646         * lib/isfinite.c: New file.
39647         * m4/isfinite.m4: New file.
39648         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
39649         * modules/isfinite: New file.
39650         * modules/isfinite-tests: New file.
39651         * tests/tests-isfinite.c: New file.
39652         * doc/functions/isfinite.texi: Mention isfinite module.
39653         * MODULES.html.sh: Mention new module.
39654
39655 2007-10-27  Ben Pfaff  <blp@gnu.org>
39656
39657         Ralf Wildenhues reported that Tru64 4.0D declares the round
39658         functions but does not have definitions.
39659         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
39660         cannot be found in any library, set the output variable to
39661         "missing" instead of "".
39662         * m4/round.m4: Also use our substitute if we cannot find round in
39663         any library, even if it is declared.
39664         * m4/roundf.m4: Likewise for roundf.
39665         * m4/roundl.m4: Likewise for roundl.
39666         * lib/math.in.h: Undefine roundf, round, roundl before defining
39667         their replacements, to allow for hypothetical systems where these
39668         may be defined as macros but not available in libraries.
39669
39670 2007-10-27  Bruno Haible  <bruno@clisp.org>
39671
39672         * doc/gnulib.texi: Invoke @firstparagraphindent.
39673         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
39674         changes in gnulib.
39675         (Source changes): New section.
39676
39677 2007-10-26  Bruno Haible  <bruno@clisp.org>
39678
39679         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
39680         borrowed from autoconf.
39681
39682 2007-10-26  Bruno Haible  <bruno@clisp.org>
39683
39684         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
39685         strerror returned the empty string. Needed on HP-UX 11.00.
39686
39687 2007-10-24  Micah Cowan  <micah@cowan.name>
39688
39689         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
39690         * build-aux/bootstrap: Remove support for now-unnecessary option,
39691         --cvs-user, and envvars CVS_USER, CVS_RSH.
39692
39693 2007-10-24  Jim Meyering  <meyering@redhat.com>
39694
39695         Avoid diagnostics from sha1sum when there is no cached checksum.
39696         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
39697         if the po.s1 file hasn't been created yet.
39698
39699         * build-aux/bootstrap: Sync from coreutils:
39700         2007-10-24  Jim Meyering  <meyering@redhat.com>
39701         Get gnulib from the git repository, not from an obsolete cvs one.
39702         * build-aux/bootstrap: Suggestion from Micah Cowan.
39703         2007-10-04  Jim Meyering  <jim@meyering.net>
39704         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
39705         (update_po_files): Work also when there are no .po files in po/.
39706
39707 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39708
39709         * README: Append ".git" to git and cg examples.
39710         Problem reported by Benoit Sigoure.
39711
39712 2007-10-23  Micah Cowan  <micah@cowan.name>
39713
39714         * users.txt: Add wget.
39715
39716 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39717
39718         Fix linking of some unistdio tests on FreeBSD.
39719         * modules/unistdio/u16-vsnprintf-tests
39720         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
39721         * modules/unistdio/u16-vsprintf-tests
39722         (test_u16_vsnprintf1_LDADD): Likewise.
39723         * modules/unistdio/u32-vsnprintf-tests
39724         (test_u32_vsnprintf1_LDADD): Likewise.
39725         * modules/unistdio/u32-vsprintf-tests
39726         (test_u32_vsprintf1_LDADD): Likewise.
39727         * modules/unistdio/u8-vsnprintf-tests
39728         (test_u8_vsnprintf1_LDADD): Likewise.
39729         * modules/unistdio/u8-vsprintf-tests
39730         (test_u8_vsprintf1_LDADD): Likewise.
39731         * modules/unistdio/ulc-vsnprintf-tests
39732         (test_ulc_vsnprintf1_LDADD): Likewise.
39733         * modules/unistdio/ulc-vsprintf-tests
39734         (test_ulc_vsprintf1_LDADD): Likewise.
39735
39736         Fix linking of some uniconv tests on FreeBSD.
39737         * modules/uniconv/u16-conv-from-enc-tests
39738         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
39739         * modules/uniconv/u16-conv-to-enc-tests
39740         (test_u16_conv_to_enc_LDADD): Likewise.
39741         * modules/uniconv/u16-strconv-from-enc-tests
39742         (test_u16_strconv_from_enc_LDADD): Likewise.
39743         * modules/uniconv/u16-strconv-to-enc-tests
39744         (test_u16_strconv_to_enc_LDADD): Likewise.
39745         * modules/uniconv/u32-conv-from-enc-tests
39746         (test_u32_conv_from_enc_LDADD): Likewise.
39747         * modules/uniconv/u32-conv-to-enc-tests
39748         (test_u32_conv_to_enc_LDADD): Likewise.
39749         * modules/uniconv/u32-strconv-from-enc-tests
39750         (test_u32_strconv_from_enc_LDADD): Likewise.
39751         * modules/uniconv/u32-strconv-to-enc-tests
39752         (test_u32_strconv_to_enc_LDADD): Likewise.
39753         * modules/uniconv/u8-conv-from-enc-tests
39754         (test_u8_conv_from_enc_LDADD): Likewise.
39755         * modules/uniconv/u8-conv-to-enc-tests
39756         (test_u8_conv_to_enc_LDADD): Likewise.
39757         * modules/uniconv/u8-strconv-from-enc-tests
39758         (test_u8_strconv_from_enc_LDADD): Likewise.
39759         * modules/uniconv/u8-strconv-to-enc-tests
39760         (test_u8_strconv_to_enc_LDADD): Likewise.
39761
39762 2007-10-22  Bruno Haible  <bruno@clisp.org>
39763
39764         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
39765         size.
39766
39767 2007-10-22  Eric Blake  <ebb9@byu.net>
39768
39769         Tweak x*printf documentation.
39770         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
39771         variable name and comments.
39772         Suggested by Bruno Haible.
39773
39774 2007-10-22  Bruno Haible  <bruno@clisp.org>
39775
39776         * lib/acl.c (copy_acl): Fix file name in comment.
39777
39778 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39779
39780         Fix Tru64 problem with stdbool.h.
39781         * lib/stdbool.in.h (false, true):
39782         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
39783         Don't declare as an enum in this situation; it runs afoul of Tru64.
39784         Problem reported by Steven M. Schweda in
39785         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
39786
39787 2007-10-22  Eric Blake  <ebb9@byu.net>
39788
39789         Also wrap vf?printf.
39790         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
39791         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
39792         (xvprintf, xvfprintf): New functions.
39793
39794 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39795
39796         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
39797         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
39798
39799         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
39800         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
39801
39802 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39803
39804         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
39805         by Bruno Haible.
39806
39807 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39808
39809         * lib/getloadavg.c
39810         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
39811         Undef `sys' after including sys/table.h, for Tru64 4.0D.
39812
39813         * tests/test-i-ring.c: Work for C89.
39814
39815 2007-10-22  Bruno Haible  <bruno@clisp.org>
39816
39817         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
39818         -1u, in preprocessor expression, so that we don't test for the bug
39819         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
39820         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
39821
39822 2007-10-22  Eric Blake  <ebb9@byu.net>
39823
39824         * tests/test-yesno.sh: Silence stderr during test.
39825
39826 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39827
39828         * modules/crypto/gc-camellia: New file.
39829
39830         * m4/gc-camellia.m4: New file.
39831
39832         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
39833
39834         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
39835
39836 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39837
39838         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
39839         --help to stdout.  Reported by sms@antinode.org (Steven
39840         M. Schweda).
39841
39842 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39843
39844         * users.txt: Fix link to libksba.
39845
39846 2007-10-21  Ben Pfaff  <blp@gnu.org>
39847
39848         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
39849         round.c roundf implementation that depends on floorf and ceilf to
39850         be tested unconditionally.
39851
39852 2007-10-21  Ben Pfaff  <blp@gnu.org>
39853
39854         * m4/check-libm-func.m4: Removed.
39855         * m4/check-math-lib.m4: New file.
39856         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
39857         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
39858         definition and lack of AC_LIBOBJ([roundf]).
39859         * m4/roundl.m4: Ditto, and similarly for roundl.
39860         * modules/round: Reference new m4 file.
39861         * modules/roundf: Ditto.
39862         * modules/roundl: Ditto.
39863         * tests/test-round2.c (main): Use ROUND instead of round.
39864         Bug report from Bruno Haible.
39865
39866 2007-10-21  Bruno Haible  <bruno@clisp.org>
39867
39868         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
39869         context.
39870
39871 2007-10-21  Bruno Haible  <bruno@clisp.org>
39872
39873         * tests/test-wcwidth.c (main): Allow negative result for some control
39874         characters.
39875
39876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
39877         Needed on OSF/1 5.1.
39878
39879 2007-10-21  Bruno Haible  <bruno@clisp.org>
39880
39881         * tests/test-floorf1.c: Include isnanf.h.
39882         (main): Use isnanf() instead of isnan().
39883         * tests/test-ceilf1.c: Include isnanf.h.
39884         (main): Use isnanf() instead of isnan().
39885         * tests/test-truncf1.c: Include isnanf.h.
39886         (main): Use isnanf() instead of isnan().
39887         * tests/test-roundf1.c: Include isnanf.h.
39888         (main): Use isnanf() instead of isnan().
39889
39890 2007-10-21  Eric Blake  <ebb9@byu.net>
39891
39892         * users.txt: Update URL for m4.
39893
39894 2007-10-21  Bruno Haible  <bruno@clisp.org>
39895
39896         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
39897
39898 2007-10-21  Bruno Haible  <bruno@clisp.org>
39899
39900         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
39901         Git's management files if the CVS files are not present.
39902
39903 2007-10-20  Bruno Haible  <bruno@clisp.org>
39904
39905         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
39906         gcc-3.4.x.
39907
39908 2007-10-20  Ben Pfaff  <blp@gnu.org>
39909
39910         * lib/math.in.h: Declare round, roundf, roundl if we are providing
39911         implementations.
39912         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
39913         * lib/round.c: New file.
39914         * lib/roundf.c: New file.
39915         * lib/roundl.c: New file.
39916         * m4/round.m4: New file.
39917         * m4/roundf.m4: New file.
39918         * m4/roundl.m4: New file.
39919         * m4/check-libm-func-m4: New file.
39920         * modules/math: Replace round, roundf, roundl related @VARS@ in
39921         math.in.h.
39922         * modules/round: New file.
39923         * modules/round-tests: New file.
39924         * modules/roundf: New file.
39925         * modules/roundf-tests: New file.
39926         * modules/roundl: New file.
39927         * modules/roundl-tests: New file.
39928         * tests/test-round1.c: New file.
39929         * tests/test-round2.c: New file.
39930         * tests/test-roundf1.c: New file.
39931         * tests/test-roundf2.c: New file.
39932         * tests/test-roundl.c: New file.
39933         * doc/functions/round.texi: Mention round module.
39934         * doc/functions/roundf.texi: Mention roundf module.
39935         * doc/functions/roundl.texi: Mention roundl module.
39936         * MODULES.html.sh: Mention new modules.
39937         Thanks to Bruno Haible for suggestions.
39938
39939 2007-10-20  Jim Meyering  <meyering@redhat.com>
39940
39941         * lib/xprintf.c: Include <config.h> unconditionally.
39942
39943         Change xprintf's license to GPL.
39944         * modules/xprintf (License): s/LGPL/GPL/, since this module
39945         depends on modules (exit and exitfail) which are GPL.
39946         Suggestion from Bruno Haible.
39947
39948         xprintf fixes.
39949         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
39950         Use a clearer diagnostic.
39951         Patch from Bruno Haible.
39952
39953 2007-10-20  Bruno Haible  <bruno@clisp.org>
39954
39955         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
39956         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
39957         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39958
39959 2007-10-20  Bruno Haible  <bruno@clisp.org>
39960
39961         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
39962         precision in the comparison result > x - 1 or similar.
39963         * tests/test-ceilf2.c (correct_result_p): Likewise.
39964         * tests/test-truncf2.c (correct_result_p): Likewise.
39965         * tests/test-trunc2.c (correct_result_p): Likewise.
39966         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39967
39968 2007-10-20  Bruno Haible  <bruno@clisp.org>
39969
39970         * modules/ceil: New file.
39971         * m4/ceil.m4: New file.
39972         * doc/functions/ceil.texi: Mention the 'ceil' module.
39973
39974 2007-10-20  Bruno Haible  <bruno@clisp.org>
39975
39976         * modules/floor: New file.
39977         * m4/floor.m4: New file.
39978         * doc/functions/floor.texi: Mention the 'floor' module.
39979
39980 2007-10-20  Bruno Haible  <bruno@clisp.org>
39981
39982         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
39983         of %a.
39984         * modules/floorf-tests (Depends-on): Likewise.
39985         * modules/truncf-tests (Depends-on): Likewise.
39986         * modules/trunc-tests (Depends-on): Likewise.
39987         Reported by Ben Pfaff.
39988
39989 2007-10-19  Jim Meyering  <meyering@redhat.com>
39990
39991         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
39992         Don't bother testing specific errno values.  Just test ferror.
39993
39994         New module: xprintf
39995         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
39996
39997 2007-10-19  Bruno Haible  <bruno@clisp.org>
39998
39999         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
40000         syntax.
40001         * modules/javaexec (Makefile.am): Likewise.
40002         * modules/relocatable-prog (Makefile.am): Likewise.
40003         Suggested by Jim Meyering.
40004
40005 2007-10-18  Bruno Haible  <bruno@clisp.org>
40006
40007         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
40008         Reported by Jim Meyering.
40009
40010 2007-10-18  Eric Blake  <ebb9@byu.net>
40011
40012         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
40013
40014 2007-10-18  Bruno Haible  <bruno@clisp.org>
40015
40016         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
40017         the format string into writable memory. Needed in Fortify conditions.
40018
40019 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
40020             Bruno Haible  <bruno@clisp.org>
40021
40022         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
40023         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
40024         * modules/trim (Depends-on): Add mbchar.
40025         (configure.ac): Add gl_FUNC_MBRTOWC.
40026         (Makefile.am): Augment lib_SOURCES.
40027
40028 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40029
40030         Modify glob.c to use fstatat and dirfd, to simplify it.
40031         Suggested by Eric Blake.
40032         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
40033         Don't include <stdbool.h>; not used.
40034         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
40035         (link_exists_p): Simplify implementation, since we can now assume
40036         dirfd and fstatat.
40037         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
40038
40039 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40040
40041         * gnulib-tool (func_get_dependencies): Fix sed script to
40042         match only tests.
40043
40044 2007-10-17  Bruno Haible  <bruno@clisp.org>
40045
40046         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
40047         allow locale names without encoding suffix.
40048         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40049         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40050
40051 2007-10-16  Bruno Haible  <bruno@clisp.org>
40052
40053         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
40054         * lib/getgroups.c (getgroups): Likewise.
40055         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
40056
40057 2007-10-16  Bruno Haible  <bruno@clisp.org>
40058
40059         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
40060         * modules/malloc-posix (License): Likewise.
40061         * modules/realloc-posix (License): Likewise.
40062         * modules/calloc-posix (License): Likewise.
40063         * modules/intprops (License): Change from GPL to LGPL, with
40064         Paul Eggert's approval.
40065
40066 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40067
40068         Merge glibc changes into lib/glob.c.
40069
40070         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
40071         2007-10-15 04:59:03 UTC.  Here are the changes:
40072
40073         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
40074
40075         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
40076
40077         * lib/glob.c: Add some branch prediction throughout.
40078
40079         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
40080
40081         [BZ #5103]
40082         * lib/glob.c (glob): Recognize patterns starting \/.
40083
40084         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
40085
40086         [BZ #3996]
40087         * lib/glob.c (attribute_hidden): Define if not defined.
40088         (glob): Unescape dirname, filename or username when needed and not
40089         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
40090         is NULL.  Handle unescaped [ in pattern without closing ].
40091         Don't pass GLOB_CHECK down to recursive glob for directories.
40092         (__glob_pattern_type): New function.
40093         (__glob_pattern_p): Implement using __glob_pattern_type.
40094         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
40095         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
40096         Remove unreachable code.
40097
40098         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
40099
40100         * lib/glob.c (glob_in_dir): Add some comments and asserts to
40101         explain why there are no leaks.
40102
40103         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
40104
40105         [BZ #3253]
40106         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
40107         time, rather allocate increasingly bigger arrays of pointers, if
40108         possible with alloca, if too large with malloc.
40109
40110 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40111
40112         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
40113         Problem reported by H.Merijn Brand in
40114         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
40115         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
40116         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
40117
40118 2007-10-15  Bruno Haible  <bruno@clisp.org>
40119
40120         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
40121         with explicit rpl_ prefix.
40122         * lib/fopen.c (fopen): Likewise.
40123         * lib/freopen.c (freopen): Likewise.
40124         * lib/iconv.c (iconv): Likewise.
40125         * lib/iconv_close.c (iconv_close): Likewise.
40126
40127 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40128
40129         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
40130
40131 2007-10-15  Bruno Haible  <bruno@clisp.org>
40132
40133         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
40134         <stddef.h> instead of <stdlib.h> since we only need NULL.
40135         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40136
40137 2007-10-15  Bruno Haible  <bruno@clisp.org>
40138
40139         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
40140         Replace paragraph talking about LIBOBJS.
40141         Reported by Colin Watson <cjwatson@debian.org>.
40142
40143 2007-10-15  Bruno Haible  <bruno@clisp.org>
40144
40145         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
40146         <stdlib.h> before using NULL.
40147
40148 2007-10-15  Simon Josefsson  <simon@josefsson.org>
40149
40150         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
40151         Reported by Albert Chin <china@thewrittenword.com>.
40152
40153 2007-10-14  Bruno Haible  <bruno@clisp.org>
40154
40155         * modules/iconv_open-utf-tests: New file.
40156         * tests/test-iconv-utf.c: New file.
40157
40158         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
40159         * modules/iconv_open-utf: New file.
40160         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
40161         (iconv, iconv_close): New declarations.
40162         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
40163         be defined.
40164         (iconv_open): Add special handling of conversion between UTF-8 and
40165         UTF-{16,32}{BE,LE}.
40166         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
40167         * lib/iconv_close.c: New file.
40168         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
40169         gl_FUNC_ICONV_OPEN.
40170         (gl_FUNC_ICONV_OPEN): Use it.
40171         (gl_FUNC_ICONV_OPEN_UTF): New macro.
40172         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
40173         and REPLACE_ICONV_UTF.
40174         * modules/iconv_open (Depends-on): Add c-strcase.
40175         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
40176         ICONV_CONST.
40177         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
40178
40179 2007-10-13  Albert Chin  <china@thewrittenword.com>
40180             Bruno Haible  <bruno@clisp.org>
40181
40182         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
40183         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
40184
40185 2007-10-13  Bruno Haible  <bruno@clisp.org>
40186
40187         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
40188         defined, use the ISO C99 inline semantics.
40189         * lib/argp.h (ARGP_EI): Likewise.
40190
40191 2007-10-13  Bruno Haible  <bruno@clisp.org>
40192
40193         Handle 'inline' change in gcc 4.3.0.
40194         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
40195         argp_fmtstream_write, argp_fmtstream_set_lmargin,
40196         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
40197         argp_fmtstream_point): Disable 'extern' declaration if the function
40198         definition is going to be provided inline.
40199         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
40200         semantics, not the ISO C99 inline semantics.
40201         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
40202         'extern' declaration if the function definition is going to be provided
40203         inline.
40204         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
40205         the GNU C inline semantics, not the ISO C99 inline semantics. With
40206         GCC 4.2, avoid a warning.
40207
40208 2007-10-13  Bruno Haible  <bruno@clisp.org>
40209
40210         * lib/freading.h (freading): Enable the use of __freading for
40211         glibc >= 2.7.
40212         * lib/freading.c (freading): Likewise.
40213
40214 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40215
40216         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
40217         "warning: C99 inline functions are not supported; using GNU89".
40218
40219 2007-10-12  Bruno Haible  <bruno@clisp.org>
40220
40221         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
40222         of 2.
40223         * tests/test-ceilf2.c: New file.
40224         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
40225
40226         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
40227         * modules/ceilf-tests: Update.
40228
40229 2007-10-12  Bruno Haible  <bruno@clisp.org>
40230
40231         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
40232         of 2.
40233         * tests/test-floorf2.c: New file.
40234         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
40235
40236         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
40237         * modules/floorf-tests: Update.
40238
40239 2007-10-12  Bruno Haible  <bruno@clisp.org>
40240
40241         * tests/test-trunc2.c: New file.
40242         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
40243
40244         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
40245         * modules/trunc-tests: Update.
40246
40247 2007-10-12  Bruno Haible  <bruno@clisp.org>
40248
40249         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
40250         of 2.
40251         * tests/test-truncf2.c: New file.
40252         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
40253
40254         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
40255         * modules/truncf-tests: Update.
40256
40257 2007-10-11  Eric Blake  <ebb9@byu.net>
40258
40259         Don't claim strerror is broken on Interix.
40260         * doc/functions/strerror.texi (strerror): Known broken systems are
40261         now Solaris 8, and not Interix.
40262         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
40263         Interix on cross-compile.
40264         Reported by Martin Koeppe in
40265         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
40266
40267 2007-10-11  Bruno Haible  <bruno@clisp.org>
40268
40269         * modules/i-ring-tests: New file.
40270         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
40271         instead of assert.
40272
40273 2007-10-11  Bruno Haible  <bruno@clisp.org>
40274
40275         * modules/filenamecat-tests: New file.
40276         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
40277         * lib/filenamecat.c: Remove test code.
40278
40279 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40280
40281         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
40282
40283         * lib/strerror.c: Include <string.h> always, to test interface,
40284         and to remove the need for the dummy.
40285         Include intprops.h to compute width instead of doing it ourselves
40286         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
40287         (strerror): Define it to return NULL if there's no system strerror.
40288         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
40289         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
40290         ancient pre-strerror Unix systems well any more.  Saying "unknown
40291         system error" is enough.
40292         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
40293         simpler strerror.c implementation.
40294         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
40295         Simplify the tests to reflect the simpler strerror implementation.
40296         * modules/strerror (Depends-on): Add intprops.
40297
40298 2007-10-09  Eric Blake  <ebb9@byu.net>
40299
40300         Silence test-fpending.
40301         * modules/fpending-tests (Files): Add wrapper script.
40302         * tests/test-fpending.sh: New file.
40303
40304 2007-10-09  Bruno Haible  <bruno@clisp.org>
40305
40306         * MODULES.html.sh (func_module): Don't create a hyperlink for
40307         function names like 'printf_frexp'.
40308         (Misc): Add crc, memxor.
40309         (Characteristics of floating types): New section.
40310         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
40311         isnanf-nolibm, signbit, trunc, truncf, truncl.
40312         (Enhancements for ISO C 99 functions): New subsection Input/output.
40313         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
40314         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
40315         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
40316         (Compatibility checks for POSIX:2001 functions): Add clock-time.
40317         (Enhancements for POSIX:2001 functions): Add chdir-long.
40318         (File system functions): Add areadlink, chdir-safer, read-file.
40319         Remove cycle-check.
40320         (File system as inode set): New section.
40321         (Date and time): Add gethrxtime.
40322         (Multithreading): Add openmp.
40323         (Internationalization functions): Add localename.
40324         (Unicode string functions): Add unistr/u*-mbsnlen.
40325         (Support for maintaining and releasing projects): Add git-version-gen.
40326         (Lone files): Remove directories.
40327
40328 2007-10-08  Ben Pfaff  <blp@gnu.org>
40329
40330         * lib/xmalloca.h: Fix typo in comment.
40331
40332 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40333
40334         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
40335         when avoiding problems with integer overflow.  Use a portable test
40336         instead.
40337
40338 2007-10-08  Simon Josefsson  <simon@josefsson.org>
40339
40340         * modules/dummy (License): Change to LGPLv2+.
40341         * modules/float (License): Likewise
40342         * modules/realloc (License): Likewise
40343         * modules/stdlib (License): Likewise
40344
40345 2007-10-07  Bruno Haible  <bruno@clisp.org>
40346
40347         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
40348         * floor.c (TWO_MANT_DIG): Likewise.
40349         * ceil.c (TWO_MANT_DIG): Likewise.
40350         Reported by Ben Pfaff.
40351
40352 2007-10-07  Bruno Haible  <bruno@clisp.org>
40353
40354         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
40355         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
40356         * lib/frexp.c (FUNC): Likewise.
40357         * lib/printf-frexp.h (printf_frexp): Likewise.
40358         * lib/printf-frexpl.h (printf_frexpl): Likewise.
40359         * lib/printf-frexp.c (FUNC): Likewise.
40360         Suggested by Jim Meyering.
40361
40362 2007-10-07  Jim Meyering  <meyering@redhat.com>
40363
40364         Make xnanosleep's integer overflow test more robust.
40365         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
40366         so that gcc-4.3.0 doesn't optimize away this test for overflow.
40367
40368 2007-10-07  Bruno Haible  <bruno@clisp.org>
40369
40370         * NEWS: Mention the license change.
40371
40372         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
40373         abbreviations in the modules files.
40374
40375         Change copyright notice from GPLv2+ to GPLv3+.
40376         * README: Change copyright notice.
40377         * MODULES.html.sh: Likewise.
40378         * build-aux/bootstrap.conf: Likewise.
40379         * build-aux/config.libpath: Likewise.
40380         * build-aux/csharpcomp.sh.in: Likewise.
40381         * build-aux/csharpexec.sh.in: Likewise.
40382         * build-aux/install-reloc: Likewise.
40383         * build-aux/javacomp.sh.in: Likewise.
40384         * build-aux/javaexec.sh.in: Likewise.
40385         * build-aux/ldd.sh.in: Likewise.
40386         * build-aux/reloc-ldflags: Likewise.
40387         * build-aux/relocatable.sh.in: Likewise.
40388         * build-aux/x-to-1.in: Likewise.
40389         * check-module: Likewise.
40390         * config/srclistvars.sh: Likewise.
40391         * gnulib-tool: Likewise.
40392         * lib/acl-internal.h: Likewise.
40393         * lib/acl.c: Likewise.
40394         * lib/acl.h: Likewise.
40395         * lib/acl_entries.c: Likewise.
40396         * lib/areadlink-with-size.c: Likewise.
40397         * lib/areadlink.c: Likewise.
40398         * lib/areadlink.h: Likewise.
40399         * lib/argmatch.c: Likewise.
40400         * lib/argmatch.h: Likewise.
40401         * lib/argp-ba.c: Likewise.
40402         * lib/argp-eexst.c: Likewise.
40403         * lib/argp-fmtstream.c: Likewise.
40404         * lib/argp-fmtstream.h: Likewise.
40405         * lib/argp-fs-xinl.c: Likewise.
40406         * lib/argp-help.c: Likewise.
40407         * lib/argp-namefrob.h: Likewise.
40408         * lib/argp-parse.c: Likewise.
40409         * lib/argp-pin.c: Likewise.
40410         * lib/argp-pv.c: Likewise.
40411         * lib/argp-pvh.c: Likewise.
40412         * lib/argp-xinl.c: Likewise.
40413         * lib/argp.h: Likewise.
40414         * lib/at-func.c: Likewise.
40415         * lib/atanl.c: Likewise.
40416         * lib/backupfile.c: Likewise.
40417         * lib/backupfile.h: Likewise.
40418         * lib/basename.c: Likewise.
40419         * lib/binary-io.h: Likewise.
40420         * lib/byteswap.in.h: Likewise.
40421         * lib/c-stack.c: Likewise.
40422         * lib/c-stack.h: Likewise.
40423         * lib/c-strcasestr.c: Likewise.
40424         * lib/c-strcasestr.h: Likewise.
40425         * lib/c-strstr.c: Likewise.
40426         * lib/c-strstr.h: Likewise.
40427         * lib/c-strtod.c: Likewise.
40428         * lib/calloc.c: Likewise.
40429         * lib/canon-host.c: Likewise.
40430         * lib/canon-host.h: Likewise.
40431         * lib/canonicalize-lgpl.c: Likewise.
40432         * lib/canonicalize.c: Likewise.
40433         * lib/canonicalize.h: Likewise.
40434         * lib/ceil.c: Likewise.
40435         * lib/ceilf.c: Likewise.
40436         * lib/ceill.c: Likewise.
40437         * lib/chdir-long.c: Likewise.
40438         * lib/chdir-long.h: Likewise.
40439         * lib/chdir-safer.c: Likewise.
40440         * lib/chdir-safer.h: Likewise.
40441         * lib/chown.c: Likewise.
40442         * lib/classpath.c: Likewise.
40443         * lib/classpath.h: Likewise.
40444         * lib/clean-temp.c: Likewise.
40445         * lib/clean-temp.h: Likewise.
40446         * lib/cloexec.c: Likewise.
40447         * lib/close-stream.c: Likewise.
40448         * lib/closein.c: Likewise.
40449         * lib/closein.h: Likewise.
40450         * lib/closeout.c: Likewise.
40451         * lib/closeout.h: Likewise.
40452         * lib/concat-filename.c: Likewise.
40453         * lib/copy-file.c: Likewise.
40454         * lib/copy-file.h: Likewise.
40455         * lib/count-one-bits.h: Likewise.
40456         * lib/crc.c: Likewise.
40457         * lib/crc.h: Likewise.
40458         * lib/creat-safer.c: Likewise.
40459         * lib/csharpcomp.c: Likewise.
40460         * lib/csharpcomp.h: Likewise.
40461         * lib/csharpexec.c: Likewise.
40462         * lib/csharpexec.h: Likewise.
40463         * lib/cycle-check.c: Likewise.
40464         * lib/cycle-check.h: Likewise.
40465         * lib/diacrit.c: Likewise.
40466         * lib/diacrit.h: Likewise.
40467         * lib/diffseq.h: Likewise.
40468         * lib/dirchownmod.c: Likewise.
40469         * lib/dirent.in.h: Likewise.
40470         * lib/dirfd.c: Likewise.
40471         * lib/dirfd.h: Likewise.
40472         * lib/dirname.c: Likewise.
40473         * lib/dirname.h: Likewise.
40474         * lib/dummy.c: Likewise.
40475         * lib/dup-safer.c: Likewise.
40476         * lib/dup2.c: Likewise.
40477         * lib/eealloc.h: Likewise.
40478         * lib/error.c: Likewise.
40479         * lib/error.h: Likewise.
40480         * lib/euidaccess.c: Likewise.
40481         * lib/exclude.c: Likewise.
40482         * lib/exclude.h: Likewise.
40483         * lib/execute.c: Likewise.
40484         * lib/execute.h: Likewise.
40485         * lib/exitfail.c: Likewise.
40486         * lib/exitfail.h: Likewise.
40487         * lib/expl.c: Likewise.
40488         * lib/fatal-signal.c: Likewise.
40489         * lib/fatal-signal.h: Likewise.
40490         * lib/fbufmode.c: Likewise.
40491         * lib/fbufmode.h: Likewise.
40492         * lib/fchdir.c: Likewise.
40493         * lib/fchmodat.c: Likewise.
40494         * lib/fchownat.c: Likewise.
40495         * lib/fcntl--.h: Likewise.
40496         * lib/fcntl-safer.h: Likewise.
40497         * lib/fcntl.in.h: Likewise.
40498         * lib/fd-safer.c: Likewise.
40499         * lib/fflush.c: Likewise.
40500         * lib/file-has-acl.c: Likewise.
40501         * lib/file-set.c: Likewise.
40502         * lib/file-type.c: Likewise.
40503         * lib/file-type.h: Likewise.
40504         * lib/fileblocks.c: Likewise.
40505         * lib/filemode.c: Likewise.
40506         * lib/filemode.h: Likewise.
40507         * lib/filename.h: Likewise.
40508         * lib/filenamecat.c: Likewise.
40509         * lib/filenamecat.h: Likewise.
40510         * lib/findprog.c: Likewise.
40511         * lib/findprog.h: Likewise.
40512         * lib/float.in.h: Likewise.
40513         * lib/floor.c: Likewise.
40514         * lib/floorf.c: Likewise.
40515         * lib/floorl.c: Likewise.
40516         * lib/fopen-safer.c: Likewise.
40517         * lib/fopen.c: Likewise.
40518         * lib/fpending.c: Likewise.
40519         * lib/fpending.h: Likewise.
40520         * lib/fprintf.c: Likewise.
40521         * lib/fprintftime.h: Likewise.
40522         * lib/fpucw.h: Likewise.
40523         * lib/fpurge.c: Likewise.
40524         * lib/fpurge.h: Likewise.
40525         * lib/freadable.c: Likewise.
40526         * lib/freadable.h: Likewise.
40527         * lib/freadahead.c: Likewise.
40528         * lib/freadahead.h: Likewise.
40529         * lib/freading.c: Likewise.
40530         * lib/freading.h: Likewise.
40531         * lib/free.c: Likewise.
40532         * lib/freopen.c: Likewise.
40533         * lib/frexp.c: Likewise.
40534         * lib/frexpl.c: Likewise.
40535         * lib/fseek.c: Likewise.
40536         * lib/fseterr.c: Likewise.
40537         * lib/fseterr.h: Likewise.
40538         * lib/fstatat.c: Likewise.
40539         * lib/fstrcmp.c: Likewise.
40540         * lib/fstrcmp.h: Likewise.
40541         * lib/fsusage.c: Likewise.
40542         * lib/fsusage.h: Likewise.
40543         * lib/ftell.c: Likewise.
40544         * lib/ftello.c: Likewise.
40545         * lib/fts-cycle.c: Likewise.
40546         * lib/fts.c: Likewise.
40547         * lib/fts_.h: Likewise.
40548         * lib/full-read.c: Likewise.
40549         * lib/full-read.h: Likewise.
40550         * lib/full-write.c: Likewise.
40551         * lib/full-write.h: Likewise.
40552         * lib/fwritable.c: Likewise.
40553         * lib/fwritable.h: Likewise.
40554         * lib/fwriteerror.c: Likewise.
40555         * lib/fwriteerror.h: Likewise.
40556         * lib/fwriting.c: Likewise.
40557         * lib/fwriting.h: Likewise.
40558         * lib/gcd.c: Likewise.
40559         * lib/gcd.h: Likewise.
40560         * lib/getcwd.c: Likewise.
40561         * lib/getdate.h: Likewise.
40562         * lib/getdate.y: Likewise.
40563         * lib/getdomainname.c: Likewise.
40564         * lib/getdomainname.h: Likewise.
40565         * lib/getgroups.c: Likewise.
40566         * lib/gethostname.c: Likewise.
40567         * lib/gethrxtime.c: Likewise.
40568         * lib/gethrxtime.h: Likewise.
40569         * lib/getloadavg.c: Likewise.
40570         * lib/getndelim2.c: Likewise.
40571         * lib/getndelim2.h: Likewise.
40572         * lib/getnline.c: Likewise.
40573         * lib/getnline.h: Likewise.
40574         * lib/getopt.c: Likewise.
40575         * lib/getopt.in.h: Likewise.
40576         * lib/getopt1.c: Likewise.
40577         * lib/getopt_int.h: Likewise.
40578         * lib/getpagesize.h: Likewise.
40579         * lib/getsubopt.c: Likewise.
40580         * lib/gettime.c: Likewise.
40581         * lib/getugroups.c: Likewise.
40582         * lib/getugroups.h: Likewise.
40583         * lib/getusershell.c: Likewise.
40584         * lib/gl_anyavltree_list1.h: Likewise.
40585         * lib/gl_anyavltree_list2.h: Likewise.
40586         * lib/gl_anyhash_list1.h: Likewise.
40587         * lib/gl_anyhash_list2.h: Likewise.
40588         * lib/gl_anylinked_list1.h: Likewise.
40589         * lib/gl_anylinked_list2.h: Likewise.
40590         * lib/gl_anyrbtree_list1.h: Likewise.
40591         * lib/gl_anyrbtree_list2.h: Likewise.
40592         * lib/gl_anytree_list1.h: Likewise.
40593         * lib/gl_anytree_list2.h: Likewise.
40594         * lib/gl_anytree_oset.h: Likewise.
40595         * lib/gl_anytreehash_list1.h: Likewise.
40596         * lib/gl_anytreehash_list2.h: Likewise.
40597         * lib/gl_array_list.c: Likewise.
40598         * lib/gl_array_list.h: Likewise.
40599         * lib/gl_array_oset.c: Likewise.
40600         * lib/gl_array_oset.h: Likewise.
40601         * lib/gl_avltree_list.c: Likewise.
40602         * lib/gl_avltree_list.h: Likewise.
40603         * lib/gl_avltree_oset.c: Likewise.
40604         * lib/gl_avltree_oset.h: Likewise.
40605         * lib/gl_avltreehash_list.c: Likewise.
40606         * lib/gl_avltreehash_list.h: Likewise.
40607         * lib/gl_carray_list.c: Likewise.
40608         * lib/gl_carray_list.h: Likewise.
40609         * lib/gl_linked_list.c: Likewise.
40610         * lib/gl_linked_list.h: Likewise.
40611         * lib/gl_linkedhash_list.c: Likewise.
40612         * lib/gl_linkedhash_list.h: Likewise.
40613         * lib/gl_list.c: Likewise.
40614         * lib/gl_list.h: Likewise.
40615         * lib/gl_oset.c: Likewise.
40616         * lib/gl_oset.h: Likewise.
40617         * lib/gl_rbtree_list.c: Likewise.
40618         * lib/gl_rbtree_list.h: Likewise.
40619         * lib/gl_rbtree_oset.c: Likewise.
40620         * lib/gl_rbtree_oset.h: Likewise.
40621         * lib/gl_rbtreehash_list.c: Likewise.
40622         * lib/gl_rbtreehash_list.h: Likewise.
40623         * lib/gl_sublist.c: Likewise.
40624         * lib/gl_sublist.h: Likewise.
40625         * lib/group-member.c: Likewise.
40626         * lib/group-member.h: Likewise.
40627         * lib/hard-locale.c: Likewise.
40628         * lib/hard-locale.h: Likewise.
40629         * lib/hash-pjw.c: Likewise.
40630         * lib/hash-pjw.h: Likewise.
40631         * lib/hash-triple.c: Likewise.
40632         * lib/hash.c: Likewise.
40633         * lib/hash.h: Likewise.
40634         * lib/human.c: Likewise.
40635         * lib/human.h: Likewise.
40636         * lib/i-ring.c: Likewise.
40637         * lib/i-ring.h: Likewise.
40638         * lib/idcache.c: Likewise.
40639         * lib/imaxabs.c: Likewise.
40640         * lib/imaxdiv.c: Likewise.
40641         * lib/inet_pton.c: Likewise.
40642         * lib/inet_pton.h: Likewise.
40643         * lib/intprops.h: Likewise.
40644         * lib/inttostr.c: Likewise.
40645         * lib/inttostr.h: Likewise.
40646         * lib/inttypes.in.h: Likewise.
40647         * lib/isapipe.c: Likewise.
40648         * lib/isdir.c: Likewise.
40649         * lib/isnan.c: Likewise.
40650         * lib/isnan.h: Likewise.
40651         * lib/isnanf.c: Likewise.
40652         * lib/isnanf.h: Likewise.
40653         * lib/isnanl-nolibm.h: Likewise.
40654         * lib/isnanl.c: Likewise.
40655         * lib/isnanl.h: Likewise.
40656         * lib/javacomp.c: Likewise.
40657         * lib/javacomp.h: Likewise.
40658         * lib/javaexec.c: Likewise.
40659         * lib/javaexec.h: Likewise.
40660         * lib/javaversion.c: Likewise.
40661         * lib/javaversion.h: Likewise.
40662         * lib/javaversion.java: Likewise.
40663         * lib/lbrkprop.h: Likewise.
40664         * lib/lchmod.h: Likewise.
40665         * lib/lchown.c: Likewise.
40666         * lib/ldexpl.c: Likewise.
40667         * lib/linebreak.c: Likewise.
40668         * lib/linebreak.h: Likewise.
40669         * lib/linebuffer.c: Likewise.
40670         * lib/linebuffer.h: Likewise.
40671         * lib/locale.in.h: Likewise.
40672         * lib/logl.c: Likewise.
40673         * lib/long-options.c: Likewise.
40674         * lib/long-options.h: Likewise.
40675         * lib/lstat.c: Likewise.
40676         * lib/lstat.h: Likewise.
40677         * lib/math.in.h: Likewise.
40678         * lib/mbchar.c: Likewise.
40679         * lib/mbchar.h: Likewise.
40680         * lib/mbfile.h: Likewise.
40681         * lib/mbiter.h: Likewise.
40682         * lib/mbscasecmp.c: Likewise.
40683         * lib/mbscasestr.c: Likewise.
40684         * lib/mbschr.c: Likewise.
40685         * lib/mbscspn.c: Likewise.
40686         * lib/mbslen.c: Likewise.
40687         * lib/mbsncasecmp.c: Likewise.
40688         * lib/mbsnlen.c: Likewise.
40689         * lib/mbspbrk.c: Likewise.
40690         * lib/mbspcasecmp.c: Likewise.
40691         * lib/mbsrchr.c: Likewise.
40692         * lib/mbssep.c: Likewise.
40693         * lib/mbsspn.c: Likewise.
40694         * lib/mbsstr.c: Likewise.
40695         * lib/mbstok_r.c: Likewise.
40696         * lib/mbswidth.c: Likewise.
40697         * lib/mbswidth.h: Likewise.
40698         * lib/mbuiter.h: Likewise.
40699         * lib/memcasecmp.c: Likewise.
40700         * lib/memcasecmp.h: Likewise.
40701         * lib/memchr.c: Likewise.
40702         * lib/memcmp.c: Likewise.
40703         * lib/memcoll.c: Likewise.
40704         * lib/memcoll.h: Likewise.
40705         * lib/memcpy.c: Likewise.
40706         * lib/memrchr.c: Likewise.
40707         * lib/mkancesdirs.c: Likewise.
40708         * lib/mkdir-p.c: Likewise.
40709         * lib/mkdir-p.h: Likewise.
40710         * lib/mkdir.c: Likewise.
40711         * lib/mkdirat.c: Likewise.
40712         * lib/mkdtemp.c: Likewise.
40713         * lib/mkstemp-safer.c: Likewise.
40714         * lib/mkstemp.c: Likewise.
40715         * lib/modechange.c: Likewise.
40716         * lib/modechange.h: Likewise.
40717         * lib/mountlist.c: Likewise.
40718         * lib/mountlist.h: Likewise.
40719         * lib/mpsort.c: Likewise.
40720         * lib/nanosleep.c: Likewise.
40721         * lib/obstack.c: Likewise.
40722         * lib/obstack.h: Likewise.
40723         * lib/open-safer.c: Likewise.
40724         * lib/open.c: Likewise.
40725         * lib/openat-die.c: Likewise.
40726         * lib/openat-priv.h: Likewise.
40727         * lib/openat-proc.c: Likewise.
40728         * lib/openat.c: Likewise.
40729         * lib/openat.h: Likewise.
40730         * lib/pagealign_alloc.c: Likewise.
40731         * lib/pagealign_alloc.h: Likewise.
40732         * lib/physmem.c: Likewise.
40733         * lib/physmem.h: Likewise.
40734         * lib/pipe-safer.c: Likewise.
40735         * lib/pipe.c: Likewise.
40736         * lib/pipe.h: Likewise.
40737         * lib/posixtm.c: Likewise.
40738         * lib/posixtm.h: Likewise.
40739         * lib/posixver.c: Likewise.
40740         * lib/printf-frexp.c: Likewise.
40741         * lib/printf-frexp.h: Likewise.
40742         * lib/printf-frexpl.c: Likewise.
40743         * lib/printf-frexpl.h: Likewise.
40744         * lib/printf.c: Likewise.
40745         * lib/progname.c: Likewise.
40746         * lib/progname.h: Likewise.
40747         * lib/progreloc.c: Likewise.
40748         * lib/putenv.c: Likewise.
40749         * lib/quote.c: Likewise.
40750         * lib/quote.h: Likewise.
40751         * lib/quotearg.c: Likewise.
40752         * lib/quotearg.h: Likewise.
40753         * lib/raise.c: Likewise.
40754         * lib/readline.c: Likewise.
40755         * lib/readline.h: Likewise.
40756         * lib/readlink.c: Likewise.
40757         * lib/readtokens.c: Likewise.
40758         * lib/readtokens.h: Likewise.
40759         * lib/readtokens0.c: Likewise.
40760         * lib/readtokens0.h: Likewise.
40761         * lib/readutmp.c: Likewise.
40762         * lib/readutmp.h: Likewise.
40763         * lib/realloc.c: Likewise.
40764         * lib/relocwrapper.c: Likewise.
40765         * lib/rename-dest-slash.c: Likewise.
40766         * lib/rename.c: Likewise.
40767         * lib/rmdir.c: Likewise.
40768         * lib/rpmatch.c: Likewise.
40769         * lib/safe-read.c: Likewise.
40770         * lib/safe-read.h: Likewise.
40771         * lib/safe-write.c: Likewise.
40772         * lib/safe-write.h: Likewise.
40773         * lib/same-inode.h: Likewise.
40774         * lib/same.c: Likewise.
40775         * lib/same.h: Likewise.
40776         * lib/save-cwd.c: Likewise.
40777         * lib/save-cwd.h: Likewise.
40778         * lib/savedir.c: Likewise.
40779         * lib/savedir.h: Likewise.
40780         * lib/savewd.c: Likewise.
40781         * lib/savewd.h: Likewise.
40782         * lib/search.in.h: Likewise.
40783         * lib/setenv.c: Likewise.
40784         * lib/setenv.h: Likewise.
40785         * lib/settime.c: Likewise.
40786         * lib/sh-quote.c: Likewise.
40787         * lib/sh-quote.h: Likewise.
40788         * lib/sig2str.c: Likewise.
40789         * lib/sig2str.h: Likewise.
40790         * lib/signal.in.h: Likewise.
40791         * lib/signbitd.c: Likewise.
40792         * lib/signbitf.c: Likewise.
40793         * lib/signbitl.c: Likewise.
40794         * lib/sigprocmask.c: Likewise.
40795         * lib/sincosl.c: Likewise.
40796         * lib/sleep.c: Likewise.
40797         * lib/sprintf.c: Likewise.
40798         * lib/sqrtl.c: Likewise.
40799         * lib/stat-time.h: Likewise.
40800         * lib/stdio--.h: Likewise.
40801         * lib/stdio-safer.h: Likewise.
40802         * lib/stdlib--.h: Likewise.
40803         * lib/stdlib-safer.h: Likewise.
40804         * lib/stdlib.in.h: Likewise.
40805         * lib/stpcpy.c: Likewise.
40806         * lib/stpncpy.c: Likewise.
40807         * lib/strchrnul.c: Likewise.
40808         * lib/strcspn.c: Likewise.
40809         * lib/strerror.c: Likewise.
40810         * lib/strftime.c: Likewise.
40811         * lib/strftime.h: Likewise.
40812         * lib/striconveh.c: Likewise.
40813         * lib/striconveh.h: Likewise.
40814         * lib/striconveha.c: Likewise.
40815         * lib/striconveha.h: Likewise.
40816         * lib/stripslash.c: Likewise.
40817         * lib/strnlen1.c: Likewise.
40818         * lib/strnlen1.h: Likewise.
40819         * lib/strtod.c: Likewise.
40820         * lib/strtoimax.c: Likewise.
40821         * lib/strtok_r.c: Likewise.
40822         * lib/strtol.c: Likewise.
40823         * lib/strtoll.c: Likewise.
40824         * lib/strtoul.c: Likewise.
40825         * lib/strtoull.c: Likewise.
40826         * lib/sysexits.in.h: Likewise.
40827         * lib/tempname.c: Likewise.
40828         * lib/tempname.h: Likewise.
40829         * lib/timespec.h: Likewise.
40830         * lib/tls.c: Likewise.
40831         * lib/tls.h: Likewise.
40832         * lib/tmpdir.c: Likewise.
40833         * lib/tmpdir.h: Likewise.
40834         * lib/tmpfile-safer.c: Likewise.
40835         * lib/tmpfile.c: Likewise.
40836         * lib/trigl.c: Likewise.
40837         * lib/trigl.h: Likewise.
40838         * lib/trim.c: Likewise.
40839         * lib/trim.h: Likewise.
40840         * lib/trunc.c: Likewise.
40841         * lib/truncf.c: Likewise.
40842         * lib/truncl.c: Likewise.
40843         * lib/tsearch.c: Likewise.
40844         * lib/unicodeio.c: Likewise.
40845         * lib/unicodeio.h: Likewise.
40846         * lib/unistd--.h: Likewise.
40847         * lib/unistd-safer.h: Likewise.
40848         * lib/unistdio/ulc-fprintf.c: Likewise.
40849         * lib/unistdio/ulc-vfprintf.c: Likewise.
40850         * lib/unlinkdir.c: Likewise.
40851         * lib/unlinkdir.h: Likewise.
40852         * lib/unlocked-io.h: Likewise.
40853         * lib/unsetenv.c: Likewise.
40854         * lib/userspec.c: Likewise.
40855         * lib/utime.c: Likewise.
40856         * lib/utimecmp.c: Likewise.
40857         * lib/utimecmp.h: Likewise.
40858         * lib/utimens.c: Likewise.
40859         * lib/verify.h: Likewise.
40860         * lib/verror.c: Likewise.
40861         * lib/verror.h: Likewise.
40862         * lib/version-etc-fsf.c: Likewise.
40863         * lib/version-etc.c: Likewise.
40864         * lib/version-etc.h: Likewise.
40865         * lib/vfprintf.c: Likewise.
40866         * lib/vprintf.c: Likewise.
40867         * lib/vsprintf.c: Likewise.
40868         * lib/w32spawn.h: Likewise.
40869         * lib/wait-process.c: Likewise.
40870         * lib/wait-process.h: Likewise.
40871         * lib/wcwidth.c: Likewise.
40872         * lib/write-any-file.c: Likewise.
40873         * lib/xalloc-die.c: Likewise.
40874         * lib/xalloc.h: Likewise.
40875         * lib/xasprintf.c: Likewise.
40876         * lib/xgetcwd.c: Likewise.
40877         * lib/xgetcwd.h: Likewise.
40878         * lib/xgetdomainname.c: Likewise.
40879         * lib/xgetdomainname.h: Likewise.
40880         * lib/xgethostname.c: Likewise.
40881         * lib/xmalloc.c: Likewise.
40882         * lib/xmalloca.c: Likewise.
40883         * lib/xmalloca.h: Likewise.
40884         * lib/xmemcoll.c: Likewise.
40885         * lib/xnanosleep.c: Likewise.
40886         * lib/xreadlink.c: Likewise.
40887         * lib/xreadlink.h: Likewise.
40888         * lib/xsetenv.c: Likewise.
40889         * lib/xsetenv.h: Likewise.
40890         * lib/xstriconv.c: Likewise.
40891         * lib/xstriconv.h: Likewise.
40892         * lib/xstrndup.c: Likewise.
40893         * lib/xstrndup.h: Likewise.
40894         * lib/xstrtod.c: Likewise.
40895         * lib/xstrtod.h: Likewise.
40896         * lib/xstrtol-error.c: Likewise.
40897         * lib/xstrtol.c: Likewise.
40898         * lib/xstrtol.h: Likewise.
40899         * lib/xtime.h: Likewise.
40900         * lib/xvasprintf.c: Likewise.
40901         * lib/xvasprintf.h: Likewise.
40902         * lib/yesno.c: Likewise.
40903         * lib/yesno.h: Likewise.
40904         * posix-modules: Likewise.
40905         * tests/test-alloca-opt.c: Likewise.
40906         * tests/test-arcfour.c: Likewise.
40907         * tests/test-arctwo.c: Likewise.
40908         * tests/test-argmatch.c: Likewise.
40909         * tests/test-argp-2.sh: Likewise.
40910         * tests/test-argp.c: Likewise.
40911         * tests/test-arpa_inet.c: Likewise.
40912         * tests/test-array_list.c: Likewise.
40913         * tests/test-array_oset.c: Likewise.
40914         * tests/test-atexit.c: Likewise.
40915         * tests/test-avltree_list.c: Likewise.
40916         * tests/test-avltree_oset.c: Likewise.
40917         * tests/test-avltreehash_list.c: Likewise.
40918         * tests/test-base64.c: Likewise.
40919         * tests/test-binary-io.c: Likewise.
40920         * tests/test-byteswap.c: Likewise.
40921         * tests/test-c-ctype.c: Likewise.
40922         * tests/test-c-strcasecmp.c: Likewise.
40923         * tests/test-c-strcasestr.c: Likewise.
40924         * tests/test-c-strncasecmp.c: Likewise.
40925         * tests/test-c-strstr.c: Likewise.
40926         * tests/test-canonicalize-lgpl.c: Likewise.
40927         * tests/test-canonicalize.c: Likewise.
40928         * tests/test-carray_list.c: Likewise.
40929         * tests/test-ceilf.c: Likewise.
40930         * tests/test-ceill.c: Likewise.
40931         * tests/test-count-one-bits.c: Likewise.
40932         * tests/test-crc.c: Likewise.
40933         * tests/test-dirname.c: Likewise.
40934         * tests/test-fbufmode.c: Likewise.
40935         * tests/test-fcntl.c: Likewise.
40936         * tests/test-fflush.c: Likewise.
40937         * tests/test-floorf.c: Likewise.
40938         * tests/test-floorl.c: Likewise.
40939         * tests/test-fopen.c: Likewise.
40940         * tests/test-fprintf-posix.c: Likewise.
40941         * tests/test-fprintf-posix.h: Likewise.
40942         * tests/test-fpurge.c: Likewise.
40943         * tests/test-freadable.c: Likewise.
40944         * tests/test-freadahead.c: Likewise.
40945         * tests/test-freading.c: Likewise.
40946         * tests/test-freopen.c: Likewise.
40947         * tests/test-frexp.c: Likewise.
40948         * tests/test-frexpl.c: Likewise.
40949         * tests/test-fseek.c: Likewise.
40950         * tests/test-fseeko.c: Likewise.
40951         * tests/test-fseterr.c: Likewise.
40952         * tests/test-fstrcmp.c: Likewise.
40953         * tests/test-ftell.c: Likewise.
40954         * tests/test-ftello.c: Likewise.
40955         * tests/test-fwritable.c: Likewise.
40956         * tests/test-fwriting.c: Likewise.
40957         * tests/test-getaddrinfo.c: Likewise.
40958         * tests/test-getpass.c: Likewise.
40959         * tests/test-gettimeofday.c: Likewise.
40960         * tests/test-hmac-md5.c: Likewise.
40961         * tests/test-hmac-sha1.c: Likewise.
40962         * tests/test-iconv.c: Likewise.
40963         * tests/test-iconvme.c: Likewise.
40964         * tests/test-inttypes.c: Likewise.
40965         * tests/test-isnan.c: Likewise.
40966         * tests/test-isnanf.c: Likewise.
40967         * tests/test-isnanl-nolibm.c: Likewise.
40968         * tests/test-isnanl.c: Likewise.
40969         * tests/test-isnanl.h: Likewise.
40970         * tests/test-ldexpl.c: Likewise.
40971         * tests/test-linked_list.c: Likewise.
40972         * tests/test-linkedhash_list.c: Likewise.
40973         * tests/test-locale.c: Likewise.
40974         * tests/test-localename.c: Likewise.
40975         * tests/test-lock.c: Likewise.
40976         * tests/test-lseek.c: Likewise.
40977         * tests/test-malloca.c: Likewise.
40978         * tests/test-math.c: Likewise.
40979         * tests/test-mbscasecmp.c: Likewise.
40980         * tests/test-mbscasestr1.c: Likewise.
40981         * tests/test-mbscasestr2.c: Likewise.
40982         * tests/test-mbscasestr3.c: Likewise.
40983         * tests/test-mbscasestr4.c: Likewise.
40984         * tests/test-mbschr.c: Likewise.
40985         * tests/test-mbscspn.c: Likewise.
40986         * tests/test-mbsncasecmp.c: Likewise.
40987         * tests/test-mbspbrk.c: Likewise.
40988         * tests/test-mbspcasecmp.c: Likewise.
40989         * tests/test-mbsrchr.c: Likewise.
40990         * tests/test-mbsspn.c: Likewise.
40991         * tests/test-mbsstr1.c: Likewise.
40992         * tests/test-mbsstr2.c: Likewise.
40993         * tests/test-mbsstr3.c: Likewise.
40994         * tests/test-md5.c: Likewise.
40995         * tests/test-memmem.c: Likewise.
40996         * tests/test-netinet_in.c: Likewise.
40997         * tests/test-open.c: Likewise.
40998         * tests/test-printf-frexp.c: Likewise.
40999         * tests/test-printf-frexpl.c: Likewise.
41000         * tests/test-printf-posix.c: Likewise.
41001         * tests/test-printf-posix.h: Likewise.
41002         * tests/test-rbtree_list.c: Likewise.
41003         * tests/test-rbtree_oset.c: Likewise.
41004         * tests/test-rbtreehash_list.c: Likewise.
41005         * tests/test-read-file.c: Likewise.
41006         * tests/test-rijndael.c: Likewise.
41007         * tests/test-search.c: Likewise.
41008         * tests/test-signbit.c: Likewise.
41009         * tests/test-sleep.c: Likewise.
41010         * tests/test-snprintf-posix.c: Likewise.
41011         * tests/test-snprintf-posix.h: Likewise.
41012         * tests/test-snprintf.c: Likewise.
41013         * tests/test-sprintf-posix.c: Likewise.
41014         * tests/test-sprintf-posix.h: Likewise.
41015         * tests/test-stat-time.c: Likewise.
41016         * tests/test-stdbool.c: Likewise.
41017         * tests/test-stdint.c: Likewise.
41018         * tests/test-stdio.c: Likewise.
41019         * tests/test-stdlib.c: Likewise.
41020         * tests/test-stpncpy.c: Likewise.
41021         * tests/test-strcasestr.c: Likewise.
41022         * tests/test-striconv.c: Likewise.
41023         * tests/test-striconveh.c: Likewise.
41024         * tests/test-striconveha.c: Likewise.
41025         * tests/test-string.c: Likewise.
41026         * tests/test-sys_select.c: Likewise.
41027         * tests/test-sys_socket.c: Likewise.
41028         * tests/test-sys_stat.c: Likewise.
41029         * tests/test-sys_time.c: Likewise.
41030         * tests/test-sysexits.c: Likewise.
41031         * tests/test-time.c: Likewise.
41032         * tests/test-tls.c: Likewise.
41033         * tests/test-trunc.c: Likewise.
41034         * tests/test-truncf.c: Likewise.
41035         * tests/test-truncl.c: Likewise.
41036         * tests/test-unistd.c: Likewise.
41037         * tests/test-vasnprintf-posix.c: Likewise.
41038         * tests/test-vasnprintf-posix2.c: Likewise.
41039         * tests/test-vasnprintf.c: Likewise.
41040         * tests/test-vasprintf-posix.c: Likewise.
41041         * tests/test-vasprintf.c: Likewise.
41042         * tests/test-verify.c: Likewise.
41043         * tests/test-vfprintf-posix.c: Likewise.
41044         * tests/test-vprintf-posix.c: Likewise.
41045         * tests/test-vsnprintf-posix.c: Likewise.
41046         * tests/test-vsnprintf.c: Likewise.
41047         * tests/test-vsprintf-posix.c: Likewise.
41048         * tests/test-wchar.c: Likewise.
41049         * tests/test-wctype.c: Likewise.
41050         * tests/test-wcwidth.c: Likewise.
41051         * tests/test-xstrtol.c: Likewise.
41052         * tests/test-xvasprintf.c: Likewise.
41053         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41054         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41055         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41056         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41057         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41058         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41059         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41060         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41061         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41062         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41063         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41064         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41065         * tests/uniname/test-uninames.c: Likewise.
41066         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41067         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
41068         * tests/unistdio/test-u16-printf1.h: Likewise.
41069         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41070         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41071         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41072         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41073         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41074         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41075         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41076         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
41077         * tests/unistdio/test-u32-printf1.h: Likewise.
41078         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41079         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41080         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41081         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41082         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41083         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41084         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41085         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
41086         * tests/unistdio/test-u8-printf1.h: Likewise.
41087         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41088         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41089         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41090         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41091         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41092         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41093         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41094         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
41095         * tests/unistdio/test-ulc-printf1.h: Likewise.
41096         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41097         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41098         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41099         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41100         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41101         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41102         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41103         * tests/uniwidth/test-u16-width.c: Likewise.
41104         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41105         * tests/uniwidth/test-u32-width.c: Likewise.
41106         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41107         * tests/uniwidth/test-u8-width.c: Likewise.
41108         * tests/uniwidth/test-uc_width.c: Likewise.
41109         * config/srclist-update: Likewise.
41110         (fixlicense): Update to GPLv3+.
41111
41112         Change copyright notice from LGPLv2.1+ to LGPLv3+.
41113         * tests/test-tsearch.c: Change copyright notice.
41114
41115         Change copyright notice from LGPLv2.0+ to LGPLv3+.
41116         * lib/c-strcaseeq.h: Change copyright notice.
41117         * lib/streq.h: Likewise.
41118         * lib/uniconv.h: Likewise.
41119         * lib/uniconv/u-conv-from-enc.h: Likewise.
41120         * lib/uniconv/u-conv-to-enc.h: Likewise.
41121         * lib/uniconv/u-strconv-from-enc.h: Likewise.
41122         * lib/uniconv/u-strconv-to-enc.h: Likewise.
41123         * lib/uniconv/u16-conv-from-enc.c: Likewise.
41124         * lib/uniconv/u16-conv-to-enc.c: Likewise.
41125         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
41126         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
41127         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
41128         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
41129         * lib/uniconv/u32-conv-from-enc.c: Likewise.
41130         * lib/uniconv/u32-conv-to-enc.c: Likewise.
41131         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
41132         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
41133         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
41134         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
41135         * lib/uniconv/u8-conv-from-enc.c: Likewise.
41136         * lib/uniconv/u8-conv-to-enc.c: Likewise.
41137         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
41138         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
41139         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
41140         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
41141         * lib/uniname.h: Likewise.
41142         * lib/uniname/uniname.c: Likewise.
41143         * lib/unistdio.h: Likewise.
41144         * lib/unistdio/u-asnprintf.h: Likewise.
41145         * lib/unistdio/u-asprintf.h: Likewise.
41146         * lib/unistdio/u-printf-args.c: Likewise.
41147         * lib/unistdio/u-printf-args.h: Likewise.
41148         * lib/unistdio/u-printf-parse.h: Likewise.
41149         * lib/unistdio/u-snprintf.h: Likewise.
41150         * lib/unistdio/u-sprintf.h: Likewise.
41151         * lib/unistdio/u-vasprintf.h: Likewise.
41152         * lib/unistdio/u-vsnprintf.h: Likewise.
41153         * lib/unistdio/u-vsprintf.h: Likewise.
41154         * lib/unistdio/u16-asnprintf.c: Likewise.
41155         * lib/unistdio/u16-asprintf.c: Likewise.
41156         * lib/unistdio/u16-printf-parse.c: Likewise.
41157         * lib/unistdio/u16-snprintf.c: Likewise.
41158         * lib/unistdio/u16-sprintf.c: Likewise.
41159         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
41160         * lib/unistdio/u16-u16-asprintf.c: Likewise.
41161         * lib/unistdio/u16-u16-snprintf.c: Likewise.
41162         * lib/unistdio/u16-u16-sprintf.c: Likewise.
41163         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
41164         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
41165         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
41166         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
41167         * lib/unistdio/u16-vasnprintf.c: Likewise.
41168         * lib/unistdio/u16-vasprintf.c: Likewise.
41169         * lib/unistdio/u16-vsnprintf.c: Likewise.
41170         * lib/unistdio/u16-vsprintf.c: Likewise.
41171         * lib/unistdio/u32-asnprintf.c: Likewise.
41172         * lib/unistdio/u32-asprintf.c: Likewise.
41173         * lib/unistdio/u32-printf-parse.c: Likewise.
41174         * lib/unistdio/u32-snprintf.c: Likewise.
41175         * lib/unistdio/u32-sprintf.c: Likewise.
41176         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
41177         * lib/unistdio/u32-u32-asprintf.c: Likewise.
41178         * lib/unistdio/u32-u32-snprintf.c: Likewise.
41179         * lib/unistdio/u32-u32-sprintf.c: Likewise.
41180         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
41181         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
41182         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
41183         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
41184         * lib/unistdio/u32-vasnprintf.c: Likewise.
41185         * lib/unistdio/u32-vasprintf.c: Likewise.
41186         * lib/unistdio/u32-vsnprintf.c: Likewise.
41187         * lib/unistdio/u32-vsprintf.c: Likewise.
41188         * lib/unistdio/u8-asnprintf.c: Likewise.
41189         * lib/unistdio/u8-asprintf.c: Likewise.
41190         * lib/unistdio/u8-printf-parse.c: Likewise.
41191         * lib/unistdio/u8-snprintf.c: Likewise.
41192         * lib/unistdio/u8-sprintf.c: Likewise.
41193         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
41194         * lib/unistdio/u8-u8-asprintf.c: Likewise.
41195         * lib/unistdio/u8-u8-snprintf.c: Likewise.
41196         * lib/unistdio/u8-u8-sprintf.c: Likewise.
41197         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
41198         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
41199         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
41200         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
41201         * lib/unistdio/u8-vasnprintf.c: Likewise.
41202         * lib/unistdio/u8-vasprintf.c: Likewise.
41203         * lib/unistdio/u8-vsnprintf.c: Likewise.
41204         * lib/unistdio/u8-vsprintf.c: Likewise.
41205         * lib/unistdio/ulc-asnprintf.c: Likewise.
41206         * lib/unistdio/ulc-asprintf.c: Likewise.
41207         * lib/unistdio/ulc-printf-parse.c: Likewise.
41208         * lib/unistdio/ulc-snprintf.c: Likewise.
41209         * lib/unistdio/ulc-sprintf.c: Likewise.
41210         * lib/unistdio/ulc-vasnprintf.c: Likewise.
41211         * lib/unistdio/ulc-vasprintf.c: Likewise.
41212         * lib/unistdio/ulc-vsnprintf.c: Likewise.
41213         * lib/unistdio/ulc-vsprintf.c: Likewise.
41214         * lib/unistr.h: Likewise.
41215         * lib/unistr/u-cpy-alloc.h: Likewise.
41216         * lib/unistr/u-cpy.h: Likewise.
41217         * lib/unistr/u-endswith.h: Likewise.
41218         * lib/unistr/u-move.h: Likewise.
41219         * lib/unistr/u-set.h: Likewise.
41220         * lib/unistr/u-startswith.h: Likewise.
41221         * lib/unistr/u-stpcpy.h: Likewise.
41222         * lib/unistr/u-stpncpy.h: Likewise.
41223         * lib/unistr/u-strcat.h: Likewise.
41224         * lib/unistr/u-strcpy.h: Likewise.
41225         * lib/unistr/u-strcspn.h: Likewise.
41226         * lib/unistr/u-strdup.h: Likewise.
41227         * lib/unistr/u-strlen.h: Likewise.
41228         * lib/unistr/u-strncat.h: Likewise.
41229         * lib/unistr/u-strncpy.h: Likewise.
41230         * lib/unistr/u-strnlen.h: Likewise.
41231         * lib/unistr/u-strpbrk.h: Likewise.
41232         * lib/unistr/u-strspn.h: Likewise.
41233         * lib/unistr/u-strstr.h: Likewise.
41234         * lib/unistr/u-strtok.h: Likewise.
41235         * lib/unistr/u16-check.c: Likewise.
41236         * lib/unistr/u16-chr.c: Likewise.
41237         * lib/unistr/u16-cmp.c: Likewise.
41238         * lib/unistr/u16-cpy-alloc.c: Likewise.
41239         * lib/unistr/u16-cpy.c: Likewise.
41240         * lib/unistr/u16-endswith.c: Likewise.
41241         * lib/unistr/u16-mblen.c: Likewise.
41242         * lib/unistr/u16-mbsnlen.c: Likewise.
41243         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41244         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41245         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41246         * lib/unistr/u16-mbtouc.c: Likewise.
41247         * lib/unistr/u16-mbtoucr.c: Likewise.
41248         * lib/unistr/u16-move.c: Likewise.
41249         * lib/unistr/u16-next.c: Likewise.
41250         * lib/unistr/u16-prev.c: Likewise.
41251         * lib/unistr/u16-set.c: Likewise.
41252         * lib/unistr/u16-startswith.c: Likewise.
41253         * lib/unistr/u16-stpcpy.c: Likewise.
41254         * lib/unistr/u16-stpncpy.c: Likewise.
41255         * lib/unistr/u16-strcat.c: Likewise.
41256         * lib/unistr/u16-strchr.c: Likewise.
41257         * lib/unistr/u16-strcmp.c: Likewise.
41258         * lib/unistr/u16-strcpy.c: Likewise.
41259         * lib/unistr/u16-strcspn.c: Likewise.
41260         * lib/unistr/u16-strdup.c: Likewise.
41261         * lib/unistr/u16-strlen.c: Likewise.
41262         * lib/unistr/u16-strmblen.c: Likewise.
41263         * lib/unistr/u16-strmbtouc.c: Likewise.
41264         * lib/unistr/u16-strncat.c: Likewise.
41265         * lib/unistr/u16-strncmp.c: Likewise.
41266         * lib/unistr/u16-strncpy.c: Likewise.
41267         * lib/unistr/u16-strnlen.c: Likewise.
41268         * lib/unistr/u16-strpbrk.c: Likewise.
41269         * lib/unistr/u16-strrchr.c: Likewise.
41270         * lib/unistr/u16-strspn.c: Likewise.
41271         * lib/unistr/u16-strstr.c: Likewise.
41272         * lib/unistr/u16-strtok.c: Likewise.
41273         * lib/unistr/u16-to-u32.c: Likewise.
41274         * lib/unistr/u16-to-u8.c: Likewise.
41275         * lib/unistr/u16-uctomb-aux.c: Likewise.
41276         * lib/unistr/u16-uctomb.c: Likewise.
41277         * lib/unistr/u32-check.c: Likewise.
41278         * lib/unistr/u32-chr.c: Likewise.
41279         * lib/unistr/u32-cmp.c: Likewise.
41280         * lib/unistr/u32-cpy-alloc.c: Likewise.
41281         * lib/unistr/u32-cpy.c: Likewise.
41282         * lib/unistr/u32-endswith.c: Likewise.
41283         * lib/unistr/u32-mblen.c: Likewise.
41284         * lib/unistr/u32-mbsnlen.c: Likewise.
41285         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41286         * lib/unistr/u32-mbtouc.c: Likewise.
41287         * lib/unistr/u32-mbtoucr.c: Likewise.
41288         * lib/unistr/u32-move.c: Likewise.
41289         * lib/unistr/u32-next.c: Likewise.
41290         * lib/unistr/u32-prev.c: Likewise.
41291         * lib/unistr/u32-set.c: Likewise.
41292         * lib/unistr/u32-startswith.c: Likewise.
41293         * lib/unistr/u32-stpcpy.c: Likewise.
41294         * lib/unistr/u32-stpncpy.c: Likewise.
41295         * lib/unistr/u32-strcat.c: Likewise.
41296         * lib/unistr/u32-strchr.c: Likewise.
41297         * lib/unistr/u32-strcmp.c: Likewise.
41298         * lib/unistr/u32-strcpy.c: Likewise.
41299         * lib/unistr/u32-strcspn.c: Likewise.
41300         * lib/unistr/u32-strdup.c: Likewise.
41301         * lib/unistr/u32-strlen.c: Likewise.
41302         * lib/unistr/u32-strmblen.c: Likewise.
41303         * lib/unistr/u32-strmbtouc.c: Likewise.
41304         * lib/unistr/u32-strncat.c: Likewise.
41305         * lib/unistr/u32-strncmp.c: Likewise.
41306         * lib/unistr/u32-strncpy.c: Likewise.
41307         * lib/unistr/u32-strnlen.c: Likewise.
41308         * lib/unistr/u32-strpbrk.c: Likewise.
41309         * lib/unistr/u32-strrchr.c: Likewise.
41310         * lib/unistr/u32-strspn.c: Likewise.
41311         * lib/unistr/u32-strstr.c: Likewise.
41312         * lib/unistr/u32-strtok.c: Likewise.
41313         * lib/unistr/u32-to-u16.c: Likewise.
41314         * lib/unistr/u32-to-u8.c: Likewise.
41315         * lib/unistr/u32-uctomb.c: Likewise.
41316         * lib/unistr/u8-check.c: Likewise.
41317         * lib/unistr/u8-chr.c: Likewise.
41318         * lib/unistr/u8-cmp.c: Likewise.
41319         * lib/unistr/u8-cpy-alloc.c: Likewise.
41320         * lib/unistr/u8-cpy.c: Likewise.
41321         * lib/unistr/u8-endswith.c: Likewise.
41322         * lib/unistr/u8-mblen.c: Likewise.
41323         * lib/unistr/u8-mbsnlen.c: Likewise.
41324         * lib/unistr/u8-mbtouc-aux.c: Likewise.
41325         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41326         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41327         * lib/unistr/u8-mbtouc.c: Likewise.
41328         * lib/unistr/u8-mbtoucr.c: Likewise.
41329         * lib/unistr/u8-move.c: Likewise.
41330         * lib/unistr/u8-next.c: Likewise.
41331         * lib/unistr/u8-prev.c: Likewise.
41332         * lib/unistr/u8-set.c: Likewise.
41333         * lib/unistr/u8-startswith.c: Likewise.
41334         * lib/unistr/u8-stpcpy.c: Likewise.
41335         * lib/unistr/u8-stpncpy.c: Likewise.
41336         * lib/unistr/u8-strcat.c: Likewise.
41337         * lib/unistr/u8-strchr.c: Likewise.
41338         * lib/unistr/u8-strcmp.c: Likewise.
41339         * lib/unistr/u8-strcpy.c: Likewise.
41340         * lib/unistr/u8-strcspn.c: Likewise.
41341         * lib/unistr/u8-strdup.c: Likewise.
41342         * lib/unistr/u8-strlen.c: Likewise.
41343         * lib/unistr/u8-strmblen.c: Likewise.
41344         * lib/unistr/u8-strmbtouc.c: Likewise.
41345         * lib/unistr/u8-strncat.c: Likewise.
41346         * lib/unistr/u8-strncmp.c: Likewise.
41347         * lib/unistr/u8-strncpy.c: Likewise.
41348         * lib/unistr/u8-strnlen.c: Likewise.
41349         * lib/unistr/u8-strpbrk.c: Likewise.
41350         * lib/unistr/u8-strrchr.c: Likewise.
41351         * lib/unistr/u8-strspn.c: Likewise.
41352         * lib/unistr/u8-strstr.c: Likewise.
41353         * lib/unistr/u8-strtok.c: Likewise.
41354         * lib/unistr/u8-to-u16.c: Likewise.
41355         * lib/unistr/u8-to-u32.c: Likewise.
41356         * lib/unistr/u8-uctomb-aux.c: Likewise.
41357         * lib/unistr/u8-uctomb.c: Likewise.
41358         * lib/unitypes.h: Likewise.
41359         * lib/uniwidth.h: Likewise.
41360         * lib/uniwidth/cjk.h: Likewise.
41361         * lib/uniwidth/u16-strwidth.c: Likewise.
41362         * lib/uniwidth/u16-width.c: Likewise.
41363         * lib/uniwidth/u32-strwidth.c: Likewise.
41364         * lib/uniwidth/u32-width.c: Likewise.
41365         * lib/uniwidth/u8-strwidth.c: Likewise.
41366         * lib/uniwidth/u8-width.c: Likewise.
41367         * lib/uniwidth/width.c: Likewise.
41368
41369 2007-10-07  Bruno Haible  <bruno@clisp.org>
41370
41371         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
41372         The file is still under LGPL (see modules/inttypes).
41373
41374 2007-10-06  Bruno Haible  <bruno@clisp.org>
41375
41376         * modules/trunc (Dependencies): Add 'extensions'.
41377         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
41378         Reported by Ben Pfaff <blp@gnu.org>.
41379
41380 2007-10-06  Bruno Haible  <bruno@clisp.org>
41381
41382         * modules/freopen-tests: New file.
41383         * tests/test-freopen.c: New file.
41384
41385         * modules/fopen-tests: New file.
41386         * tests/test-fopen.c: New file.
41387
41388         * modules/fopen: New file.
41389         * lib/fopen.c: New file.
41390         * m4/fopen.m4: New file.
41391         * modules/freopen: New file.
41392         * lib/freopen.c: New file.
41393         * m4/freopen.m4: New file.
41394         * lib/stdio.in.h (fopen, freopen): New declarations.
41395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
41396         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41397         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
41398         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41399         * doc/functions/fopen.texi: Mention the 'fopen' module.
41400         * doc/functions/freopen.texi: Mention the 'freopen' module.
41401
41402 2007-10-06  Bruno Haible  <bruno@clisp.org>
41403
41404         * modules/open-tests: New file.
41405         * tests/test-open.c: New file.
41406
41407         * modules/open: New file.
41408         * lib/open.c: New file.
41409         * m4/open.m4: New file.
41410         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
41411         lib/open.c does.
41412         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
41413         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
41414         macros.
41415         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
41416         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
41417         REPLACE_OPEN.
41418         * doc/functions/open.texi: Mention the 'open' module.
41419
41420 2007-10-04  Bruno Haible  <bruno@clisp.org>
41421
41422         * modules/ceill-tests: New file.
41423         * tests/test-ceill.c: New file.
41424
41425         * modules/ceill: New file.
41426         * lib/ceill.c: Replace entire file.
41427         * m4/ceill.m4: New file.
41428         * lib/math.in.h (ceill): Replace declaration.
41429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
41430         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
41431         * doc/functions/ceill.texi: Mention the 'ceill' module.
41432         * modules/mathl (Files): Remove lib/ceill.c.
41433         (Depends-on): Add ceill.
41434
41435 2007-10-04  Bruno Haible  <bruno@clisp.org>
41436
41437         * modules/ceilf-tests: New file.
41438         * tests/test-ceilf.c: New file.
41439
41440         * modules/ceilf: New file.
41441         * lib/ceil.c: New file.
41442         * lib/ceilf.c: New file.
41443         * m4/ceilf.m4: New file.
41444         * lib/math.in.h (ceilf): New declaration.
41445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
41446         HAVE_DECL_CEILF.
41447         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
41448         HAVE_DECL_CEILF.
41449         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
41450
41451 2007-10-04  Bruno Haible  <bruno@clisp.org>
41452
41453         * modules/floorl-tests: New file.
41454         * tests/test-floorl.c: New file.
41455
41456         * modules/floorl: New file.
41457         * lib/floorl.c: Replace entire file.
41458         * m4/floorl.m4: New file.
41459         * lib/math.in.h (floorl): Replace declaration.
41460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
41461         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
41462         * doc/functions/floorl.texi: Mention the 'floorl' module.
41463         * modules/mathl (Files): Remove lib/floorl.c.
41464         (Depends-on): Add floorl.
41465
41466 2007-10-04  Bruno Haible  <bruno@clisp.org>
41467
41468         * modules/floorf-tests: New file.
41469         * tests/test-floorf.c: New file.
41470
41471         * modules/floorf: New file.
41472         * lib/floor.c: New file.
41473         * lib/floorf.c: New file.
41474         * m4/floorf.m4: New file.
41475         * lib/math.in.h (floorf): New declaration.
41476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
41477         HAVE_DECL_FLOORF.
41478         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
41479         HAVE_DECL_FLOORF.
41480         * doc/functions/floorf.texi: Mention the 'floorf' module.
41481
41482 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
41483             Bruno Haible  <bruno@clisp.org>
41484
41485         Advertise for the Git server instead of the CVS server.
41486         * doc/gnulib-intro.texi (Steady Development): Mention the Git
41487         repository instead of the CVS one.
41488         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
41489         about all VCS systems generically.
41490         * doc/gnulib.texi (Introduction): Capitalize `Git'.
41491
41492 2007-10-04  Bruno Haible  <bruno@clisp.org>
41493
41494         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
41495         means.
41496         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
41497
41498 2007-10-04  Bruno Haible  <bruno@clisp.org>
41499
41500         * modules/truncl-tests: New file.
41501         * tests/test-truncl.c: New file.
41502
41503         * modules/truncl: New file.
41504         * lib/truncl.c: New file.
41505         * m4/truncl.m4: New file.
41506         * lib/math.in.h (truncl): New declaration.
41507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
41508         HAVE_DECL_TRUNCL.
41509         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
41510         HAVE_DECL_TRUNCL.
41511         * doc/functions/truncl.texi: Mention the 'truncl' module.
41512
41513 2007-10-04  Bruno Haible  <bruno@clisp.org>
41514
41515         * modules/truncf-tests: New file.
41516         * tests/test-truncf.c: New file.
41517
41518         * modules/truncf: New file.
41519         * lib/trunc.c: Make paramerizable through USE_* macros.
41520         * lib/truncf.c: New file.
41521         * m4/truncf.m4: New file.
41522         * lib/math.in.h (truncf): New declaration.
41523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
41524         HAVE_DECL_TRUNCF.
41525         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
41526         HAVE_DECL_TRUNCF.
41527         * doc/functions/truncf.texi: Mention the 'truncf' module.
41528
41529 2007-10-03  Bruno Haible  <bruno@clisp.org>
41530
41531         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41532         augmentation also for tests modules.
41533         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
41534         * modules/atexit-tests (Makefile.am): Likewise.
41535         * modules/binary-io-tests (Makefile.am): Likewise.
41536         * modules/c-strcase-tests (Makefile.am): Likewise.
41537         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
41538         * modules/canonicalize-tests (Makefile.am): Likewise.
41539         * modules/closein-tests (Makefile.am): Likewise.
41540         * modules/fprintf-posix-tests (Makefile.am): Likewise.
41541         * modules/freadahead-tests (Makefile.am): Likewise.
41542         * modules/fseek-tests (Makefile.am): Likewise.
41543         * modules/fseeko-tests (Makefile.am): Likewise.
41544         * modules/ftell-tests (Makefile.am): Likewise.
41545         * modules/ftello-tests (Makefile.am): Likewise.
41546         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
41547         * modules/isnanl-tests (Makefile.am): Likewise.
41548         * modules/lseek-tests (Makefile.am): Likewise.
41549         * modules/mbscasecmp-tests (Makefile.am): Likewise.
41550         * modules/mbscasestr-tests (Makefile.am): Likewise.
41551         * modules/mbschr-tests (Makefile.am): Likewise.
41552         * modules/mbscspn-tests (Makefile.am): Likewise.
41553         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
41554         * modules/mbspbrk-tests (Makefile.am): Likewise.
41555         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
41556         * modules/mbsrchr-tests (Makefile.am): Likewise.
41557         * modules/mbsspn-tests (Makefile.am): Likewise.
41558         * modules/mbsstr-tests (Makefile.am): Likewise.
41559         * modules/printf-posix-tests (Makefile.am): Likewise.
41560         * modules/snprintf-posix-tests (Makefile.am): Likewise.
41561         * modules/sprintf-posix-tests (Makefile.am): Likewise.
41562         * modules/tsearch-tests (Makefile.am): Likewise.
41563         * modules/uniname/uniname-tests (Makefile.am): Likewise.
41564         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
41565         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
41566         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
41567         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
41568         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
41569         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
41570         * modules/vprintf-posix-tests (Makefile.am): Likewise.
41571         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
41572         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
41573         * modules/xstrtoimax-tests (Makefile.am): Likewise.
41574         * modules/xstrtol-tests (Makefile.am): Likewise.
41575         * modules/xstrtoumax-tests (Makefile.am): Likewise.
41576         * modules/yesno-tests (Makefile.am): Likewise.
41577
41578 2007-10-03  Bruno Haible  <bruno@clisp.org>
41579
41580         * modules/trunc-tests: New file.
41581         * tests/test-trunc.c: New file.
41582
41583         * modules/trunc: New file.
41584         * lib/trunc.c: New file.
41585         * m4/trunc.m4: New file.
41586         * lib/math.in.h (trunc): New declaration.
41587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
41588         HAVE_DECL_TRUNC.
41589         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
41590         HAVE_DECL_TRUNC.
41591         * doc/functions/trunc.texi: Mention the 'trunc' module.
41592
41593 2007-10-03  Bruno Haible  <bruno@clisp.org>
41594
41595         * tests/test-fpending.c: New file, mostly copied
41596         from coreutils/lib/t-fpending.c.
41597         * modules/fpending-tests: New file.
41598
41599 2007-10-03  Bruno Haible  <bruno@clisp.org>
41600
41601         Port the stdio extensions to QNX (untested).
41602         * lib/fseterr.c (fseterr): Add support for QNX.
41603         * lib/fbufmode.c (fbufmode): Likewise.
41604         * lib/freadable.c (freadable): Likewise.
41605         * lib/fwritable.c (fwritable): Likewise.
41606         * lib/freading.c (freading): Likewise.
41607         * lib/fwriting.c (fwriting): Likewise.
41608         * lib/freadahead.c (freadahed): Likewise.
41609         * lib/fpurge.c (fpurge): Likewise.
41610         * lib/fseeko.c (rpl_fseeko): Likewise.
41611
41612 2007-10-03  Bruno Haible  <bruno@clisp.org>
41613             Jim Meyering  <jim@meyering.net>
41614             Eric Blake  <ebb9@byu.net>
41615
41616         * doc/relocatable.texi: Use @command instead of @program.
41617
41618 2007-10-02  Jim Meyering  <jim@meyering.net>
41619
41620         Perform one more "_.h" -> ".in.h" substitution.
41621         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
41622         instead of unistd_.h here, too.
41623
41624 2007-10-01  Bruno Haible  <bruno@clisp.org>
41625
41626         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
41627         Needed for the alloca-opt module.
41628
41629 2007-09-30  Bruno Haible  <bruno@clisp.org>
41630
41631         * lib/alloca.in.h: Renamed from lib/alloca_.h.
41632         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
41633         alloca_.h.
41634         * lib/argz.in.h: Renamed from lib/argz_.h.
41635         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
41636         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
41637         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
41638         byteswap_.h.
41639         * lib/dirent.in.h: Renamed from lib/dirent_.h.
41640         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
41641         dirent_.h.
41642         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
41643         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
41644         fcntl_.h.
41645         * lib/float.in.h: Renamed from lib/float_.h.
41646         * modules/float (Files, Makefile.am): Use float.in.h instead of
41647         float_.h.
41648         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
41649         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
41650         fnmatch_.h.
41651         * lib/getopt.in.h: Renamed from lib/getopt_.h.
41652         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
41653         getopt_.h.
41654         * lib/glob.in.h: Renamed from lib/glob_.h.
41655         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
41656         * lib/iconv.in.h: Renamed from lib/iconv_.h.
41657         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
41658         iconv_.h.
41659         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
41660         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
41661         inttypes_.h.
41662         * lib/locale.in.h: Renamed from lib/locale_.h.
41663         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
41664         locale_.h.
41665         * lib/math.in.h: Renamed from lib/math_.h.
41666         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
41667         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
41668         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
41669         of netinet_in_.h. Add dependency.
41670         * lib/poll.in.h: Renamed from lib/poll_.h.
41671         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
41672         * lib/search.in.h: Renamed from lib/search_.h.
41673         * modules/search (Files, Makefile.am): Use search.in.h instead of
41674         search_.h.
41675         * lib/signal.in.h: Renamed from lib/signal_.h.
41676         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
41677         _signal.h.
41678         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
41679         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
41680         stdbool_.h.
41681         * lib/stdint.in.h: Renamed from lib/stdint_.h.
41682         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
41683         stdint_.h.
41684         * lib/stdio.in.h: Renamed from lib/stdio_.h.
41685         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
41686         stdio_.h.
41687         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
41688         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
41689         stdlib_.h.
41690         * lib/string.in.h: Renamed from lib/string_.h.
41691         * modules/string (Files, Makefile.am): Use string.in.h instead of
41692         string_.h.
41693         * doc/gnulib-tool.texi (Initial import): Update.
41694         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
41695         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
41696         of sys_select_.h. Add dependency.
41697         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
41698         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
41699         of sys_socket_.h.
41700         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
41701         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
41702         sys_stat_.h.
41703         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
41704         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
41705         sys_time_.h.
41706         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
41707         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
41708         sysexits_.h.
41709         * lib/time.in.h: Renamed from lib/time_.h.
41710         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
41711         * lib/unistd.in.h: Renamed from lib/unistd_.h.
41712         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
41713         unistd_.h.
41714         * lib/wchar.in.h: Renamed from lib/wchar_.h.
41715         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
41716         wchar_.h.
41717         * lib/wctype.in.h: Renamed from lib/wctype_.h.
41718         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
41719         wctype_.h.
41720         * build-aux/bootstrap (slurp): Update.
41721         * lib/.cppi-disable: Update.
41722
41723 2007-09-30  Bruno Haible  <bruno@clisp.org>
41724
41725         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
41726         Needed on BeOS.
41727
41728 2007-09-30  Bruno Haible  <bruno@clisp.org>
41729
41730         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
41731
41732 2007-09-29  Bruno Haible  <bruno@clisp.org>
41733
41734         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
41735
41736 2007-09-29  Bruno Haible  <bruno@clisp.org>
41737
41738         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
41739         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
41740         * build-aux/install-reloc: Compile also areadlink.c.
41741         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
41742
41743 2007-09-29  Bruno Haible  <bruno@clisp.org>
41744
41745         * gnulib-tool (func_emit_initmacro_done): Indentation.
41746
41747 2007-09-29  Bruno Haible  <bruno@clisp.org>
41748
41749         * README: Add CVS checkout update instructions.
41750         Info from Bob Proulx <bob@proulx.com>.
41751
41752 2007-09-28  Eric Blake  <ebb9@byu.net>
41753
41754         Provide move-if-change.
41755         * build-aux/move-if-change: New file, based on best practice
41756         rather than any canonical upstream location.
41757
41758 2007-09-28  Jim Meyering  <jim@meyering.net>
41759
41760         Fix canonicalize loop-detection corner case.
41761         Do not attempt to stat the symlink values stored via seen_triple.
41762         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
41763         on linux-2.6.18, (but not 2.6.22).
41764         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
41765         triple_compare.  The former compares dev,ino,filename, while the latter
41766         would actually stat dirname(filename) when dev and ino were equal.
41767         * lib/hash-triple.c: Install <string.h>.
41768         (STREQ): Define.
41769         (triple_compare_ino_str): New function.
41770         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
41771
41772 2007-09-28  Eric Blake  <ebb9@byu.net>
41773
41774         Enforce that AC_REPLACE_FUNCS files exist.
41775         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
41776         override check for typos.
41777
41778         Fix test-closein on Solaris 10.
41779         * tests/test-closein.c (main): Don't assume stdin can be inherited
41780         closed on all systems.
41781         * tests/test-closein.sh: Likewise.
41782         Reported by Piotr Tarnowski.
41783
41784 2007-09-28  Jim Meyering  <jim@meyering.net>
41785
41786         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
41787
41788 2007-09-27  Jim Meyering  <jim@meyering.net>
41789
41790         canonicalize: Avoid a false-positive cycle failure.
41791         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
41792         Sort.  Remove cycle-check.
41793         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
41794         not cycle-check.h.
41795         (seen_triple): New function.
41796         (canonicalize_filename_mode): Use it instead of cycle-check.
41797         * tests/test-canonicalize.c: Add a test for this bug.
41798         * tests/test-canonicalize.sh: Set up and run the test.
41799
41800         New module, file-set, from coreutils.
41801         * modules/file-set: Define it.
41802         * lib/file-set.c, lib/file-set.h: Implement.
41803
41804         New module, hash-triple, from coreutils.
41805         * modules/hash-triple: Define it.
41806         * lib/hash-triple.c, lib/hash-triple.h: Implement.
41807
41808 2007-09-25  Eric Blake  <ebb9@byu.net>
41809
41810         Fix strerror on Interix.
41811         * lib/string_.h (strerror): Declare replacement.
41812         * doc/functions/strerror.texi (strerror): Document the Interix
41813         shortcoming.
41814         * modules/string (Makefile.am): Support new hooks.
41815         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
41816         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
41817         gl_FUNC_STRERROR_SEPARATE.
41818         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
41819         * lib/strerror.c (rpl_strerror): Provide replacement.
41820         * modules/strerror (Depends-on): Add string.
41821         (configure.ac): Detect use of module.
41822         * tests/test-strerror.c: New file.
41823         * modules/strerror-tests: New test module.
41824         * modules/argp (Depends-on): Add strerror.
41825         * modules/error (Depends-on): Likewise.
41826         Reported by Martin Koeppe.
41827
41828 2007-09-24  Bruno Haible  <bruno@clisp.org>
41829
41830         * README: Update git instructions.
41831
41832 2007-09-24  Eric Blake  <ebb9@byu.net>
41833
41834         Revert fpending breakage from 2007-09-08.
41835         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
41836         __fpending.c.
41837
41838 2007-09-24  Jim Meyering  <jim@meyering.net>
41839
41840         filenamecat.c: Add a test.
41841         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
41842         showing how the function works when DIR is the empty string.
41843
41844 2007-09-21  Simon Josefsson  <simon@josefsson.org>
41845
41846         * tests/test-canonicalize.sh: Turn on executable bit.
41847
41848 2007-09-19  Eric Blake  <ebb9@byu.net>
41849
41850         * README: Update CVS instructions.
41851
41852 2007-09-18  Bruno Haible  <bruno@clisp.org>
41853
41854         * modules/areadlink: New file.
41855         * lib/areadlink.h (areadlink): New declaration.
41856         * lib/areadlink.c: New file, based on lib/xreadlink.c.
41857
41858 2007-09-17  Jim Meyering  <jim@meyering.net>
41859
41860         * lib/savewd.c (ESTALE) [!defined]: Define.
41861         Reported to be required on Interix by Martin Koeppe.
41862
41863 2007-09-17  Bruno Haible  <bruno@clisp.org>
41864
41865         * gnulib-tool (func_version): Use $version.
41866
41867 2007-09-16  Bruno Haible  <bruno@clisp.org>
41868
41869         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
41870         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
41871         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
41872         Reported by Greg Schafer <gschafer@zip.com.au>.
41873
41874 2007-09-15  Bruno Haible  <bruno@clisp.org>
41875
41876         * gnulib-tool (sed): Try a little harder to make bash understand the
41877         alias.
41878         Reported by Bruce Korb <bruce.korb@gmail.com>.
41879
41880 2007-09-13  Eric Blake  <ebb9@byu.net>
41881
41882         * ChangeLog: Remove conflict markers.
41883
41884 2007-09-13  Simon Josefsson  <simon@josefsson.org>
41885
41886         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
41887         Reported by Bruno Haible <bruno@clisp.org>.
41888
41889 2007-09-12  Bruno Haible  <bruno@clisp.org>
41890
41891         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
41892         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
41893         is not defined.
41894
41895 2007-09-12  Eric Blake  <ebb9@byu.net>
41896
41897         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
41898         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
41899         Autoconf definition.
41900         * modules/euidaccess (Depends-on): Add extensions, for
41901         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
41902         * modules/fnmatch (Depends-on): Likewise.
41903         * modules/getaddrinfo (Depends-on): Likewise.
41904         * modules/getdelim (Depends-on): Likewise.
41905         * modules/getline (Depends-on): Likewise.
41906         * modules/getsubopt (Depends-on): Likewise.
41907         * modules/gettext (Depends-on): Likewise.
41908         * modules/group-member (Depends-on): Likewise.
41909         * modules/mbchar (Depends-on): Likewise.
41910         * modules/memmem (Depends-on): Likewise.
41911         * modules/mempcpy (Depends-on): Likewise.
41912         * modules/memrchr (Depends-on): Likewise.
41913         * modules/pagealign_alloc (Depends-on): Likewise.
41914         * modules/readutmp (Depends-on): Likewise.
41915         * modules/stpcpy (Depends-on): Likewise.
41916         * modules/stpncpy (Depends-on): Likewise.
41917         * modules/strchrnul (Depends-on): Likewise.
41918         * modules/strndup (Depends-on): Likewise.
41919         * modules/strsep (Depends-on): Likewise.
41920         * modules/strverscmp (Depends-on): Likewise.
41921         * modules/vasprintf (Depends-on): Likewise.
41922         * modules/wcwidth (Depends-on): Likewise.
41923         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
41924         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
41925         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
41926         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
41927         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41928         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41929         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
41930         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41931         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
41932         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
41933         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41934         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
41935         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
41936         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
41937         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
41938         * m4/readutmp.m4 (gl_READUTMP): Likewise.
41939         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41940         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
41941         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41942         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
41943         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41944         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
41945         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
41946         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
41947         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
41948         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41949         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
41950         so that lock.m4 can be used in gettext without extensions module.
41951
41952 2007-09-11  Bruno Haible  <bruno@clisp.org>
41953
41954         * m4/isc-posix.m4: Remove file.
41955         Suggested by Eric Blake.
41956
41957 2007-09-11  Eric Blake  <ebb9@byu.net>
41958
41959         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
41960
41961 2007-09-10  Bruno Haible  <bruno@clisp.org>
41962
41963         * posix-modules: Fix typo in error message.
41964         Reported by Matt <mkraai@beckman.com>.
41965
41966 2007-09-09  Bruno Haible  <bruno@clisp.org>
41967
41968         * doc/functions/getdelim.texi: Update list of platforms lacking the
41969         function.
41970         * doc/functions/getline.texi: Likewise.
41971
41972 2007-09-09  Jim Meyering  <jim@meyering.net>
41973
41974         * lib/hash.c (hash_initialize): Detect calloc failure.
41975         Reported by Bruno Haible.
41976
41977 2007-09-09  Bruno Haible  <bruno@clisp.org>
41978
41979         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
41980         malloc or realloc fails.
41981
41982 2007-09-09  Bruno Haible  <bruno@clisp.org>
41983
41984         * modules/getcwd (Depends-on): Add malloc-posix.
41985         * modules/glob (Depends-on): Likewise.
41986         * modules/putenv (Depends-on): Likewise.
41987         * modules/strdup (Depends-on): Likewise.
41988         * modules/getdelim (Depends-on): Add realloc-posix.
41989         * modules/read-file (Depends-on): Likewise.
41990
41991 2007-09-09  Bruno Haible  <bruno@clisp.org>
41992
41993         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
41994         (gl_FUNC_MALLOC_POSIX): Require it.
41995         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
41996         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
41997         * modules/realloc (Files): Add m4/malloc.m4.
41998         * modules/calloc (Files): Likewise.
41999
42000 2007-09-09  Bruno Haible  <bruno@clisp.org>
42001
42002         * modules/malloc-posix: New file.
42003         * modules/malloc (Depends-on): Add malloc-posix.
42004         * lib/malloc.c: Include errno.h.
42005         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
42006         and a POSIX-compatible malloc into a single function. Set ENOMEM
42007         when returning NULL.
42008         * m4/malloc.m4: New file.
42009         * doc/functions/malloc.texi: Mention the malloc-posix module.
42010         * lib/stdlib_.h (malloc): New declaration.
42011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42012         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
42013         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
42014         and HAVE_MALLOC_POSIX.
42015
42016 2007-09-09  Bruno Haible  <bruno@clisp.org>
42017
42018         * modules/realloc-posix: New file.
42019         * modules/realloc (Depends-on): Add realloc-posix.
42020         * lib/realloc.c: Include errno.h.
42021         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
42022         and a POSIX-compatible realloc into a single function. Set ENOMEM
42023         when returning NULL.
42024         * m4/realloc.m4: New file.
42025         * doc/functions/realloc.texi: Mention the realloc-posix module.
42026         * lib/stdlib_.h (realloc): New declaration.
42027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42028         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
42029         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
42030         and HAVE_REALLOC_POSIX.
42031
42032 2007-09-09  Bruno Haible  <bruno@clisp.org>
42033
42034         * modules/calloc-posix: New file.
42035         * modules/calloc (Depends-on): Add calloc-posix.
42036         * lib/calloc.c: Include errno.h.
42037         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
42038         and a POSIX-compatible calloc into a single function. Set ENOMEM
42039         when returning NULL.
42040         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
42041         * doc/functions/calloc.texi: Mention the calloc-posix module.
42042         * lib/stdlib_.h (calloc): New declaration.
42043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42044         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
42045         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
42046         and HAVE_CALLOC_POSIX.
42047
42048 2007-09-09  Bruno Haible  <bruno@clisp.org>
42049
42050         Allow for modules to show an arbitrary notice.
42051         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
42052         * gnulib-tool: New option --extract-notice.
42053         (func_usage): Document it.
42054         (sed_extract_prog): Update.
42055         (func_get_notice): New function.
42056         (func_modules_notice): New function.
42057         (func_import, func_create_testdir): Invoke it.
42058         Suggested by Jim Meyering.
42059
42060 2007-09-09  Bruno Haible  <bruno@clisp.org>
42061
42062         * gnulib-tool: New options --verbose, --quiet.
42063         (func_usage): Document them.
42064         (verbose): New variable.
42065         (func_execute_command): New function.
42066         (func_import): Don't show the module list and the file list if
42067         $verbose < 0.
42068         (func_create_testdir): Likewise. Use func_execute_command.
42069         (func_create_megatestdir): Use func_execute_command.
42070
42071 2007-09-08  Bruno Haible  <bruno@clisp.org>
42072
42073         * gnulib-tool (func_import): Prefer rsync over wget when available,
42074         for fetching the PO files.
42075
42076 2007-09-08  Bruno Haible  <bruno@clisp.org>
42077
42078         * posix-modules: New file. Portions copied from gnulib-tool.
42079         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
42080
42081 2007-09-08  Jim Meyering  <jim@meyering.net>
42082
42083         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
42084         * lib/fpending.h: Rename from __fpending.h.
42085         * lib/fpending.c: Rename from __fpending.c.
42086         Include "fpending.h", not "__fpending.h".
42087         * lib/__fpending.h, lib/__fpending.c: Remove files.
42088         * modules/fpending (Files): Reflect new file names.
42089         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
42090
42091 2007-09-08  Bruno Haible  <bruno@clisp.org>
42092
42093         * m4/inttypes-h.m4: Remove stub file.
42094
42095 2007-09-07  Simon Josefsson  <simon@josefsson.org>
42096
42097         * doc/headers/stdint.texi: Discuss #include_next issue.
42098
42099 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
42100
42101         * build-aux/bootstrap: Remove obsolete comment about wget --help.
42102
42103 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42104
42105         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
42106         in variable name.
42107
42108 2007-09-03  Jim Meyering  <jim@meyering.net>
42109
42110         New module: git-version-gen.
42111         * modules/git-version-gen: New file.
42112
42113         Import changes from coreutils for bootstrap script.
42114
42115         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
42116
42117         bootstrap: uses rsync to download the .po files
42118         * build-aux/bootstrap (po_download_command_format): New global.
42119         (download_po_files): Use rsync.
42120         (update_po_files): Don't remove .po files after download,
42121         so future rsync runs can take advantage of the copies.
42122
42123         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
42124
42125         Solve the unnecessary-.po-file-regeneration problem once and for all.
42126         * build-aux/bootstrap (download_po_files): New function, renamed from
42127         get_translations.  Now, downloads, but doesn't update LINGUAS.
42128         (update_po_files): New function.
42129
42130         bootstrap: Ignore more.
42131         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
42132         uniwidth to e.g., lib/.gitignore.
42133         (slurp): Handle the sys_stat_.h -> sys mapping, too.
42134
42135         * build-aux/bootstrap: New setting: vc_ignore.
42136         (insert_sorted_if_absent): Create $file if absent.
42137         Adapt to new, possibly empty, list: $vc_ignore.
42138
42139         bootstrap: generate more ignorable names
42140         * build-aux/bootstrap (slurp): When generating ignorable names,
42141         also map .sin to .sed, .gperf to .c, and .y to .c.
42142
42143 2007-09-03  Jim Meyering  <jim@meyering.net>
42144
42145         * build-aux/git-version-gen: New file, from coreutils.  For details, see
42146         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
42147
42148 2007-09-02  Bruno Haible  <bruno@clisp.org>
42149
42150         Fix mis-recognition of 'mcs' on QNX 6.
42151         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
42152         output contains the string "Mono".
42153         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
42154         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
42155
42156 2007-09-01  Bruno Haible  <bruno@clisp.org>
42157
42158         Fix collision between uniwidth/* and linebreak modules.
42159         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
42160         u32_width): Remove declarations.
42161         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
42162         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
42163         streq3, streq2, streq1, streq0): Remove functions.
42164         (STREQ): Remove macro.
42165         (is_cjk_encoding): Remove function.
42166         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
42167         (uc_width, u8_width, u16_width, u32_width): Remove functions.
42168         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
42169         * NEWS: Document the change.
42170
42171 2007-09-01  Bruno Haible  <bruno@clisp.org>
42172
42173         * lib/streq.h: Add double-inclusion guard.
42174
42175 2007-09-01  Karl Berry  <karl@gnu.org>
42176
42177         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
42178
42179 2007-08-28  Jim Meyering  <jim@meyering.net>
42180
42181         Rename mreadlink_with_size to areadlink_with_size.
42182         * NEWS: Document the change.
42183         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
42184         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
42185         * lib/mreadlink.h: Rename this to...
42186         * lib/areadlink.h: ...this.
42187         * modules/mreadlink-with-size: Rename this to...
42188         * modules/areadlink-with-size: ...this.
42189         * lib/canonicalize.c: Reflect the renaming.
42190         * modules/canonicalize: Likewise.
42191
42192 2007-08-26  Bruno Haible  <bruno@clisp.org>
42193
42194         * gnulib-tool (func_import): When deciding which files to remove,
42195         consider also dangling symbolic links.
42196         Reported by Eric Blake.
42197
42198 2007-08-26  Bruno Haible  <bruno@clisp.org>
42199
42200         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
42201
42202 2007-08-23  Simon Josefsson  <simon@josefsson.org>
42203
42204         * lib/readline.c: Don't include getline.h, the prototype is now
42205         found in stdio.h.
42206
42207 2007-08-23  Jim Meyering  <jim@meyering.net>
42208
42209         Getdelim touchup.
42210         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
42211         around the funlockfile call, since funlockfile never sets errno.
42212         Don't set errno upon failed realloc.
42213
42214 2007-08-22  Eric Blake  <ebb9@byu.net>
42215
42216         Getline touchups.
42217         * lib/getdelim.c (getdelim): Revert regression that required *n to
42218         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
42219         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
42220         getdelim, rather than whether implementation is missing.
42221         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
42222         * lib/stdio_.h (getline): Also declare if replacement is
42223         required.
42224         * doc/functions/getdelim.texi: New file.
42225         * doc/functions/getline.texi: Likewise.
42226         * doc/gnulib.texi (Function Substitutes): Add new files.
42227         Reported by Bruno Haible.
42228
42229 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
42230
42231         * users.txt: Add Guile.
42232
42233 2007-08-22  Eric Blake  <ebb9@byu.net>
42234
42235         * tests/test-getdelim.c (main): Use remove, not unlink.
42236         * tests/test-getline.c (main): Likewise.
42237
42238         Move getline and getdelim into stdio.h, per POSIX 200x.
42239         * modules/getline (Files): Remove getline.h.
42240         (Depends-on): Add stdio.
42241         (configure.ac): Add module indicator.
42242         * modules/getdelim (Files): Remove getdelim.h.
42243         (Depends-on): Add stdio.
42244         (configure.ac): Add module indicator.
42245         * modules/stdio (Makefile.am): Work with new indicators.
42246         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42247         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
42248         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42249         * lib/getdelim.h: Delete.
42250         * lib/getline.h: Delete.
42251         * lib/stdio_.h (getdelim, getline): Declare.
42252         * modules/getdelim-tests: New module.
42253         * modules/getline-tests: Likewise.
42254         * tests/test-getdelim.c: New file.
42255         * tests/test-getline.c: Likewise.
42256         * NEWS: Document the change.
42257         * lib/getline.c: Update choice of header.
42258         * lib/csharpcomp.c: Likewise.
42259         * lib/getpass.c: Likewise.
42260         * lib/javacomp.c: Likewise.
42261         * lib/javaversion.c: Likewise.
42262         * lib/yesno.c: Likewise.
42263         * lib/getdelim.c: Likewise.
42264         (getdelim): Set errno on failure, and avoid memory leak.
42265
42266 2007-08-19  Bruno Haible  <bruno@clisp.org>
42267
42268         * modules/closein (Depends-on): Add freadahead.
42269         * lib/closein.c: Include freadahead.h.
42270         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
42271         is zero.
42272
42273 2007-08-19  Bruno Haible  <bruno@clisp.org>
42274
42275         * modules/freadahead-tests: New file.
42276         * tests/test-freadahead.sh: New file.
42277         * tests/test-freadahead.c: New file.
42278
42279         * modules/freadahead: New file.
42280         * lib/freadahead.h: New file.
42281         * lib/freadahead.c: New file.
42282         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
42283         fbufmode, fpurge, freadable, fwritable.
42284
42285 2007-08-19  Eric Blake  <ebb9@byu.net>
42286
42287         Test yesno in combination with closein.
42288         * lib/yesno.c (yesno): Document use of stdin.
42289         * modules/yesno-tests (Files): New module.
42290         * tests/test-yesno.c (main): New file.
42291         * tests/test-yesno.sh: Likewise.
42292
42293 2007-08-19  Bruno Haible  <bruno@clisp.org>
42294
42295         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
42296         * lib/fseeko.c (rpl_fseeko): Likewise.
42297         * lib/fseterr.c (fseterr): Likewise.
42298
42299 2007-08-19  Bruno Haible  <bruno@clisp.org>
42300
42301         * tests/test-lseek.c (main): Disable a test for BeOS.
42302         * doc/functions/lseek.texi: Document the BeOS bug.
42303
42304 2007-08-19  Bruno Haible  <bruno@clisp.org>
42305             Eric Blake  <ebb9@byu.net>
42306
42307         * lib/lseek.c: Include <sys/stat.h>.
42308         (rpl_lseek): Add workaround code also for Unix platforms.
42309         Needed for BeOS.
42310         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
42311         * doc/functions/lseek.texi: Document BeOS definiency.
42312
42313 2007-08-18  Bruno Haible  <bruno@clisp.org>
42314
42315         * modules/fstrcmp-tests: New file.
42316         * tests/test-fstrcmp.c: New file.
42317
42318 2007-08-18  Bruno Haible  <bruno@clisp.org>
42319
42320         * modules/fstrcmp: New file, from GNU gettext with modifications.
42321         * lib/fstrcmp.h: New file, from GNU gettext.
42322         * lib/fstrcmp.c: New file, from GNU gettext.
42323         * MODULES.html.sh (String handling): Add fstrcmp.
42324
42325 2007-08-18  Bruno Haible  <bruno@clisp.org>
42326
42327         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
42328         'bool'.
42329         (diag, compareseq): Remove const from the ctxt argument.
42330         (USE_HEURISTIC): Undefine at the end.
42331
42332 2007-08-18  Jim Meyering  <jim@meyering.net>
42333
42334         New file: lib/idcache.h
42335         * NEWS: Mention the addition.
42336         * modules/idcache (Files): Add lib/idcache.h
42337         * lib/idcache.c: Include "idcache.h".
42338         Don't include <sys/types.h>.
42339         Add a FIXME comment.
42340         Move file-scoped "static" declarations to the top.
42341         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
42342
42343 2007-08-17  Bruno Haible  <bruno@clisp.org>
42344         and Paul Eggert  <eggert@cs.ucla.edu>
42345
42346         * MODULES.html.sh: Add diffseq.
42347         * modules/diffseq: New file.
42348         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
42349         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
42350
42351 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42352
42353         Import changes from coreutils for bootstrap script.
42354
42355         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
42356
42357         * build-aux/bootstrap (slurp): Work even in environments where
42358         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
42359         current code does not slurp files whose names start with ".", and
42360         this looks like it might be a troublesome area.
42361
42362         2007-07-11  Jim Meyering  <jim@meyering.net>
42363
42364         If there's a GPL vN copyright comment, require that N == 3.
42365
42366         2007-07-08  Jim Meyering  <jim@meyering.net>
42367
42368         Run the coreutils-specific code only if tests/Makefile.am.in exists.
42369         * build-aux/bootstrap (mam_template): Move definition out of loop.
42370
42371         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
42372
42373         * build-aux/bootstrap (symlink_to_dir): Rename function from
42374         symlink_to_gnulib.  Add a directory parameter.  Update all
42375         callers.
42376         (cp_mark_as_generated): Also check for -- and link to -- files in
42377         gl/.
42378
42379         2007-07-08  Jim Meyering  <jim@meyering.net>
42380
42381         Adapt to deeper hierarchy in gnulib.
42382         * build-aux/bootstrap (symlink_to_dir): If the destination
42383         directory doesn't exist, create it. This is required at least for
42384         "lib/uniwidth/cjk.h".
42385
42386         2007-05-15  Jim Meyering  <jim@meyering.net>
42387
42388         * build-aux/bootstrap: Now that generated Makefile.am files
42389         are no longer under version control, they must be created at
42390         bootstrap time.
42391
42392 2007-08-14  Ben Pfaff  <blp@gnu.org>
42393
42394         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
42395
42396 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42397
42398         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
42399         given the changes below.
42400         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
42401         even on hosts that have padding bits beyond the supported 64.
42402
42403 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42404
42405         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
42406         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
42407         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
42408         depends on it.
42409         (xstrtol_error): Remove.
42410         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
42411         but with a different signature.
42412         (ATTRIBUTE_NORETURN, __attribute__): New macros.
42413         * lib/xstrtol-error.c: Include exitfail.h.
42414         (xstrtol_fatal): New function, with a different signature from the
42415         old xstrtol_error, so that the caller need not worry about passing
42416         in an exit status, or about storage management of the option argument.
42417         (xstrtol_error): Now a static function.  Redo signature to
42418         implement xstrtol_fatal.  Output the correct number of hyphens in
42419         front of the option so that the caller need not worry about
42420         storage management.
42421         (N_): New macro.
42422         (_): Remove; not used now.
42423         * modules/xstrtol: Depend on getopt.
42424         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
42425         of old STRTOL_FATAL_ERROR macro.
42426         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
42427         of test program.
42428         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
42429         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
42430
42431 2007-08-08  Eric Blake  <ebb9@byu.net>
42432
42433         * lib/xstrtol-error.c: Add missing include.
42434
42435         Move xstrtol messages into gnulib domain, when --pobase is used.
42436         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
42437         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
42438         * modules/xstrtol (Files): Distribute new file.
42439         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
42440         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
42441         * tests/test-xstrtol.c: ...into new file.
42442         * tests/test-xstrtoul.c: Also test xstrtoul.
42443         * tests/test-xstrtoimax.c: Also test xstrtoimax.
42444         * tests/test-xstrtoumax.c: Also test xstrtoumax.
42445         * tests/test-xstrtol.sh: Drive the tests.
42446         * tests/test-xstrtoimax.sh: Likewise.
42447         * tests/test-xstrtoumax.sh: Likewise.
42448         * modules/xstrtol-tests: New module.
42449         * modules/xstrtoimax-tests: Likewise.
42450         * modules/xstrtoumax-tests: Likewise.
42451
42452 2007-08-08  Jim Meyering  <jim@meyering.net>
42453
42454         New function: mfile_name_concat.
42455         * lib/filenamecat.c (mfile_name_concat): New function, just like
42456         file_name_concat, but return NULL upon failure rather than exiting
42457         with a diagnostic.
42458         * lib/filenamecat.h: Declare it.
42459
42460 2007-08-07  Bruno Haible  <bruno@clisp.org>
42461
42462         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
42463         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
42464         warning from gcc.
42465         Reported by Eric Blake.
42466
42467 2007-08-07  Simon Josefsson  <simon@josefsson.org>
42468
42469         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
42470         * modules/crypto/arcfour (License): Likewise.
42471         * modules/crypto/des-tests (License): Likewise.
42472         * modules/crypto/gc-arctwo-tests (License): Likewise.
42473         * modules/crypto/gc-des-tests (License): Likewise.
42474         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
42475         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
42476         * modules/crypto/gc-md2-tests (License): Likewise.
42477         * modules/crypto/gc-md4-tests (License): Likewise.
42478         * modules/crypto/gc-md5-tests (License): Likewise.
42479         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
42480         * modules/crypto/gc-rijndael-tests (License): Likewise.
42481         * modules/crypto/gc-sha1-tests (License): Likewise.
42482         * modules/crypto/gc-tests (License): Likewise.
42483         * modules/crypto/hmac-md5 (License): Likewise.
42484         * modules/crypto/hmac-sha1 (License): Likewise.
42485         * modules/crypto/md2-tests (License): Likewise.
42486         * modules/crypto/md4-tests (License): Likewise.
42487         * modules/crypto/md5 (License): Likewise.
42488         * modules/crypto/rijndael (License): Likewise.
42489         * modules/crypto/sha1 (License): Likewise.
42490         * modules/memxor (License): Likewise.
42491
42492 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42493         and Bruno Haible  <bruno@clisp.org>
42494
42495         * NEWS: Describe interface changes to human, xstrtol.
42496         * lib/human.h: Include <xstrtol.h>.
42497         (human_options): Return enum strtol_error, not int.  Remove
42498         bool arg; take int * instead.
42499         * lib/human.c: Don't include "gettext.h".
42500         (_): Remove; no longer used.
42501         Don't include <xstrtol.h>, since human.h does it.
42502         (human_options): Adjust to abovementioned interface changes.
42503         Do not report error to stderr; that's now the caller's
42504         responsibility.
42505         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
42506         interface change.
42507         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
42508         Str, Argument_type_string.  All uses changed.  Put " argument"
42509         in diagnostics to make them clearer.  Change wording of suffix
42510         message for clarity.
42511         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
42512         Argument_type_string.
42513         (STRTOL_FATAL_WARN): Remove; no longer used.
42514         * modules/human (Depends-on): Remove gettext-h.
42515
42516 2007-08-06  Simon Josefsson  <simon@josefsson.org>
42517
42518         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
42519
42520 2007-07-31  Bruno Haible  <bruno@clisp.org>
42521
42522         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
42523         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
42524         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
42525
42526 2007-07-31  Bruno Haible  <bruno@clisp.org>
42527
42528         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
42529         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
42530
42531 2007-07-30  Bruno Haible  <bruno@clisp.org>
42532
42533         * modules/base64 (License): Use the synonymous term "LGPLv2+".
42534         * modules/c-ctype (License): Likewise.
42535         * modules/c-strcase (License): Likewise.
42536         * modules/check-version (License): Likewise.
42537         * modules/iconv (License): Likewise.
42538         * modules/iconv_open (License): Likewise.
42539         * modules/read-file (License): Likewise.
42540         * modules/striconv (License): Likewise.
42541         * modules/strverscmp (License): Likewise.
42542         * modules/vasprintf (License): Likewise.
42543         * modules/crypto/des (License): Likewise.
42544         * modules/crypto/gc (License): Likewise.
42545         * modules/crypto/gc-arcfour (License): Likewise.
42546         * modules/crypto/gc-arctwo (License): Likewise.
42547         * modules/crypto/gc-des (License): Likewise.
42548         * modules/crypto/gc-hmac-md5 (License): Likewise.
42549         * modules/crypto/gc-hmac-sha1 (License): Likewise.
42550         * modules/crypto/gc-md2 (License): Likewise.
42551         * modules/crypto/gc-md4 (License): Likewise.
42552         * modules/crypto/gc-md5 (License): Likewise.
42553         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
42554         * modules/crypto/gc-random (License): Likewise.
42555         * modules/crypto/gc-rijndael (License): Likewise.
42556         * modules/crypto/gc-sha1 (License): Likewise.
42557         * modules/crypto/md2 (License): Likewise.
42558         * modules/crypto/md4 (License): Likewise.
42559
42560 2007-07-30  Jim Meyering  <jim@meyering.net>
42561
42562         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
42563         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
42564         it has valid stat data.  This bug would cause du not to count the
42565         sizes of inaccessible directories.
42566         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
42567         in <http://bugzilla.redhat.com/250077>.
42568
42569 2007-07-25  Peter O'Gorman  <peter@pogma.com>
42570             Bruno Haible  <bruno@clisp.org>
42571
42572         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
42573         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
42574         #include_next, gives a diagnostic about it, but reports no error in
42575         the exit code.
42576         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42577
42578 2007-07-24  Ben Pfaff  <blp@gnu.org>
42579
42580         Improve name: "count-one-bits" is better than "popcount".
42581         * MODULES.html.sh: Update name.
42582         * lib/popcount.h: Renamed lib/count-one-bits.h.
42583         (popcount): Renamed count_one_bits.
42584         (popcountl): Renamed count_one_bits_l.
42585         (popcountll): Renamed count_one_bits_ll.
42586         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
42587         * modules/popcount: Renamed module/count-one-bits.
42588         * modules/popcount-tests: Renamed module/count-one-bits-tests.
42589         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
42590
42591 2007-07-23  Ben Pfaff  <blp@gnu.org>
42592
42593         * lib/popcount.h (popcount32): Reduce size of constants, to allow
42594         better code generation, and add U to large constants to avoid
42595         warnings, in non-GCC case.
42596         Suggested by Bruno Haible.
42597
42598 2007-07-23  Ben Pfaff  <blp@gnu.org>
42599
42600         * lib/popcount.h: Use verify_true instead of if...abort.
42601         * modules/popcount: Depend on verify module.
42602         Suggested by Jim Meyering.
42603
42604 2007-07-23  Bruno Haible  <bruno@clisp.org>
42605
42606         * gnulib-tool (func_import): Create a .cvsignore file also when the
42607         directory is not yet in CVS but the toplevel directory is. When
42608         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
42609         Reported by Karl Berry.
42610
42611 2007-07-22  Ben Pfaff  <blp@gnu.org>
42612
42613         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
42614         case.
42615         Suggested by Eric Blake.
42616
42617 2007-07-22  Ben Pfaff  <blp@gnu.org>
42618
42619         New module: popcount.
42620         * MODULES.html.sh: Add popcount.
42621         * modules/popcount: New file.
42622         * modules/popcount-tests: New file.
42623         * tests/test-popcount.c: New file.
42624         * lib/popcount.h: New file.
42625         * m4/popcount.m4: New file.
42626
42627 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42628
42629         * build-aux/announce-gen: Update to GPLv3.
42630
42631         * build-aux/config.guess: Update from config.
42632
42633 2007-07-21  Bruno Haible  <bruno@clisp.org>
42634
42635         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
42636         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
42637
42638 2007-07-20  Jim Meyering  <jim@meyering.net>
42639
42640         * check-module: Diagnose a self-dependency.
42641
42642 2007-07-19  Bruno Haible  <bruno@clisp.org>
42643
42644         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
42645         empty.
42646         Reported by Eric Blake.
42647
42648 2007-07-18  Bruno Haible  <bruno@clisp.org>
42649
42650         * gnulib-tool: New options --po-base, --po-domain.
42651         (func_usage): Document them.
42652         (pobase, po_domain): New variables.
42653         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
42654         DEFAULT_TEXT_DOMAIN.
42655         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
42656         (func_import): Consider pobase and po_domain. Create a po/ directory.
42657         (func_create_testdir): Set pobase and po_domain to empty.
42658         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
42659         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
42660
42661 2007-07-18  Bruno Haible  <bruno@clisp.org>
42662
42663         * gnulib-tool (func_get_automake_snippet): Synthesize also an
42664         EXTRA_DIST augmentation for files in build-aux/.
42665
42666 2007-07-16  Bruno Haible  <bruno@clisp.org>
42667
42668         * modules/lseek (License): Use the synonymous term "LGPLv2+".
42669         * modules/getdelim (License): Likewise.
42670
42671 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42672
42673         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
42674         * modules/d-type (License): Likewise.
42675         * modules/extensions (License): Likewise.
42676         * modules/fnmatch (License): Likewise.
42677         * modules/fseeko (License): Likewise.
42678         * modules/getaddrinfo (License): Likewise.
42679         * modules/getline (License): Likewise.
42680         * modules/getlogin_r (License): Likewise.
42681         * modules/getpass (License): Likewise.
42682         * modules/gettimeofday (License): Likewise.
42683         * modules/glob (License): Likewise.
42684         * modules/inet_ntop (License): Likewise.
42685         * modules/malloc (License): Likewise.
42686         * modules/malloca (License): Likewise.
42687         * modules/memmem (License): Likewise.
42688         * modules/mempcpy (License): Likewise.
42689         * modules/memset (License): Likewise.
42690         * modules/minmax (License): Likewise.
42691         * modules/mktime (License): Likewise.
42692         * modules/netinet_in (License): Likewise.
42693         * modules/pathmax (License): Likewise.
42694         * modules/poll (License): Likewise.
42695         * modules/regex (License): Likewise.
42696         * modules/snprintf (License): Likewise.
42697         * modules/stdbool (License): Likewise.
42698         * modules/stdint (License): Likewise.
42699         * modules/stdio (License): Likewise.
42700         * modules/strcase (License): Likewise.
42701         * modules/strcasestr (License): Likewise.
42702         * modules/strdup (License): Likewise.
42703         * modules/string (License): Likewise.
42704         * modules/strndup (License): Likewise.
42705         * modules/strnlen (License): Likewise.
42706         * modules/strpbrk (License): Likewise.
42707         * modules/strptime (License): Likewise.
42708         * modules/strsep (License): Likewise.
42709         * modules/sys_select (License): Likewise.
42710         * modules/sys_socket (License): Likewise.
42711         * modules/sys_stat (License): Likewise.
42712         * modules/sys_time (License): Likewise.
42713         * modules/time (License): Likewise.
42714         * modules/time_r (License): Likewise.
42715         * modules/timegm (License): Likewise.
42716         * modules/unistd (License): Likewise.
42717         * modules/vsnprintf (License): Likewise.
42718         * modules/wctype (License): Likewise.
42719
42720 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42721
42722         * modules/argz (License): LGPLv2+.
42723
42724 2007-07-15  Karl Berry  <karl@gnu.org>
42725
42726         * doc/gnulib.texi: revise node structure per new fdl.texi.
42727
42728 2007-07-14  Bruno Haible  <bruno@clisp.org>
42729
42730         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
42731         the output file.
42732         * lib/uniname/uninames.h: Regenerated.
42733
42734 2007-07-14  Karl Berry  <karl@gnu.org>
42735
42736         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
42737         omitting sectioning and index commands.
42738
42739 2007-07-13  Bruno Haible  <bruno@clisp.org>
42740
42741         New gnulib-tool option --more-symlinks.
42742         * gnulib-tool (func_usage): Document --more-symlinks.
42743         (do_copyrights): New variable.
42744         Recognize option --more-symlinks.
42745         (func_import): Don't add a copyright notice transform to
42746         sed_transform_lib_file if do_copyrights is empty.
42747
42748 2007-07-13  Bruno Haible  <bruno@clisp.org>
42749
42750         * lib/vasnprintf.c (decimal_point_char): Define also if
42751         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
42752         && !NEED_PRINTF_DIRECTIVE_A.
42753         Reported by Clemens Koller <clemens.koller@anagramm.de> via
42754         Gary V. Vaughan <gary@gnu.org>.
42755
42756 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
42757
42758         * lib/inttypes_.h: Undo previous change, since it was fixed
42759         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
42760
42761 2007-07-13  Bruno Haible  <bruno@clisp.org>
42762
42763         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
42764         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
42765
42766 2007-07-13  Jim Meyering  <jim@meyering.net>
42767
42768         df: Don't fail for Tru64's "file-on-file mount".
42769         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
42770         so we fall through and use statfs instead.  Details here:
42771         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
42772         Reported by Albert Chin.
42773
42774 2007-07-13  Bruno Haible  <bruno@clisp.org>
42775
42776         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
42777         * modules/configmake (License): Likewise.
42778         * modules/gettext (License): Likewise.
42779         * modules/gettext-h (License): Likewise.
42780         * modules/include_next (License): Likewise.
42781         * modules/link-warning (License): Likewise.
42782         * modules/localcharset (License): Likewise.
42783         * modules/localename (License): Likewise.
42784         * modules/lock (License): Likewise.
42785         * modules/relocatable-lib-lgpl (License): Likewise.
42786         * modules/size_max (License): Likewise.
42787         * modules/vasnprintf (License): Likewise.
42788         * modules/wchar (License): Likewise.
42789         * modules/xsize (License): Likewise.
42790
42791 2007-07-13  Bruno Haible  <bruno@clisp.org>
42792
42793         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
42794         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
42795
42796 2007-07-12  Bruno Haible  <bruno@clisp.org>
42797
42798         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
42799         in the modules files.
42800
42801 2007-07-11  Karl Berry  <karl@gnu.org>
42802
42803         * MODULES.html.sh (func_module): use
42804          sed -e '\|^'"${includefile}"'$|d'
42805          instead of /.../d, to avoid errors on $includefile's containing /.
42806
42807 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42808
42809         * gnulib-tool (func_import): Avoid duplication of --avoid
42810         statements
42811         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
42812         names to `_' in variable names.
42813
42814 2007-07-10  Eric Blake  <ebb9@byu.net>
42815
42816         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
42817         * NEWS: Document this change.
42818
42819 2007-07-08  Bruno Haible  <bruno@clisp.org>
42820
42821         Update to Unicode 5.0.
42822         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
42823         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
42824         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
42825         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
42826         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
42827         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
42828         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
42829         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
42830         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
42831         U+10A3F, U+1D242..U+1D244.
42832         (nonspacing_table_ind): Update.
42833         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
42834         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
42835
42836 2007-07-08  Bruno Haible  <bruno@clisp.org>
42837
42838         Update to Unicode 5.0.
42839         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
42840         code transform. Extend the name index field of unicode_name_to_code and
42841         unicode_code_to_name from 16 to 24 bits.
42842         * lib/uniname/uniname.c (unicode_character_name,
42843         unicode_name_character): Add the range 0x12xxx to the code transform.
42844         * lib/uniname/uninames.h: Regenerated.
42845         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
42846
42847 2007-07-07  Bruno Haible  <bruno@clisp.org>
42848
42849         * modules/wcwidth-tests: New file.
42850         * tests/test-wcwidth.c: New file.
42851
42852         Work around MacOS X wcwidth() bug.
42853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
42854         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
42855         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
42856         original wcwidth in non-UTF-8 locales.
42857         * modules/wcwidth (Depends-on): Add localcharset, streq,
42858         uniwidth/width.
42859         * doc/functions/wcwidth.texi: Update.
42860
42861 2007-07-07  Bruno Haible  <bruno@clisp.org>
42862
42863         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
42864         (wcwidth): New declaration.
42865         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
42866         macros.
42867         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
42868         here. Prepare for creating <wchar.h> unconditionally.
42869         * modules/wchar (Depends-on): Add link-warning.
42870         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
42871         REPLACE_WCWIDTH, and GL_LINK_WARNING.
42872         * lib/wcwidth.h: Remove file.
42873         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
42874         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
42875         * modules/wcwidth (Files): Remove lib/wcwidth.h.
42876         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
42877         (Include): Replace wcwidth.h with <wchar.h>.
42878         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
42879         * lib/mbchar.h: Don't include wcwidth.h.
42880         * lib/mbswidth.c: Likewise.
42881         * NEWS: Mention the change.
42882
42883 2007-07-07  Bruno Haible  <bruno@clisp.org>
42884
42885         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
42886         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
42887         definition with an external declaration.
42888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
42889         defined as a function. Remove AC_C_INLINE requirement.
42890         * modules/wcwidth (Files): Add lib/wcwidth.c.
42891         (Makefile.am): Remove redundant statement.
42892
42893 2007-07-07  Bruno Haible  <bruno@clisp.org>
42894
42895         * MODULES.html.sh (Unicode string functions): Add the new modules.
42896
42897         * tests/uniwidth/test-u32-strwidth.c: New file.
42898         * modules/uniwidth/u32-strwidth-tests: New file.
42899
42900         * lib/uniwidth/u32-strwidth.c: New file.
42901         * modules/uniwidth/u32-strwidth: New file.
42902
42903         * tests/uniwidth/test-u16-strwidth.c: New file.
42904         * modules/uniwidth/u16-strwidth-tests: New file.
42905
42906         * lib/uniwidth/u16-strwidth.c: New file.
42907         * modules/uniwidth/u16-strwidth: New file.
42908
42909         * tests/uniwidth/test-u8-strwidth.c: New file.
42910         * modules/uniwidth/u8-strwidth-tests: New file.
42911
42912         * lib/uniwidth/u8-strwidth.c: New file.
42913         * modules/uniwidth/u8-strwidth: New file.
42914
42915         * tests/uniwidth/test-u32-width.c: New file.
42916         * modules/uniwidth/u32-width-tests: New file.
42917
42918         * lib/uniwidth/u32-width.c: New file.
42919         * modules/uniwidth/u32-width: New file.
42920
42921         * tests/uniwidth/test-u16-width.c: New file.
42922         * modules/uniwidth/u16-width-tests: New file.
42923
42924         * lib/uniwidth/u16-width.c: New file.
42925         * modules/uniwidth/u16-width: New file.
42926
42927         * tests/uniwidth/test-u8-width.c: New file.
42928         * modules/uniwidth/u8-width-tests: New file.
42929
42930         * lib/uniwidth/u8-width.c: New file.
42931         * modules/uniwidth/u8-width: New file.
42932
42933         * tests/uniwidth/test-uc_width.c: New file.
42934         * modules/uniwidth/width-tests: New file.
42935
42936         * lib/uniwidth/width.c: New file, from GNU libiconv.
42937         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
42938         * modules/uniwidth/width: New file.
42939
42940         * lib/uniwidth.h: New file, from GNU libiconv.
42941         * modules/uniwidth/base: New file.
42942
42943 2007-07-07  Bruno Haible  <bruno@clisp.org>
42944
42945         * lib/uniname.h: New file, from GNU gettext.
42946         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
42947         * lib/uniname/uninames.h: New file, from GNU gettext.
42948         * lib/uniname/uniname.c: New file, from GNU gettext.
42949         * tests/uniname/test-uninames.sh: New file.
42950         * tests/uniname/test-uninames.c: New file, from GNU gettext.
42951         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
42952         * modules/uniname/base: New file.
42953         * modules/uniname/uniname: New file.
42954         * modules/uniname/uniname-tests: New file.
42955         * MODULES.html.sh (Unicode string functions): Add the new modules.
42956
42957 2007-07-06  Bruno Haible  <bruno@clisp.org>
42958
42959         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
42960
42961 2007-07-06  Bruno Haible  <bruno@clisp.org>
42962
42963         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
42964         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
42965         includes <cygwin/sys_time.h> which includes <sys/select.h> which
42966         include <sys/time.h>.
42967         Reported by Eric Blake.
42968
42969 2007-07-06  Eric Blake  <ebb9@byu.net>
42970
42971         Fix testing canonicalize on cygwin.
42972         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
42973         Revert patch from 2007-06-19.
42974         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
42975         canonicalize module is also in use.
42976         * tests/test-canonicalize.c: New file.
42977         * tests/test-canonicalize.sh: Likewise.
42978         * modules/canonicalize-tests: Likewise.
42979
42980 2007-07-06  Jim Meyering  <jim@meyering.net>
42981
42982         * lib/getugroups.c (getugroups): Detect getgrent failure.
42983         Adjust comment to reflect reality: this function may return -1.
42984
42985 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
42986
42987         * build-aux/bootstrap (TP_URL,get_translations): Update to use
42988         the new TP address.
42989         (usage): Fix typo
42990         (gnulib_mk): New variable.
42991
42992 2007-07-05  Jim Meyering  <jim@meyering.net>
42993
42994         Don't let endgrent clobber errno, no matter how improbable.
42995         * lib/getugroups.c (getugroups): Save and restore errno around
42996         endgrent call.
42997
42998         Close the group DB even when failing with 2^31 or more members.
42999         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
43000
43001 2007-07-04  Jim Meyering  <jim@meyering.net>
43002
43003         * lib/getugroups.h: New file.
43004         * lib/getugroups.c: Include "getugroups.h".
43005         Remove uses of "register" keyword.
43006         Move local variable, "cp", down into scope where used.
43007         Give "username" parameter the "const" attribute.
43008         * modules/getugroups (Files): Add lib/getugroups.h
43009
43010 2007-07-04  Karl Berry  <karl@gnu.org>
43011
43012         * MODULES.html.sh (func_all_modules): Complete rename of
43013         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
43014
43015 2007-07-02  Bruno Haible  <bruno@clisp.org>
43016
43017         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
43018         mode, when inttypes.h comes from gnulib.
43019         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43020
43021 2007-07-02  Simon Josefsson  <simon@josefsson.org>
43022
43023         * NEWS: Mention lgpl module name change.
43024
43025         * modules/lgpl-2.1: Renamed from lgpl.
43026
43027         * NEWS: Mention gpl module name change.
43028
43029         * modules/gpl-3.0: New file, based on gpl-2.0.
43030
43031         * modules/gpl-2.0: Renamed from gpl.
43032
43033         * modules/gpl: Fix filename, doc/gpl.texi is now found at
43034         doc/gpl-2.0.texi.
43035
43036 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
43037
43038         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
43039         #define __STDC_LIMIT_MACROS temporarily while including
43040         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
43041         Problem reported by Joel E. Denny in
43042         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
43043
43044 2007-07-01  Bruno Haible  <bruno@clisp.org>
43045
43046         * lib/unistdio.h: New file.
43047         * lib/unistdio/u-asnprintf.h: New file.
43048         * lib/unistdio/u-asprintf.h: New file.
43049         * lib/unistdio/u-printf-args.c: New file.
43050         * lib/unistdio/u-printf-args.h: New file.
43051         * lib/unistdio/u-printf-parse.h: New file.
43052         * lib/unistdio/u-snprintf.h: New file.
43053         * lib/unistdio/u-sprintf.h: New file.
43054         * lib/unistdio/u-vasprintf.h: New file.
43055         * lib/unistdio/u-vsnprintf.h: New file.
43056         * lib/unistdio/u-vsprintf.h: New file.
43057         * lib/unistdio/ulc-asnprintf.c: New file.
43058         * lib/unistdio/ulc-asprintf.c: New file.
43059         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
43060         * lib/unistdio/ulc-printf-parse.c: New file.
43061         * lib/unistdio/ulc-snprintf.c: New file.
43062         * lib/unistdio/ulc-sprintf.c: New file.
43063         * lib/unistdio/ulc-vasnprintf.c: New file.
43064         * lib/unistdio/ulc-vasprintf.c: New file.
43065         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
43066         * lib/unistdio/ulc-vsnprintf.c: New file.
43067         * lib/unistdio/ulc-vsprintf.c: New file.
43068         * lib/unistdio/u8-asnprintf.c: New file.
43069         * lib/unistdio/u8-asprintf.c: New file.
43070         * lib/unistdio/u8-printf-parse.c: New file.
43071         * lib/unistdio/u8-snprintf.c: New file.
43072         * lib/unistdio/u8-sprintf.c: New file.
43073         * lib/unistdio/u8-vasnprintf.c: New file.
43074         * lib/unistdio/u8-vasprintf.c: New file.
43075         * lib/unistdio/u8-vsnprintf.c: New file.
43076         * lib/unistdio/u8-vsprintf.c: New file.
43077         * lib/unistdio/u8-u8-asnprintf.c: New file.
43078         * lib/unistdio/u8-u8-asprintf.c: New file.
43079         * lib/unistdio/u8-u8-snprintf.c: New file.
43080         * lib/unistdio/u8-u8-sprintf.c: New file.
43081         * lib/unistdio/u8-u8-vasnprintf.c: New file.
43082         * lib/unistdio/u8-u8-vasprintf.c: New file.
43083         * lib/unistdio/u8-u8-vsnprintf.c: New file.
43084         * lib/unistdio/u8-u8-vsprintf.c: New file.
43085         * lib/unistdio/u16-asnprintf.c: New file.
43086         * lib/unistdio/u16-asprintf.c: New file.
43087         * lib/unistdio/u16-printf-parse.c: New file.
43088         * lib/unistdio/u16-snprintf.c: New file.
43089         * lib/unistdio/u16-sprintf.c: New file.
43090         * lib/unistdio/u16-vasnprintf.c: New file.
43091         * lib/unistdio/u16-vasprintf.c: New file.
43092         * lib/unistdio/u16-vsnprintf.c: New file.
43093         * lib/unistdio/u16-vsprintf.c: New file.
43094         * lib/unistdio/u16-u16-asnprintf.c: New file.
43095         * lib/unistdio/u16-u16-asprintf.c: New file.
43096         * lib/unistdio/u16-u16-snprintf.c: New file.
43097         * lib/unistdio/u16-u16-sprintf.c: New file.
43098         * lib/unistdio/u16-u16-vasnprintf.c: New file.
43099         * lib/unistdio/u16-u16-vasprintf.c: New file.
43100         * lib/unistdio/u16-u16-vsnprintf.c: New file.
43101         * lib/unistdio/u16-u16-vsprintf.c: New file.
43102         * lib/unistdio/u32-asnprintf.c: New file.
43103         * lib/unistdio/u32-asprintf.c: New file.
43104         * lib/unistdio/u32-printf-parse.c: New file.
43105         * lib/unistdio/u32-snprintf.c: New file.
43106         * lib/unistdio/u32-sprintf.c: New file.
43107         * lib/unistdio/u32-vasnprintf.c: New file.
43108         * lib/unistdio/u32-vasprintf.c: New file.
43109         * lib/unistdio/u32-vsnprintf.c: New file.
43110         * lib/unistdio/u32-vsprintf.c: New file.
43111         * lib/unistdio/u32-u32-asnprintf.c: New file.
43112         * lib/unistdio/u32-u32-asprintf.c: New file.
43113         * lib/unistdio/u32-u32-snprintf.c: New file.
43114         * lib/unistdio/u32-u32-sprintf.c: New file.
43115         * lib/unistdio/u32-u32-vasnprintf.c: New file.
43116         * lib/unistdio/u32-u32-vasprintf.c: New file.
43117         * lib/unistdio/u32-u32-vsnprintf.c: New file.
43118         * lib/unistdio/u32-u32-vsprintf.c: New file.
43119         * tests/unistdio/test-ulc-asnprintf1.c: New file.
43120         * tests/unistdio/test-ulc-asnprintf1.h: New file.
43121         * tests/unistdio/test-ulc-printf1.h: New file.
43122         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
43123         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
43124         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
43125         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
43126         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
43127         * tests/unistdio/test-ulc-vasprintf1.c: New file.
43128         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
43129         * tests/unistdio/test-ulc-vsprintf1.c: New file.
43130         * tests/unistdio/test-u8-asnprintf1.c: New file.
43131         * tests/unistdio/test-u8-asnprintf1.h: New file.
43132         * tests/unistdio/test-u8-printf1.h: New file.
43133         * tests/unistdio/test-u8-vasnprintf1.c: New file.
43134         * tests/unistdio/test-u8-vasnprintf2.c: New file.
43135         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
43136         * tests/unistdio/test-u8-vasnprintf3.c: New file.
43137         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
43138         * tests/unistdio/test-u8-vasprintf1.c: New file.
43139         * tests/unistdio/test-u8-vsnprintf1.c: New file.
43140         * tests/unistdio/test-u8-vsprintf1.c: New file.
43141         * tests/unistdio/test-u16-asnprintf1.c: New file.
43142         * tests/unistdio/test-u16-asnprintf1.h: New file.
43143         * tests/unistdio/test-u16-printf1.h: New file.
43144         * tests/unistdio/test-u16-vasnprintf1.c: New file.
43145         * tests/unistdio/test-u16-vasnprintf2.c: New file.
43146         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
43147         * tests/unistdio/test-u16-vasnprintf3.c: New file.
43148         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
43149         * tests/unistdio/test-u16-vasprintf1.c: New file.
43150         * tests/unistdio/test-u16-vsnprintf1.c: New file.
43151         * tests/unistdio/test-u16-vsprintf1.c: New file.
43152         * tests/unistdio/test-u32-asnprintf1.c: New file.
43153         * tests/unistdio/test-u32-asnprintf1.h: New file.
43154         * tests/unistdio/test-u32-printf1.h: New file.
43155         * tests/unistdio/test-u32-vasnprintf1.c: New file.
43156         * tests/unistdio/test-u32-vasnprintf2.c: New file.
43157         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
43158         * tests/unistdio/test-u32-vasnprintf3.c: New file.
43159         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
43160         * tests/unistdio/test-u32-vasprintf1.c: New file.
43161         * tests/unistdio/test-u32-vsnprintf1.c: New file.
43162         * tests/unistdio/test-u32-vsprintf1.c: New file.
43163         * modules/unistdio/base: New file.
43164         * modules/unistdio/u-printf-args: New file.
43165         * modules/unistdio/ulc-asnprintf: New file.
43166         * modules/unistdio/ulc-asprintf: New file.
43167         * modules/unistdio/ulc-fprintf: New file.
43168         * modules/unistdio/ulc-printf-parse: New file.
43169         * modules/unistdio/ulc-snprintf: New file.
43170         * modules/unistdio/ulc-sprintf: New file.
43171         * modules/unistdio/ulc-vasnprintf: New file.
43172         * modules/unistdio/ulc-vasprintf: New file.
43173         * modules/unistdio/ulc-vfprintf: New file.
43174         * modules/unistdio/ulc-vsnprintf: New file.
43175         * modules/unistdio/ulc-vsprintf: New file.
43176         * modules/unistdio/u8-asnprintf: New file.
43177         * modules/unistdio/u8-asprintf: New file.
43178         * modules/unistdio/u8-printf-parse: New file.
43179         * modules/unistdio/u8-snprintf: New file.
43180         * modules/unistdio/u8-sprintf: New file.
43181         * modules/unistdio/u8-vasnprintf: New file.
43182         * modules/unistdio/u8-vasprintf: New file.
43183         * modules/unistdio/u8-vsnprintf: New file.
43184         * modules/unistdio/u8-vsprintf: New file.
43185         * modules/unistdio/u8-u8-asnprintf: New file.
43186         * modules/unistdio/u8-u8-asprintf: New file.
43187         * modules/unistdio/u8-u8-snprintf: New file.
43188         * modules/unistdio/u8-u8-sprintf: New file.
43189         * modules/unistdio/u8-u8-vasnprintf: New file.
43190         * modules/unistdio/u8-u8-vasprintf: New file.
43191         * modules/unistdio/u8-u8-vsnprintf: New file.
43192         * modules/unistdio/u8-u8-vsprintf: New file.
43193         * modules/unistdio/u16-asnprintf: New file.
43194         * modules/unistdio/u16-asprintf: New file.
43195         * modules/unistdio/u16-printf-parse: New file.
43196         * modules/unistdio/u16-snprintf: New file.
43197         * modules/unistdio/u16-sprintf: New file.
43198         * modules/unistdio/u16-vasnprintf: New file.
43199         * modules/unistdio/u16-vasprintf: New file.
43200         * modules/unistdio/u16-vsnprintf: New file.
43201         * modules/unistdio/u16-vsprintf: New file.
43202         * modules/unistdio/u16-u16-asnprintf: New file.
43203         * modules/unistdio/u16-u16-asprintf: New file.
43204         * modules/unistdio/u16-u16-snprintf: New file.
43205         * modules/unistdio/u16-u16-sprintf: New file.
43206         * modules/unistdio/u16-u16-vasnprintf: New file.
43207         * modules/unistdio/u16-u16-vasprintf: New file.
43208         * modules/unistdio/u16-u16-vsnprintf: New file.
43209         * modules/unistdio/u16-u16-vsprintf: New file.
43210         * modules/unistdio/u32-asnprintf: New file.
43211         * modules/unistdio/u32-asprintf: New file.
43212         * modules/unistdio/u32-printf-parse: New file.
43213         * modules/unistdio/u32-snprintf: New file.
43214         * modules/unistdio/u32-sprintf: New file.
43215         * modules/unistdio/u32-vasnprintf: New file.
43216         * modules/unistdio/u32-vasprintf: New file.
43217         * modules/unistdio/u32-vsnprintf: New file.
43218         * modules/unistdio/u32-vsprintf: New file.
43219         * modules/unistdio/u32-u32-asnprintf: New file.
43220         * modules/unistdio/u32-u32-asprintf: New file.
43221         * modules/unistdio/u32-u32-snprintf: New file.
43222         * modules/unistdio/u32-u32-sprintf: New file.
43223         * modules/unistdio/u32-u32-vasnprintf: New file.
43224         * modules/unistdio/u32-u32-vasprintf: New file.
43225         * modules/unistdio/u32-u32-vsnprintf: New file.
43226         * modules/unistdio/u32-u32-vsprintf: New file.
43227         * modules/unistdio/ulc-asnprintf-tests: New file.
43228         * modules/unistdio/ulc-vasnprintf-tests: New file.
43229         * modules/unistdio/ulc-vasprintf-tests: New file.
43230         * modules/unistdio/ulc-vsnprintf-tests: New file.
43231         * modules/unistdio/ulc-vsprintf-tests: New file.
43232         * modules/unistdio/u8-asnprintf-tests: New file.
43233         * modules/unistdio/u8-vasnprintf-tests: New file.
43234         * modules/unistdio/u8-vasprintf-tests: New file.
43235         * modules/unistdio/u8-vsnprintf-tests: New file.
43236         * modules/unistdio/u8-vsprintf-tests: New file.
43237         * modules/unistdio/u16-asnprintf-tests: New file.
43238         * modules/unistdio/u16-vasnprintf-tests: New file.
43239         * modules/unistdio/u16-vasprintf-tests: New file.
43240         * modules/unistdio/u16-vsnprintf-tests: New file.
43241         * modules/unistdio/u16-vsprintf-tests: New file.
43242         * modules/unistdio/u32-asnprintf-tests: New file.
43243         * modules/unistdio/u32-vasnprintf-tests: New file.
43244         * modules/unistdio/u32-vasprintf-tests: New file.
43245         * modules/unistdio/u32-vsnprintf-tests: New file.
43246         * modules/unistdio/u32-vsprintf-tests: New file.
43247         * MODULES.html.sh (Unicode string functions): Add the new modules.
43248
43249 2007-07-01  Bruno Haible  <bruno@clisp.org>
43250
43251         * lib/sprintf.c (sprintf): Limit the available length estimation,
43252         to avoid address wraparound.
43253         * lib/vsprintf.c (vsprintf): Likewise.
43254         * modules/sprintf-posix (Dependencies): Add stdint.
43255         * modules/vsprintf-posix (Dependencies): Likewise.
43256
43257 2007-07-01  Bruno Haible  <bruno@clisp.org>
43258
43259         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
43260         Windows PATH as well. Conservative double-quoting. Comments.
43261
43262 2007-07-01  Bruno Haible  <bruno@clisp.org>
43263             Eric Blake  <ebb9@byu.net>
43264             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43265
43266         * gnulib-tool (self_abspathname): Fix algorithm to cope with
43267         empty components in $PATH, denoting '.'.
43268
43269 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43270
43271         * gnulib-tool: Fix indentation.
43272         (func_create_megatestdir): Likewise.
43273         Report by Bruno Haible.
43274
43275 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43276
43277         Sync from Automake.
43278         * build-aux/gnupload: Fix shell portability issues with for loops.
43279         Report by Karl Berry.
43280
43281 2007-06-29  Simon Josefsson  <simon@josefsson.org>
43282
43283         * build-aux/maint.mk (POURL): Use translationproject.org.
43284
43285 2007-06-27  Simon Josefsson  <simon@josefsson.org>
43286             Bruno Haible  <bruno@clisp.org>
43287
43288         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
43289         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
43290         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
43291         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
43292         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
43293
43294 2007-06-27  Bruno Haible  <bruno@clisp.org>
43295
43296         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
43297         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
43298
43299 2007-06-26  Karl Berry  <karl@gnu.org>
43300
43301         * MODULES.html.sh: remove xreadlink-with-size.
43302
43303 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43304
43305         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
43306         method that I hope also handles the double-include problem noted
43307         by Bruno Haible in
43308         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
43309
43310 2007-06-23  Bruno Haible  <bruno@clisp.org>
43311
43312         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43313         Don't let the 'mostlyclean' target fail if the last subdirectory could
43314         not be removed.
43315         Reported by Karl Berry.
43316
43317 2007-06-23  Bruno Haible  <bruno@clisp.org>
43318
43319         * gnulib-tool (echo): Add a speedier workaround for ksh.
43320         * tests/test-echo.sh: Likewise.
43321
43322 2007-06-23  Bruno Haible  <bruno@clisp.org>
43323
43324         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
43325         * tests/test-echo.sh: Likewise.
43326
43327 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43328
43329         * gnulib-tool (IFS): Initialize early, so we don't set it to
43330         empty later.
43331         (self_abspathname): Rewrite algorithm to set it, reindent.
43332         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
43333         (func_create_megatestdir): Merge some sed scripts.
43334
43335 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43336
43337         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
43338         exposed by Sun Studio 11 cc on Solaris 8.
43339
43340 2007-06-22  Bruno Haible  <bruno@clisp.org>
43341
43342         * gnulib-tool (echo): Ensure the echo primitive does not interpret
43343         backslashes.
43344         * tests/test-echo.sh: New file.
43345
43346 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43347
43348         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
43349         simplify `sed_replace_build_aux' scripts, they are portable but
43350         echoing them with `echo' is not.
43351         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
43352
43353 2007-06-21  Karl Berry  <karl@gnu.org>
43354
43355         * config/srclist.txt: guess we can't handle the licenses via
43356         srclist at the moment.
43357
43358 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
43359
43360         * MODULES.html.sh: Add include_next.
43361         * modules/include_next: New file.
43362
43363 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
43364
43365         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
43366         INCLUDE_NEXT.
43367         (gl_CHECK_NEXT_HEADERS): New macro.
43368         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
43369         the obsolescent gl_ABSOLUTE_HEADER.
43370         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
43371         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
43372         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43373         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43374         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
43375         * m4/math_h.m4 (gl_MATH_H): Likewise.
43376         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43377         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
43378         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
43379         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43380         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
43381         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
43382         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
43383         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43384         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43385         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
43386         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
43387         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43388         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
43389         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43390         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43391         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43392         * m4/inttypes.m4 (gl_INTTYPES_H): Define
43393         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
43394         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
43395         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
43396         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
43397         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
43398         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
43399         * lib/float_.h: Likewise.
43400         * lib/inttypes_.h: Likewise.
43401         * lib/math_.h: Likewise.
43402         * lib/search_.h: Likewise.
43403         * lib/signal_.h: Likewise.
43404         * lib/stdint_.h: Likewise.
43405         * lib/stdio_.h: Likewise.
43406         * lib/stdlib_.h: Likewise.
43407         * lib/string_.h: Likewise.
43408         * lib/sys_stat_.h: Likewise.
43409         * lib/sys_time_.h: Likewise.
43410         * lib/time_.h: Likewise.
43411         * lib/unistd_.h: Likewise.
43412         * lib/wchar_.h: Likewise.
43413         * lib/wctype_.h: Likewise.
43414         * lib/dirent_.h: Likewise.
43415         * lib/iconv_.h: Likewise.
43416         * lib/locale_.h: Likewise.
43417         * lib/netinet_in_.h: Likewise.
43418         * lib/sys_select_.h: Likewise.
43419         * lib/sys_socket_.h: Likewise.
43420         * lib/sysexits_.h: Likewise.
43421         * modules/fcntl (Depends-on): Depend on include_next, not
43422         absolute_header.
43423         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
43424         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
43425         * modules/fchdir: Likewise.
43426         * modules/float: Likewise.
43427         * modules/iconv_open: Likewise.
43428         * modules/inttypes: Likewise.
43429         * modules/locale: Likewise.
43430         * modules/math: Likewise.
43431         * modules/netinet_in: Likewise.
43432         * modules/search: Likewise.
43433         * modules/signal: Likewise.
43434         * modules/stdint: Likewise.
43435         * modules/stdio: Likewise.
43436         * modules/stdlib: Likewise.
43437         * modules/string: Likewise.
43438         * modules/sys_select: Likewise.
43439         * modules/sys_socket: Likewise.
43440         * modules/sys_stat: Likewise.
43441         * modules/sys_time: Likewise.
43442         * modules/sysexits: Likewise.
43443         * modules/time: Likewise.
43444         * modules/unistd: Likewise.
43445         * modules/wchar: Likewise.
43446         * modules/wctype: Likewise.
43447         * modules/sys_stat: Change maintainer to "all".
43448         * modules/unistd: Likewise.
43449
43450 2007-06-20  Karl Berry  <karl@gnu.org>
43451
43452         * config/srclist.txt: track www changes in license files.
43453
43454 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
43455
43456         * build-aux/bootstrap: Remove stray dot.
43457         Make sure build_aux settings are honored when linking
43458         gnulib_extra_files.
43459
43460 2007-06-19  Eric Blake  <ebb9@byu.net>
43461
43462         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43463         Allow compilation on cygwin.
43464
43465 2007-06-19  Jim Meyering  <jim@meyering.net>
43466
43467         xreadlink-with-size: Remove module.  No longer used.
43468         Ex-callers now use xreadlink or mreadlink-with-size.
43469         * modules/xreadlink-with-size: Remove module.
43470         * lib/xreadlink-with-size.c: Remove file.
43471         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
43472         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
43473         just before the function definition *is* accurate.
43474
43475         Eliminate one way canonicalize_filename_mode could exit.
43476         * lib/canonicalize.c (canonicalize_filename_mode):
43477         Use mreadlink_with_size, not xreadlink_with_size.
43478
43479 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
43480
43481         Detect porting problems to FreeBSD/arm, which has time_t wider than
43482         long int.  Original problem reported for GNU diff by Xin Li in
43483         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
43484         * modules/getdate (Depends-on): Add intprops, verify.
43485         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
43486         is an integer type no wider than long int.
43487
43488 2007-06-18  Jim Meyering  <jim@meyering.net>
43489
43490         New module: mreadlink-with-size.
43491         * MODULES.html.sh: Add mreadlink-with-size.
43492         * modules/mreadlink-with-size: New module
43493         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
43494         not xreadlink-with-size.
43495         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
43496
43497 2007-06-16  Bruno Haible  <bruno@clisp.org>
43498
43499         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
43500         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
43501         Reported by Gary V. Vaughan <gary@gnu.org>.
43502
43503 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
43504
43505         Revamp lchown so that it lives in unistd.h where it belongs.
43506         * lib/lchown.h: Remove.
43507         * lib/dirchownmod.c: Don't include lib/lchown.h.
43508         * lib/fchownat.c: Likewise.
43509         * lib/openat.c: Likewise.
43510         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
43511         does not follow symlinks.
43512         (EOPNOTSUPP): Define if not defined.
43513         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
43514         is defined to 0.
43515         (lchown): New decl.
43516         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
43517         Do not check for lchown decl.
43518         Set REPLACE_LCHOWN.
43519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
43520         REPLACE_LCHOWN.
43521         * modules/chown: Make it clear it follows symlinks.
43522         * modules/lchown: Make it clear it doesn't follow symlinks.
43523         (Files): Remove lib/lchown.h
43524         (Depends-on): Add unistd.
43525         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
43526         (Include): Include <unistd.h>, not "lchown.h".
43527         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
43528         REPLACE_LCHOWN.
43529
43530 2007-06-15  Jim Meyering  <jim@meyering.net>
43531
43532         Change license (GPL to LGPL) of fsusage and dependents.
43533         * modules/fsusage (License): Change to LGPL.
43534         * modules/full-read (License): Likewise.
43535         * modules/full-write (License): Likewise.
43536         * modules/safe-read (License): Likewise.
43537         * modules/safe-write (License): Likewise.
43538
43539 2007-06-14  Ben Pfaff  <blp@gnu.org>
43540
43541         Missing part of allocsa -> malloca transition.
43542         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
43543         gl_MALLOCA.
43544
43545 2007-06-12  Bruno Haible  <bruno@clisp.org>
43546
43547         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
43548         to ia64, x86_64, i386.
43549         Reported by Eric Blake.
43550
43551 2007-06-12  Bruno Haible  <bruno@clisp.org>
43552
43553         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
43554         cross-compiling to x86_64.
43555
43556 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
43557
43558         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
43559         glitch reported by Ralf Wildenhues in
43560         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
43561
43562         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
43563         Vin Shelton.
43564
43565 2007-06-11  Bruno Haible  <bruno@clisp.org>
43566
43567         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
43568         replacement string.
43569         Reported by Eric Blake.
43570
43571 2007-06-10  Bruno Haible  <bruno@clisp.org>
43572
43573         Prepare vasnprintf code for use with Unicode strings.
43574         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
43575         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
43576         TYPE_U32_STRING.
43577         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
43578         a_u32_string variants.
43579         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43580         * lib/printf-args.c: Don't include config.h and the specification
43581         header if PRINTF_FETCHARGS is already defined.
43582         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43583         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
43584         TYPE_U16_STRING, TYPE_U32_STRING.
43585         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
43586         u16_directive, u16_directives, u32_directive, u32_directives): New
43587         types.
43588         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
43589         New declarations.
43590         * lib/printf-parse.c: Don't include config.h and the specification
43591         header if PRINTF_PARSE is already defined. Eliminate the set of
43592         parameters for WIDE_CHAR_VERSION; the user of this file must provide
43593         them now. Include c-ctype.h.
43594         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
43595         directive and CHAR_T_ONLY_ASCII.
43596         * lib/vasnprintf.c: Don't include config.h and the specification header
43597         if VASNPRINTF is already defined.
43598         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
43599         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
43600         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
43601         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
43602         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
43603         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
43604         code accordingly.
43605         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
43606         pad_ourselves also in this case, with the 'c' and 's' directives, and
43607         with a different notion of "width".
43608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
43609
43610 2007-06-10  Bruno Haible  <bruno@clisp.org>
43611
43612         * modules/unistr/u32-mbsnlen: New file.
43613         * lib/unistr/u32-mbsnlen.c: New file.
43614
43615         * modules/unistr/u16-mbsnlen: New file.
43616         * lib/unistr/u16-mbsnlen.c: New file.
43617
43618         * modules/unistr/u8-mbsnlen: New file.
43619         * lib/unistr/u8-mbsnlen.c: New file.
43620
43621         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
43622         declarations.
43623
43624 2007-06-10  Bruno Haible  <bruno@clisp.org>
43625
43626         * lib/string_.h (mbsnlen): New declaration.
43627         * lib/mbsnlen.c: New file.
43628         * m4/mbsnlen.m4: New file.
43629         * modules/mbsnlen: New file.
43630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
43631         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
43632         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
43633
43634 2007-06-10  Bruno Haible  <bruno@clisp.org>
43635
43636         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
43637
43638 2007-06-10  Bruno Haible  <bruno@clisp.org>
43639
43640         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
43641         * lib/mbuiter.h: Likewise.
43642
43643 2007-06-10  Bruno Haible  <bruno@clisp.org>
43644
43645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
43646         declaration.
43647
43648 2007-06-10  Karl Berry  <karl@gnu.org>
43649
43650         * config/srclist.txt: remove gettext entries, Bruno prefers
43651         to update individually.
43652
43653 2007-06-10  Bruno Haible  <bruno@clisp.org>
43654
43655         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
43656         'maxlen'. Ensure only length + width bytes are allocated, not
43657         length + 1 + width.
43658
43659 2007-06-09  Bruno Haible  <bruno@clisp.org>
43660
43661         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
43662         (CHAR_T): Remove macro.
43663         (VASNPRINTF): Update.
43664
43665 2007-06-09  Bruno Haible  <bruno@clisp.org>
43666
43667         * MODULES.html.sh (Unicode string functions): Add the new modules.
43668
43669         * modules/uniconv/u32-conv-to-enc: New file.
43670         * lib/uniconv/u32-conv-to-enc.c: New file.
43671         * modules/uniconv/u32-conv-to-enc-tests: New file.
43672         * tests/uniconv/test-u32-conv-to-enc.c: New file.
43673
43674         * modules/uniconv/u16-conv-to-enc: New file.
43675         * lib/uniconv/u16-conv-to-enc.c: New file.
43676         * lib/uniconv/u-conv-to-enc.h: New file.
43677         * modules/uniconv/u16-conv-to-enc-tests: New file.
43678         * tests/uniconv/test-u16-conv-to-enc.c: New file.
43679
43680         * modules/uniconv/u8-conv-to-enc: New file.
43681         * lib/uniconv/u8-conv-to-enc.c: New file.
43682         * modules/uniconv/u8-conv-to-enc-tests: New file.
43683         * tests/uniconv/test-u8-conv-to-enc.c: New file.
43684
43685         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43686         u32_conv_to_encoding): New declarations.
43687
43688 2007-06-09  Bruno Haible  <bruno@clisp.org>
43689
43690         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
43691
43692 2007-06-09  Bruno Haible  <bruno@clisp.org>
43693
43694         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
43695         * modules/malloca: Renamed from modules/allocsa, updated.
43696         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
43697         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
43698         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
43699         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
43700         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
43701         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
43702         * modules/xmalloca: Renamed from modules/xallocsa, updated.
43703         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
43704         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
43705         * modules/c-strcasestr (Depends-on): Update.
43706         * lib/c-strcasestr.c: Update.
43707         * modules/c-strstr (Depends-on): Update.
43708         * lib/c-strstr.c: Update.
43709         * modules/canonicalize-lgpl (Depends-on): Update.
43710         * lib/canonicalize-lgpl.c: Update.
43711         * modules/clean-temp (Depends-on): Update.
43712         * lib/clean-temp.c: Update.
43713         * modules/csharpcomp (Depends-on): Update.
43714         * lib/csharpcomp.c: Update.
43715         * modules/csharpexec (Depends-on): Update.
43716         * lib/csharpexec.c: Update.
43717         * modules/javacomp (Depends-on): Update.
43718         * lib/javacomp.c: Update.
43719         * modules/javaexec (Depends-on): Update.
43720         * lib/javaexec.c: Update.
43721         * modules/mbscasestr (Depends-on): Update.
43722         * lib/mbscasestr.c: Update.
43723         * modules/mbsstr (Depends-on): Update.
43724         * lib/mbsstr.c: Update.
43725         * modules/setenv (Depends-on): Update.
43726         * lib/setenv.c: Update.
43727         * modules/strcasestr (Depends-on): Update.
43728         * lib/strcasestr.c: Update.
43729         * modules/striconveha (Depends-on): Update.
43730         * lib/striconveha.c: Update.
43731         * modules/relocatable-prog-wrapper (Files): Update.
43732         * lib/relocwrapper.c: Update.
43733         * build-aux/install-reloc: Update.
43734         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
43735
43736 2007-06-08  Bruno Haible  <bruno@clisp.org>
43737
43738         Port to uClibc.
43739         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
43740         * lib/fpurge.c (fpurge): Likewise.
43741         * lib/freading.c (freading): Likewise.
43742         * lib/fseeko.c (rpl_fseeko): Likewise.
43743         * lib/fseterr.c (fseterr): Likewise.
43744         * lib/fwriting.c (fwriting): Likewise.
43745         * tests/test-fflush.c (main): Avoid a failure on uClibc.
43746
43747 2007-06-08  Bruno Haible  <bruno@clisp.org>
43748
43749         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
43750         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
43751         * modules/gettext (Files): Add m4/intlmacosx.m4.
43752
43753 2007-06-07  Bruno Haible  <bruno@clisp.org>
43754
43755         * modules/localename-tests: New file.
43756         * tests/test-localename.c: New file.
43757
43758         New module 'localename'.
43759         * lib/localename.h: New file.
43760         * lib/localename.c: New file, from GNU gettext.
43761         * m4/localename.m4: New file.
43762         * modules/localename: New file.
43763
43764 2007-06-07  Bruno Haible  <bruno@clisp.org>
43765
43766         Work around the lack of <wchar.h> on some builds of uClibc.
43767         * doc/headers/wchar.texi: Update.
43768         * lib/wchar_.h: Include <wchar.h> only if it exists.
43769         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
43770         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
43771         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
43772         doesn't exist.
43773         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
43774         * modules/mbfile (Depends-on): Add wchar.
43775         * modules/mbiter (Depends-on): Likewise.
43776         * modules/mbuiter (Depends-on): Likewise.
43777         Reported by Simon Josefsson.
43778
43779 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
43780
43781         Work around problem reported by Steven M. Schweda in
43782         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
43783         Tru64 5.1B with the Compaq compiler environment installed declares
43784         an 'isblank' function but does not define it in the C library.
43785         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
43786         * lib/regex_internal.h (isblank): Likewise.
43787         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
43788         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43789
43790 2007-06-05  Bruno Haible  <bruno@clisp.org>
43791
43792         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
43793         ia64.
43794         * modules/printf-safe: New file.
43795         * modules/fprintf-posix (Depends-on): Add printf-safe.
43796         * modules/printf-posix (Depends-on): Likewise.
43797         * modules/snprintf-posix (Depends-on): Likewise.
43798         * modules/sprintf-posix (Depends-on): Likewise.
43799         * modules/vasnprintf-posix (Depends-on): Likewise.
43800         * modules/vasprintf-posix (Depends-on): Likewise.
43801         * modules/vfprintf-posix (Depends-on): Likewise.
43802         * modules/vprintf-posix (Depends-on): Likewise.
43803         * modules/vsnprintf-posix (Depends-on): Likewise.
43804         * modules/vsprintf-posix (Depends-on): Likewise.
43805         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43806         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
43807         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
43808         "no" on i386, x86_64, ia64.
43809         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
43810         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43811         on i386, x86_64, ia64.
43812         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
43813         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43814         on i386, x86_64, ia64.
43815         * tests/test-vasnprintf-posix.c: Include float.h.
43816         (LDBL80_WORDS): New macro.
43817         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43818         on i386, x86_64, ia64.
43819         * tests/test-vasprintf-posix.c: Include float.h.
43820         (LDBL80_WORDS): New macro.
43821         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43822         on i386, x86_64, ia64.
43823         * tests/test-snprintf-posix.c: Include float.h.
43824         * tests/test-sprintf-posix.c: Likewise.
43825         * tests/test-vsnprintf-posix.c: Likewise.
43826         * tests/test-vsprintf-posix.c: Likewise.
43827
43828 2007-06-05  Bruno Haible  <bruno@clisp.org>
43829
43830         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
43831         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
43832         non-IEEE numbers on i386, x86_64, ia64.
43833         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
43834         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
43835         * tests/test-isnanl.h: Include float.h.
43836         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
43837
43838 2007-06-05  Bruno Haible  <bruno@clisp.org>
43839
43840         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
43841         also the %a / %A. Handle the %a / %A code before this extra handling.
43842
43843 2007-06-05  Bruno Haible  <bruno@clisp.org>
43844
43845         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
43846         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
43847
43848 2007-06-05  Bruno Haible  <bruno@clisp.org>
43849
43850         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
43851         typo in variable name.
43852
43853 2007-06-05  Eric Blake  <ebb9@byu.net>
43854
43855         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
43856         Reported by Simon Josefsson.
43857
43858 2007-06-04  Bruno Haible  <bruno@clisp.org>
43859
43860         Avoid test failures on some PowerPC platforms.
43861         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
43862         Define differently for PowerPC.
43863         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
43864         Reported by Gary V. Vaughan <gary@gnu.org>.
43865
43866 2007-06-02  Bruno Haible  <bruno@clisp.org>
43867
43868         Fix test-stdint failure on FreeBSD/ia64.
43869         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
43870         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
43871         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
43872         * doc/headers/stdint.texi: Update.
43873
43874 2007-06-01  Bruno Haible  <bruno@clisp.org>
43875
43876         * tests/test-binary-io.c (main): Pass a third argument to open().
43877         Reported by Gary V. Vaughan <gary@gnu.org>.
43878
43879 2007-06-01  Bruno Haible  <bruno@clisp.org>
43880
43881         * doc/functions/frexpl.texi: Update for mingw.
43882
43883 2007-06-01  Bruno Haible  <bruno@clisp.org>
43884
43885         * tests/test-lseek.c (main): Disable test of errno for invalid third
43886         argument.
43887         * doc/functions/lseek.texi: Update.
43888         Reported by Gary V. Vaughan <gary@gnu.org>.
43889
43890 2007-05-28  Bruno Haible  <bruno@clisp.org>
43891
43892         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
43893
43894 2007-05-31  Eric Blake  <ebb9@byu.net>
43895
43896         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
43897         cross compiling.
43898
43899 2007-05-30  Eric Blake  <ebb9@byu.net>
43900         and Bruno Haible  <bruno@clisp.org>
43901
43902         Work around mingw test failures exposed by m4-1.4.9b.
43903         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
43904         * tests/test-unistd.c: Disable uid_t and git_t tests for the
43905         moment.
43906
43907 2007-05-30  Bruno Haible  <bruno@clisp.org>
43908
43909         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
43910         assuming that they are closed. Needed on HP-UX 11.
43911
43912 2007-05-29  Bruno Haible  <bruno@clisp.org>
43913
43914         Fix a problem with #include_next.
43915         * lib/dirent_.h: Split the double-inclusion guard.
43916         * lib/fcntl_.h: Likewise.
43917         * lib/float_.h: Likewise.
43918         * lib/iconv_.h: Likewise.
43919         * lib/inttypes_.h: Likewise.
43920         * lib/locale_.h: Likewise.
43921         * lib/math_.h: Likewise.
43922         * lib/netinet_in_.h: Likewise.
43923         * lib/search_.h: Likewise.
43924         * lib/signal_.h: Likewise.
43925         * lib/stdint_.h: Likewise.
43926         * lib/stdio_.h: Likewise.
43927         * lib/stdlib_.h: Likewise.
43928         * lib/string_.h: Likewise.
43929         * lib/sys_select_.h: Likewise.
43930         * lib/sys_socket_.h: Likewise.
43931         * lib/sys_stat_.h: Likewise.
43932         * lib/sys_time_.h: Likewise.
43933         * lib/sysexits_.h: Likewise.
43934         * lib/time_.h: Likewise.
43935         * lib/unistd_.h: Likewise.
43936         * lib/wchar_.h: Likewise.
43937         * lib/wctype_.h: Likewise.
43938
43939 2007-05-29  Bruno Haible  <bruno@clisp.org>
43940
43941         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
43942         for the moment.
43943
43944 2007-05-29  Bruno Haible  <bruno@clisp.org>
43945
43946         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
43947         invocation.
43948         Reported by Eric Blake.
43949
43950 2007-05-29  Bruno Haible  <bruno@clisp.org>
43951
43952         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
43953         compiling case.
43954
43955 2007-05-29  Eric Blake  <ebb9@byu.net>
43956             Bruno Haible  <bruno@clisp.org>
43957
43958         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
43959         cross compiles.
43960
43961 2007-05-28  Eric Blake  <ebb9@byu.net>
43962
43963         * modules/closein-tests (test_closein_LDADD): Support test on
43964         cygwin with libtool.
43965
43966 2007-05-28  Bruno Haible  <bruno@clisp.org>
43967
43968         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
43969         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43970         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43971         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43972         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43973         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43974         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43975         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43976         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43977
43978 2007-05-28  Eric Blake  <ebb9@byu.net>
43979
43980         Unconditionally include <config.h> in unit tests.
43981         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
43982         * tests/test-allocsa.c, tests/test-arcfour.c,
43983         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
43984         tests/test-array_list.c, tests/test-array_oset.c,
43985         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
43986         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
43987         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
43988         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
43989         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
43990         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
43991         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
43992         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
43993         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
43994         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
43995         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
43996         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
43997         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
43998         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
43999         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
44000         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
44001         test-md5.c, test-memmem.c, test-printf-posix.c,
44002         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
44003         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
44004         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
44005         test-strcasestr.c, test-striconv.c, test-striconveh.c,
44006         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
44007         test-vasnprintf-posix2.c, test-vasnprintf.c,
44008         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
44009         test-vfprintf-posix.c, test-vprintf-posix.c,
44010         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
44011         test-xvasprintf.c: Likewise.
44012
44013 2007-05-28  Bruno Haible  <bruno@clisp.org>
44014
44015         * gnulib-tool (func_import): Remember the --with-tests command-line
44016         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
44017         Reported by Eric Blake.
44018
44019 2007-05-28  Bruno Haible  <bruno@clisp.org>
44020
44021         * modules/ftell-tests: New file.
44022         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
44023         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
44024
44025         * lib/ftell.c: New file.
44026         * modules/ftell: New file.
44027         * m4/ftell.m4: New file.
44028         * doc/functions/ftell.texi: Update.
44029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
44030         REPLACE_FTELL.
44031         * lib/stdio_.h (rpl_ftell): New declaration.
44032         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
44033         REPLACE_FTELL.
44034
44035 2007-05-28  Eric Blake  <ebb9@byu.net>
44036
44037         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
44038
44039 2007-05-28  Bruno Haible  <bruno@clisp.org>
44040
44041         * modules/fseek-tests: New file.
44042         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
44043         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
44044
44045         * lib/fseek.c: New file.
44046         * modules/fseek: New file.
44047         * m4/fseek.m4: New file.
44048         * doc/functions/fseek.texi: Update.
44049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
44050         REPLACE_FSEEK.
44051         * lib/stdio_.h (rpl_fseek): New declaration.
44052         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
44053         REPLACE_FSEEK.
44054
44055 2007-05-28  Bruno Haible  <bruno@clisp.org>
44056
44057         * lib/stdio_.h (fflush): More comments.
44058
44059 2007-05-28  Bruno Haible  <bruno@clisp.org>
44060
44061         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
44062         runtime test.
44063
44064 2007-05-28  Eric Blake  <ebb9@byu.net>
44065
44066         Improve lseek module.
44067         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
44068         * lib/unistd_.h (lseek): Scale back link warning message.
44069         * tests/test-lseek.c: Beef up test.
44070         * tests/test-lseek.sh: Exercise more facets of lseek.
44071         Reported by Bruno Haible.
44072
44073 2007-05-28  Bruno Haible  <bruno@clisp.org>
44074
44075         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
44076         to define.
44077
44078 2007-05-27  Bruno Haible  <bruno@clisp.org>
44079
44080         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
44081
44082 2007-05-27  Bruno Haible  <bruno@clisp.org>
44083
44084         * modules/openmp: New file.
44085         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
44086         Noah Misch.
44087
44088 2007-05-26  Bruno Haible  <bruno@clisp.org>
44089
44090         * modules/chdir-long (Depends-on): Add fchdir.
44091         * modules/chdir-safer (Depends-on): Likewise.
44092         * modules/fts (Depends-on): Likewise.
44093         * modules/fts-lgpl (Depends-on): Likewise.
44094         * modules/openat (Depends-on): Likewise.
44095         * modules/savewd (Depends-on): Likewise.
44096
44097 2007-05-24  Eric Blake  <ebb9@byu.net>
44098
44099         Fix lseek on mingw.
44100         * modules/lseek: New module.
44101         * m4/lseek.m4: New file.
44102         * lib/lseek.c: New file.
44103         * modules/lseek-tests: New file.
44104         * tests/test-lseek.c: New file.
44105         * tests/test-lseek.sh: New file.
44106         * MODULES.html.sh: Document lseek module.
44107         * modules/fflush (Depends-on): Add lseek, fseeko.
44108         * modules/fseeko (Depends-on): Likewise.
44109         * modules/ftello (Depends-on): Likewise.
44110         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
44111         broken.
44112         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
44113         broken.
44114         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
44115         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
44116         * lib/ftello.c (rpl_ftello): Likewise.
44117         * tests/test-fseeko.c (main): Test this.
44118         * tests/test-fseeko.sh: Likewise.
44119         * tests/test-ftello.c (main): Likewise.
44120         * tests/test-ftello.sh: Likewise.
44121         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
44122         implies replacing fseek.
44123         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
44124         HAVE_FTELLO.
44125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
44126         * modules/unistd (Makefile.am): Likewise.
44127         * lib/unistd_.h (lseek): Declare a replacement.
44128         * doc/functions/lseek.texi (lseek): Document this fix.
44129         * doc/functions/fseek.texi (fseek): Likewise.
44130         * doc/functions/ftell.texi (ftell): Likewise.
44131
44132 2007-05-24  Bruno Haible  <bruno@clisp.org>
44133
44134         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
44135         in the printed representation of a NaN.
44136         * tests/test-vasprintf-posix.c (test_function): Likewise.
44137         * tests/test-snprintf-posix.h (test_function): Likewise.
44138         * tests/test-sprintf-posix.h (test_function): Likewise.
44139         Reported by Eric Blake.
44140
44141 2007-05-23  Eric Blake  <ebb9@byu.net>
44142
44143         Fix fseeko/ftello on cygwin 1.5.24.
44144         * doc/functions/fseeko.texi (fseeko): Document the fix.
44145         * doc/functions/ftello.texi (ftello): Document the fix.
44146         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
44147         * doc/functions/stdout.text (stdout): New file.
44148         * doc/functions/stderr.text (stderr): New file.
44149         * doc/gnulib.texi (Function Substitutes): Use new files.
44150         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
44151         prior to 1.7.0.
44152         * tests/test-ftello.c (main): Likewise for ftello.
44153         * tests/test-fseeko.sh: New file.
44154         * tests/test-ftello.sh: New file.
44155         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
44156         with seekable stdin.
44157         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
44158         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
44159         (gl_REPLACE_FSEEKO): New macro.
44160         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
44161         * modules/fseeko (Files): Distribute fseeko.c.
44162         * modules/ftello (Files): Distribute ftello.c.
44163         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
44164         mode.
44165         * lib/ftello.c (rpl_ftello): New file.
44166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
44167         fseeko, ftello.
44168         (gl_STDIN_LARGE_OFFSET): New macro.
44169         * modules/stdio (Makefile.am): Perform the replacement.
44170         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
44171
44172 2007-05-23  Bruno Haible  <bruno@clisp.org>
44173
44174         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
44175         GNULIB_POSIXCHECK is defined.
44176
44177 2007-05-21  Bruno Haible  <bruno@clisp.org>
44178
44179         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
44180         Check also the output for NaN arguments. When cross-compiling, guess
44181         no on IRIX.
44182         * lib/vasnprintf.c: Update comments.
44183         * tests/test-vasnprintf-posix.c (strisnan): New function.
44184         (test_function): Use it.
44185         * tests/test-vasprintf-posix.c (strisnan): New function.
44186         (test_function): Use it.
44187         * tests/test-snprintf-posix.h (strisnan): New function.
44188         (test_function): Use it.
44189         * tests/test-sprintf-posix.h (strisnan): New function.
44190         (test_function): Use it.
44191         Reported by Eric Blake.
44192
44193 2007-05-20  Bruno Haible  <bruno@clisp.org>
44194
44195         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
44196         numbers that fails on BeOS.
44197         * doc/functions/frexpl.texi: Update.
44198
44199 2007-05-20  Jim Meyering  <jim@meyering.net>
44200
44201         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
44202         forced upon us by glibc-2.6.
44203
44204 2007-05-20  Bruno Haible  <bruno@clisp.org>
44205
44206         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
44207         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
44208         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
44209         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
44210         NEED_PRINTF_INFINITE.
44211         (is_infinitel): New function.
44212         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
44213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
44214         gl_PREREQ_VASNPRINTF_INFINITE.
44215         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
44216         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44217         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
44218         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
44219         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
44220         gl_PREREQ_VASNPRINTF_INFINITE.
44221         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44222         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44223         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44224         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44225         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44226         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44228         * doc/functions/fprintf.texi: Update.
44229         * doc/functions/printf.texi: Update.
44230         * doc/functions/snprintf.texi: Update.
44231         * doc/functions/sprintf.texi: Update.
44232         * doc/functions/vfprintf.texi: Update.
44233         * doc/functions/vprintf.texi: Update.
44234         * doc/functions/vsnprintf.texi: Update.
44235         * doc/functions/vsprintf.texi: Update.
44236
44237 2007-05-20  Bruno Haible  <bruno@clisp.org>
44238
44239         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
44240         was not found in libc.
44241         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44242
44243 2007-05-20  Bruno Haible  <bruno@clisp.org>
44244
44245         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44246         printed as "-nan" instead of "nan".
44247         * tests/test-vasprintf-posix.c (test_function): Likewise.
44248         * tests/test-snprintf-posix.h (test_function): Likewise.
44249         * tests/test-sprintf-posix.h (test_function): Likewise.
44250         Needed for HP-UX 11.
44251
44252 2007-05-20  Jim Meyering  <jim@meyering.net>
44253
44254         Fix buggy test for the fchownat-deref bug.
44255         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
44256         symlink required for the run-test.  Without it, this test would
44257         always declare that fchownat doesn't work, and client code would
44258         unnecessarily use the replacement function with fixed libc.
44259         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
44260         Reported by Greg Schafer.
44261
44262 2007-05-19  Bruno Haible  <bruno@clisp.org>
44263
44264         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
44265         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
44266         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
44267         Needed for IRIX 6.5 and Solaris 2.5.1.
44268
44269 2007-05-19  Bruno Haible  <bruno@clisp.org>
44270
44271         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
44272         (test_function): Skip tests involving -0.0 on platforms where
44273         -0.0 = 0.0.
44274         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
44275         (test_function): Skip tests involving -0.0 on platforms where
44276         -0.0 = 0.0.
44277         * tests/test-snprintf-posix.h (have_minus_zero): New function.
44278         (test_function): Skip tests involving -0.0 on platforms where
44279         -0.0 = 0.0.
44280         * tests/test-sprintf-posix.h (have_minus_zero): New function.
44281         (test_function): Skip tests involving -0.0 on platforms where
44282         -0.0 = 0.0.
44283         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
44284         tests.
44285         * tests/test-printf-posix.h (test_function): Likewise.
44286         * tests/test-printf-posix.output: Remove all -0.0 related results.
44287         Needed for IRIX 6.5.
44288
44289 2007-05-19  Bruno Haible  <bruno@clisp.org>
44290
44291         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44292         printed as "nan0x7fffffff" instead of "nan".
44293         * tests/test-vasprintf-posix.c (test_function): Likewise.
44294         * tests/test-snprintf-posix.h (test_function): Likewise.
44295         * tests/test-sprintf-posix.h (test_function): Likewise.
44296         * tests/test-fprintf-posix.h (NaN): Remove macro.
44297         (test_function): Remove all NaN related tests.
44298         * tests/test-printf-posix.h (NaN): Remove macro.
44299         (test_function): Remove all NaN related tests.
44300         * tests/test-printf-posix.output: Remove all NaN related results.
44301         Needed for IRIX 6.5.
44302
44303 2007-05-19  Bruno Haible  <bruno@clisp.org>
44304
44305         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
44306         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44307
44308 2007-05-19  Bruno Haible  <bruno@clisp.org>
44309
44310         * lib/float_.h: New file.
44311         * m4/float_h.m4: New file.
44312         * modules/float: New file.
44313         * modules/isnanl (Dependencies): Add float.
44314         * modules/isnanl-nolibm (Dependencies): Likewise.
44315         * modules/mathl (Dependencies): Likewise.
44316         * modules/printf-frexpl (Dependencies): Likewise.
44317         * modules/signbit (Dependencies): Likewise.
44318         * modules/vasnprintf (Dependencies): Likewise.
44319         * doc/headers/float.texi: Update.
44320
44321 2007-05-19  Jim Meyering  <jim@meyering.net>
44322
44323         * lib/utimens.c (gl_futimens): Rename from futimens,
44324         now that glibc-2.6 declares futimens.
44325         * lib/utimens.h: Likewise.
44326
44327 2007-05-19  Bruno Haible  <bruno@clisp.org>
44328
44329         Avoid test failures on mingw.
44330         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
44331         * tests/test-printf-posix.sh: Likewise.
44332         * tests/test-vfprintf-posix.sh: Likewise.
44333         * tests/test-vprintf-posix.sh: Likewise.
44334
44335 2007-05-19  Bruno Haible  <bruno@clisp.org>
44336
44337         Fix *printf result for NaN, Inf, -0.0 on mingw.
44338         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
44339         * lib/vasnprintf.c: Include math.h and isnan.h.
44340         (is_infinite_or_zero): New function.
44341         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
44342         values in the %f, %F, %e, %E, %g, %G directives.
44343         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
44344         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44345         gl_PRINTF_INFINITE and test its result. Invoke
44346         gl_PREREQ_VASNPRINTF_INFINITE.
44347         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44348         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44349         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44350         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44351         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44352         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44353         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44354         * doc/functions/fprintf.texi: Update.
44355         * doc/functions/printf.texi: Update.
44356         * doc/functions/snprintf.texi: Update.
44357         * doc/functions/sprintf.texi: Update.
44358         * doc/functions/vfprintf.texi: Update.
44359         * doc/functions/vprintf.texi: Update.
44360         * doc/functions/vsnprintf.texi: Update.
44361         * doc/functions/vsprintf.texi: Update.
44362
44363 2007-05-19  Bruno Haible  <bruno@clisp.org>
44364
44365         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
44366         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
44367         Instead of multiplying with 10^k, set extra_zeroes to k.
44368         (scale10_round_long_double): Remove function.
44369
44370 2007-05-18  Bruno Haible  <bruno@clisp.org>
44371
44372         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
44373         introduced on 2007-05-06.
44374
44375 2007-05-18  Bruno Haible  <bruno@clisp.org>
44376
44377         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
44378         %g directives.
44379         * tests/test-vasprintf-posix.c (test_function): Likewise.
44380         * tests/test-snprintf-posix.h (test_function): Likewise.
44381         * tests/test-sprintf-posix.h (test_function): Likewise.
44382
44383 2007-05-18  Bruno Haible  <bruno@clisp.org>
44384
44385         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
44386         (strmatch): New function.
44387         (test_function): Test the %f directive on numbers of various exponents.
44388         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
44389         (strmatch): New function.
44390         (test_function): Test the %f directive on numbers of various exponents.
44391         * tests/test-snprintf-posix.h (strmatch): New function.
44392         (test_function): Test the %f directive on numbers of various exponents.
44393         * tests/test-sprintf-posix.h (strmatch): New function.
44394         (test_function): Test the %f directive on numbers of various exponents.
44395         * tests/test-snprintf-posix.c (SIZEOF): New macro.
44396         * tests/test-sprintf-posix.c (SIZEOF): New macro.
44397         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
44398         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
44399
44400 2007-05-18  Bruno Haible  <bruno@clisp.org>
44401
44402         Add support for 'long double' number output.
44403         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
44404         * lib/vasnprintf.c: Include math.h and float+.h.
44405         (mp_limb_t): New type.
44406         (GMP_LIMB_BITS): New macro.
44407         (mp_twolimb_t): New type.
44408         (GMP_TWOLIMB_BITS): New macro.
44409         (mpn_t): New type.
44410         (multiply, divide, convert_to_decimal, decode_long_double,
44411         scale10_round_long_double, scale10_round_decimal_long_double,
44412         floorlog10l): New functions.
44413         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
44414         for the %f, %F, %e, %E, %g, %G directives.
44415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
44416         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44417         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
44418         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
44419         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44420         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44421         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44422         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44423         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44425         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44426         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
44427         * modules/snprintf-posix (Depends-on): Likewise.
44428         * modules/sprintf-posix (Depends-on): Likewise.
44429         * modules/vasnprintf-posix (Depends-on): Likewise.
44430         * modules/vasprintf-posix (Depends-on): Likewise.
44431         * modules/vfprintf-posix (Depends-on): Likewise.
44432         * modules/vsnprintf-posix (Depends-on): Likewise.
44433         * modules/vsprintf-posix (Depends-on): Likewise.
44434         * modules/vasnprintf (Files): Add lib/float+.h.
44435         * doc/functions/fprintf.texi: Update.
44436         * doc/functions/printf.texi: Update.
44437         * doc/functions/snprintf.texi: Update.
44438         * doc/functions/sprintf.texi: Update.
44439         * doc/functions/vfprintf.texi: Update.
44440         * doc/functions/vprintf.texi: Update.
44441         * doc/functions/vsnprintf.texi: Update.
44442         * doc/functions/vsprintf.texi: Update.
44443
44444 2007-05-18  Bruno Haible  <bruno@clisp.org>
44445
44446         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
44447
44448 2007-05-18  Bruno Haible  <bruno@clisp.org>
44449
44450         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
44451         for printing 64-bit integers. Needed for mingw.
44452
44453 2007-05-18  Bruno Haible  <bruno@clisp.org>
44454
44455         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
44456         gl_FUNC_FREXPL_WORKS.
44457         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
44458
44459 2007-05-18  Bruno Haible  <bruno@clisp.org>
44460
44461         * modules/frexpl-nolibm-tests: New file.
44462
44463         * modules/frexpl-nolibm: New file.
44464         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
44465
44466 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44467
44468         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
44469         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44470         GCC 4.2, which otherwise issues a lot of warnings.
44471         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
44472         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
44473         Likewise.
44474         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
44475         * modules/iconv_open (iconv.h): Likewise.
44476         * modules/locale (locale.h): Likewise.
44477         * modules/netinet_in (netinet/in.h): Likewise.
44478         * modules/sys_select (sys_select.h): Likewise.
44479         * modules/sys_socket (sys/socket.h): Likewise.
44480         * modules/sys_stat (sys/stat.h): Likewise.
44481         * modules/sysexits (sysexits.h): Likewise.
44482         * modules/unistd (unistd.h): Likewise.
44483
44484 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44485
44486         * modules/closein-tests (Makefile.am): Distribute
44487         `test-closein.sh'.
44488
44489 2007-05-17  Bruno Haible  <bruno@clisp.org>
44490
44491         * tests/test-printf-posix.output: Renamed from
44492         tests/test-fprintf-posix.out.
44493         * modules/fprintf-posix-tests: Update.
44494         * modules/printf-posix-tests: Update.
44495         * modules/vfprintf-posix-tests: Update.
44496         * modules/vprintf-posix-tests: Update.
44497         * tests/test-fprintf-posix.sh: Update.
44498         * tests/test-printf-posix.sh: Update.
44499         * tests/test-vfprintf-posix.sh: Update.
44500         * tests/test-vprintf-posix.sh: Update.
44501         Reported by Ralf Wildenhues.
44502
44503 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44504
44505         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
44506         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44507         GCC 4.2, which otherwise issues a lot of warnings.
44508         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
44509         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
44510         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
44511         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
44512         it should no longer be needed.
44513         * lib/string_.h: Likewise.
44514         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
44515         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
44516         * modules/inttypes (inttypes.h): Likewise.
44517         * modules/math (math.h): Likewise.
44518         * modules/search (search.h): Likewise.
44519         * modules/signal (signal.h): Likewise.
44520         * modules/stdint (stdint.h): Likewise.
44521         * modules/stdio (stdio.h): Likewise.
44522         * modules/stdlib (stdlib.h): Likewise.
44523         * modules/string (string.h): Likewise.
44524         * modules/sys_time (sys/time.h): Likewise.
44525         * modules/time (time.h): Likewise.
44526         * modules/wchar (wchar.h): Likewise.
44527         * modules/wctype (wtype.h): Likewise.
44528
44529 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44530
44531         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
44532
44533 2007-05-13  Bruno Haible  <bruno@clisp.org>
44534
44535         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
44536         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44537         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
44538         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44539         (gl_PREREQ_STRTOK_R): Don't require it here.
44540
44541 2007-05-13  Bruno Haible  <bruno@clisp.org>
44542
44543         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
44544         when used in C++ mode.
44545
44546 2007-05-12  Bruno Haible  <bruno@clisp.org>
44547
44548         * lib/linebuffer.h: Tweak doc.
44549         * lib/linebuffer.c: Likewise.
44550
44551 2007-05-12  James Youngman  <jay@gnu.org>
44552
44553         * lib/linebuffer.c (readlinebuffer_delim): New function,
44554         like readlinebuffer, but use a caller-specified delimiter.
44555         (readlinebuffer): Just call readlinebuffer_delim with '\n'
44556         as the delimiter.
44557         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
44558
44559 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44560
44561         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
44562         * modules/openat (Files): Remove openat-die.c.
44563         (Depends-on): Add openat-die.
44564         * modules/openat-die: New module.
44565
44566 2007-05-06  Bruno Haible  <bruno@clisp.org>
44567
44568         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
44569         Update with info about Cygwin.
44570         * doc/functions/fprintf.texi: Update.
44571         * doc/functions/printf.texi: Update.
44572         * doc/functions/snprintf.texi: Update.
44573         * doc/functions/sprintf.texi: Update.
44574         * doc/functions/vfprintf.texi: Update.
44575         * doc/functions/vprintf.texi: Update.
44576         * doc/functions/vsnprintf.texi: Update.
44577         * doc/functions/vsprintf.texi: Update.
44578         Reported by Eric Blake.
44579
44580 2007-05-06  Bruno Haible  <bruno@clisp.org>
44581
44582         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
44583         padding ourselves for the floating-point directives.
44584         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
44585         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
44586         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44587         gl_PRINTF_FLAG_ZERO and test its result. Invoke
44588         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
44589         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44590         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44591         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44592         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44593         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44594         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44595         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44596         * tests/test-snprintf-posix.h (test_function): Also check the width
44597         and some flags in the %f directive.
44598         * tests/test-sprintf-posix.h (test_function): Likewise.
44599         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44600         * tests/test-vasprintf-posix.c (test_function): Likewise.
44601         * doc/functions/fprintf.texi: Update.
44602         * doc/functions/printf.texi: Update.
44603         * doc/functions/snprintf.texi: Update.
44604         * doc/functions/sprintf.texi: Update.
44605         * doc/functions/vfprintf.texi: Update.
44606         * doc/functions/vprintf.texi: Update.
44607         * doc/functions/vsnprintf.texi: Update.
44608         * doc/functions/vsprintf.texi: Update.
44609
44610 2007-05-06  Bruno Haible  <bruno@clisp.org>
44611
44612         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
44613         pass the ' flag character to sprintf or snprintf.
44614         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
44615         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
44616         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44617         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
44618         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
44619         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44620         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44621         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44622         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44623         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44624         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44625         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44626         * tests/test-snprintf-posix.h (test_function): Also check the grouping
44627         flag.
44628         * tests/test-sprintf-posix.h (test_function): Likewise.
44629         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44630         * tests/test-vasprintf-posix.c (test_function): Likewise.
44631         * doc/functions/fprintf.texi: Update.
44632         * doc/functions/printf.texi: Update.
44633         * doc/functions/snprintf.texi: Update.
44634         * doc/functions/sprintf.texi: Update.
44635         * doc/functions/vfprintf.texi: Update.
44636         * doc/functions/vprintf.texi: Update.
44637         * doc/functions/vsnprintf.texi: Update.
44638         * doc/functions/vsprintf.texi: Update.
44639
44640 2007-05-01  Bruno Haible  <bruno@clisp.org>
44641
44642         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
44643
44644 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
44645
44646         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
44647         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
44648
44649 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44650
44651         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
44652         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
44653         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
44654
44655 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
44656
44657         * lib/argp-help.c (struct hol_entry): New member `ord'.
44658         (HOL_ENTRY_PTRCMP): Use ord for comparison
44659         (hol_sort): Initialize ord.
44660
44661 2007-05-01  Bruno Haible  <bruno@clisp.org>
44662
44663         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
44664         Reported by Eric Blake.
44665         * doc/gnulib.texi (Function Substitutes): Update.
44666
44667 2007-05-01  Bruno Haible  <bruno@clisp.org>
44668
44669         * doc/functions.texi: Remove file, now redundant through
44670         doc/functions/*.texi.
44671
44672 2007-05-01  Bruno Haible  <bruno@clisp.org>
44673
44674         * modules/argp (Depends-on): Add sleep.
44675
44676 2007-05-01  Bruno Haible  <bruno@clisp.org>
44677
44678         * modules/sleep-tests: New file.
44679         * tests/test-sleep.c: New file.
44680
44681         * modules/sleep: New file.
44682         * lib/sleep.c: New file.
44683         * m4/sleep.m4: New file.
44684         * lib/unistd_.h (sleep): New declaration.
44685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
44686         HAVE_SLEEP.
44687         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
44688         * doc/functions/sleep.texi: Document the sleep module.
44689
44690 2007-05-01  Bruno Haible  <bruno@clisp.org>
44691
44692         * lib/sigprocmask.h: Remove file.
44693         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
44694         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
44695         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
44696         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
44697         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
44698         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
44699         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
44700         HAVE_SIGSET_T as a shell variable.
44701         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
44702         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
44703         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
44704         (Depends-on): Add signal. Remove verify.
44705         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
44706         (Include): Mention <signal.h> instead of sigprocmask.h.
44707         * NEWS: Mention the change.
44708         * lib/fatal-signal.c: Don't include sigprocmask.h.
44709
44710 2007-05-01  Bruno Haible  <bruno@clisp.org>
44711
44712         * modules/signal: New file.
44713         * lib/signal_.h: New file.
44714         * m4/signal_h.m4: New file.
44715
44716 2007-05-01  Bruno Haible  <bruno@clisp.org>
44717
44718         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
44719         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
44720         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
44721         HAVE_WCTYPE_CTMP_BUG into wctype.h.
44722
44723 2007-05-01  Bruno Haible  <bruno@clisp.org>
44724
44725         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
44726         configure time.
44727         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
44728         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
44729         * modules/sys_stat (Makefile.am): Substitute their values into
44730         sys/stat.h.
44731
44732 2007-05-01  Bruno Haible  <bruno@clisp.org>
44733
44734         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
44735         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
44736         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
44737
44738 2007-05-01  Bruno Haible  <bruno@clisp.org>
44739
44740         * doc/header/assert.texi: Undo last change: don't mention the gnulib
44741         'assert' module here.
44742
44743 2007-05-01  Bruno Haible  <bruno@clisp.org>
44744
44745         * doc/functions/*.texi: New files.
44746         * doc/functions/google-ranking.txt: New file.
44747         * doc/gnulib.texi (Function Substitutes): New chapter.
44748         (ctime, inet_ntoa): Remove sections.
44749         * doc/ctime.texi: Remove file.
44750         * doc/inet_ntoa.texi: Remove file.
44751         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
44752         dependencies.
44753         (%.info): New rule, specifying a --reference-limit.
44754
44755 2007-05-01  Bruno Haible  <bruno@clisp.org>
44756
44757         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
44758
44759 2007-05-01  Bruno Haible  <bruno@clisp.org>
44760
44761         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
44762         the portability of 'mkdir' to mingw systems.
44763
44764 2007-05-01  Bruno Haible  <bruno@clisp.org>
44765
44766         * doc/headers/google-ranking.txt: New file.
44767
44768 2007-04-30  Eric Blake  <ebb9@byu.net>
44769
44770         Prefer fseeko to fseek.
44771         * modules/getpass (Depends-on): Add fseeko.
44772         * lib/getpass.c (getpass): Use fseeko, not fseek.
44773
44774 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
44775
44776         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
44777         assumes the sorting is stable, while most qsort implementations
44778         are not.  Use argument addresses to ensure they never compare as
44779         equal.
44780
44781         * tests/test-argp-2.sh (usage-indent test): Fix output
44782         (func_compare): Restore diff options
44783         * tests/test-argp.c: Restore #include "progname.h"
44784
44785 2007-04-29  Bruno Haible  <bruno@clisp.org>
44786
44787         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
44788         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44789         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
44790         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44791         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
44792         (configure.ac): Define CHECK_SNPRINTF_POSIX.
44793         (TESTS, check_PROGRAMS): Add test-snprintf.
44794         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
44795         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
44796         (TESTS, check_PROGRAMS): Add test-vsnprintf.
44797         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
44798         assertions that fail on HP-UX, OSF/1, or IRIX.
44799         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
44800
44801 2007-04-29  Bruno Haible  <bruno@clisp.org>
44802
44803         * MODULES.html.sh (posix_functions): Remove 'contents'.
44804
44805 2007-04-29  Karl Berry  <karl@gnu.org>
44806
44807         * config/srclist.txt (gendocs_template_min): new entry.
44808
44809 2007-04-29  Bruno Haible  <bruno@clisp.org>
44810
44811         Work around fpurge bug on BSD systems.
44812         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
44813         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
44814         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
44815         fpurge to rpl_fpurge if the system already has this function.
44816         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
44817         the case where the system already has this function. Correct invariants
44818         on BSD systems.
44819         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
44820         BSD systems.
44821
44822 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44823
44824         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
44825         proposed by Sven Verdoolaege.
44826
44827         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
44828         options.
44829         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
44830         (usage and help tests): Update
44831
44832 2007-04-29  Bruno Haible  <bruno@clisp.org>
44833
44834         * tests/test-fflush.c (main): Use a file of size 17, not 10.
44835         Print more information in case of failure. Disable a test on BeOS.
44836
44837 2007-04-29  Bruno Haible  <bruno@clisp.org>
44838
44839         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
44840         This helps debugging on systems on which no gdb is available.
44841
44842 2007-04-29  Bruno Haible  <bruno@clisp.org>
44843
44844         * lib/freading.h: Improve comments.
44845         * lib/fwriting.h: Likewise.
44846         * tests/test-freading.c (main): Don't check freading immediately after
44847         repositioning. Needed for glibc.
44848
44849 2007-04-29  Bruno Haible  <bruno@clisp.org>
44850
44851         * lib/freading.c (freading): Trivial simplification.
44852
44853 2007-04-28  Bruno Haible  <bruno@clisp.org>
44854
44855         * tests/test-fwriting.c (main): Also test the interaction between
44856         fflush and fwriting.
44857         * modules/fwriting-tests (Depends-on): Add fflush.
44858
44859         * tests/test-freading.c (main): Also test the interaction between
44860         fflush and freading.
44861         * modules/freading-tests (Depends-on): Add fflush.
44862
44863 2007-04-28  Bruno Haible  <bruno@clisp.org>
44864
44865         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
44866         fseeko and ftello.
44867         Suggested by Eric Blake.
44868
44869 2007-04-28  Jim Meyering  <jim@meyering.net>
44870
44871         Avoid false-negative in gl_STDINT_H's C99 conformance test.
44872         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
44873         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
44874
44875 2007-04-27  Eric Blake  <ebb9@byu.net>
44876
44877         * doc/headers/assert.texi (assert.h): Document assert module use.
44878
44879 2007-04-27  Bruno Haible  <bruno@clisp.org>
44880
44881         * doc/headers/*.texi: New files.
44882         * doc/gnulib.texi (Header File Substitutes): New chapter.
44883         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
44884         dependencies.
44885         (standards.info ,standards.html, standards.dvi): Update dependencies.
44886         (mostlyclean, clean): New targets.
44887
44888 2007-04-27  Bruno Haible  <bruno@clisp.org>
44889
44890         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
44891         * modules/sysexits (Files, Makefile.am): Update.
44892
44893         * lib/sys_socket_.h: Renamed from lib/socket_.h.
44894         * modules/sys_socket (Files, Makefile.am): Update.
44895
44896         * lib/sys_stat_.h: Renamed from lib/stat_.h.
44897         * modules/sys_stat (Files, Makefile.am): Update.
44898
44899 2007-04-27  Eric Blake  <ebb9@byu.net>
44900
44901         * lib/freading.h: Improve comments.
44902         * lib/fwriting.h: Likewise.
44903         * lib/fflush.c: Likewise.
44904
44905         Fix closein for mingw.
44906         * modules/closein-tests: Add tests for closein.
44907         * tests/test-closein.c: New file.
44908         * tests/test-closein.sh: Likewise.
44909         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
44910         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
44911
44912 2007-04-27  Bruno Haible  <bruno@clisp.org>
44913
44914         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
44915         version is < 6.
44916         * lib/math_.h [__DECC]: Likewise.
44917         * lib/stdio_.h [__DECC]: Likewise.
44918         * lib/stdlib_.h [__DECC]: Likewise.
44919         * lib/string_.h [__DECC]: Likewise.
44920         * lib/time_.h [__DECC]: Likewise.
44921         * lib/wchar_.h [__DECC]: Likewise.
44922         * lib/wctype_.h [__DECC]: Likewise.
44923
44924 2007-04-27  Bruno Haible  <bruno@clisp.org>
44925
44926         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
44927
44928 2007-04-27  Bruno Haible  <bruno@clisp.org>
44929
44930         * lib/fflush.c: Add comments.
44931         * modules/fpurge-tests (Depends-on): Add fflush.
44932         * modules/freadable-tests (Depends-on): Likewise.
44933         * modules/fwritable-tests (Depends-on): Likewise.
44934
44935 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
44936
44937         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
44938         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
44939         Report by Bruno Haible <bruno@clisp.org>.
44940
44941 2007-04-26  Eric Blake  <ebb9@byu.net>
44942
44943         Fix fflush on mingw.
44944         * modules/fflush (Depends-on): Add freading.
44945         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
44946         but unread data.
44947
44948 2007-04-26  Eric Blake  <ebb9@byu.net>
44949         and Bruno Haible  <bruno@clisp.org>
44950
44951         Implement freading and fwriting.
44952         * lib/freading.c: New file.
44953         * lib/freading.h: Likewise.
44954         * m4/freading.m4: Likewise.
44955         * modules/freading: Likewise.
44956         * modules/freading-tests: Likewise.
44957         * tests/test-freading.c: Likewise.
44958         * lib/fwriting.c: New file.
44959         * lib/fwriting.h: Likewise.
44960         * m4/fwriting.m4: Likewise.
44961         * modules/fwriting: Likewise.
44962         * modules/fwriting-tests: Likewise.
44963         * tests/test-fwriting.c: Likewise.
44964         * MODULES.html.sh (File stream based Input/Output): Mention them.
44965
44966 2007-04-26  Bruno Haible  <bruno@clisp.org>
44967
44968         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
44969         'long' when we assume it.
44970         Suggested by Eric Blake.
44971
44972 2007-04-26  Bruno Haible  <bruno@clisp.org>
44973
44974         Ensure fseeko, ftello are declared on glibc systems.
44975         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
44976         * modules/fseeko (configure.ac-early): Likewise.
44977         * modules/ftello (configure.ac-early): Likewise.
44978         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
44979         AC_FUNC_FSEEKO for this.
44980         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
44981         (gl_CHECK_FSEEKO): Remove macro.
44982
44983 2007-04-26  Bruno Haible  <bruno@clisp.org>
44984
44985         * tests/test-fflush.c (main): Also check the ftell result after
44986         fflush and fseek/fseeko.
44987         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
44988         file descriptor position cache in the stream.
44989         * lib/fseeko.c (rpl_fseeko): Likewise.
44990
44991 2007-04-26  Bruno Haible  <bruno@clisp.org>
44992
44993         * modules/fflush-tests (Depends-on): Add fseeko.
44994
44995 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
44996             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44997
44998         * lib/argz_.h: ensure error_t definition is obtained in same
44999         mechanism system argz.h would have.
45000         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
45001         argz facilities are known bad.  Err on the side of caution if
45002         cross-compiling.
45003
45004 2007-04-25  Eric Blake  <ebb9@byu.net>
45005
45006         * lib/fpurge.c (includes): Use stdlib.h for free.
45007         * tests/test-fflush.c (main): Also test fflush-fseeko.
45008
45009 2007-04-25  Bruno Haible  <bruno@clisp.org>
45010
45011         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
45012         * lib/fseeko.c: New file.
45013         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
45014         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
45015         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
45016         gl_FUNC_FSEEKO.
45017         (gl_FUNC_FSEEKO): Invoke it.
45018         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
45019         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
45020         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
45021
45022 2007-04-25  Bruno Haible  <bruno@clisp.org>
45023
45024         * modules/fflush (Depends-on): Add ftello.
45025
45026 2007-04-25  Bruno Haible  <bruno@clisp.org>
45027
45028         * modules/ftello-tests: New file.
45029         * tests/test-ftello.c: New file.
45030
45031         * modules/ftello: New file.
45032         * m4/ftello.m4: New file.
45033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
45034         HAVE_FTELLO.
45035         * lib/stdio_.h (ftello): New declaration.
45036         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
45037         HAVE_FTELLO.
45038
45039 2007-04-25  Bruno Haible  <bruno@clisp.org>
45040
45041         * modules/fseeko-tests: New file.
45042         * tests/test-fseeko.c: New file.
45043
45044         * modules/fseeko: New file.
45045         * m4/fseeko.m4: New file.
45046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
45047         HAVE_FSEEKO.
45048         * lib/stdio_.h (fseeko): New declaration.
45049         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
45050         HAVE_FSEEKO.
45051
45052 2007-04-25  Bruno Haible  <bruno@clisp.org>
45053
45054         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
45055
45056 2007-04-25  Bruno Haible  <bruno@clisp.org>
45057
45058         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
45059         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
45060         * tests/test-unistd.c: Likewise.
45061         * tests/test-fcntl.c: Likewise.
45062
45063 2007-04-23  Eric Blake  <ebb9@byu.net>
45064
45065         * lib/fflush.c: Fix missing include.
45066         Reported by Bruno Haible.
45067
45068 2007-04-23  Bruno Haible  <bruno@clisp.org>
45069
45070         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
45071         Reported by Eric Blake.
45072
45073 2007-04-23  Bruno Haible  <bruno@clisp.org>
45074
45075         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
45076
45077 2007-04-23  Bruno Haible  <bruno@clisp.org>
45078
45079         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
45080
45081 2007-04-23  Bruno Haible  <bruno@clisp.org>
45082
45083         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
45084         Needed on HP-UX 11.
45085
45086 2007-04-16  Eric Blake  <ebb9@byu.net>
45087
45088         Make fflush rely on fpurge.
45089         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
45090         open coding all variants.
45091         * modules/fflush (Depends-on): Add fpurge and unistd.
45092         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
45093         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
45094
45095         Fix --with-tests compilation on cygwin.
45096         * modules/argmatch-tests (Makefile.am): List gnulib library first
45097         in LDADD.
45098         * modules/argp-tests (Makefile.am): Likewise.
45099         * modules/array-list-tests (Makefile.am): Likewise.
45100         * modules/array-oset-tests (Makefile.am): Likewise.
45101         * modules/avltree-list-tests (Makefile.am): Likewise.
45102         * modules/avltree-oset-tests (Makefile.am): Likewise.
45103         * modules/avltreehash-list-tests (Makefile.am): Likewise.
45104         * modules/carray-list-tests (Makefile.am): Likewise.
45105         * modules/dirname-tests (Makefile.am): Likewise.
45106         * modules/frexp-tests (Makefile.am): Likewise.
45107         * modules/isnanl-tests (Makefile.am): Likewise.
45108         * modules/linked-list-tests (Makefile.am): Likewise.
45109         * modules/linkedhash-list-tests (Makefile.am): Likewise.
45110         * modules/lock-tests (Makefile.am): Likewise.
45111         * modules/rbtree-list-tests (Makefile.am): Likewise.
45112         * modules/rbtree-oset-tests (Makefile.am): Likewise.
45113         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
45114         * modules/tls-tests (Makefile.am): Likewise.
45115         * modules/tsearch-tests (Makefile.am): Likewise.
45116         * modules/xvasprintf-tests (Makefile.am): Likewise.
45117
45118         Fix fpurge for cygwin.
45119         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
45120         value.
45121         * modules/fpurge-tests (Depends-on): Clean up trash.
45122
45123 2007-04-16  Simon Josefsson  <simon@josefsson.org>
45124
45125         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
45126
45127         * m4/autobuild.m4: Re-indent.
45128
45129 2007-04-13  Bruno Haible  <bruno@clisp.org>
45130
45131         * modules/fpurge-tests: New file.
45132         * tests/test-fpurge.c: New file.
45133
45134         * modules/fpurge: New file.
45135         * lib/fpurge.h: New file.
45136         * lib/fpurge.c: New file.
45137         * m4/fpurge.m4: New file.
45138
45139 2007-04-13  Bruno Haible  <bruno@clisp.org>
45140
45141         * modules/fbufmode-tests: New file.
45142         * tests/test-fbufmode.c: New file.
45143
45144         * modules/fbufmode: New file.
45145         * lib/fbufmode.h: New file.
45146         * lib/fbufmode.c: New file.
45147         * m4/fbufmode.m4: New file.
45148
45149 2007-04-13  Bruno Haible  <bruno@clisp.org>
45150
45151         * modules/fwritable-tests: New file.
45152         * tests/test-fwritable.c: New file.
45153
45154         * modules/fwritable: New file.
45155         * lib/fwritable.h: New file.
45156         * lib/fwritable.c: New file.
45157         * m4/fwritable.m4: New file.
45158
45159 2007-04-13  Bruno Haible  <bruno@clisp.org>
45160
45161         * modules/freadable-tests: New file.
45162         * tests/test-freadable.c: New file.
45163
45164         * modules/freadable: New file.
45165         * lib/freadable.h: New file.
45166         * lib/freadable.c: New file.
45167         * m4/freadable.m4: New file.
45168
45169 2007-04-13  Bruno Haible  <bruno@clisp.org>
45170
45171         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
45172         MOSTLYCLEANFILES.
45173
45174 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45175
45176         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
45177         gzip bootstrap.conf to avoid dragging in i18n machinery.
45178         (gnulib_tool_option): Use it.
45179
45180 2007-04-13  Bruno Haible  <bruno@clisp.org>
45181
45182         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
45183         %F directives.
45184         * tests/test-vasprintf-posix.c (test_function): Likewise.
45185         * tests/test-snprintf-posix.h (test_function): Likewise.
45186         * tests/test-sprintf-posix.h (test_function): Likewise.
45187         * tests/test-fprintf-posix.h (test_function): Likewise.
45188         * tests/test-printf-posix.h (test_function): Likewise.
45189         * tests/test-fprintf-posix.out: Likewise.
45190
45191 2007-04-13  Bruno Haible  <bruno@clisp.org>
45192
45193         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
45194         * modules/tls-tests (configure.ac): Likewise.
45195         Reported by Arto C. Nirkko <anirkko@insel.ch>.
45196
45197 2007-04-13  Bruno Haible  <bruno@clisp.org>
45198
45199         * lib/tls.c (glthread_tls_get): Fix return type.
45200         Patch by Arto C. Nirkko <anirkko@insel.ch>.
45201
45202 2007-04-12  Eric Blake  <ebb9@byu.net>
45203
45204         * modules/gettime (Depends-on): Remove gettime.
45205         Reported by Dmitry V. Levin.
45206
45207 2007-04-12  Bruno Haible  <bruno@clisp.org>
45208
45209         * modules/fflush (Include): Mention <stdio.h>.
45210         * modules/strtoimax (Include): Mention <inttypes.h>.
45211         * modules/strtoumax (Include): Likewise.
45212
45213 2007-04-12  Eric Blake  <ebb9@byu.net>
45214
45215         * .cvsignore: New file.
45216         * .gitignore: Likewise.
45217
45218 2007-04-12  Bruno Haible  <bruno@clisp.org>
45219
45220         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
45221         not before, since $(LDADD) often contains libgnu.a.
45222         * modules/striconv-tests (test_striconv_LDADD): Likewise.
45223         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
45224         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
45225         Needed on Cygwin.
45226
45227 2007-04-12  Eric Blake  <ebb9@byu.net>
45228
45229         Work around glibc's failure to flush stdin on fclose.
45230         * lib/closein.c (close_stdin): Flush stdin before closing.
45231
45232         Work around glibc's failure to reset seekable stdin on exit.
45233         * modules/closein: New module.
45234         * lib/closein.c: New file.
45235         * lib/closein.h: Likewise.
45236         * m4/closein.m4: Likewise.
45237         * MODULES.html.sh (File stream based Input/Output): Document it.
45238
45239 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45240
45241         * gnulib-tool: Rename generated 'autobuild' script to
45242         'do-autobuild' in --create-megatestdir output.
45243
45244         * doc/gnulib.texi (Build robot for gnulib): Fix.
45245
45246 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45247
45248         * modules/sysexits (Depends-on): Add absolute-header.
45249
45250 2007-04-12  Eric Blake  <ebb9@byu.net>
45251
45252         No need to preserve errno on success.
45253         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
45254         Reported by Bruno Haible.
45255
45256 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45257
45258         * MODULES.html.sh (Support for maintaining and releasing
45259         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
45260
45261 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45262
45263         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
45264
45265 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45266
45267         * modules/autobuild: New module.
45268
45269         * m4/autobuild.m4: New file.
45270
45271 2007-04-11  Bruno Haible  <bruno@clisp.org>
45272
45273         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
45274         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
45275         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
45276         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
45277         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45278         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45279         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45280         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45281         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45282         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45283         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
45284         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45285         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45286         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
45287         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45288         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45289         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
45290         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45291         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45292         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
45293         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45294         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45295         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
45296         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45297         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45298         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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         Reported by Eric Blake.
45302
45303 2007-04-11  Bruno Haible  <bruno@clisp.org>
45304
45305         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
45306
45307 2007-04-10  Bruno Haible  <bruno@clisp.org>
45308
45309         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
45310         for NaN and Infinity. Needed on FreeBSD 6.1.
45311         * tests/test-vasnprintf-posix.c (test_function): Undo last change
45312         regarding results for "%010a" of Infinity and NaN.
45313         * tests/test-vasprintf-posix.c (test_function): Likewise.
45314         * tests/test-snprintf-posix.h (test_function): Likewise.
45315         * tests/test-sprintf-posix.h (test_function): Likewise.
45316         * tests/test-fprintf-posix.h (test_function): Likewise.
45317         * tests/test-printf-posix.h (test_function): Likewise.
45318         * tests/test-fprintf-posix.out: Likewise.
45319
45320 2007-04-10  Bruno Haible  <bruno@clisp.org>
45321
45322         * modules/locale-tests: New file.
45323         * tests/test-locale.c: New file.
45324
45325         * modules/locale: New file.
45326         * lib/locale_.h: New file.
45327         * m4/locale_h.m4: New file.
45328
45329 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
45330             Bruno Haible  <bruno@clisp.org>
45331
45332         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
45333         be determined, test for availability of the copysignf, copysign,
45334         copysignl functions.
45335         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
45336         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
45337         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
45338
45339 2007-04-09  Eric Blake  <ebb9@byu.net>
45340
45341         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
45342         * modules/stdio (Makefile.am): Support fflush.
45343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45344         * modules/fflush: New file.
45345         * lib/fflush.c: Likewise.
45346         * m4/fflush.m4: Likewise.
45347         * modules/fflush-tests: New test.
45348         * tests/test-fflush.c: Likewise.
45349         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
45350
45351 2007-04-06  Bruno Haible  <bruno@clisp.org>
45352
45353         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
45354         (VASNPRINTF): Use signbit for faster determination whether to print a
45355         minus sign.
45356         * modules/vasnprintf (Files): Remove lib/float+.h.
45357         * modules/fprintf-posix (Depends-on): Add signbit.
45358         * modules/snprintf-posix (Depends-on): Likewise.
45359         * modules/sprintf-posix (Depends-on): Likewise.
45360         * modules/vasnprintf-posix (Depends-on): Likewise.
45361         * modules/vasprintf-posix (Depends-on): Likewise.
45362         * modules/vfprintf-posix (Depends-on): Likewise.
45363         * modules/vsnprintf-posix (Depends-on): Likewise.
45364         * modules/vsprintf-posix (Depends-on): Likewise.
45365
45366 2007-04-06  Bruno Haible  <bruno@clisp.org>
45367
45368         * tests/test-frexp.c (main): Test also the sign bit of zero results.
45369         * tests/test-frexpl.c (main): Likewise.
45370         * tests/test-ldexpl.c (main): Likewise.
45371         * modules/frexp-tests (Depends-on): Add signbit.
45372         * modules/frexpl-tests (Depdends-on): Likewise.
45373         * modules/ldexpl-tests (Depdends-on): Likewise.
45374
45375 2007-04-06  Bruno Haible  <bruno@clisp.org>
45376
45377         * modules/signbit-tests: New file.
45378         * tests/test-signbit.c: New file.
45379
45380         * modules/signbit: New file.
45381         * lib/signbitf.c: New file.
45382         * lib/signbitd.c: New file.
45383         * lib/signbitl.c: New file.
45384         * m4/signbit.m4: New file.
45385         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
45386         (signbit): New macro.
45387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
45388         REPLACE_SIGNBIT.
45389         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
45390         REPLACE_FREXPL into math.h.
45391
45392 2007-04-06  Bruno Haible  <bruno@clisp.org>
45393
45394         * modules/isnanf-nolibm-tests: New file.
45395         * tests/test-isnanf.c: New file.
45396
45397         * modules/isnanf-nolibm: New file.
45398         * lib/isnanf.h: New file.
45399         * lib/isnanf.c: New file.
45400         * lib/isnan.c: Consider the USE_FLOAT macro.
45401         * m4/isnanf.m4: New file.
45402
45403 2007-04-06  Bruno Haible  <bruno@clisp.org>
45404
45405         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
45406         (Link): New section.
45407
45408         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
45409
45410 2007-04-06  Bruno Haible  <bruno@clisp.org>
45411
45412         Assume the 'long double' type.
45413         * m4/longdouble.m4: Remove file.
45414         * config/srclist.txt: Don't mention longdouble.m4.
45415         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
45416         * lib/float+.h: Likewise.
45417         * lib/frexp.c: Likewise.
45418         * lib/printf-args.h: Likewise.
45419         * lib/printf-args.c: Likewise.
45420         * lib/printf-frexp.c: Likewise.
45421         * lib/printf-parse.c: Likewise.
45422         * lib/vasnprintf.c: Likewise.
45423         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
45424         * m4/intl.m4: Likewise.
45425         * m4/isnanl.m4: Likewise.
45426         * m4/printf.m4: Likewise.
45427         * m4/printf-frexpl.m4: Likewise.
45428         * m4/vasnprintf.m4: Likewise.
45429         * modules/allocsa (Files): Remove m4/longdouble.m4.
45430         * modules/gettext (Files): Likewise.
45431         * modules/relocatable-prog-wrapper (Files): Likewise.
45432         * modules/vasnprintf (Files): Likewise.
45433         * modules/isnanl (Files): Likewise.
45434         (Include): Simplify.
45435         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
45436         (Include): Simplify.
45437         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
45438         (Include): Simplify.
45439         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
45440         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45441         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
45442         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45443         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45444         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45445         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
45446         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45447         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45448         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45449         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
45450         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45451         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
45452         * tests/test-isnanl.c: Likewise.
45453         * tests/test-snprintf-posix.h: Likewise.
45454         * tests/test-sprintf-posix.h: Likewise.
45455         * tests/test-vasnprintf-posix.c: Likewise.
45456         * tests/test-vasnprintf-posix2.c: Likewise.
45457         * tests/test-vasprintf-posix.c: Likewise.
45458
45459 2007-04-06  Bruno Haible  <bruno@clisp.org>
45460
45461         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
45462         * lib/math_.h [__DECC]: Include the overridden include file through
45463         #include_next, outside the double-inclusion guard.
45464         * lib/stdio_.h [__DECC]: Likewise.
45465         * lib/stdlib_.h [__DECC]: Likewise.
45466         * lib/string_.h [__DECC]: Likewise.
45467         * lib/time_.h [__DECC]: Likewise.
45468         * lib/wchar_.h [__DECC]: Likewise.
45469         * lib/wctype_.h [__DECC]: Likewise.
45470         * lib/inttypes_.h [__DECC]: Likewise.
45471         Reported by Albert Chin <china@thewrittenword.com> in
45472         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
45473
45474 2007-04-04  Eric Blake  <ebb9@byu.net>
45475
45476         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
45477         1.5.x.
45478
45479 2007-04-04  Bruno Haible  <bruno@clisp.org>
45480
45481         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
45482         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
45483
45484 2007-04-04  Bruno Haible  <bruno@clisp.org>
45485
45486         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
45487         results for "%010a" of Infinity and NaN.
45488         * tests/test-vasprintf-posix.c (test_function): Likewise.
45489         * tests/test-snprintf-posix.h (test_function): Likewise.
45490         * tests/test-sprintf-posix.h (test_function): Likewise.
45491         * tests/test-fprintf-posix.h (test_function): Remove these tests.
45492         * tests/test-printf-posix.h (test_function): Likewise.
45493         * tests/test-fprintf-posix.out: Update.
45494         Needed for FreeBSD 6.1.
45495
45496 2007-04-04  Bruno Haible  <bruno@clisp.org>
45497
45498         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
45499         directly used by the gnulib modules nor by gnulib-tool.
45500
45501 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
45502
45503         * DEPENDENCIES: Give overall description of version dependency
45504         desirability.  Use more-typical names for apps.
45505         Add shell, coreutils, diffutils, grep, tar, gzip.
45506
45507 2007-04-04  Simon Josefsson  <simon@josefsson.org>
45508
45509         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
45510
45511 2007-04-04  Karl Berry  <karl@gnu.org>
45512
45513         * MODULES.html.sh (func_module): missing '.
45514
45515 2007-04-03  Bruno Haible  <bruno@clisp.org>
45516
45517         * modules/argmatch-tests (Makefile.am): New variable
45518         test_argmatch_LDADD.
45519         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
45520         * modules/array-list-tests (Makefile.am): New variable
45521         test_array_list_LDADD.
45522         * modules/array-oset-tests (Makefile.am): New variable
45523         test_array_oset_LDADD.
45524         * modules/avltree-list-tests (Makefile.am): New variable
45525         test_avltree_list_LDADD.
45526         * modules/avltree-oset-tests (Makefile.am): New variable
45527         test_avltree_oset_LDADD.
45528         * modules/avltreehash-list-tests (Makefile.am): New variable
45529         test_avltreehash_list_LDADD.
45530         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
45531         test_canonicalize_lgpl_LDADD.
45532         * modules/carray-list-tests (Makefile.am): New variable
45533         test_carray_list_LDADD.
45534         * modules/dirname-tests (Makefile.am): New variable
45535         test_dirname_LDADD.
45536         * modules/linked-list-tests (Makefile.am): New variable
45537         test_linked_list_LDADD.
45538         * modules/linkedhash-list-tests (Makefile.am): New variable
45539         test_linkedhash_list_LDADD.
45540         * modules/rbtree-list-tests (Makefile.am): New variable
45541         test_rbtree_list_LDADD.
45542         * modules/rbtree-oset-tests (Makefile.am): New variable
45543         test_rbtree_oset_LDADD.
45544         * modules/rbtreehash-list-tests (Makefile.am): New variable
45545         test_rbtreehash_list_LDADD.
45546         * modules/xvasprintf-tests (Makefile.am): New variable
45547         test_xvasprintf_LDADD.
45548         Reported by Eric Blake.
45549
45550 2007-04-03  Eric Blake  <ebb9@byu.net>
45551
45552         * DEPENDENCIES: Weaken m4 requirements.
45553
45554 2007-04-03  Bruno Haible  <bruno@clisp.org>
45555
45556         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
45557         * modules/isnanl-tests (configure.ac): Likewise.
45558
45559 2007-04-03  Ben Pfaff  <blp@gnu.org>
45560
45561         * modules/iconv_open: Add $(srcdir)/ to source directory
45562         references in Makefile fragments that call gperf, to fix VPATH
45563         builds.
45564
45565 2007-04-03  Bruno Haible  <bruno@clisp.org>
45566
45567         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
45568         * lib/ldexpl.c: Undo last change.
45569
45570 2007-04-03  Bruno Haible  <bruno@clisp.org>
45571
45572         * modules/printf-frexpl (Depends-on): Undo last change.
45573         (Files): Add m4/ldexpl.m4.
45574
45575 2007-04-03  Bruno Haible  <bruno@clisp.org>
45576
45577         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
45578         * modules/isnanl (Link): New section.
45579
45580         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
45581         * modules/frexp (Link): New section.
45582
45583         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
45584         * modules/frexpl (Link): New section.
45585
45586         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
45587         * modules/ldexpl (Link): New section.
45588
45589 2007-04-03  Bruno Haible  <bruno@clisp.org>
45590
45591         * modules/TEMPLATE-EXTENDED: New file.
45592         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
45593
45594 2007-04-03  Bruno Haible  <bruno@clisp.org>
45595
45596         * DEPENDENCIES: New file.
45597         Suggested by Simon Josefsson.
45598
45599 2007-04-03  Bruno Haible  <bruno@clisp.org>
45600
45601         * doc/gnulib.texi: Escape @.
45602
45603 2007-04-03  James Youngman  <jay@gnu.org>
45604         and Paul Eggert  <eggert@cs.ucla.edu>
45605
45606         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
45607         birthtime on all systems that have birthtime, not just those which
45608         use st_birthtimensec rather than st_birthtim.  Putting zero in
45609         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
45610         that the birth time is not available for files on an NFS mount.
45611
45612 2007-04-03  Simon Josefsson  <simon@josefsson.org>
45613
45614         * modules/memxor: Move back from crypto/, suggested by Bruno.
45615         * modules/crypto/hmac-sha1: Fix memxor dependency.
45616
45617         * modules/crypto/gc: Moved from ../.
45618
45619 2007-04-02  Eric Blake  <ebb9@byu.net>
45620
45621         * lib/ldexpl.c (includes): Avoid libm.
45622
45623         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
45624
45625 2007-04-02  Bruno Haible  <bruno@clisp.org>
45626
45627         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
45628         on IRIX.
45629
45630 2007-04-02  Bruno Haible  <bruno@clisp.org>
45631
45632         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
45633         x86 or x86_64 platforms running MacOS X.
45634         Reported by Ryan Schmidt <@ryandesign.com>.
45635
45636 2007-04-02  Bruno Haible  <bruno@clisp.org>
45637
45638         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
45639         i386.
45640
45641 2007-04-01  Simon Josefsson  <simon@josefsson.org>
45642
45643         * modules/crypto/arcfour: Moved from ../.
45644         * modules/crypto/arcfour-tests: Moved from ../.
45645         * modules/crypto/arctwo: Moved from ../.
45646         * modules/crypto/arctwo-tests: Moved from ../.
45647         * modules/crypto/des: Moved from ../.
45648         * modules/crypto/des-tests: Moved from ../.
45649         * modules/crypto/gc-arcfour: Moved from ../.
45650         * modules/crypto/gc-arcfour-tests: Moved from ../.
45651         * modules/crypto/gc-arctwo: Moved from ../.
45652         * modules/crypto/gc-arctwo-tests: Moved from ../.
45653         * modules/crypto/gc-des: Moved from ../.
45654         * modules/crypto/gc-des-tests: Moved from ../.
45655         * modules/crypto/gc-hmac-md5: Moved from ../.
45656         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
45657         * modules/crypto/gc-hmac-sha1: Moved from ../.
45658         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
45659         * modules/crypto/gc-md2: Moved from ../.
45660         * modules/crypto/gc-md2-tests: Moved from ../.
45661         * modules/crypto/gc-md4: Moved from ../.
45662         * modules/crypto/gc-md4-tests: Moved from ../.
45663         * modules/crypto/gc-md5: Moved from ../.
45664         * modules/crypto/gc-md5-tests: Moved from ../.
45665         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
45666         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
45667         * modules/crypto/gc-random: Moved from ../.
45668         * modules/crypto/gc-rijndael: Moved from ../.
45669         * modules/crypto/gc-rijndael-tests: Moved from ../.
45670         * modules/crypto/gc-sha1: Moved from ../.
45671         * modules/crypto/gc-sha1-tests: Moved from ../.
45672         * modules/crypto/gc-tests: Moved from ../.
45673         * modules/crypto/hmac-md5: Moved from ../.
45674         * modules/crypto/hmac-md5-tests: Moved from ../.
45675         * modules/crypto/hmac-sha1: Moved from ../.
45676         * modules/crypto/hmac-sha1-tests: Moved from ../.
45677         * modules/crypto/md2: Moved from ../.
45678         * modules/crypto/md2-tests: Moved from ../.
45679         * modules/crypto/md4: Moved from ../.
45680         * modules/crypto/md4-tests: Moved from ../.
45681         * modules/crypto/md5: Moved from ../.
45682         * modules/crypto/md5-tests: Moved from ../.
45683         * modules/crypto/memxor: Moved from ../.
45684         * modules/crypto/rijndael: Moved from ../.
45685         * modules/crypto/rijndael-tests: Moved from ../.
45686         * modules/crypto/sha1: Moved from ../.
45687
45688 2007-03-30  James Youngman  <jay@gnu.org>
45689
45690         * tests/test-stat-time.c (prepare_test): use chmod() rather than
45691         rename() to change the ctime of a file (because ctime is unaffected
45692         by rename on jfs2 on AIX 5.1).
45693         (main): Start by doing cleanup, in case a previous run failed leaving
45694         test files behind.
45695
45696 2007-03-31  Bruno Haible  <bruno@clisp.org>
45697
45698         Support old proprietary implementations of iconv.
45699         * modules/iconv_open: New file.
45700         * lib/iconv_.h: New file.
45701         * m4/iconv_h.m4: New file.
45702         * lib/iconv_open.c: New file.
45703         * lib/iconv_open-aix.gperf: New file.
45704         * lib/iconv_open-hpux.gperf: New file.
45705         * lib/iconv_open-irix.gperf: New file.
45706         * lib/iconv_open-osf.gperf: New file.
45707         * m4/iconv_open.m4: New file.
45708         * modules/linebreak (Depends-on): Add iconv_open.
45709         * modules/striconv (Depends-on): Likewise.
45710         * modules/striconveh (Depends-on): Likewise.
45711         * modules/unicodeio (Depends-on): Likewise.
45712         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
45713         (iconv_t)(-1).
45714         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
45715         conversion if cd is (iconv_t)(-1).
45716         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
45717         is not possible.
45718
45719 2007-03-31  Bruno Haible  <bruno@clisp.org>
45720
45721         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45722         work on Solaris either. Protect also second use of "autodetect_jp".
45723
45724 2007-03-31  Bruno Haible  <bruno@clisp.org>
45725
45726         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
45727         the function is not present.
45728
45729 2007-03-31  Bruno Haible  <bruno@clisp.org>
45730
45731         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
45732         the function is not present.
45733
45734 2007-03-31  Bruno Haible  <bruno@clisp.org>
45735
45736         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
45737         a bug in HP-UX iconv_open().
45738
45739 2007-03-31  Bruno Haible  <bruno@clisp.org>
45740
45741         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
45742         (Mathematics <math.h>): New section, add fpieee.
45743         (Input/output <stdio.h>): Add fseterr.
45744         (Mathematics <math.h>): New section, add printf-frexp.
45745         (Container data structures): Add sublist.
45746         (Core language properties): Add fpucw, inline.
45747         (Functions for greatest-width integer types <inttypes.h>): Add
45748         imaxabs, imaxdiv, inttypes.
45749         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
45750         isnanl-nolibm, ldexp.
45751         (Mathematics <math.h>): New section, add printf-frexpl.
45752         (Support for systems lacking POSIX:2001): Add fprintf-posix,
45753         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
45754         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
45755         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
45756         (Unicode string functions): Add unistr/u*-mbtoucr.
45757         (Java): Add javacomp-script, javaexec-script.
45758         (C#): Add csharpcomp-script, csharpexec-script.
45759         (Support for building libraries and executables): Add havelib,
45760         relocatable-*.
45761         (Support for maintaining and releasing projects): Renamed from
45762         'Support for maintaining and release projects'. Add announce-gen.
45763
45764 2007-03-31  Bruno Haible  <bruno@clisp.org>
45765
45766         * README: Talk primarily about git.
45767         (git and CVS): Renamed from CVS.
45768         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
45769         gnulib is available through git.
45770         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
45771
45772 2007-03-30  Bruno Haible  <bruno@clisp.org>
45773
45774         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
45775         * lib/poll_.h: Likewise.
45776         * lib/stat_.h: Likewise.
45777         * lib/sys_time_.h: Likewise.
45778         * lib/sysexit_.h: Likewise.
45779         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
45780         * lib/stdbool_.h: Likewise.
45781         * lib/byteswap_.h: Add double-inclusion guard.
45782
45783 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
45784
45785         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
45786
45787 2007-03-30  Karl Berry  <karl@gnu.org>
45788
45789         * config/srclist-update: double space after USA in the license
45790         substitution, since that's how it's usually (?) written.
45791
45792 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45793
45794         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
45795         reported by Bruno Haible.
45796
45797 2007-03-29  Bruno Haible  <bruno@clisp.org>
45798
45799         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
45800         a bug in AIX iconv().
45801
45802 2007-03-29  Bruno Haible  <bruno@clisp.org>
45803
45804         * modules/ldexpl-tests: New file.
45805         * tests/test-ldexpl.c: New file.
45806
45807 2007-03-29  Bruno Haible  <bruno@clisp.org>
45808
45809         * lib/ldexpl.c: Include fpucw.h.
45810         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
45811         multiplication.
45812         * modules/ldexpl (Depends-on): Add fpucw.
45813
45814 2007-03-29  Bruno Haible  <bruno@clisp.org>
45815
45816         * modules/ldexpl: New file.
45817         * m4/ldexpl.m4: New file.
45818         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
45819         set.
45820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
45821         REPLACE_LDEXPL.
45822         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
45823         REPLACE_LDEXPL.
45824         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45825         gl_FUNC_LDEXPL_WORKS.
45826         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
45827         * modules/mathl (Files): Remove lib/ldexpl.c.
45828         (Depends-on): Add ldexpl.
45829
45830 2007-03-29  Bruno Haible  <bruno@clisp.org>
45831
45832         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
45833
45834 2007-03-29  Bruno Haible  <bruno@clisp.org>
45835
45836         * tests/test-striconveh.c (main): Don't assume that a direct conversion
45837         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
45838         and possibly also HP-UX.
45839         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45840         work on AIX, IRIX, HP-UX, OSF/1.
45841         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45842         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45843         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45844         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45845         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
45846         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45847
45848 2007-03-29  Bruno Haible  <bruno@clisp.org>
45849
45850         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
45851
45852 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45853
45854         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
45855         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
45856
45857 2007-03-29  Eric Blake  <ebb9@byu.net>
45858
45859         * lib/acl-internal.h: Remove redundant include.
45860         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
45861         Cygwin when a file is locked.
45862
45863 2007-03-29  Bruno Haible  <bruno@clisp.org>
45864
45865         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
45866         file.
45867         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
45868
45869 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45870
45871         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
45872         try to remove a parent directory if the child couldn't be removed
45873         (except for the first rmdir, which could fail because the child
45874         doesn't exist).  Problem reported by Jeff Blaine in
45875         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
45876
45877 2007-03-28  Bruno Haible  <bruno@clisp.org>
45878
45879         * lib/striconveh.c (utf8conv_carefully): New function.
45880         (mem_cd_iconveh_internal): Invoke it.
45881
45882 2007-03-28  Bruno Haible  <bruno@clisp.org>
45883
45884         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
45885         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
45886         input.
45887         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
45888         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
45889         unistr/u8-uctomb.
45890
45891 2007-03-28  Bruno Haible  <bruno@clisp.org>
45892
45893         * modules/unistr/u8-mbtoucr: New file.
45894         * lib/unistr/u8-mbtoucr.c: New file.
45895         * modules/unistr/u16-mbtoucr: New file.
45896         * lib/unistr/u16-mbtoucr.c: New file.
45897         * modules/unistr/u16-mbtoucr: New file.
45898         * lib/unistr/u16-mbtoucr.c: New file.
45899         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
45900
45901 2007-03-27  Simon Josefsson  <simon@josefsson.org>
45902             Bruno Haible  <bruno@clisp.org>
45903
45904         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
45905         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
45906         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
45907
45908         * m4/stdio_h.m4: Add stubs for vasprintf too.
45909
45910         * modules/stdio: Support vasprintf in sed command.
45911
45912         * modules/vasprintf: Depend on stdio for prototypes.  Remove
45913         vasprintf.h.  Add stdio module indicator.
45914
45915         * lib/stdio_.h: Declare asprintf and vasprintf, based on
45916         vasprintf.h.
45917
45918         * lib/vasprintf.h: File removed.
45919
45920         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
45921         * lib/vasprintf.c: Ditto.
45922         * lib/xvasprintf.c: Ditto.
45923         * tests/test-vasprintf-posix.c: Ditto.
45924         * tests/test-vasprintf.c: Ditto.
45925
45926 2007-03-27  Bruno Haible  <bruno@clisp.org>
45927
45928         Make vasnprintf multithread-safe.
45929         * lib/vasnprintf.c (decimal_point_char): New function.
45930         (VASNPRINTF): Use it.
45931         Suggested by Simon Josefsson.
45932
45933 2007-03-27  Eric Blake  <ebb9@byu.net>
45934
45935         Support sub-second birthtime on cygwin.
45936         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
45937         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
45938         (get_stat_birthtime): Also work with st_birthtim.
45939
45940 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
45941
45942         * lib/stat-time.h (USE_BIRTHTIME): Remove.
45943         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
45944         (get_stat_birthtime_ns): Do not try to use "spare" fields.
45945         (get_stat_birthtime_ns): Simplify compile-time tests.
45946         (get_stat_birthtime): Change the API to look like
45947         get_stat_mtime etc., except return a negative tv_nsec on error.
45948         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
45949         Don't check for "spare" fields.
45950         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
45951         or for struct stat.st_birthtime, as these tests aren't used.
45952         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
45953
45954 2007-03-27  Bruno Haible  <bruno@clisp.org>
45955
45956         * lib/stat-time.h: Include <sys/stat.h>.
45957
45958 2007-03-27  James Youngman  <jay@gnu.org>
45959
45960         * lib/stat-time.h (get_stat_birthtime): New function for
45961           retrieving st_birthtime as provided by UFS2 (hence *BSD).
45962         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
45963           and its variants.
45964         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
45965         * modules/stat-time-test: New file.
45966         * tests/test-stat-time.c: New test, devised by Bruno Haible.
45967
45968 2007-03-26  Bruno Haible  <bruno@clisp.org>
45969
45970         Better support of signalling NaNs.
45971         * lib/atanl.c: Include isnanl.h.
45972         (atanl): Perform test for NaN at the beginning of the function and
45973         through a call to isnanl.
45974         * lib/cosl.c: Include isnanl.h.
45975         (cosl): Perform test for NaN at the beginning of the function and
45976         through a call to isnanl.
45977         * lib/ldexpl.c: Include isnanl.h.
45978         (ldexpl): Perform test for NaN through a call to isnanl.
45979         * lib/logl.c: Include isnanl.h.
45980         (logl): Perform test for NaN at the beginning of the function and
45981         through a call to isnanl.
45982         * lib/sinl.c: Include isnanl.h.
45983         (sinl): Perform test for NaN at the beginning of the function and
45984         through a call to isnanl.
45985         * lib/sqrtl.c: Include isnanl.h.
45986         (sqrtl): Perform test for NaN at the beginning of the function and
45987         through a call to isnanl.
45988         * lib/tanl.c: Include isnanl.h.
45989         (tanl): Perform test for NaN at the beginning of the function and
45990         through a call to isnanl.
45991         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
45992         * modules/mathl (Depends-on): Add isnanl.
45993
45994 2007-03-26  Eric Blake  <ebb9@byu.net>
45995
45996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
45997         regression in logic sense of previous patch.
45998
45999 2007-03-26  Bruno Haible  <bruno@clisp.org>
46000
46001         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
46002         unportable shell command "if ! ...".
46003         Reported by Ralf Wildenhues.
46004
46005 2007-03-25  Bruno Haible  <bruno@clisp.org>
46006
46007         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
46008         <sysexits.h> file, and only add EX_CONFIG.
46009         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
46010         absolute file name and whether it is sufficient. Substitute also
46011         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
46012         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
46013         ABSOLUTE_SYSEXITS_H into sysexits.h.
46014
46015 2007-03-25  Bruno Haible  <bruno@clisp.org>
46016
46017         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
46018         hints is NULL.
46019
46020 2007-03-25  Bruno Haible  <bruno@clisp.org>
46021
46022         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
46023         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
46024
46025 2007-03-25  Bruno Haible  <bruno@clisp.org>
46026
46027         * lib/vasnprintf.c: Include langinfo.h.
46028         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
46029         multithread-safe.
46030         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
46031         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
46032         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46033         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46034         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46035         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46036         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46037         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
46038         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46039         Reported by Simon Josefsson.
46040
46041 2007-03-25  Bruno Haible  <bruno@clisp.org>
46042
46043         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
46044         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
46045         * modules/vasnprintf (Depends-on): Add stdint.
46046
46047 2007-03-25  Bruno Haible  <bruno@clisp.org>
46048
46049         * modules/fpieee: New file.
46050         * m4/fpieee.m4: New file.
46051         * modules/isnan-nolibm (Depends-on): Add fpieee.
46052         * modules/isnanl-nolibm (Depends-on): Add fpieee.
46053         * modules/isnanl (Depends-on): Add fpieee.
46054
46055 2007-03-25  Bruno Haible  <bruno@clisp.org>
46056
46057         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
46058
46059 2007-03-25  Bruno Haible  <bruno@clisp.org>
46060
46061         Avoid test failures on IRIX 6.5.
46062         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
46063         (main): Use it.
46064         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
46065         macros.
46066         (main): Use them.
46067
46068 2007-03-25  Bruno Haible  <bruno@clisp.org>
46069
46070         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
46071         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
46072         exists but doesn't work.
46073         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
46074         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
46075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
46076         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
46077
46078 2007-03-25  Bruno Haible  <bruno@clisp.org>
46079
46080         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
46081         returns inf. Needed on IRIX 6.5.
46082
46083 2007-03-25  Bruno Haible  <bruno@clisp.org>
46084
46085         * tests/test-frexpl.c: Include isnanl-nolibm.h.
46086         (main): Use isnanl instead of x != x idiom.
46087         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
46088
46089         * tests/test-frexp.c: Include isnan.h.
46090         (main): Use isnan instead of x != x idiom.
46091         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
46092
46093 2007-03-25  Bruno Haible  <bruno@clisp.org>
46094
46095         * tests/test-frexp.c (NaN): New function/macro.
46096         (main): Use it instead of 0.0 / 0.0.
46097         * tests/test-isnan.c (NaN): New function/macro.
46098         (main): Use it instead of 0.0 / 0.0.
46099         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
46100         (test_function): Use it instead of 0.0 / 0.0.
46101         * tests/test-vasprintf-posix.c (NaN): New function/macro.
46102         (test_function): Use it instead of 0.0 / 0.0.
46103         * tests/test-snprintf-posix.h (NaN): New function/macro.
46104         (test_function): Use it instead of 0.0 / 0.0.
46105         * tests/test-sprintf-posix.h (NaN): New function/macro.
46106         (test_function): Use it instead of 0.0 / 0.0.
46107         * tests/test-fprintf-posix.h (NaN): New function/macro.
46108         (test_function): Use it instead of 0.0 / 0.0.
46109         * tests/test-printf-posix.h (NaN): New function/macro.
46110         (test_function): Use it instead of 0.0 / 0.0.
46111
46112         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
46113
46114 2007-03-25  Bruno Haible  <bruno@clisp.org>
46115
46116         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
46117
46118 2007-03-25  Bruno Haible  <bruno@clisp.org>
46119
46120         * lib/regexec.c (merge_state_with_log): Make static.
46121
46122 2007-03-25  Bruno Haible  <bruno@clisp.org>
46123
46124         * lib/trigl.c (kernel_rem_pio2): Make static.
46125
46126 2007-03-25  Bruno Haible  <bruno@clisp.org>
46127
46128         * lib/sincosl.c (sincosl_table): Make static.
46129
46130 2007-03-25  Bruno Haible  <bruno@clisp.org>
46131
46132         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
46133         if the compiler does not support C99.
46134
46135 2007-03-25  Bruno Haible  <bruno@clisp.org>
46136
46137         * modules/time (Makefile.am): Ensure all rule action lines start with a
46138         tab.
46139
46140 2007-03-24  Bruno Haible  <bruno@clisp.org>
46141
46142         * modules/tsearch-tests: New file.
46143         * tests/test-tsearch.sh: New file.
46144         * tests/test-tsearch.c: New file, mostly copied from glibc.
46145
46146         * modules/search-tests: New file.
46147         * tests/test-search.c: New file.
46148
46149         * modules/search: New file.
46150         * lib/search_.h: New file, incorporating lib/tsearch.h.
46151         * m4/search_h.m4: New file.
46152         * lib/tsearch.h: Remove file.
46153         * lib/tsearch.c: Include search.h instead of tsearch.h.
46154         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
46155         HAVE_TSEARCH.
46156         * modules/tsearch (Files): Remove lib/tsearch.h.
46157         (Depends-on): Add search.
46158         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
46159         (Include): Change tsearch.h into search.h.
46160
46161 2007-03-24  Bruno Haible  <bruno@clisp.org>
46162
46163         * modules/fpucw: New file.
46164         * lib/fpucw.h: New file.
46165         * lib/frexp.c: Include fpucw.h.
46166         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46167         (FUNC): Use them.
46168         * lib/printf-frexp.c: Include fpucw.h.
46169         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46170         (FUNC): Use them.
46171         * lib/vasnprintf.c: Include fpucw.h.
46172         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
46173         'long double' calculations.
46174         * tests/test-frexpl.c: Include fpucw.h.
46175         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46176         * tests/test-printf-frexpl.c: Include fpucw.h.
46177         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46178         * modules/frexpl (Depends-on): Add fpucw.
46179         * modules/printf-frexpl (Depends-on): Likewise.
46180         * modules/fprintf-posix (Depends-on): Likewise.
46181         * modules/snprintf-posix (Depends-on): Likewise.
46182         * modules/sprintf-posix (Depends-on): Likewise.
46183         * modules/vasnprintf-posix (Depends-on): Likewise.
46184         * modules/vasprintf-posix (Depends-on): Likewise.
46185         * modules/vfprintf-posix (Depends-on): Likewise.
46186         * modules/vsnprintf-posix (Depends-on): Likewise.
46187         * modules/vsprintf-posix (Depends-on): Likewise.
46188         * modules/frexpl-tests (Depends-on): Likewise.
46189         * modules/printf-frexpl-tests (Depends-on): Likewise.
46190
46191 2007-03-24  Bruno Haible  <bruno@clisp.org>
46192
46193         * lib/float+.h: New file.
46194         * lib/isnan.c: Include float+.h.
46195         (SIZE): New macro.
46196         (FUNC): Compare only SIZE bytes of the value.
46197         * lib/vasnprintf.c: Include float+.h.
46198         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
46199         SIZEOF_LDBL or SIZEOF_DBL bytes.
46200         * modules/isnan-nolibm (Files): Add lib/float+.h.
46201         * modules/isnanl-nolibm (Files): Add lib/float+.h.
46202         * modules/isnanl (Files): Add lib/float+.h.
46203         * modules/vasnprintf (Files): Add lib/float+.h.
46204
46205 2007-03-24  Bruno Haible  <bruno@clisp.org>
46206
46207         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
46208         include isnanl-nolibm.h.
46209
46210 2007-03-24  Bruno Haible  <bruno@clisp.org>
46211
46212         * tests/test-read-file.c (main): Don't produce spurious output for
46213         expected situations. Make the test fail if it encountered unexpected
46214         results.
46215
46216 2007-03-24  Bruno Haible  <bruno@clisp.org>
46217
46218         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
46219         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
46220
46221 2007-03-24  Bruno Haible  <bruno@clisp.org>
46222
46223         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
46224
46225 2007-03-24  Bruno Haible  <bruno@clisp.org>
46226
46227         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
46228         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
46229
46230         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
46231         * modules/utf8-ucs4: Turn into a symbolic link to module
46232         unistr/u8-mbtouc.
46233
46234         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
46235         utf8-ucs4-unsafe.
46236         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
46237         unistr/u8-mbtouc-unsafe.
46238
46239         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
46240         * modules/utf16-ucs4: Turn into a symbolic link to module
46241         unistr/u16-mbtouc.
46242
46243         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
46244         utf16-ucs4-unsafe.
46245         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
46246         unistr/u16-mbtouc-unsafe.
46247
46248         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
46249         * modules/ucs4-utf8: Turn into a symbolic link to module
46250         unistr/u8-ubtomb.
46251
46252         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
46253         * modules/ucs4-utf16: Turn into a symbolic link to module
46254         unistr/u16-ubtomb.
46255
46256 2007-03-24  Bruno Haible  <bruno@clisp.org>
46257
46258         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
46259         Enable the function only if HAVE_INLINE.
46260         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
46261         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46262         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
46263         Enable the function only if HAVE_INLINE.
46264         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
46265         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46266         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
46267         Enable the function only if HAVE_INLINE.
46268         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
46269         Enable the function only if HAVE_INLINE.
46270         * modules/utf8-ucs4: Update.
46271         * modules/utf8-ucs4-unsafe: Update.
46272         * modules/utf16-ucs4: Update.
46273         * modules/utf16-ucs4-unsafe: Update.
46274         * modules/ucs4-utf8: Update.
46275         * modules/ucs4-utf16: Update.
46276
46277 2007-03-24  Bruno Haible  <bruno@clisp.org>
46278
46279         * lib/utf8-ucs4.h: Remove file.
46280         * lib/utf8-ucs4-unsafe.h: Remove file.
46281         * lib/utf16-ucs4.h: Remove file.
46282         * lib/utf16-ucs4-unsafe.h: Remove file.
46283         * lib/ucs4-utf8.h: Remove file.
46284         * lib/ucs4-utf16.h: Remove file.
46285         * lib/unistr.h: Include their previous contents.
46286         * m4/utf-ucs4.m4: Remove file.
46287         * m4/ucs4-utf.m4: Remove file.
46288         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
46289         (Depends-on): Add unistr/base.
46290         (configure.ac): Remove gl_UTF_UCS4.
46291         (Makefile.am): Update.
46292         (Include): Change to unistr.h.
46293         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
46294         (Depends-on): Add unistr/base.
46295         (configure.ac): Remove gl_UTF_UCS4.
46296         (Makefile.am): Update.
46297         (Include): Change to unistr.h.
46298         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
46299         (Depends-on): Add unistr/base.
46300         (configure.ac): Remove gl_UTF_UCS4.
46301         (Makefile.am): Update.
46302         (Include): Change to unistr.h.
46303         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
46304         (Depends-on): Add unistr/base.
46305         (configure.ac): Remove gl_UTF_UCS4.
46306         (Makefile.am): Update.
46307         (Include): Change to unistr.h.
46308         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
46309         (Depends-on): Add unistr/base.
46310         (configure.ac): Remove gl_UCS4_UTF.
46311         (Makefile.am): Update.
46312         (Include): Change to unistr.h.
46313         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
46314         (Depends-on): Add unistr/base.
46315         (configure.ac): Remove gl_UCS4_UTF.
46316         (Makefile.am): Update.
46317         (Include): Change to unistr.h.
46318         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
46319         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
46320         utf8-ucs4-unsafe.h.
46321         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
46322         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
46323         utf16-ucs4-unsafe.h.
46324         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
46325         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
46326         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
46327         * lib/unistr/u8-strchr.c: Likewise.
46328         * lib/unistr/u8-strrchr.c: Likewise.
46329         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
46330         * lib/unistr/u16-strchr.c: Likewise.
46331         * lib/unistr/u16-strrchr.c: Likewise.
46332         * lib/striconveh.c: Update.
46333         * lib/linebreak.c: Update.
46334
46335 2007-03-24  Bruno Haible  <bruno@clisp.org>
46336
46337         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
46338         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
46339
46340 2007-03-22  Bruno Haible  <bruno@clisp.org>
46341
46342         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
46343
46344 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
46345
46346         * MODULES.html.sh (File system functions): New module write-any-file.
46347         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
46348         * m4/write-any-file.m4: New files.
46349
46350 2007-03-23  Eric Blake  <ebb9@byu.net>
46351
46352         * gnulib-tool: Rearrange space-tab sequences, since some editors
46353         like to eat them.
46354
46355 2007-03-23  Eric Blake  <ebb9@byu.net>
46356
46357         * lib/version-etc.c (version_etc_va): Update license wording to
46358         be more concise.  Recommended by Richard Stallman.
46359
46360 2007-03-22  Bruno Haible  <bruno@clisp.org>
46361
46362         * lib/poll.c (MSG_PEEK): New fallback definition.
46363
46364 2007-03-22  Bruno Haible  <bruno@clisp.org>
46365
46366         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
46367         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
46368         (main): Update.
46369         Fixes a compilation error on BeOS.
46370
46371 2007-03-22  Bruno Haible  <bruno@clisp.org>
46372
46373         * modules/frexpl-tests: New file.
46374         * tests/test-frexpl.c: New file.
46375
46376         * modules/frexpl: New file.
46377         * m4/frexpl.m4: New file.
46378         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
46379         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
46380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
46381         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
46382         (Depends-on): Add frexpl. Remove isnanl-nolibm.
46383         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
46384
46385 2007-03-22  Bruno Haible  <bruno@clisp.org>
46386
46387         * lib/frexpl.c: Share code with lib/frexp.c.
46388         * modules/mathl (Files): Add lib/frexp.c.
46389         (Depends-on): Add isnanl-nolibm.
46390
46391 2007-03-22  Bruno Haible  <bruno@clisp.org>
46392
46393         * modules/printf-frexp (Files): Add m4/frexp.m4.
46394         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
46395         only if the found frexp function actually works.
46396
46397 2007-03-22  Bruno Haible  <bruno@clisp.org>
46398
46399         * lib/frexp.c: Remove older implementation that uses divisions.
46400
46401 2007-03-21  Bruno Haible  <bruno@clisp.org>
46402
46403         * modules/frexp-tests: New file.
46404         * tests/test-frexp.c: New file.
46405
46406         * modules/frexp: New file.
46407         * lib/frexp.c: New file.
46408         * m4/frexp.m4: New file.
46409         * lib/math_.h (frexp): New declaration.
46410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
46411         REPLACE_FREXP.
46412         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
46413
46414 2007-03-21  Bruno Haible  <bruno@clisp.org>
46415
46416         * modules/isnanl-tests: New file.
46417         * tests/test-isnanl.c: New file.
46418
46419         * modules/isnanl: New file.
46420         * lib/isnanl.h: New file.
46421         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
46422         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
46423         gl_FUNC_ISNANL_WORKS.
46424         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
46425         New macros.
46426
46427 2007-03-21  Bruno Haible  <bruno@clisp.org>
46428
46429         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
46430         lib/isnanl.h.
46431         (Include): Update.
46432         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
46433         * lib/vasnprintf.c: Update.
46434         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
46435         tests/test-isnanl.h, remove tests/test-isnanl.c.
46436         (Makefile.am): Update.
46437         * tests/test-isnanl-nolibm.c: New file.
46438         * tests/test-isnanl.h: New file.
46439         * tests/test-isnanl.c: Remove file.
46440
46441 2007-03-21  Jim Meyering  <jim@meyering.net>
46442
46443         When trying to open ".", treat ESTALE like EACCES.
46444         * lib/savewd.c (savewd_save): Resort to forking not just upon
46445         failure with EACCES, but also when errno is ESTALE.
46446
46447 2007-03-20  Bruno Haible  <bruno@clisp.org>
46448
46449         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
46450         Needed on AIX 5.1. Reported by Matthew Woehlke.
46451
46452 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46453
46454         Suggestions by Bruno Haible:
46455         * lib/acl-internal.h: Include "gettext.h" rather than rolling
46456         our own.
46457         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
46458         * modules/acl (Depends-on): Add gettext.
46459
46460 2007-03-19  Bruno Haible  <bruno@clisp.org>
46461
46462         * modules/iconvme: Remove file.
46463         * lib/iconvme.h: Remove file.
46464         * lib/iconvme.c: Remove file.
46465         * m4/iconvme.m4: Remove file.
46466
46467 2007-03-19  Bruno Haible  <bruno@clisp.org>
46468
46469         * doc/relocatable-maint.texi: Break long shell script line.
46470         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46471
46472 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46473
46474         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
46475         handle file_has_acl.
46476         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
46477         * lib/acl.c: Move header inclusions and related macro defns into
46478         lib/acl-internal.h.
46479         (S_ISLNK): Remove defn, since that's now done for us.
46480         (file_has_acl): Move to lib/file-has-acl.c.
46481         Call acl_trivial if available.  This is the crucial part of the fix.
46482         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
46483         shared within the library.  Rewrite a bit, partly to make it compatible
46484         with the GNU coding style.
46485         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
46486         Remove unnecessary double-quotes.
46487         Don't test for acl_to_text; the build will catch that.
46488         Replace acl_entries if it doesn't exist and it is needed.
46489         Check for -lsec and acl_trivial (as used on Solaris 10).
46490         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
46491         lib/file-has-acl.c.
46492         (Depends-on): Add sys_stat, for S_ISLNK.
46493
46494 2007-03-19  Ben Pfaff  <blp@gnu.org>
46495
46496         * doc/gnulib.texi: Fix typos.
46497         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46498
46499 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46500
46501         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
46502         If size is zero here, buf must be zero.
46503
46504 2007-03-19  Simon Josefsson  <simon@josefsson.org>
46505
46506         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
46507         <bruno@clisp.org>.
46508
46509 2007-03-18  Bruno Haible  <bruno@clisp.org>
46510
46511         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
46512         Suggested by Eric Blake.
46513
46514 2007-03-18  Ben Pfaff  <blp@gnu.org>
46515
46516         * doc/relocatable.texi: Recommend using as prefix a directory
46517         that does not exist and will never be created.  Based on
46518         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
46519         and others.
46520
46521 2007-03-17  Bruno Haible  <bruno@clisp.org>
46522
46523         * lib/fchownat.c: Include lchown.h.
46524
46525 2007-03-17  Bruno Haible  <bruno@clisp.org>
46526
46527         Fix endless loop when the given allocated size was > INT_MAX.
46528         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
46529         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
46530         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
46531         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
46532         * lib/sprintf.c (sprintf): Likewise.
46533
46534 2007-03-17  Bruno Haible  <bruno@clisp.org>
46535
46536         * tests/test-argp-2.sh (func_compare): Output a context diff.
46537
46538 2007-03-17  Bruno Haible  <bruno@clisp.org>
46539
46540         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
46541         locale's decimal-point character.
46542
46543 2007-03-17  Bruno Haible  <bruno@clisp.org>
46544
46545         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
46546         before comparing it. Needed because on some platforms (e.g. x86) a
46547         'long double' occupies less bytes than sizeof (long double).
46548
46549 2007-03-17  Bruno Haible  <bruno@clisp.org>
46550
46551         * tests/test-crc.c (main): Make printf statements 64-bit clean.
46552         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
46553         * tests/test-getaddrinfo.c (simple): Likewise.
46554         * tests/test-read-file.c (main): Likewise.
46555
46556 2007-03-17  Bruno Haible  <bruno@clisp.org>
46557
46558         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
46559
46560 2007-03-17  Bruno Haible  <bruno@clisp.org>
46561
46562         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
46563         unused variable.
46564
46565 2007-03-17  Bruno Haible  <bruno@clisp.org>
46566
46567         * tests/test-c-strcasecmp.c: Include c-strcase.h.
46568         * tests/test-c-strncasecmp.c: Likewise.
46569
46570 2007-03-17  Bruno Haible  <bruno@clisp.org>
46571
46572         * modules/stdlib (Depends-on): Add unistd.
46573         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
46574         Needed for MacOS X 10.3.
46575
46576 2007-03-17  Bruno Haible  <bruno@clisp.org>
46577
46578         * lib/unistr/u-strdup.h: Include <stdlib.h>.
46579
46580 2007-03-17  Bruno Haible  <bruno@clisp.org>
46581
46582         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
46583
46584 2007-03-17  Bruno Haible  <bruno@clisp.org>
46585
46586         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
46587         to reflect files copied from gnulib (with or without modifications).
46588         Suggested by Jim Meyering.
46589
46590 2007-03-17  Eric Blake  <ebb9@byu.net>
46591
46592         * NEWS: Document stdlib change from 2007-02-18.
46593
46594 2007-03-17  Jim Meyering  <jim@meyering.net>
46595
46596         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
46597         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
46598         someone uses a name containing shell meta-characters.
46599         Reported by Alfred M. Szmidt.
46600
46601         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
46602
46603 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46604
46605         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
46606         and copy gettext configuration files only if configure.ac contains
46607         a use of AM_GNU_GETTEXT_VERSION.
46608
46609 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46610
46611         * build-aux/bootstrap (gnulib_name): New variable.
46612         (gnulib_tool_options): Use it.
46613
46614 2007-03-13  Simon Josefsson  <simon@josefsson.org>
46615
46616         * tests/test-des.c: Use new namespace.
46617
46618 2007-03-15  Bruno Haible  <bruno@clisp.org>
46619
46620         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
46621         Reported by James Youngman <jay@gnu.org>.
46622
46623 2007-03-15  Bruno Haible  <bruno@clisp.org>
46624
46625         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
46626         declared prototype. Needed with cc on OSF/1 5.1.
46627
46628 2007-03-15  Bruno Haible  <bruno@clisp.org>
46629
46630         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
46631         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
46632         (struct gl_list_implementation): Add dispose_fn argument to the
46633         'create_empty', 'create' methods.
46634         (struct gl_list_impl_base): Add field 'dispose_fn'.
46635         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
46636         argument.
46637         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
46638         dispose_fn argument.
46639         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
46640         dispose_fn on the dropped values.
46641         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
46642         dispose_fn argument.
46643         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
46644         dropped values.
46645         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
46646         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46647         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
46648         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46649         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
46650         argument.
46651         (gl_tree_list_free): Call dispose_fn on the dropped values.
46652         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
46653         the dropped values.
46654         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46655         Add dispose_fn argument.
46656         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
46657         Call dispose_fn on the dropped values.
46658         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
46659         Add dispose_fn argument.
46660         (gl_sublist_create): Initialize the 'dispose_fn' field.
46661         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
46662         * tests/test-array_list.c (main): Update.
46663         * tests/test-carray_list.c (main): Update.
46664         * tests/test-avltree_list.c (main): Update.
46665         * tests/test-rbtree_list.c (main): Update.
46666         * tests/test-avltreehash_list.c (main): Update.
46667         * tests/test-rbtreehash_list.c (main): Update.
46668         * tests/test-linked_list.c (main): Update.
46669         * tests/test-linkedhash_list.c (main): Update.
46670         * tests/test-array_oset.c (main): Update.
46671
46672 2007-03-15  Bruno Haible  <bruno@clisp.org>
46673
46674         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
46675         (gl_oset_create_empty): Add dispose_fn argument.
46676         (struct gl_oset_implementation): Add dispose_fn argument to
46677         'create_empty' method.
46678         (struct gl_oset_impl_base): Add dispose_fn field.
46679         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
46680         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
46681         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
46682         values.
46683         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
46684         (gl_tree_oset_free): Call dispose_fn on the dropped values.
46685         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46686         dropped value.
46687         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46688         dropped value.
46689         * tests/test-array_oset.c (main): Update.
46690         * tests/test-avltree_oset.c (main): Update.
46691         * tests/test-rbtree_oset.c (main): Update.
46692         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
46693
46694 2007-03-13  Bruno Haible  <bruno@clisp.org>
46695
46696         * tests/test-stdbool.c (i): Update after last patch.
46697
46698 2007-03-12  Bruno Haible  <bruno@clisp.org>
46699
46700         * lib/quotearg.c: Include <wctype.h> early, before the definition of
46701         the iswprint macro. Needed on Solaris 2.5.1.
46702
46703 2007-03-12  Bruno Haible  <bruno@clisp.org>
46704
46705         * tests/test-printf-frexp.c (main): Declare x as volatile.
46706
46707 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46708
46709         * doc/gnulib.texi (Build robot for gnulib): New section.
46710
46711 2007-03-12  Jim Meyering  <jim@meyering.net>
46712
46713         * build-aux/bootstrap: New file.
46714         * build-aux/bootstrap.conf: New file, from coreutils.
46715
46716 2007-03-11  Bruno Haible  <bruno@clisp.org>
46717
46718         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
46719
46720 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46721
46722         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
46723         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
46724         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
46725
46726 2007-03-11  Bruno Haible  <bruno@clisp.org>
46727
46728         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
46729         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
46730
46731 2007-03-11  Bruno Haible  <bruno@clisp.org>
46732
46733         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
46734         formula. Needed for SunPRO C 5.0.
46735
46736 2007-03-11  Bruno Haible  <bruno@clisp.org>
46737
46738         * modules/long-options (Depends-on): Add getopt.
46739
46740 2007-03-11  Bruno Haible  <bruno@clisp.org>
46741
46742         * modules/modechange (Depends-on): Add stdbool.
46743
46744 2007-03-11  Bruno Haible  <bruno@clisp.org>
46745
46746         * modules/i-ring (Depends-on): Add stdbool.
46747
46748 2007-03-11  Bruno Haible  <bruno@clisp.org>
46749
46750         * modules/gc-des (Depends-on): Add stdbool.
46751
46752 2007-03-11  Bruno Haible  <bruno@clisp.org>
46753
46754         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
46755
46756 2007-03-11  Bruno Haible  <bruno@clisp.org>
46757
46758         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
46759
46760 2007-03-11  Bruno Haible  <bruno@clisp.org>
46761
46762         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
46763
46764 2007-03-11  Bruno Haible  <bruno@clisp.org>
46765
46766         * lib/vasnprintf.c (sprintf): Undefine.
46767
46768 2007-03-11  Bruno Haible  <bruno@clisp.org>
46769
46770         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
46771         initializers in SunPRO C and Compaq C compilers.
46772
46773 2007-03-11  Bruno Haible  <bruno@clisp.org>
46774
46775         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
46776         decrementing code ANSI C compliant.
46777
46778 2007-03-11  Bruno Haible  <bruno@clisp.org>
46779
46780         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
46781         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
46782
46783 2007-03-11  Bruno Haible  <bruno@clisp.org>
46784
46785         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
46786         <stdbool.h> substitute doesn't pass.
46787
46788 2007-03-11  Bruno Haible  <bruno@clisp.org>
46789
46790         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
46791
46792 2007-03-11  Bruno Haible  <bruno@clisp.org>
46793
46794         * gnulib-tool (func_create_megatestdir): Create also an autobuild
46795         script, for submission to autobuild.josefsson.org.
46796
46797 2007-03-10  Bruno Haible  <bruno@clisp.org>
46798
46799         * modules/canonicalize-lgpl-tests: New file.
46800         * tests/test-canonicalize-lgpl.sh: New file.
46801         * tests/test-canonicalize-lgpl.c: New file.
46802
46803         * modules/c-strcase-tests: New file.
46804         * tests/test-c-strcase.sh: New file.
46805         * tests/test-c-strcasecmp.c: New file.
46806         * tests/test-c-strncasecmp.c: New file.
46807
46808         * modules/atexit-tests: New file.
46809         * tests/test-atexit.sh: New file.
46810         * tests/test-atexit.c: New file.
46811
46812 2007-03-10  Bruno Haible  <bruno@clisp.org>
46813
46814         * tests/test-binary-io.sh: Use temporary filenames that are not so
46815         likely to clash with those of other tests (in a parallel make).
46816         * tests/test-binary-io.c: Likewise.
46817
46818 2007-03-10  Bruno Haible  <bruno@clisp.org>
46819
46820         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
46821         fallback; use #error instead.
46822         Suggested by Simon Josefsson.
46823
46824 2007-03-10  Bruno Haible  <bruno@clisp.org>
46825
46826         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
46827         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
46828         first and the last.
46829
46830 2007-03-10  Bruno Haible  <bruno@clisp.org>
46831
46832         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
46833
46834 2007-03-10  Bruno Haible  <bruno@clisp.org>
46835
46836         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
46837         "make distcheck".
46838         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
46839         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
46840         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
46841
46842 2007-03-10  Bruno Haible  <bruno@clisp.org>
46843
46844         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
46845         variable.
46846         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
46847         variable.
46848
46849 2007-03-09  Eric Blake  <ebb9@byu.net>
46850         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
46851
46852         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
46853         types are not being provided by gnulib.
46854         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
46855         types are supported.
46856
46857 2007-03-10  Bruno Haible  <bruno@clisp.org>
46858
46859         * lib/stdio_.h (__attribute__): New macro.
46860         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
46861         vsprintf): Specify __attribute__ __format__ for GCC.
46862         Suggested by Eric Blake.
46863
46864 2007-03-09  Bruno Haible  <bruno@clisp.org>
46865
46866         * modules/printf-posix-tests: New file.
46867         * tests/test-printf-posix.sh: New file.
46868         * tests/test-printf-posix.c: New file.
46869
46870         * modules/printf-posix: New file.
46871         * lib/printf.c: New file.
46872         * m4/printf-posix-rpl.m4: New file.
46873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
46874         REPLACE_PRINTF.
46875         * lib/stdio_.h (printf): New declaration.
46876         (format, __format__, ____printf____, ____scanf____, ____strftime____,
46877         ____strfmon____): New macros.
46878         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
46879         REPLACE_PRINTF.
46880
46881 2007-03-09  Bruno Haible  <bruno@clisp.org>
46882
46883         * tests/test-vasnprintf-posix2.sh: New file.
46884         * tests/test-vasnprintf-posix2.c: New file.
46885         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
46886         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46887         (Makefile.am): Activate test-vasnprintf-posix2.sh.
46888
46889         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
46890         a locale dependent decimal point, rather than always '.'.
46891
46892 2007-03-09  Eric Blake  <ebb9@byu.net>
46893
46894         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
46895         spite of platforms like Tandem/NSK that define it to -1.
46896
46897 2007-03-08  Bruno Haible  <bruno@clisp.org>
46898
46899         * modules/vprintf-posix-tests: New file.
46900         * tests/test-vprintf-posix.sh: New file.
46901         * tests/test-vprintf-posix.c: New file.
46902         * tests/test-printf-posix.h: New file.
46903
46904         * modules/vprintf-posix: New file.
46905         * lib/vprintf.c: New file.
46906         * m4/vprintf-posix.m4: New file.
46907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
46908         REPLACE_VPRINTF.
46909         * lib/stdio_.h (vprintf): New declaration.
46910         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
46911         REPLACE_VPRINTF.
46912
46913 2007-03-08  Bruno Haible  <bruno@clisp.org>
46914
46915         * modules/fprintf-posix-tests: New file.
46916         * tests/test-fprintf-posix.sh: New file.
46917         * tests/test-fprintf-posix.c: New file.
46918
46919         * modules/fprintf-posix: New file.
46920         * lib/fprintf.c: New file.
46921         * m4/fprintf-posix.m4: New file.
46922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
46923         REPLACE_FPRINTF.
46924         * lib/stdio_.h (fprintf): New declaration.
46925         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
46926         REPLACE_FPRINTF.
46927
46928 2007-03-08  Bruno Haible  <bruno@clisp.org>
46929
46930         * modules/vfprintf-posix-tests: New file.
46931         * tests/test-vfprintf-posix.sh: New file.
46932         * tests/test-vfprintf-posix.c: New file.
46933         * tests/test-fprintf-posix.h: New file.
46934         * tests/test-fprintf-posix.out: New file.
46935
46936         * modules/vfprintf-posix: New file.
46937         * lib/vfprintf.c: New file.
46938         * m4/vfprintf-posix.m4: New file.
46939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
46940         REPLACE_VFPRINTF.
46941         * lib/stdio_.h (vfprintf): New declaration.
46942         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
46943         REPLACE_VFPRINTF.
46944
46945 2007-03-08  Bruno Haible  <bruno@clisp.org>
46946
46947         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
46948
46949 2007-03-08  Bruno Haible  <bruno@clisp.org>
46950
46951         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
46952         instead of 'expr' invocations.
46953         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46954         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46955         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46956         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46957         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46958         Suggested by Paul Eggert.
46959
46960 2007-03-08  Bruno Haible  <bruno@clisp.org>
46961
46962         * modules/fseterr-tests: New file.
46963         * tests/test-fseterr.c: New file.
46964
46965         * modules/fseterr: New file.
46966         * lib/fseterr.h: New file.
46967         * lib/fseterr.c: New file.
46968
46969 2007-03-08  Bruno Haible  <bruno@clisp.org>
46970
46971         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
46972         * lib/getopt_.h: Likewise.
46973         * lib/mbswidth.h: Likewise.
46974         * lib/setenv.h: Likewise.
46975         * lib/vasnprintf.h: Likewise.
46976         * lib/vasprintf.h: Likewise.
46977         * lib/verror.h: Likewise.
46978         * lib/xsetenv.h: Likewise.
46979         * lib/xvasprintf.h: Likewise.
46980
46981 2007-03-08  Jim Meyering  <jim@meyering.net>
46982
46983         * users.txt: Add parted.
46984
46985         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
46986
46987 2007-03-07  Bruno Haible  <bruno@clisp.org>
46988
46989         * m4/printf.m4: Make the shell script snippets copy&pastable.
46990
46991 2007-03-02  Bruno Haible  <bruno@clisp.org>
46992
46993         * lib/netinet_in_.h: New file.
46994         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
46995         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
46996         * modules/netinet_in (Files): Add lib/netinet_in_.h.
46997         (Depends-on): Add absolute-header.
46998         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
46999         into netinet/in.h.
47000
47001 2007-03-03  Bruno Haible  <bruno@clisp.org>
47002
47003         * lib/sys_select_.h: New file.
47004         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
47005         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
47006         * modules/sys_select (Files): Add lib/sys_select_.h.
47007         (Depends-on): Add absolute-header.
47008         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
47009         into sys/select.h.
47010
47011 2007-03-02  Bruno Haible  <bruno@clisp.org>
47012
47013         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
47014         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
47015         values.
47016         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
47017         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
47018         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
47019         * modules/sys_socket (Depends-on): Add absolute-header.
47020         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
47021         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
47022         (Include): Remove requirement of inclusion of <sys/types.h>.
47023
47024 2007-03-02  Bruno Haible  <bruno@clisp.org>
47025
47026         * lib/byteswap_.h (bswap_32): Fix formula.
47027
47028 2007-03-06  Bruno Haible  <bruno@clisp.org>
47029
47030         * modules/sprintf-posix-tests: New file.
47031         * tests/test-sprintf-posix.c: New file.
47032
47033         * modules/sprintf-posix: New file.
47034         * lib/sprintf.c: New file.
47035         * m4/sprintf-posix.m4: New file.
47036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
47037         REPLACE_SPRINTF.
47038         * lib/stdio_.h (sprintf): New declaration.
47039         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
47040         REPLACE_SPRINTF.
47041
47042 2007-03-06  Bruno Haible  <bruno@clisp.org>
47043
47044         * modules/vsprintf-posix-tests: New file.
47045         * tests/test-vsprintf-posix.c: New file.
47046         * tests/test-sprintf-posix.h: New file.
47047
47048         * modules/vsprintf-posix: New file.
47049         * lib/vsprintf.c: New file.
47050         * m4/vsprintf-posix.m4: New file.
47051         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
47052         REPLACE_VSPRINTF.
47053         * lib/stdio_.h (vsprintf): New declaration.
47054         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
47055         REPLACE_VSPRINTF.
47056
47057 2007-03-06  Bruno Haible  <bruno@clisp.org>
47058
47059         * modules/vsnprintf (Depend-on): Remove minmax.
47060
47061 2007-03-06  Bruno Haible  <bruno@clisp.org>
47062
47063         * modules/snprintf-posix-tests: New file.
47064         * tests/test-snprintf-posix.c: New file.
47065
47066         * modules/snprintf-posix: New file.
47067         * m4/snprintf-posix.m4: New file.
47068         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
47069         gl_FUNC_SNPRINTF.
47070         (gl_FUNC_SNPRINTF): Invoke it.
47071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
47072         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
47073         is set.
47074         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
47075
47076 2007-03-06  Bruno Haible  <bruno@clisp.org>
47077
47078         * modules/vsnprintf-posix-tests: New file.
47079         * tests/test-vsnprintf-posix.c: New file.
47080         * tests/test-snprintf-posix.h: New file.
47081
47082         * modules/vsnprintf-posix: New file.
47083         * m4/vsnprintf-posix.m4: New file.
47084         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
47085         gl_FUNC_VSNPRINTF.
47086         (gl_FUNC_VSNPRINTF): Invoke it.
47087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
47088         * lib/stdio_.h (vsnprintf): Define as a replacement if
47089         REPLACE_VSNPRINTF is set.
47090         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
47091
47092 2007-03-06  Bruno Haible  <bruno@clisp.org>
47093
47094         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
47095         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
47096
47097 2007-03-06  Bruno Haible  <bruno@clisp.org>
47098
47099         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
47100         (asinl): Declare also if HAVE_DECL_ASINL is set.
47101         (atanl): Declare also if HAVE_DECL_ATANL is set.
47102         (ceill): Declare also if HAVE_DECL_CEILL is set.
47103         (cosl): Declare also if HAVE_DECL_COSL is set.
47104         (expl): Declare also if HAVE_DECL_EXPL is set.
47105         (floorl): Declare also if HAVE_DECL_FLOORL is set.
47106         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
47107         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
47108         (logl): Declare also if HAVE_DECL_LOGL is set.
47109         (sinl): Declare also if HAVE_DECL_SINL is set.
47110         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
47111         (tanl): Declare also if HAVE_DECL_TANL is set.
47112         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
47113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
47114         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
47115         declaration of frexpl, ldexpl.
47116         * modules/printf-frexpl (Depends-on): Add math.
47117         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
47118
47119 2007-03-05  Bruno Haible  <bruno@clisp.org>
47120
47121         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
47122         frexpl and ldexpl are declared.
47123         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
47124
47125 2007-03-05  Bruno Haible  <bruno@clisp.org>
47126
47127         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
47128         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
47129
47130 2007-03-05  Bruno Haible  <bruno@clisp.org>
47131
47132         * lib/stdio_.h: Include <stddef.h>.
47133
47134 2007-03-05  Bruno Haible  <bruno@clisp.org>
47135
47136         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
47137
47138 2007-03-05  Bruno Haible  <bruno@clisp.org>
47139
47140         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
47141         NetBSD 4, from Ralf Wildenhues.
47142
47143 2007-03-04  Bruno Haible  <bruno@clisp.org>
47144
47145         * lib/vasprintf.h: Update #if logic for the case when the functions
47146         exist but are overridden.
47147
47148 2007-03-04  Bruno Haible  <bruno@clisp.org>
47149
47150         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
47151         implementations: glibc-2.4 and MacOS X 10.3.
47152         * tests/test-vasnprintf-posix.c (test_function): Test also the case
47153         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
47154         * tests/test-vasprintf-posix.c (test_function): Likewise.
47155
47156 2007-03-04  Bruno Haible  <bruno@clisp.org>
47157
47158         * modules/vasprintf-posix-tests: New file.
47159         * tests/test-vasprintf-posix.c: New file.
47160
47161         * modules/vasprintf-posix: New file.
47162         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
47163         defined.
47164         * m4/vasprintf-posix.m4: New file.
47165         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
47166         gl_FUNC_VASPRINTF.
47167         (gl_FUNC_VASPRINTF): Invoke it.
47168         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
47169         here.
47170         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
47171
47172 2007-03-04  Bruno Haible  <bruno@clisp.org>
47173
47174         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
47175         REPLACE_GETTIMEOFDAY.
47176         * modules/sys_time (Makefile.am): Likewise.
47177         * m4/sys_time_h.m4: Likewise.
47178         * m4/gettimeofday.m4: Likewise.
47179
47180 2007-03-04  Bruno Haible  <bruno@clisp.org>
47181
47182         * modules/vasnprintf-posix-tests: New file.
47183         * tests/test-vasnprintf-posix.c: New file.
47184
47185         * modules/vasnprintf-posix: New file.
47186         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
47187         printf-frexpl.h.
47188         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
47189         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
47190         REPLACE_VASNPRINTF is defined.
47191         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
47192         gl_FUNC_VASNPRINTF.
47193         (gl_FUNC_VASNPRINTF): Invoke it.
47194         * m4/vasnprintf-posix.m4: New file.
47195         * m4/printf.m4: New file.
47196
47197 2007-03-04  Bruno Haible  <bruno@clisp.org>
47198
47199         Compile progreloc.c only if --enable-relocatable is specified.
47200         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
47201         if --enable-relocatable was specified.
47202         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
47203         lib_SOURCES.
47204
47205 2007-03-04  Jim Meyering  <jim@meyering.net>
47206
47207         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
47208         Use it consistently, rather than enumerating errno constants.
47209
47210 2007-03-04  Bruno Haible  <bruno@clisp.org>
47211
47212         * modules/xvasprintf-tests: New file.
47213         * tests/test-xvasprintf.c: New file.
47214
47215         * modules/vasprintf-tests: New file.
47216         * tests/test-vasprintf.c: New file.
47217
47218         * modules/vasnprintf-tests: New file.
47219         * tests/test-vasnprintf.c: New file.
47220
47221         * modules/vsnprintf-tests: New file.
47222         * tests/test-vsnprintf.c: New file.
47223
47224         * modules/snprintf-tests: New file.
47225         * tests/test-snprintf.c: New file.
47226
47227 2007-03-04  Bruno Haible  <bruno@clisp.org>
47228
47229         Compile relocatable.c only if --enable-relocatable is specified.
47230         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
47231         gl_RELOCATABLE_LIBRARY.
47232         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
47233         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
47234         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
47235         gl_RELOCATABLE_LIBRARY.
47236         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
47237         (Makefile.am): Remove lib_SOURCES.
47238         * modules/relocatable-lib-lgpl (configure.ac): Invoke
47239         gl_RELOCATABLE_LIBRARY.
47240         (Makefile.am): Remove lib_SOURCES.
47241         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
47242         always.
47243         * modules/relocatable-prog-wrapper (configure.ac): Invoke
47244         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
47245
47246 2007-03-04  Bruno Haible  <bruno@clisp.org>
47247
47248         * modules/argmatch-tests: New file.
47249         * tests/test-argmatch.c: New file.
47250
47251         * tests/test-allocsa.c (main): Halve the number of loop runs.
47252
47253         * modules/alloca-opt-tests: New file.
47254         * tests/test-alloca-opt.c: New file.
47255
47256 2007-03-04  Jim Meyering  <jim@meyering.net>
47257
47258         Work around difference between Linux ACLs and Solaris 10 ZFS.
47259         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
47260         for EINVAL.
47261
47262 2007-03-03  Bruno Haible  <bruno@clisp.org>
47263
47264         * modules/relocatable-prog (Depends-on): Add back progreloc's
47265         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
47266
47267 2007-03-03  Bruno Haible  <bruno@clisp.org>
47268
47269         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
47270         * modules/relocatable-lib: New file.
47271
47272 2007-03-03  Bruno Haible  <bruno@clisp.org>
47273
47274         * modules/relocatable-prog: Renamed from modules/relocatable.
47275         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
47276
47277 2007-03-03  Bruno Haible  <bruno@clisp.org>
47278
47279         * modules/relocatable-script (Files): Add doc/relocatable.texi,
47280         m4/relocatable-lib.m4.
47281         (Depends-on): Remove 'relocatable'.
47282         (configure.ac): Add gl_RELOCATABLE_NOP.
47283
47284 2007-03-03  Bruno Haible  <bruno@clisp.org>
47285
47286         * modules/relocatable-prog-wrapper: New file.
47287         * modules/relocatable (Depends-on): Add it. Remove all other
47288         dependencies except progname.
47289         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
47290
47291         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
47292         (gl_FUNC_STRERROR): Nop.
47293         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
47294
47295         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
47296         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
47297
47298         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
47299         (gl_FUNC_READLINK): Update.
47300
47301         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
47302
47303 2007-03-03  Bruno Haible  <bruno@clisp.org>
47304
47305         * lib/xreadlink.c: Include <unistd.h> unconditionally.
47306         * modules/xreadlink (Depends-on): Add unistd.
47307         * modules/xreadlink-with-size (Depends-on): Likewise.
47308
47309 2007-03-03  Bruno Haible  <bruno@clisp.org>
47310
47311         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
47312         extracted from gt_FUNC_SETENV.
47313         (gt_FUNC_SETENV): Remove macro.
47314         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
47315         remove gt_FUNC_SETENV.
47316
47317 2007-03-03  Bruno Haible  <bruno@clisp.org>
47318
47319         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
47320         ENABLE_RELOCATABLE here.
47321         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
47322
47323 2007-03-03  Bruno Haible  <bruno@clisp.org>
47324
47325         * modules/rbtreehash-list-tests (Depends-on): Add progname.
47326         * tests/test-rbtreehash_list.c: Include progname.h.
47327         (main): Call set_program_name.
47328
47329         * modules/rbtree-oset-tests (Depends-on): Add progname.
47330         * tests/test-rbtree_oset.c: Include progname.h.
47331         (main): Call set_program_name.
47332
47333         * modules/rbtree-list-tests (Depends-on): Add progname.
47334         * tests/test-rbtree_list.c: Include progname.h.
47335         (main): Call set_program_name.
47336
47337         * modules/linked-list-tests (Depends-on): Add progname.
47338         * tests/test-linked_list.c: Include progname.h.
47339         (main): Call set_program_name.
47340
47341 2007-03-03  Bruno Haible  <bruno@clisp.org>
47342
47343         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
47344         All uses of __restrict changed to _Restrict_.
47345         * lib/glob_.h (__restrict): Remove macro.
47346
47347 2007-03-02  Bruno Haible  <bruno@clisp.org>
47348
47349         * modules/gettext (configure.ac): Require gettext infrastructure
47350         from version 0.16.1.
47351
47352 2007-03-02  Bruno Haible  <bruno@clisp.org>
47353
47354         * modules/linkedhash-list-tests (Depends-on): Add progname.
47355         * tests/test-linkedhash_list.c: Include progname.h.
47356         (main): Call set_program_name.
47357
47358         * modules/carray-list-tests (Depends-on): Add progname.
47359         * tests/test-carray_list.c: Include progname.h.
47360         (main): Call set_program_name.
47361
47362         * modules/avltreehash-list-tests (Depends-on): Add progname.
47363         * tests/test-avltreehash_list.c: Include progname.h.
47364         (main): Call set_program_name.
47365
47366         * modules/avltree-oset-tests (Depends-on): Add progname.
47367         * tests/test-avltree_oset.c: Include progname.h.
47368         (main): Call set_program_name.
47369
47370         * modules/avltree-list-tests (Depends-on): Add progname.
47371         * tests/test-avltree_list.c: Include progname.h.
47372         (main): Call set_program_name.
47373
47374         * modules/array-oset-tests (Depends-on): Add progname.
47375         * tests/test-array_oset.c: Include progname.h.
47376         (main): Call set_program_name.
47377
47378         * modules/array-list-tests (Depends-on): Add progname.
47379         * tests/test-array_list.c: Include progname.h.
47380         (main): Call set_program_name.
47381
47382         * modules/argp-tests (Depends-on): Add progname.
47383         * tests/test-argp.c: Include argp.h first. Include progname.h.
47384         (main): Call set_program_name.
47385
47386 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
47387
47388         * doc/gnulib-tool.texi (Initial import): Reword description of
47389         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
47390         limited effect even if defined after the first system include.
47391
47392 2007-03-01  Bruno Haible  <bruno@clisp.org>
47393
47394         * build-aux/config.libpath: Update to libtool-1.5.22.
47395         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47396
47397 2007-03-01  Bruno Haible  <bruno@clisp.org>
47398
47399         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
47400         foo_CFLAGS.
47401         Reported by Ralf Wildenhues.
47402
47403 2007-03-01  Bruno Haible  <bruno@clisp.org>
47404
47405         * build-aux/install-reloc: Remove object files left over by some
47406         compilers.
47407         Reported by Ralf Wildenhues.
47408
47409 2007-03-01  Bruno Haible  <bruno@clisp.org>
47410
47411         * build-aux/install-reloc: Break long lines.
47412
47413 2007-03-01  Bruno Haible  <bruno@clisp.org>
47414
47415         * doc/relocatable.texi: Document that it may not work on OpenBSD.
47416         Reported by Ralf Wildenhues.
47417
47418 2007-03-01  Bruno Haible  <bruno@clisp.org>
47419
47420         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
47421         include ordering constraints.
47422
47423 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47424
47425         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
47426         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
47427         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
47428         as another example.
47429         * lib/time_.h: Fix misspelling.
47430         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47431         Require gl_HEADER_TIME_H_DEFAULTS.
47432         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
47433         * m4/time_r.m4 (gl_TIME_R): Likewise.
47434         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
47435
47436 2007-03-01  Bruno Haible  <bruno@clisp.org>
47437
47438         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
47439         * m4/utimens.m4 (gl_UTIMENS): Likewise.
47440
47441 2007-03-01  Jim Meyering  <jim@meyering.net>
47442
47443         * modules/xreadlink (Maintainer): Add my name.
47444         * modules/xreadlink-with-size (Depends-on): Alphabetize.
47445
47446 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
47447             Bruno Haible  <bruno@clisp.org>
47448
47449         * build-aux/install-reloc: Compile also c-ctype.c.
47450         * build-aux/relocatable.sh.in: New file.
47451         * doc/relocatable.texi: New file.
47452         * doc/relocatable-maint.texi: New file.
47453         * doc/gnulib.texi: Include relocatable-maint.texi.
47454         * lib/progreloc.c: Include unistd.h unconditionally.
47455         * lib/relocwrapper.c: Include unistd.h unconditionally.
47456         Include c-ctype.h.
47457         (add_dotbin): Use c_tolower.
47458         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
47459         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
47460         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
47461         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
47462         to m4/relocatable-lib.m4.
47463         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
47464         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
47465         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
47466         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
47467         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
47468         * modules/relocatable: New file.
47469         * modules/relocatable-lib: New file.
47470         * modules/relocatable-script: New file.
47471
47472 2007-02-28  Bruno Haible  <bruno@clisp.org>
47473
47474         Import --enable-relocatable infrastructure.
47475         * build-aux/config.libpath: New file, from GNU gettext.
47476         * build-aux/install-reloc: New file, from GNU gettext.
47477         * build-aux/reloc-ldflags: New file, from GNU gettext.
47478         * lib/relocatable.h: New file, from GNU gettext.
47479         * lib/relocatable.c: New file, from GNU gettext.
47480         * lib/relocwrapper.c: New file, from GNU gettext.
47481         * m4/relocatable.m4: New file, from GNU gettext.
47482
47483 2007-02-28  Bruno Haible  <bruno@clisp.org>
47484
47485         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
47486
47487         * modules/xreadlink: New file, from GNU gettext with modifications.
47488         * lib/xreadlink.c: New file, from GNU gettext.
47489         * lib/xreadlink.h: Add comments.
47490         (xreadlink): New declaration.
47491
47492         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
47493         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
47494         lib/xreadlink-with-size.c.
47495         (configure.ac): Remove gl_XREADLINK invocation.
47496         (Makefile.am): Augment lib_SOURCES.
47497         * m4/xreadlink.m4: Remove file.
47498         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
47499         (xreadlink_with_size): Renamed from xreadink.
47500         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
47501         * modules/canonicalize (Depends-on): Replace xreadlink with
47502         xreadlink-with-size.
47503         * lib/canonicalize.c (canonicalize_filename_mode): Update.
47504
47505 2007-02-25  Jim Meyering  <jim@meyering.net>
47506
47507         * build-aux/announce-gen: When complaining about excess arguments,
47508         list them.
47509
47510 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
47511
47512         * README: Document signed integer overflow situation more
47513         accurately.
47514
47515 2007-02-25  Bruno Haible  <bruno@clisp.org>
47516
47517         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
47518         'a' or 'A' conversion.
47519
47520 2007-02-25  Bruno Haible  <bruno@clisp.org>
47521
47522         * modules/filename: Renamed from modules/pathname.
47523         (Files): Replace lib/pathname.h with lib/filename.h. Replace
47524         lib/concatpath.c with lib/concat-filename.c.
47525         (Makefile.am): Update.
47526         (Include): Replace pathname.h with filename.h.
47527         * lib/filename.h: Renamed from lib/pathname.h.
47528         (concatenated_filename): Renamed from concatenated_pathname.
47529         * lib/concat-filename.c: Renamed from lib/concatpath.c.
47530         (concatenated_filename): Renamed from concatenated_pathname.
47531         * lib/findprog.c: Include filename.h instead of pathname.h.
47532         (find_in_path): Update.
47533         * lib/javacomp.c: Include filename.h instead of pathname.h.
47534         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47535         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47536         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47537         is_oldgcj_14_13_usable, is_javac_usable): Update.
47538         * lib/javaexec.c: Include filename.h instead of pathname.h.
47539         (execute_java_class): Update.
47540         * modules/findprog: Update.
47541         * modules/javacomp: Update.
47542         * modules/javaexec: Update.
47543         * MODULES.html.sh (File system functions): Add 'filename', remove
47544         'pathname'.
47545
47546 2007-02-25  Bruno Haible  <bruno@clisp.org>
47547
47548         * modules/printf-frexpl-tests: New file.
47549         * tests/test-printf-frexpl.c: New file.
47550
47551         * modules/printf-frexpl: New file.
47552         * lib/printf-frexpl.h: New file.
47553         * lib/printf-frexpl.c: New file.
47554         * m4/printf-frexpl.m4: New file.
47555
47556 2007-02-25  Bruno Haible  <bruno@clisp.org>
47557
47558         * modules/printf-frexp-tests: New file.
47559         * tests/test-printf-frexp.c: New file.
47560
47561         * modules/printf-frexp: New file.
47562         * lib/printf-frexp.h: New file.
47563         * lib/printf-frexp.c: New file.
47564         * m4/printf-frexp.m4: New file.
47565
47566 2007-02-25  Bruno Haible  <bruno@clisp.org>
47567
47568         Assume automake >= 1.10 for the tests.
47569         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
47570         * modules/arctwo-tests: Likewise.
47571         * modules/argp-tests: Likewise.
47572         * modules/avltree-list-tests: Likewise.
47573         * modules/avltree-oset-tests: Likewise.
47574         * modules/avltreehash-list-tests: Likewise.
47575         * modules/carray-list-tests: Likewise.
47576         * modules/crc-tests: Likewise.
47577         * modules/des-tests: Likewise.
47578         * modules/gc-arcfour-tests: Likewise.
47579         * modules/gc-arctwo-tests: Likewise.
47580         * modules/gc-des-tests: Likewise.
47581         * modules/gc-hmac-md5-tests: Likewise.
47582         * modules/gc-hmac-sha1-tests: Likewise.
47583         * modules/gc-md2-tests: Likewise.
47584         * modules/gc-md4-tests: Likewise.
47585         * modules/gc-md5-tests: Likewise.
47586         * modules/gc-pbkdf2-sha1-tests: Likewise.
47587         * modules/gc-rijndael-tests: Likewise.
47588         * modules/gc-sha1-tests: Likewise.
47589         * modules/gc-tests: Likewise.
47590         * modules/getaddrinfo-tests: Likewise.
47591         * modules/hmac-md5-tests: Likewise.
47592         * modules/hmac-sha1-tests: Likewise.
47593         * modules/linked-list-tests: Likewise.
47594         * modules/linkedhash-list-tests: Likewise.
47595         * modules/lock-tests: Likewise.
47596         * modules/md2-tests: Likewise.
47597         * modules/md4-tests: Likewise.
47598         * modules/md5-tests: Likewise.
47599         * modules/rbtree-list-tests: Likewise.
47600         * modules/rbtree-oset-tests: Likewise.
47601         * modules/rbtreehash-list-tests: Likewise.
47602         * modules/read-file-tests: Likewise.
47603         * modules/rijndael-tests: Likewise.
47604         * modules/stdint-tests: Likewise.
47605         * modules/tls-tests: Likewise.
47606
47607 2007-02-24  Bruno Haible  <bruno@clisp.org>
47608
47609         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
47610         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
47611         function; instead check whether isnan with a double argument links.
47612         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
47613         function; instead check whether isnan with a 'long double' argument
47614         links.
47615         Reported by Eric Blake <ebb9@byu.net>.
47616
47617 2007-02-24  Bruno Haible  <bruno@clisp.org>
47618
47619         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
47620         defined.
47621         * lib/isnanl.c: Remove all code. Just include isnan.c.
47622         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
47623
47624 2007-02-25  Jim Meyering  <jim@meyering.net>
47625
47626         Avoid conflicting types for 'unsetenv' on FreeBSD.
47627         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
47628         conflicting with FreeBSD's (5.0 and 6.1) function declaration
47629         in stdlib.h.
47630
47631 2007-02-24  Bruno Haible  <bruno@clisp.org>
47632
47633         * modules/isnanl-nolibm-tests: New file.
47634         * tests/test-isnanl.c: New file.
47635
47636         * modules/isnanl-nolibm: New file.
47637         * lib/isnanl.h: New file.
47638         * lib/isnanl.c: New file.
47639         * m4/isnanl.m4: New file.
47640
47641 2007-02-24  Bruno Haible  <bruno@clisp.org>
47642
47643         * modules/isnan-nolibm-tests: New file.
47644         * tests/test-isnan.c: New file.
47645
47646         * modules/isnan-nolibm: New file.
47647         * lib/isnan.h: New file.
47648         * lib/isnan.c: New file.
47649         * m4/isnan.m4: New file.
47650
47651 2007-02-24  Bruno Haible  <bruno@clisp.org>
47652
47653         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
47654         assume that an exponent fits in 20 bits.
47655
47656 2007-02-24  Jim Meyering  <jim@meyering.net>
47657
47658         * m4/regex.m4: Update the description of the configure-time option,
47659         --without-included-regex, to state accurately what the defaults are,
47660         and perhaps to give people an idea why using this option is risky.
47661
47662 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47663
47664         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
47665         loops on small arguments.  This attempts to avoid the problem
47666         Bruno Haible reported for AIX 4.3.2 in
47667         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
47668
47669 2007-02-23  Bruno Haible  <bruno@clisp.org>
47670
47671         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
47672         Needed for help2man.
47673
47674 2007-02-23  Karl Berry  <karl@gnu.org>
47675
47676         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
47677         exists, foo.h should be cvs-ignored, not committed.
47678
47679 2007-02-23  Eric Blake  <ebb9@byu.net>
47680
47681         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
47682         * lib/stat-time.h (includes): Likewise.
47683         * lib/utimecmp.c (includes): Likewise.
47684         * lib/utimens.h (includes): Likewise.
47685         * lib/getdate.y (includes): Also include "timespec.h" for use
47686         internal to the module.
47687         * modules/utimens (Depends-on): Revert yesterday's patch.
47688         * modules/nanosleep (Depends-on): Add missing dependency.
47689
47690 2007-02-22  Bruno Haible  <bruno@clisp.org>
47691
47692         * lib/glob.c: Don't include getlogin_r.h.
47693
47694 2007-02-22  Jim Meyering  <jim@meyering.net>
47695
47696         * modules/utimens (Depends-on): Add timespec, required for
47697         utimens.h's inclusion of timespec.h.
47698
47699 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
47700
47701         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
47702         long unreadable paths in GNU/Linux.  Problem reported by Andreas
47703         Schwab in
47704         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
47705         I'll try to think of a better way to fix the Solaris problem.
47706
47707         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
47708         like glibc; on Solaris 10, it fails with errno == EINVAL.
47709         POSIX says the behavior is unspecified if the first argument is NULL,
47710         so play it safe and never pass NULL to the system getcwd.
47711
47712 2007-02-21  Jim Meyering  <jim@meyering.net>
47713
47714         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
47715         of gettimeofday.  It would conflict with the one now always
47716         provided via sys_time_.h.  Reported by Matthew Woehlke, as
47717         an IRIX 6.5 build failure.
47718
47719 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47720
47721         Minor fixups to port to Solaris 10 with Sun C 5.8.
47722         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
47723         * modules/getcwd (Depends-on): Add dirfd.
47724         * lib/putenv.c (putenv): #undef it.
47725         (rpl_putenv): New decl.
47726         (malloc, free): Include <stdlib.h> rather than prototyping separately.
47727
47728 2007-02-20  Bruno Haible  <bruno@clisp.org>
47729
47730         * modules/stdio-tests: New file.
47731         * tests/test-stdio.c: New file.
47732
47733         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
47734         (Depends-on): Add stdio.
47735         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47736         (Include): Use <stdio.h> instead of vsnprintf.h.
47737         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47738         HAVE_DECL_VSNPRINTF.
47739         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
47740
47741         * modules/snprintf (Files): Remove lib/snprintf.h.
47742         (Depends-on): Add stdio.
47743         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47744         (Include): Use <stdio.h> instead of snprintf.h.
47745         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47746         HAVE_DECL_SNPRINTF.
47747         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
47748         * lib/getaddrinfo.c: Likewise.
47749
47750         * modules/stdio: New file.
47751         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
47752         * lib/snprintf.h: Remove file.
47753         * lib/vsnprintf.h: Remove file.
47754         * lib/.cppi-disable: Remove snprintf.h.
47755         * m4/stdio_h.m4: New file.
47756         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
47757
47758 2007-02-20  Jim Meyering  <jim@meyering.net>
47759
47760         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
47761         used by e.g., mingw.  From Bruno Haible.
47762
47763 2007-02-19  Bruno Haible  <bruno@clisp.org>
47764
47765         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
47766         warnings.
47767         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47768
47769 2007-02-19  Bruno Haible  <bruno@clisp.org>
47770
47771         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
47772         from mingw users.
47773
47774 2007-02-19  Bruno Haible  <bruno@clisp.org>
47775
47776         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
47777         warnings.
47778         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
47779
47780 2007-02-19  Jim Meyering  <jim@meyering.net>
47781
47782         Don't use FD after a successful "fdopendir (fd)".
47783         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
47784         Reset it by calling dirfd on the just-obtained DIR*.
47785
47786         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
47787         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
47788
47789 2007-02-18  Bruno Haible  <bruno@clisp.org>
47790
47791         * lib/readlink.c: Include <unistd.h>.
47792         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
47793         HAVE_READLINK.
47794         * modules/readlink (Depends-on): Add unistd.
47795         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47796         (Include): Add <unistd.h>.
47797
47798         * lib/getlogin_r.h: Remove file.
47799         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
47800         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
47801         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
47802         HAVE_DECL_GETLOGIN_R.
47803         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
47804         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47805         (Include): Use <unistd.h> instead of getlogin_r.h.
47806
47807         * lib/getcwd.h: Remove file.
47808         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
47809         * lib/xgetcwd.c: Likewise.
47810         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
47811         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
47812         * modules/getcwd (Files): Remove lib/getcwd.h.
47813         (Depends-on): Add unistd.
47814         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47815         (Include): Use <unistd.h> instad of getcwd.h.
47816
47817         * lib/ftruncate.c: Include <unistd.h> first.
47818         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
47819         Set HAVE_FTRUNCATE.
47820         * modules/ftruncate (Depends-on): Add unistd.
47821         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47822
47823         * lib/fchdir.c: Include <unistd.h> first.
47824         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
47825         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
47826         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
47827         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47828         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
47829
47830         * lib/dup2.c: Include <unistd.h> first.
47831         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
47832         HAVE_DUP2.
47833         * modules/dup2 (Depends-on): Add unistd.
47834         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47835
47836         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
47837         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
47838         REPLACE_CHOWN. Don't define chown as a macro here.
47839         * modules/chown (Depends-on): Add unistd.
47840         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47841
47842         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
47843         Add definition for GL_LINK_WARNING.
47844         (chown, dup2): New declarations.
47845         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
47846         link warning.
47847         (ftruncate): New declaration.
47848         (getcwd): New declaration, taken from old getcwd.h.
47849         (getlogin_r): New declaration, taken from old getlogin_r.h.
47850         (readlink): New declaration.
47851         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
47852         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
47853         (gl_PREREQ_UNISTD): Remove macro.
47854         (gl_UNISTD_MODULE_INDICATOR): New macro.
47855         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
47856         many new variables. Don't set UNISTD_H.
47857         * modules/unistd (Description): Change.
47858         (Depends-on): Add link-warning.
47859         (configure.ac): Update.
47860         (Makefile.am): Create unistd.h always. Substitute many new variables
47861         into it.
47862
47863 2007-02-18  Bruno Haible  <bruno@clisp.org>
47864
47865         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
47866         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
47867         HAVE_GETSUBOPT.
47868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
47869         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
47870         * lib/getsubopt.h: Remove file.
47871         * modules/getsubopt (Files): Remove lib/getsubopt.h.
47872         (Depends-on): Add stdlib.
47873         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47874         (Includes): Use <stdlib.h> instead of getsubopt.h.
47875         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
47876         Set HAVE_GETSUBOPT.
47877         * lib/getsubopt.c: Don't include getsubopt.h.
47878
47879 2007-02-18  Bruno Haible  <bruno@clisp.org>
47880
47881         * modules/fchdir (Depends-on): Add dup2.
47882
47883 2007-02-18  Bruno Haible  <bruno@clisp.org>
47884
47885         * lib/stdlib_.h: Handle glibc's special invocation convention
47886         specially.
47887
47888 2007-02-18  Bruno Haible  <bruno@clisp.org>
47889
47890         * modules/stdlib-tests: New file.
47891         * tests/test-stdlib.c: New file.
47892
47893         * modules/mkstemp (Files): Remove lib/mkstemp.h.
47894         (Depends-on): Add stdlib.
47895         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47896         (Includes): Use <stdlib.h> instead of mkstemp.h.
47897         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47898         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
47899         * lib/mkstemp.c: Don't include mkstemp.h.
47900         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
47901         * lib/stdlib--.h: Don't include mkstemp.h.
47902
47903         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
47904         (Depends-on): Add stdlib.
47905         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47906         (Includes): Use <stdlib.h> instead of mkdtemp.h.
47907         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47908         HAVE_MKDTEMP.
47909         * lib/mkdtemp.c: Don't include mkdtemp.h.
47910         * lib/clean-temp.c: Don't include mkdtemp.h.
47911
47912         * modules/exit (Files): Remove lib/exit.h.
47913         (Depends-on): Add stdlib.
47914         (Makefile.am): Remove lib_SOURCES.
47915         (Include): Use <stdlib.h> instead of exit.h.
47916         * lib/argmatch.c: Don't include exit.h.
47917         * lib/execute.c: Likewise.
47918         * lib/pagealign_alloc.c: Likewise.
47919         * lib/pipe.c: Likewise.
47920         * lib/wait-process.c: Likewise.
47921         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
47922         * lib/exitfail.c: Likewise.
47923         * lib/savewd.c: Likewise.
47924         * lib/xsetenv.c: Likewise.
47925
47926         * modules/stdlib: New file.
47927         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
47928         and extra comments about mkstemp().
47929         * lib/exit.h: Remove file.
47930         * lib/mkdtemp.h: Remove file.
47931         * lib/mkstemp.h: Remove file.
47932         * m4/stdlib_h.m4: New file.
47933         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
47934
47935 2007-02-18  Bruno Haible  <bruno@clisp.org>
47936
47937         * modules/math-tests: New file.
47938         * tests/test-math.c: New file.
47939
47940         * modules/math: New file.
47941         * modules/mathl (Files): Remove lib/mathl.h.
47942         (Depends-on): Add math.
47943         (Makefile.am): Don't mention mathl.h.
47944         (Include): Use <math.h> instead of mathl.h.
47945         * lib/math_.h: New file.
47946         * lib/mathl.h: Remove file.
47947         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
47948         mathl.h.
47949         * lib/asinl.c: Likewise.
47950         * lib/atanl.c: Likewise.
47951         * lib/ceill.c: Likewise.
47952         * lib/cosl.c: Likewise.
47953         * lib/expl.c: Likewise.
47954         * lib/floorl.c: Likewise.
47955         * lib/frexpl.c: Likewise.
47956         * lib/ldexpl.c: Likewise.
47957         * lib/logl.c: Likewise.
47958         * lib/sincosl.c: Likewise.
47959         * lib/sinl.c: Likewise.
47960         * lib/sqrtl.c: Likewise.
47961         * lib/tanl.c: Likewise.
47962         * lib/trigl.c: Likewise.
47963         * m4/math_h.m4: New file.
47964         * MODULES.html.sh (Mathematics): Add math.
47965
47966 2007-02-17  Bruno Haible  <bruno@clisp.org>
47967
47968         * modules/wctype-tests: New file.
47969         * tests/test-wctype.c: New file.
47970
47971         * modules/wchar-tests: New file.
47972         * tests/test-wchar.c: New file.
47973
47974         * modules/unistd-tests: New file.
47975         * tests/test-unistd.c: New file.
47976
47977         * modules/time-tests: New file.
47978         * tests/test-time.c: New file.
47979
47980         * modules/sysexits-tests: New file.
47981         * tests/test-sysexits.c: New file.
47982
47983         * modules/sys_time-tests: New file.
47984         * tests/test-sys_time.c: New file.
47985
47986         * modules/sys_stat-tests: New file.
47987         * tests/test-sys_stat.c: New file.
47988
47989         * modules/sys_socket-tests: New file.
47990         * tests/test-sys_socket.c: New file.
47991
47992         * modules/sys_select-tests: New file.
47993         * tests/test-sys_select.c: New file.
47994
47995         * modules/string-tests: New file.
47996         * tests/test-string.c: New file.
47997
47998         * modules/stdbool-tests: New file.
47999         * tests/test-stdbool.c: New file.
48000
48001         * modules/netinet_in-tests: New file.
48002         * tests/test-netinet_in.c: New file.
48003
48004         * modules/inttypes-tests: New file.
48005         * tests/test-inttypes.c: New file.
48006
48007         * modules/fcntl-tests: New file.
48008         * tests/test-fcntl.c: New file.
48009
48010         * modules/byteswap-tests: New file.
48011         * tests/test-byteswap.c: New file.
48012
48013         * modules/arpa_inet-tests: New file.
48014         * tests/test-arpa_inet.c: New file.
48015
48016 2007-02-17  Bruno Haible  <bruno@clisp.org>
48017
48018         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
48019         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
48020         if the corresponding module is not enabled. Emit link warnings if
48021         the function is used nevertheless.
48022         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
48023         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
48024         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
48025         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
48026         * modules/inttypes (Depends-on): Add link-warning.
48027         (Makefile.am): Copy the contents of build-aux/link-warning.h into
48028         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
48029         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
48030         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
48031         * modules/imaxdiv (configure.ac): Likewise.
48032         * modules/strtoimax (configure.ac): Likewise.
48033         * modules/strtoumax (configure.ac): Likewise.
48034
48035 2007-02-17  Bruno Haible  <bruno@clisp.org>
48036
48037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
48038         gl_STRING_MODULE_INDICATOR_DEFAULTS.
48039         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
48040         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
48041
48042 2007-02-17  Bruno Haible  <bruno@clisp.org>
48043
48044         * modules/link-warning: New file.
48045         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
48046         * lib/string_.h (GL_LINK_WARNING): Remove definition.
48047         * modules/string (Depends-on): Add link-warning.
48048         (Makefile.am): Copy the contents of build-aux/link-warning.h into
48049         string.h.
48050         * MODULES.html.sh (Support for building libraries and executables): Add
48051         link-warning.
48052
48053 2007-02-17  Bruno Haible  <bruno@clisp.org>
48054
48055         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
48056         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
48057         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
48058         long lines.
48059
48060 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
48061             Bruno Haible  <bruno@clisp.org>
48062
48063         * modules/tmpfile: New file.
48064         * lib/tmpfile.c: New file.
48065         * m4/tmpfile.m4: New file.
48066         * MODULES.html.sh (func_all_modules): New section "Input/output".
48067
48068 2007-02-15  Bruno Haible  <bruno@clisp.org>
48069
48070         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
48071         (supports_delete_on_close): New function.
48072         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
48073
48074 2007-02-14  Bruno Haible  <bruno@clisp.org>
48075
48076         * modules/mbspcasecmp-tests: New file.
48077         * tests/test-mbspcasecmp.sh: New file.
48078         * tests/test-mbspcasecmp.c: New file.
48079
48080         New module mbspcasecmp.
48081         * modules/mbspcasecmp: New file.
48082         * lib/mbspcasecmp.c: New file.
48083         * lib/string_.h (strncasecmp): Change warning message.
48084         (mbspcasecmp): New declaration.
48085         * m4/mbspcasecmp.m4: New file.
48086         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48087         GNULIB_MBSPCASECMP.
48088         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
48089         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
48090
48091 2007-02-14  Bruno Haible  <bruno@clisp.org>
48092
48093         * modules/mbsncasecmp-tests: New file.
48094         * tests/test-mbsncasecmp.sh: New file.
48095         * tests/test-mbsncasecmp.c: New file.
48096
48097         New module mbsncasecmp.
48098         * modules/mbsncasecmp: New file.
48099         * lib/mbsncasecmp.c: New file.
48100         * lib/string_.h (mbsncasecmp): New declaration.
48101         * m4/mbsncasecmp.m4: New file.
48102         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48103         GNULIB_MBSNCASECMP.
48104         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
48105         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
48106
48107 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48108
48109         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
48110         Verify that it doesn't overlap with our flags.
48111         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
48112         do not have the desired effect in multibyte locales; instead, use
48113         mbscasecmp.
48114         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
48115         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
48116         we don't require GNU fnmatch ourselves (if our users require it, they
48117         should do so explicitly).
48118
48119         Fix regex code so it doesn't rely on strcasecmp.
48120         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
48121         Otherwise, include gnulib's langinfo.h.
48122         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
48123         undesirable behavior in non-C locales.  Instead, rely on localecharset.
48124         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
48125         * modules/regex (FILES): Remove m4/codeset.m4.
48126         (Depends-on): Add localcharset.  Remove strcase.
48127
48128 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48129
48130         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
48131         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
48132
48133 2007-02-13  Bruno Haible  <bruno@clisp.org>
48134
48135         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
48136         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48137
48138 2007-02-12  Bruno Haible  <bruno@clisp.org>
48139
48140         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48141         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
48142         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
48143         time warning rather than a link error.
48144
48145 2007-02-12  Bruno Haible  <bruno@clisp.org>
48146
48147         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
48148         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48149         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48150
48151 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48152
48153         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
48154         args, not 2.
48155
48156 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48157
48158         New module 'time', so that apps can include <time.h> as per
48159         POSIX and GNU instead of separate include files like time_r.h
48160         and timegm.h.  This implementation tries out a simpler approach
48161         for replacing decls in standard include files (as compared to
48162         the string module), somewhat as an experiment.
48163
48164         * config/srclist.txt: Comment out mktime.c for now.
48165         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
48166         since it doesn't apply any more.  Use generic wording instead.
48167         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
48168         'time'.
48169         * lib/time_.h, m4/time_h.m4, modules/time: New files.
48170         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
48171         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
48172         Don't include <sys/types.h>; no longer needed since we assume C89.
48173         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
48174         * lib/strftime.c: Likewise.
48175         * lib/time_r.c: Likewise.
48176         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
48177         * lib/nanosleep.c: Include <time.h> first, to check interface.
48178         * lib/strptime.c: Likewise.
48179         * lib/time_r.c: Likewise.
48180         * lib/timegm.c: Likewise.
48181         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
48182         needed.
48183         * lib/timegm.c: Don't include timegm.h; no longer needed.
48184         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
48185         time.h now handles any problems in that area.
48186         (struct timespec, nanosleep): Remove; time.h now arranges for these.
48187         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
48188         that time.h defines struct timespec.
48189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
48190         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
48191         handles that.
48192         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
48193         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
48194         needed.  Set REPLACE_LOCALTIME.
48195         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
48196         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
48197         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
48198         nanosleep; time_h.m4 now does that.  Don't require
48199         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
48200         module handles this now.
48201         * modules/getdate (Depends-on): Remove timespec.  Add time.
48202         * modules/nanosleep (Depends-on): Likewise.
48203         * modules/stat-time (Depends-on): Likewise.
48204         * modules/nanosleep (Include): Include time.h, not timespec.h.
48205         * modules/strptime (Files): Remove lib/strptime.h.
48206         (Depends-on): Add extensions, time.
48207         (Include): Include time.h, not strptime.h.
48208         * modules/time_r (Files): Remove lib/time_r.h.
48209         (Depends-on): Add time.
48210         (Include): Include time.h, not time_r.h.
48211         * modules/timegm: Likewise.
48212         * modules/timespec (Description): Now does timespec-related decls
48213         of our own, instead of struct timespec itself.
48214         (Depends-on): Add time; remove extensions.
48215         (Maintainer): Add self.
48216         * modules/utimecmp (Depends-on): Add time; remove timespec.
48217         * modules/utimens (Depends-on): Likewise.
48218         * modules/xnanosleep (Depends-on): Likewise.
48219
48220 2007-02-11  Bruno Haible  <bruno@clisp.org>
48221
48222         * lib/c-strstr.c: Include allocsa.h.
48223         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48224         * lib/c-strcasestr.c: Include allocsa.h.
48225         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48226         * lib/strcasestr.c: Include allocsa.h.
48227         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48228         * lib/mbsstr.c: Include allocsa.h.
48229         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48230         allocsa/freesa instead of malloc/free.
48231         * lib/mbscasestr.c: Include allocsa.h.
48232         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48233         allocsa/freesa instead of malloc/free.
48234         * modules/c-strstr (Depends-on): Add allocsa.
48235         * modules/c-strcasestr (Depends-on): Likewise.
48236         * modules/strcasestr (Depends-on): Likewise.
48237         * modules/mbsstr (Depends-on): Likewise.
48238         * modules/mbscasestr (Depends-on): Likewise.
48239
48240 2007-02-11  Bruno Haible  <bruno@clisp.org>
48241
48242         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
48243
48244         * modules/mbsspn-tests: New file.
48245         * tests/test-mbsspn.sh: New file.
48246         * tests/test-mbsspn.c: New file.
48247
48248 2007-02-11  Bruno Haible  <bruno@clisp.org>
48249
48250         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
48251
48252         * modules/mbspbrk-tests: New file.
48253         * tests/test-mbspbrk.sh: New file.
48254         * tests/test-mbspbrk.c: New file.
48255
48256 2007-02-11  Bruno Haible  <bruno@clisp.org>
48257
48258         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
48259         unneeded cast.
48260
48261         * modules/mbscspn-tests: New file.
48262         * tests/test-mbscspn.sh: New file.
48263         * tests/test-mbscspn.c: New file.
48264
48265 2007-02-11  Bruno Haible  <bruno@clisp.org>
48266
48267         * modules/mbscasecmp-tests: New file.
48268         * tests/test-mbscasecmp.sh: New file.
48269         * tests/test-mbscasecmp.c: New file.
48270
48271 2007-02-11  Bruno Haible  <bruno@clisp.org>
48272
48273         Ensure O(n) worst-case complexity of mbscasestr.
48274         * lib/mbscasestr.c: Include stdbool.h.
48275         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48276         functions.
48277         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
48278         the bookkeeping indicates that it's worth it.
48279         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
48280
48281         * modules/mbscasestr-tests: New file.
48282         * tests/test-mbscasestr1.c: New file.
48283         * tests/test-mbscasestr2.sh: New file.
48284         * tests/test-mbscasestr2.c: New file.
48285         * tests/test-mbscasestr3.sh: New file.
48286         * tests/test-mbscasestr3.c: New file.
48287         * tests/test-mbscasestr4.sh: New file.
48288         * tests/test-mbscasestr4.c: New file.
48289         * m4/locale-tr.m4: New file.
48290
48291 2007-02-11  Bruno Haible  <bruno@clisp.org>
48292
48293         Ensure O(n) worst-case complexity of mbsstr.
48294         * lib/mbsstr.c: Include stdbool.h.
48295         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48296         functions.
48297         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
48298         bookkeeping indicates that it's worth it.
48299         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
48300
48301         * modules/mbsstr-tests: New file.
48302         * tests/test-mbsstr1.c: New file.
48303         * tests/test-mbsstr2.sh: New file.
48304         * tests/test-mbsstr2.c: New file.
48305         * tests/test-mbsstr3.sh: New file.
48306         * tests/test-mbsstr3.c: New file.
48307         * m4/locale-fr.m4: New file.
48308
48309 2007-02-11  Bruno Haible  <bruno@clisp.org>
48310
48311         * lib/mbsrchr.c (mbsrchr): Fix bug.
48312
48313         * modules/mbsrchr-tests: New file.
48314         * tests/test-mbsrchr.sh: New file.
48315         * tests/test-mbsrchr.c: New file.
48316
48317 2007-02-11  Bruno Haible  <bruno@clisp.org>
48318
48319         * lib/mbschr.c (mbschr): Fix bug.
48320
48321         * modules/mbschr-tests: New file.
48322         * tests/test-mbschr.sh: New file.
48323         * tests/test-mbschr.c: New file.
48324         * m4/locale-zh.m4: New file.
48325
48326 2007-02-11  Bruno Haible  <bruno@clisp.org>
48327
48328         Support for copying multibyte string iterators.
48329         * lib/mbiter.h: Include <string.h>.
48330         (mbiter_multi_copy): New function.
48331         (mbi_copy): New macro.
48332         * lib/mbuiter.h: Include <string.h>.
48333         (mbuiter_multi_copy): New function.
48334         (mbui_copy): New macro.
48335
48336 2007-02-11  Bruno Haible  <bruno@clisp.org>
48337
48338         New module mbslen.
48339         * modules/mbslen: New file.
48340         * lib/mbslen.c: New file.
48341         * lib/string_.h (mbslen): New declaration.
48342         * m4/mbslen.m4: New file.
48343         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48344         GNULIB_MBSLEN.
48345         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
48346         * MODULES.html.sh (Internationalization functions): Add mbslen.
48347
48348 2007-02-11  Bruno Haible  <bruno@clisp.org>
48349
48350         Ensure O(n) worst-case complexity of strcasestr substitute.
48351         * lib/strcasestr.c: Include stdbool.h.
48352         (knuth_morris_pratt): New function.
48353         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48354         bookkeeping indicates that it's worth it.
48355         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
48356
48357         * modules/strcasestr-tests: New file.
48358         * tests/test-strcasestr.c: New file.
48359
48360 2007-02-11  Bruno Haible  <bruno@clisp.org>
48361
48362         Ensure O(n) worst-case complexity of c_strcasestr.
48363         * lib/c-strcasestr.c: Include stdbool.h, string.h.
48364         (knuth_morris_pratt): New function.
48365         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
48366         the bookkeeping indicates that it's worth it.
48367         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
48368
48369         * modules/c-strcasestr-tests: New file.
48370         * tests/test-c-strcasestr.c: New file.
48371
48372 2007-02-11  Bruno Haible  <bruno@clisp.org>
48373
48374         Ensure O(n) worst-case complexity of c_strstr.
48375         * lib/c-strstr.c: Include stdbool.h, string.h.
48376         (knuth_morris_pratt): New function.
48377         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48378         bookkeeping indicates that it's worth it.
48379         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
48380
48381         * lib/c-strstr.c: Complete rewrite for maintainability.
48382
48383         * modules/c-strstr-tests: New file.
48384         * tests/test-c-strstr.c: New file.
48385
48386 2007-02-11  Bruno Haible  <bruno@clisp.org>
48387
48388         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
48389         5.2.1 and earlier, whereby \055 was treated just like the range
48390         delimiter '-'.
48391         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48392
48393 2007-02-08  Bruno Haible  <bruno@clisp.org>
48394
48395         * modules/regex (Depends-on): Add stdbool.
48396         Reported by Dalibor Topic <robilad@kaffe.org>.
48397
48398 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48399
48400         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
48401         Prefer returning from main to exiting from it.
48402         Remove unnecessary parens after sizeof.
48403
48404 2007-02-05  Bruno Haible  <bruno@clisp.org>
48405
48406         New module mbssep.
48407         * modules/mbssep: New file.
48408         * lib/mbssep.c: New file.
48409         * lib/string_.h (strsep): Add a conditional link warning.
48410         (mbssep): New declaration.
48411         * m4/mbssep.m4: New file.
48412         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48413         GNULIB_MBSSEP.
48414         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
48415         * MODULES.html.sh (Internationalization functions): Add mbssep.
48416
48417 2007-02-05  Bruno Haible  <bruno@clisp.org>
48418
48419         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
48420         Optimize search in case of 1 delimiter.
48421
48422 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48423
48424         * lib/acl.h: Include sys/types.h before sys/acl.h.
48425
48426 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48427
48428         Merge upstream fix for glibc bugzilla #3957:
48429
48430         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
48431
48432         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
48433         bit for RE_HAT_LISTS_NOT_NEWLINE.
48434         (build_charclass_op): Remove bogus comment.
48435
48436 2007-02-05  Simon Josefsson  <simon@josefsson.org>
48437
48438         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
48439
48440 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48441
48442         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
48443         * lib/memmem.c [!defined _LIBC]: Include config.h.
48444
48445 2007-02-04  Bruno Haible  <bruno@clisp.org>
48446
48447         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
48448         warning message.
48449
48450 2007-02-04  Bruno Haible  <bruno@clisp.org>
48451
48452         New module mbstok_r.
48453         * modules/mbstok_r: New file.
48454         * lib/mbstok_r.c: New file.
48455         * lib/string_.h (strtok_r): Change argument names to match the
48456         comments. Add a conditional link warning.
48457         (mbstok_r): New declaration.
48458         * m4/mbstok_r.m4: New file.
48459         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48460         GNULIB_MBSTOK_R.
48461         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
48462         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
48463
48464 2007-02-04  Bruno Haible  <bruno@clisp.org>
48465
48466         New module mbsspn.
48467         * modules/mbsspn: New file.
48468         * lib/mbsspn.c: New file.
48469         * lib/string_.h (strspn): Add a conditional link warning.
48470         (mbsspn): New declaration.
48471         * m4/mbsspn.m4: New file.
48472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48473         GNULIB_MBSSPN.
48474         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
48475         * MODULES.html.sh (Internationalization functions): Add mbsspn.
48476
48477 2007-02-04  Bruno Haible  <bruno@clisp.org>
48478
48479         New module mbspbrk.
48480         * modules/mbspbrk: New file.
48481         * lib/mbspbrk.c: New file.
48482         * lib/string_.h (strpbrk): Add a conditional link warning.
48483         (mbspbrk): New declaration.
48484         * m4/mbspbrk.m4: New file.
48485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48486         GNULIB_MBSPBRK.
48487         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
48488         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
48489
48490 2007-02-04  Bruno Haible  <bruno@clisp.org>
48491
48492         New module mbscspn.
48493         * modules/mbscspn: New file.
48494         * lib/mbscspn.c: New file.
48495         * lib/string_.h (strcspn): Add a conditional link warning.
48496         (mbscspn): New declaration.
48497         * m4/mbscspn.m4: New file.
48498         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48499         GNULIB_MBSCSPN.
48500         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
48501         * MODULES.html.sh (Internationalization functions): Add mbscspn.
48502
48503 2007-02-04  Bruno Haible  <bruno@clisp.org>
48504
48505         New module mbscasestr, reduced goal of strcasestr.
48506         * modules/mbscasestr: New file.
48507         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
48508         (mbscasestr): Renamed from strcasestr.
48509         * lib/strcasestr.c: Don't include mbuiter.h.
48510         (strcasestr): Remove support for multibyte locales.
48511         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
48512         Change the conditional link warning.
48513         (mbscasestr): New declaration.
48514         * m4/mbscasestr.m4: New file.
48515         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
48516         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
48517         REPLACE_STRCASESTR.
48518         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
48519         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48520         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48521         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
48522         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
48523         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48524         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
48525         (Depends-on): Remove mbuiter.
48526         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
48527
48528 2007-02-04  Bruno Haible  <bruno@clisp.org>
48529
48530         Simplify handling of strncasecmp.
48531         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
48532         the conditional link warning.
48533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48534         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
48535         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
48536         * modules/strcase (configure.ac): Don't invoke
48537         gl_STRING_MODULE_INDICATOR.
48538         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
48539
48540 2007-02-04  Bruno Haible  <bruno@clisp.org>
48541
48542         New module mbscasecmp, reduced goal of strcasecmp.
48543         * modules/mbscasecmp: New file.
48544         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
48545         (mbscasecmp): Renamed from strcasecmp.
48546         * lib/strcasecmp.c: Don't include mbuiter.h.
48547         (strcasecmp): Remove support for multibyte locales.
48548         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
48549         Change the conditional link warning.
48550         (mbscasecmp): New declaration.
48551         * m4/mbscasecmp.m4: New file.
48552         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
48553         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
48554         REPLACE_STRCASECMP.
48555         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
48556         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48557         GNULIB_MBSCASECMP.
48558         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
48559         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
48560         * modules/strcase (Files): Remove m4/mbrtowc.m4.
48561         (Depends-on): Remove mbuiter.
48562         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
48563
48564 2007-02-04  Bruno Haible  <bruno@clisp.org>
48565
48566         New module mbsstr. Remove module strstr.
48567         * modules/mbsstr: New file.
48568         * modules/strstr: Remove file.
48569         * lib/mbsstr.c: Renamed from lib/strstr.c.
48570         (mbsstr): Renamed from strstr.
48571         * lib/string_.h (strstr): Remove declaration. Change the conditional
48572         link warning.
48573         (mbsstr): New declaration.
48574         * m4/mbsstr.m4: New file.
48575         * m4/strstr.m4: Remove file.
48576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
48577         REPLACE_STRSTR.
48578         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
48579         Don't initialize GNULIB_STRSTR.
48580         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
48581         substitute GNULIB_STRSTR and REPLACE_STRSTR.
48582         * MODULES.html.sh (Internationalization functions): Add mbsstr.
48583         (Support for systems lacking ANSI C 89): Remove strstr.
48584
48585 2007-02-04  Bruno Haible  <bruno@clisp.org>
48586
48587         New module mbsrchr.
48588         * modules/mbsrchr: New file.
48589         * lib/mbsrchr.c: New file.
48590         * lib/string_.h (strrchr): Add a conditional link warning.
48591         (mbsrchr): New declaration.
48592         * m4/mbsrchr.m4: New file.
48593         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48594         GNULIB_MBSRCHR.
48595         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
48596         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
48597
48598 2007-02-04  Bruno Haible  <bruno@clisp.org>
48599
48600         New module mbschr.
48601         * modules/mbschr: New file.
48602         * lib/mbschr.c: New file.
48603         * lib/string_.h (strchr): Add a conditional link warning.
48604         (mbschr): New declaration.
48605         * m4/mbschr.m4: New file.
48606         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48607         GNULIB_MBSCHR.
48608         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
48609         * MODULES.html.sh (Internationalization functions): Add mbschr.
48610
48611 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48612
48613         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
48614
48615         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
48616
48617 2007-02-04  Bruno Haible  <bruno@clisp.org>
48618
48619         New module description section 'configure.ac-early'.
48620         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
48621         (func_get_autoconf_early_snippet): New function.
48622         (func_import, func_create_testdir): Use it. Remove special cases for
48623         modules 'extensions' and 'lock'.
48624         * modules/extensions (configure.ac-early): Require
48625         gl_USE_SYSTEM_EXTENSIONS.
48626         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
48627
48628 2007-02-04  Bruno Haible  <bruno@clisp.org>
48629
48630         Make use of gcj-4.3's -fsource and -ftarget option.
48631         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
48632         and if so try the options -fsource and -ftarget.
48633         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
48634         source_version, ftarget_option, target_version arguments.
48635         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
48636         (is_envjavac_oldgcj_14_14_usable): Renamed from
48637         is_envjavac_gcj_14_14_usable.
48638         (is_envjavac_oldgcj_14_13_usable): Renamed from
48639         is_envjavac_gcj_14_13_usable.
48640         (is_gcj_present): Update.
48641         (is_gcj_43, is_gcj43_usable): New functions.
48642         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
48643         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
48644         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
48645         try the options -fsource and -ftarget.
48646
48647 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
48648
48649         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
48650         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
48651         larger value.
48652
48653 2007-02-03  Jim Meyering  <jim@meyering.net>
48654
48655         Give tools a better chance to allocate space for very large buffers.
48656         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
48657
48658         Make pwd and readlink work also when run with an unreadable parent dir
48659         on systems with openat support.
48660         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
48661         provided getcwd function, even when we have openat support.
48662         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
48663
48664 2007-02-02  Bruno Haible  <bruno@clisp.org>
48665
48666         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48667         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
48668         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
48669         portability problems if one of these functions is only used on specific
48670         platforms.
48671         Reported by Paul Eggert.
48672
48673 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
48674
48675         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
48676         is causing more trouble than it's curing.
48677         * lib/regex_internal.h (__mempcpy): Remove.
48678         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
48679         (and make the code a tad smaller to boot).
48680         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
48681
48682 2007-02-02  Jim Meyering  <jim@meyering.net>
48683
48684         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
48685         section, not in the Makefile.am: one.
48686
48687 2007-02-02  Eric Blake  <ebb9@byu.net>
48688
48689         * lib/strchrnul.c: Always include config.h first.
48690
48691         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
48692         gnulib strstr is not necessary here.
48693
48694 2007-02-02  Simon Josefsson  <simon@josefsson.org>
48695
48696         * m4/socklen.m4: Fix typo.
48697
48698 2007-02-02  Eric Blake  <ebb9@byu.net>
48699
48700         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
48701         * modules/netinet_in (Makefile.am): Likewise.
48702
48703 2007-02-01  Bruno Haible  <bruno@clisp.org>
48704
48705         * lib/string_.h (GL_LINK_WARNING): New macro.
48706         (strcasecmp, strstr, strcasestr): If provided by the system,
48707         conditionally define as a macro that leads to a warning instead of to
48708         an error.
48709         (strncasecmp): Conditionally define as a macro that leads to a warning.
48710
48711 2007-02-01  Karl Berry  <karl@gnu.org>
48712
48713         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
48714
48715 2007-02-01  Bruno Haible  <bruno@clisp.org>
48716
48717         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
48718         renamings.
48719
48720 2007-02-01  Eric Blake  <ebb9@byu.net>
48721
48722         * modules/regex (Depends-on): Revert dependence on mempcpy.
48723         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
48724         module's definition of mempcpy.
48725         Reported by Paul Eggert.
48726
48727 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
48728
48729         * lib/string_.h: If the gnulib module XYZ is not present, undefine
48730         the symbol XYZ before redefining it.  This fixes a problem with
48731         programs that don't use XYZ, when compiled on systems that define
48732         XYZ to something else.
48733
48734 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
48735
48736         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
48737         occurs when "mkdir -m foo" creates a setgid directory that is (1)
48738         writeable to group or other and (2) is intended to have a special
48739         mode bit that is set or cleared.  In such a case, the directory
48740         should be neither group- nor other-writeable until the special
48741         mode bits are right.
48742
48743 2007-01-31  Eric Blake  <ebb9@byu.net>
48744
48745         * modules/mountlist (Depends-on): Add strstr.
48746
48747         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
48748         bug.
48749         * modules/string (Makefile.am): Remove redundant replacement.
48750         * modules/regex (Depends-on): Add mempcpy.
48751
48752 2007-01-31  Bruno Haible  <bruno@clisp.org>
48753
48754         New module description field 'Link'.
48755         * gnulib-tool (func_usage): Document --extract-link-directive.
48756         (sed_extract_prog): Recognize 'Link' directive.
48757         (func_get_link_directive): New function.
48758         (func_import): Show summary of link directives.
48759         Handle --extract-link-directive option.
48760         * modules/acl (Link): New section.
48761         * modules/clock-time (Link): New section.
48762         * modules/euidaccess (Link): New section.
48763         * modules/gettext (Link): New section.
48764         * modules/iconv (Link): New section.
48765         * modules/lock (Link): New section.
48766         * modules/nanosleep (Link): New section.
48767         * modules/readline (Link): New section.
48768
48769 2007-01-27  Bruno Haible  <bruno@clisp.org>
48770
48771         Enforce the use of gnulib modules for unportable <string.h> functions.
48772         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
48773         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
48774         (gl_HEADER_STRING_H_BODY): Require it.
48775         * lib/string_.h: If the gnulib module XYZ is not present, redefine
48776         the symbol XYZ to one that gives a link error.
48777         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
48778         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
48779         * modules/mempcpy (configure.ac): Likewise.
48780         * modules/memrchr (configure.ac): Likewise.
48781         * modules/stpcpy (configure.ac): Likewise.
48782         * modules/stpncpy (configure.ac): Likewise.
48783         * modules/strcase (configure.ac): Likewise.
48784         * modules/strcasestr (configure.ac): Likewise.
48785         * modules/strchrnul (configure.ac): Likewise.
48786         * modules/strdup (configure.ac): Likewise.
48787         * modules/strndup (configure.ac): Likewise.
48788         * modules/strnlen (configure.ac): Likewise.
48789         * modules/strpbrk (configure.ac): Likewise.
48790         * modules/strsep (configure.ac): Likewise.
48791         * modules/strstr (configure.ac): Likewise.
48792         * modules/strtok_r (configure.ac): Likewise.
48793
48794 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
48795
48796         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
48797
48798 2007-01-30  Jim Meyering  <jim@meyering.net>
48799
48800         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
48801
48802 2007-01-29  Bruno Haible  <bruno@clisp.org>
48803
48804         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
48805         * lib/execute.c: Likewise.
48806         * lib/pipe.c: Likewise.
48807         * lib/printf-args.h: Likewise.
48808         * lib/printf-args.c: Likewise.
48809         * lib/printf-parse.c: Likewise.
48810         * lib/vasnprintf.c: Likewise.
48811
48812 2007-01-29  Eric Blake  <ebb9@byu.net>
48813
48814         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
48815         declaration.
48816
48817 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
48818
48819         * lib/strptime.h (strptime): Use 'restrict' for args where
48820         POSIX requires this.
48821         * lib/strptime.c (strptime): Likewise.
48822         Change license notice from LGPL to GPL, since gnulib-tool will
48823         change this as needed.
48824         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
48825         defined.
48826         Include "strptime.h" first, to check interface.
48827         Do not #undef _LIBC and _NL_CURRENT.
48828         Do not include <stdlib.h>; no longer needed.
48829         Include "time_r.h" and declare ptime_locale_status
48830         only if _LIBC is not defined.
48831         (__P): Remove unused macro.
48832         (match_string): Bring back glibc version, but use it only if _LIBC
48833         is defined.
48834         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
48835         Remove unnecessary assertion and abort() call.
48836         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
48837         * m4/strptime.m4: Fix serial number comment.
48838         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
48839         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
48840         (Depends-on): Add time_r.
48841
48842 2007-01-29  Bruno Haible  <bruno@clisp.org>
48843
48844         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48845         strptime.
48846         * modules/strptime (Depends-on): Add stdbool.
48847         * lib/strptime.h: Include <time.h> always. Add comments.
48848
48849 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48850
48851         * modules/strptime: New file.
48852         * lib/strptime.h: New file.
48853         * lib/strptime.c: New file.
48854         * m4/strptime.m4: New file.
48855
48856 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
48857
48858         * MODULES.html.sh: New module mpsort.
48859         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
48860
48861         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
48862         a circularity problem with HP-UX ia64 reported by Bob Proulx in
48863         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
48864         All uses changed.
48865         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
48866         All uses changed.
48867         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
48868         to _Restrict_.
48869         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
48870         the parameter matches the prototype.
48871
48872 2007-01-28  Jim Meyering  <jim@meyering.net>
48873
48874         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
48875         sys/time.h here, reverting that part of the previous patch:
48876         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
48877
48878 2007-01-28  Bruno Haible  <bruno@clisp.org>
48879
48880         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
48881         value of $(SYS_TIME_H).
48882         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
48883         remove it conditionally, too. [added by Jim Meyering]
48884         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
48885         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
48886         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
48887         GETTIMEOFDAY_REPLACEMENT to 1.
48888
48889 2007-01-28  Bruno Haible  <bruno@clisp.org>
48890
48891         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
48892         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
48893         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
48894         Set UNISTD_H instead of UNISTD_H2.
48895         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
48896
48897 2007-01-28  Bruno Haible  <bruno@clisp.org>
48898
48899         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
48900         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
48901
48902 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48903
48904         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
48905         (func_create_testdir): Ensure C locale for `grep' and `tr'
48906         character ranges.
48907         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
48908         ACLOCAL_AMFLAGS parsing state machine.
48909
48910 2007-01-27  Bruno Haible  <bruno@clisp.org>
48911
48912         * modules/unistr/base: Update.
48913
48914 2007-01-27  Bruno Haible  <bruno@clisp.org>
48915
48916         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
48917         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
48918         * modules/unistr/u32-mbtouc-unsafe: Renamed from
48919         modules/unistr/u32-mbtouc.
48920         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
48921         * lib/unistr.h: Update.
48922         * lib/linebreak.c: Update.
48923         * modules/unistr/u32-mbtouc: Renamed from
48924         modules/unistr/u32-mbtouc-safe.
48925         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
48926         * lib/unistr.h: Update.
48927         * lib/unistr/u32-to-u8.c: Update.
48928         * lib/unistr/u32-to-u16.c: Update.
48929
48930 2007-01-27  Bruno Haible  <bruno@clisp.org>
48931
48932         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
48933         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
48934         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
48935         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
48936         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
48937         * modules/unistr/u16-mbtouc-unsafe: Renamed from
48938         modules/unistr/u16-mbtouc.
48939         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
48940         * lib/unistr.h: Update.
48941         * lib/linebreak.c: Update.
48942         * modules/linebreak: Update.
48943         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
48944         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
48945         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
48946         * modules/unistr/u16-mbtouc: Renamed from
48947         modules/unistr/u16-mbtouc-safe.
48948         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
48949         * lib/unistr.h: Update.
48950         * lib/unistr/u16-to-u8.c: Update.
48951         * modules/unistr/u16-to-u8: Update.
48952         * lib/unistr/u16-to-u32.c: Update.
48953         * modules/unistr/u16-to-u32: Update.
48954
48955 2007-01-27  Bruno Haible  <bruno@clisp.org>
48956
48957         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
48958         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
48959         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
48960         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
48961         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
48962         * modules/unistr/u8-mbtouc-unsafe: Renamed from
48963         modules/unistr/u8-mbtouc.
48964         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
48965         * lib/unistr.h: Update.
48966         * lib/striconveh.c: Update.
48967         * modules/striconveh: Update.
48968         * lib/linebreak.c: Update.
48969         * modules/linebreak: Update.
48970         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
48971         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
48972         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
48973         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
48974         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
48975         * lib/unistr.h: Update.
48976         * lib/striconveh.c: Update.
48977         * modules/striconveh: Update.
48978         * lib/unistr/u8-to-u16.c: Update.
48979         * modules/unistr/u8-to-u16: Update.
48980         * lib/unistr/u8-to-u32.c: Update.
48981         * modules/unistr/u8-to-u32: Update.
48982
48983 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48984
48985         Sync from Libtool.
48986         * lib/argz.c: Do not include strings.h nor memory.h, include
48987         string.h unconditionally.  Patch by Simon Josefsson.
48988
48989 2007-01-27  Bruno Haible  <bruno@clisp.org>
48990
48991         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
48992         from gl_HEADER_STRING_H_BODY.
48993         (gl_HEADER_STRING_H_BODY): Require it.
48994         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
48995         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48996         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48997         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48998         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48999         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
49000         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49001         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49002         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
49003         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49004         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49005         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
49006         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49007         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49008         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49009
49010 2007-01-27  Bruno Haible  <bruno@clisp.org>
49011
49012         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
49013         check_PROGRAMS into noinst_PROGRAMS.
49014         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
49015         check_PROGRAMS in this case.
49016         (func_import): Set for_test to false.
49017         (func_create_testdir): Set for_test to true.
49018
49019 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49020             Bruno Haible  <bruno@clisp.org>
49021
49022         * modules/strcasestr (Files): Remove lib/strcasestr.h.
49023         (Depends-on): Add string.
49024         (Includes): Use <string.h> instead of strcasestr.h.
49025         * modules/string (Makefile.am): Also substitute the value of
49026         REPLACE_STRCASESTR.
49027         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
49028         assume strcasestr is declared in <string.h> not <strings.h>. Also
49029         set REPLACE_STRCASESTR.
49030         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
49031         REPLACE_STRCASESTR.
49032         * lib/strcasestr.h: Remove file.
49033         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
49034         * lib/string_.h (strcasestr): New declaration.
49035
49036 2007-01-27  Bruno Haible  <bruno@clisp.org>
49037
49038         * lib/string_.h: Use 'extern'.
49039
49040 2007-01-27  Jim Meyering  <jim@meyering.net>
49041
49042         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
49043         of set-but-not-used local, "q".
49044
49045         * lib/mempcpy.c: Include <config.h> before <string.h>.
49046         This fixes a compilation error on HP-UX, due to the system's
49047         "restrict"-using mempcpy prototype.
49048
49049 2007-01-26  Bruno Haible  <bruno@clisp.org>
49050
49051         Small optimization.
49052         * lib/javacomp.c: Include c-strstr.h.
49053          (is_envjavac_gcj): Use c_strstr instead of strstr.
49054         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
49055
49056 2007-01-26  Bruno Haible  <bruno@clisp.org>
49057
49058         * MODULES.html.sh (Unicode string functions): Add the new modules.
49059
49060         * modules/uniconv/u32-strconv-to-locale: New file.
49061         * lib/uniconv/u32-strconv-to-locale.c: New file.
49062
49063         * modules/uniconv/u16-strconv-to-locale: New file.
49064         * lib/uniconv/u16-strconv-to-locale.c: New file.
49065
49066         * modules/uniconv/u8-strconv-to-locale: New file.
49067         * lib/uniconv/u8-strconv-to-locale.c: New file.
49068
49069         * modules/uniconv/u32-strconv-from-locale: New file.
49070         * lib/uniconv/u32-strconv-from-locale.c: New file.
49071
49072         * modules/uniconv/u16-strconv-from-locale: New file.
49073         * lib/uniconv/u16-strconv-from-locale.c: New file.
49074
49075         * modules/uniconv/u8-strconv-from-locale: New file.
49076         * lib/uniconv/u8-strconv-from-locale.c: New file.
49077
49078         * modules/uniconv/u32-strconv-to-enc: New file.
49079         * lib/uniconv/u32-strconv-to-enc.c: New file.
49080         * modules/uniconv/u32-strconv-to-enc-tests: New file.
49081         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
49082
49083         * modules/uniconv/u16-strconv-to-enc: New file.
49084         * lib/uniconv/u16-strconv-to-enc.c: New file.
49085         * lib/uniconv/u-strconv-to-enc.h: New file.
49086         * modules/uniconv/u16-strconv-to-enc-tests: New file.
49087         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
49088
49089         * modules/uniconv/u8-strconv-to-enc: New file.
49090         * lib/uniconv/u8-strconv-to-enc.c: New file.
49091         * modules/uniconv/u8-strconv-to-enc-tests: New file.
49092         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
49093
49094         * modules/uniconv/u32-strconv-from-enc: New file.
49095         * lib/uniconv/u32-strconv-from-enc.c: New file.
49096         * modules/uniconv/u32-strconv-from-enc-tests: New file.
49097         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
49098
49099         * modules/uniconv/u16-strconv-from-enc: New file.
49100         * lib/uniconv/u16-strconv-from-enc.c: New file.
49101         * modules/uniconv/u16-strconv-from-enc-tests: New file.
49102         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
49103
49104         * modules/uniconv/u8-strconv-from-enc: New file.
49105         * lib/uniconv/u8-strconv-from-enc.c: New file.
49106         * lib/uniconv/u-strconv-from-enc.h: New file.
49107         * modules/uniconv/u8-strconv-from-enc-tests: New file.
49108         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
49109
49110         * modules/uniconv/u32-conv-from-enc: New file.
49111         * lib/uniconv/u32-conv-from-enc.c: New file.
49112         * modules/uniconv/u32-conv-from-enc-tests: New file.
49113         * tests/uniconv/test-u32-conv-from-enc.c: New file.
49114
49115         * modules/uniconv/u16-conv-from-enc: New file.
49116         * lib/uniconv/u16-conv-from-enc.c: New file.
49117         * lib/uniconv/u-conv-from-enc.h: New file.
49118         * modules/uniconv/u16-conv-from-enc-tests: New file.
49119         * tests/uniconv/test-u16-conv-from-enc.c: New file.
49120
49121         * modules/uniconv/u8-conv-from-enc: New file.
49122         * lib/uniconv/u8-conv-from-enc.c: New file.
49123         * modules/uniconv/u8-conv-from-enc-tests: New file.
49124         * tests/uniconv/test-u8-conv-from-enc.c: New file.
49125
49126         * modules/uniconv/base: New file.
49127         * lib/uniconv.h: New file.
49128
49129 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
49130
49131         * doc/gnulib-tool.texi (Initial import): Update to match current
49132         behavior with strdup module.
49133         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
49134         * lib/memmem.h: Remove; all uses removed.  This is now done
49135         by <string.h>.
49136         * lib/mempcpy.h: Likewise.
49137         * lib/memrchr.h: Likewise.
49138         * lib/stpcpy.h: Likewise.
49139         * lib/stpncpy.h: Likewise.
49140         * lib/strcase.h: Likewise.
49141         * lib/strchrnul.h: Likewise.
49142         * lib/strdup.h: Likewise.
49143         * lib/strndup.h: Likewise.
49144         * lib/strnlen.h: Likewise.
49145         * lib/strpbrk.h: Likewise.
49146         * lib/strsep.h: Likewise.
49147         * lib/strstr.h: Likewise.
49148         * lib/strtok_r.h: Likewise.
49149         * lib/string_.h: New file.
49150         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
49151         Rely on <string.h> instead.
49152         * lib/canon-host.c: Likewise.
49153         * lib/chdir-long.c: Likewise.
49154         * lib/concatpath.c: Likewise.
49155         * lib/exclude.c: Likewise.
49156         * lib/fchdir.c: Likewise.
49157         * lib/getaddrinfo.c: Likewise.
49158         * lib/getcwd.c: Likewise.
49159         * lib/getsubopt.c: Likewise.
49160         * lib/glob.c: Likewise.
49161         * lib/hard-locale.c: Likewise.
49162         * lib/iconvme.c: Likewise.
49163         * lib/javacomp.c: Likewise.
49164         * lib/mempcpy.c: Likewise.
49165         * lib/memrchr.c: Likewise.
49166         * lib/regex_internal.h: Likewise.
49167         * lib/stpncpy.c: Likewise.
49168         * lib/strcasecmp.c: Likewise.
49169         * lib/strchrnul.c: Likewise.
49170         * lib/strdup.c: Likewise.
49171         * lib/striconv.c: Likewise.
49172         * lib/striconveh.c: Likewise.
49173         * lib/striconveha.c: Likewise.
49174         * lib/strncasecmp.c: Likewise.
49175         * lib/strndup.c: Likewise.
49176         * lib/strnlen.c: Likewise.
49177         * lib/strsep.c: Likewise.
49178         * lib/strstr.c: Likewise.
49179         * lib/strtok_r.c: Likewise.
49180         * lib/userspec.c: Likewise.
49181         * lib/w32spawn.h: Likewise.
49182         * lib/xstrndup.c: Likewise.
49183         * lib/mountlist.c (strstr): Remove decl.
49184         * m4/string_h.m4: New file.
49185         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
49186         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
49187         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
49188         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
49189         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
49190         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
49191         Set REPLACE_STRCASECMP if necessary.
49192         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
49193         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
49194         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
49195         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
49196         HAVE_DECL_STRDUP if necessary.
49197         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
49198         since gl_FUNC_STRNDUP does that now.
49199         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
49200         Check for decl here...
49201         (gl_PREREQ_STRNLEN): ... not here.
49202         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
49203         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
49204         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
49205         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
49206         necessary.
49207         * modules/string: New file.
49208         * modules/memmem (Files): Remove special-purpose include file.
49209         (Depends-on): Add string.
49210         (Include): Include <string.h>, not the removed file.
49211         * modules/mempcpy: Likewise.
49212         * modules/memrchr: Likewise.
49213         * modules/stpcpy: Likewise.
49214         * modules/stpncpy: Likewise.
49215         * modules/strcase: Likewise.
49216         * modules/strchrnul: Likewise.
49217         * modules/strdup: Likewise.
49218         * modules/strndup: Likewise.
49219         * modules/strnlen: Likewise.
49220         * modules/strpbrk: Likewise.
49221         * modules/strsep: Likewise.
49222         * modules/strstr: Likewise.
49223         * modules/strtok_r: Likewise.
49224         * tests/test-dirname.c: Don't include "strdup.h", since
49225         <string.h> now suffices.
49226         * tests/test-memmem.c: Don't include "memmem.h", since
49227         <string.h> now suffices.
49228
49229 2007-01-25  Bruno Haible  <bruno@clisp.org>
49230
49231         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
49232         *resultp is 0.
49233
49234         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
49235         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
49236         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
49237         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
49238
49239         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
49240         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
49241         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
49242         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
49243         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
49244         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
49245
49246 2007-01-24  Bruno Haible  <bruno@clisp.org>
49247
49248         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
49249         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
49250         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
49251         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
49252         gl_FUNC_FTS_CORE.
49253         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
49254         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
49255         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49256         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
49257         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
49258         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
49259         gl_FUNC_FCHOWNAT.
49260         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
49261         gl_FUNC_STRFTIME.
49262         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
49263         Reported by Ralf Wildenhues.
49264
49265 2007-01-24  Bruno Haible  <bruno@clisp.org>
49266
49267         Drop AC_REQUIRE calls that are redundant with the module dependencies.
49268         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
49269         gl_GETADDRINFO.
49270         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
49271         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
49272         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
49273
49274 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
49275
49276         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
49277         Don't use 'exit'; just return from 'main'.
49278         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
49279
49280         * lib/fnmatch_.h: Readjust white space and comments to match
49281         glibc, to avoid spurious diffs.
49282
49283 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49284
49285         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
49286         2004-12-01 change by Jakub Jelinek, since this code won't compile
49287         if !LIBC.  Problem reported by Bob Proulx.
49288
49289 2007-01-23  Bruno Haible  <bruno@clisp.org>
49290
49291         * lib/striconveh.c: Include c-strcaseeq.h.
49292         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
49293         * modules/striconveh (Depends-on): Add c-strcaseeq.
49294
49295 2007-01-23  Bruno Haible  <bruno@clisp.org>
49296
49297         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
49298
49299         * modules/c-strcaseeq: New file.
49300         * lib/c-strcaseeq.h: New file.
49301
49302         * modules/streq: New file.
49303         * lib/streq.h: New file.
49304
49305 2007-01-23  Bruno Haible  <bruno@clisp.org>
49306
49307         * modules/striconveha-tests: New file.
49308         * tests/test-striconveha.c: New file.
49309
49310         * lib/striconveha.h: Include <stdbool.h>.
49311         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
49312         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
49313         (mem_iconveha_notranslit): Renamed from mem_iconveha.
49314         (mem_iconveha): New function.
49315         (str_iconveha_notranslit): Renamed from str_iconveha.
49316         (str_iconveha): New function.
49317         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
49318         c-strcase.
49319
49320 2007-01-23  Bruno Haible  <bruno@clisp.org>
49321
49322         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
49323         encodings without forgiving before trying any encoding with handler.
49324         (str_iconveha): Try all encodings without forgiving before trying any
49325         encoding with handler.
49326
49327 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49328
49329         Import the following changes from libc.
49330
49331         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
49332
49333         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
49334
49335         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
49336
49337         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
49338         normal_bracket label.
49339
49340         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
49341
49342         [BZ #361]
49343         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
49344         to normal_bracket after fetching the next character.
49345
49346 2007-01-22  Bruno Haible  <bruno@clisp.org>
49347
49348         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
49349         argument.
49350         * lib/striconveh.c (iconv_carefully_1): New function.
49351         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
49352         argument.
49353         (str_cd_iconveh): Update.
49354         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
49355         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
49356         * tests/test-striconveh.c (MAGIC): New macro.
49357         (new_offsets): New function.
49358         (main): Test call with and without offsets.
49359
49360 2007-01-22  Bruno Haible  <bruno@clisp.org>
49361
49362         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
49363         * modules/sys_select (Makefile.am): Likewise.
49364         * modules/sys_socket (Makefile.am): Likewise.
49365         * modules/sys_time (Makefile.am): Likewise.
49366
49367 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
49368
49369         * modules/gettimeofday (License): Change from GPL to LGPL, since
49370         gettimeofday is a library function.
49371
49372 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49373
49374         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
49375
49376 2007-01-21  Bruno Haible  <bruno@clisp.org>
49377
49378         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
49379
49380 2007-01-21  Bruno Haible  <bruno@clisp.org>
49381
49382         * modules/striconveha: New file.
49383         * lib/striconveha.h: New file.
49384         * lib/striconveha.c: New file.
49385         * MODULES.html.sh (Internationalization functions): Add striconveha.
49386         * lib/striconv.c (str_iconv): Optimize the case of an empty input
49387         string.
49388         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
49389
49390 2007-01-21  Bruno Haible  <bruno@clisp.org>
49391
49392         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
49393         * lib/striconveh.c (str_iconveh): Likewise.
49394
49395 2007-01-21  Bruno Haible  <bruno@clisp.org>
49396
49397         * lib/striconveh.h (mem_iconveh): New declaration.
49398         * lib/striconveh.c (mem_iconveh): New function.
49399         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
49400
49401 2007-01-21  Bruno Haible  <bruno@clisp.org>
49402
49403         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
49404
49405         * lib/striconveh.h (mem_cd_iconveh): Change specification.
49406         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
49407         original result buffer.
49408         (str_cd_iconveh): Update.
49409         * tests/test-striconveh.c (main): Update.
49410
49411         * lib/striconv.h (mem_cd_iconv): Change specification.
49412         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
49413         result buffer.
49414         (str_cd_iconv): Update.
49415         * tests/test-striconv.c (main): Update.
49416
49417 2007-01-21  Bruno Haible  <bruno@clisp.org>
49418
49419         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
49420
49421 2007-01-20  Jim Meyering  <jim@meyering.net>
49422
49423         * lib/userspec.c (parse_with_separator): If a user or group string
49424         starts with "+", skip the corresponding name-to-ID look-up, since
49425         such a look-up must fail: user and group names may not include "+".
49426
49427 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
49428
49429         * lib/poll.c: Include sys/time.h and time.h unconditionally,
49430         since we now assume the sys_time module.
49431         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
49432         check for sys/time.h; no longer needed.
49433         * modules/poll (Depends-on): Depend on sys_time.
49434
49435 2007-01-18  Bruno Haible  <bruno@clisp.org>
49436
49437         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
49438         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49439
49440         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
49441         gettimeofday.
49442
49443         * tests/test-gettimeofday.c: Include <time.h>.
49444         (dummy): Remove variable.
49445
49446         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
49447         gl_HEADER_SYS_TIME_H.
49448         (gl_HEADER_SYS_TIME_H): New macro.
49449
49450         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
49451         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49452         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49453         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
49454         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49455         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
49456         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
49457         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49458         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
49459         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
49460         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49461
49462         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
49463         last change; it caused a compilation error when cross-compiling to
49464         Cygwin.
49465
49466 2007-01-18  Jim Meyering  <jim@meyering.net>
49467
49468         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
49469         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
49470         than the race-prone "test -d sys || mkdir sys".
49471         (configure.ac): Use AC_PROG_MKDIR_P.
49472         * modules/sys_select: Likewise.
49473         * modules/sys_socket: Likewise.
49474         * modules/sys_time: Likewise.
49475
49476 2007-01-18  Eric Blake  <ebb9@byu.net>
49477
49478         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
49479         replace gettimeofday.
49480         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
49481         name, to avoid infinite recursion.
49482
49483 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
49484
49485         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
49486         module sys_time.
49487         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
49488         assume timespec.h defines struct timeval.
49489         * lib/settime.c: Likewise.
49490         * lib/utimens.c: Likewise.
49491         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
49492         since we now assume the gettimeofday module.
49493         * lib/tempname.c (__gen_tempname): Likewise.
49494         * lib/gettimeofday.h: Remove.
49495         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
49496         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
49497         Include <time.h>, for 'time()'.
49498         (localtime_buffer_addr): Also use this workaround if
49499         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
49500         to simplify the uses.  All uses changed.
49501         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
49502         that #undef is inside {}, and 'const' follows type name consistently.
49503         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
49504         (gettimeofday): Do not use the maximum possible value for
49505         tv->tv_usec, since that might break usages other than ls.c.
49506         Instead, we'll leave ls.c alone.  This undoes today's patch
49507         by Bruno.  Add a compile-time warning for 1s-clock resolution;
49508         we've never observed the problem but might as well keep the
49509         canary.
49510         * lib/nanosleep.c: Include timespec.h first, for interface check.
49511         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
49512         now assume the sys_time module.
49513         * lib/tempname.c: Likewise.
49514         * lib/timespec.h: Likewise.
49515         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
49516         needed.
49517         * lib/strftime.c: Likewise.
49518         * lib/timespec.h: Likewise.
49519         * lib/posixtm.c: Include posixtm.h first, for interface check.
49520         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
49521         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
49522         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
49523         * lib/sys_time_.h: New file.
49524         * lib/timespec.h (struct timespec): Use long int, not long.
49525         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49526         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
49527         Remove obsolescent call to AC_HEADER_TIME.
49528         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
49529         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
49530         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49531         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
49532         Likewise.
49533         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
49534         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
49535         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
49536         into the sys_time module.  Check for gettimeofday just once.
49537         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
49538         for gettimeofday signature to just check the signature.  Merely
49539         compile it, since linking doesn't test signature.  Improve test for
49540         whether gettimeofday.o is actually needed.
49541         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
49542         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
49543         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
49544         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49545         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
49546         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
49547         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
49548         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
49549         than worrying about sys/time.h.
49550         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49551         Don't bother worrying about TIME_WITH_SYS_TIME.
49552         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
49553         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
49554         * m4/sys_time_h.m4: New file.
49555         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
49556         Don't include sys/time.h.  Return from main rather than exiting.
49557         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
49558         all uses changed.
49559         * modules/gethrxtime (Depends-on): Add sys_time.
49560         * modules/gettime (Depends-on): Likewise.
49561         * modules/gettimeofday (Depends-on): Likewise.
49562         * modules/nanosleep (Depends-on): Likewise.
49563         * modules/settime (Depends-on): Likewise.
49564         * modules/tempname (Depends-on): Likewise.
49565         * modules/utimens (Depends-on): Likewise.
49566         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
49567         (Include:) Change back to <sys/time.h>.
49568         (Maintainer:) Add self.
49569         * modules/sys_time: New file.
49570         * modules/tempname (Depends-on): Add gettimeofday.
49571         * tests/test-gettimeofday.c: Include <sys/time.h>
49572         rather than gettimeofday.h.
49573
49574 2007-01-17  Bruno Haible  <bruno@clisp.org>
49575
49576         * gnulib-tool (func_get_license): Revert last patch. Instead, let
49577         the license default to GPL.
49578         (func_create_testdir): Don't complain if a module is LGPL and its
49579         tests module depends on GPLed modules.
49580
49581 2007-01-17  Bruno Haible  <bruno@clisp.org>
49582
49583         * lib/gettimeofday.c (gettimeofday): Add code for the case
49584         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
49585         maximum possible value for tv->tv_usec, rather than the minimum one.
49586
49587 2005-10-08  Martin Lambers  <marlam@marlam.de>
49588 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49589 2007-01-16  Bruno Haible  <bruno@clisp.org>
49590
49591         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
49592         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
49593         gl_FUNC_GETTIMEOFDAY.
49594         (Include): Add gettimeofday.h.
49595         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
49596         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
49597         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
49598         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
49599         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
49600         * lib/gettimeofday.h: New file.
49601         * lib/gettimeofday.c: Include <sys/timeb.h>.
49602         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
49603         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49604         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
49605         fall back on time().
49606
49607         * tests/test-gettimeofday.c: New file.
49608         * modules/gettimeofday-tests: New file.
49609
49610 2007-01-16  Eric Blake  <ebb9@byu.net>
49611
49612         * modules/fnmatch (Depends-on): Depend on wchar.
49613         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
49614         * m4/fnmatch.m4: Likewise.
49615         * modules/mbchar (Makefile.am): Assume <wchar.h>.
49616         * m4/mbchar.m4: Likewise.
49617         * modules/mbswidth (Depends-on): Depend on wchar.
49618         * lib/mbswidth.c: Assume <wchar.h>.
49619         * m4/mbswidth.m4: Likewise.
49620         * modules/quotearg (Depends-on): Depend on wchar.
49621         * lib/quotearg.c: Assume <wchar.h>.
49622         * m4/quotearg.m4: Likewise.
49623         * modules/regex (Depends-on): Depend on wchar.
49624         * lib/regex_internal.h: Assume <wchar.h>.
49625         * m4/regex.m4: Likewise.
49626         * modules/stdint (Depends-on): Depend on wchar.
49627         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
49628         * m4/stdint.m4: Likewise.
49629         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
49630         * modules/strftime (Depends-on): Depend on wchar.
49631         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
49632         * modules/strtol (Depends-on): Depend on wchar.
49633         * lib/strtol.c: Assume <wchar.h>.
49634         * modules/wcwidth (Depends-on): Depend on wchar.
49635         * lib/wcwidth.h: Assume <wchar.h>.
49636         * m4/wcwidth.m4: Likewise.
49637
49638 2007-01-16  Bruno Haible  <bruno@clisp.org>
49639
49640         * modules/csharpexec-script: New, created from...
49641         * modules/csharpexec: ... this.
49642
49643 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49644
49645         * modules/javaexec-script: New, created from...
49646         * modules/javaexec: ... this.
49647
49648 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49649
49650         * modules/poll (Dependencies): Add sys_select.
49651
49652 2007-01-15  Jim Meyering  <jim@meyering.net>
49653
49654         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
49655         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
49656         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
49657         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
49658
49659 2007-01-15  Bruno Haible  <bruno@clisp.org>
49660
49661         * modules/striconveh: New file.
49662         * lib/striconveh.h: New file.
49663         * lib/striconveh.c: New file.
49664         * MODULES.html.sh (Internationalization functions): Add striconveh.
49665
49666         * modules/striconveh-tests: New file.
49667         * tests/test-striconveh.c: New file.
49668
49669 2007-01-15  Bruno Haible  <bruno@clisp.org>
49670
49671         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
49672         not from GNU libiconv or GNU libc.
49673
49674 2007-01-15  Bruno Haible  <bruno@clisp.org>
49675
49676         * doc/gnulib-intro.texi (Copyright): Explain the different license
49677         terms for module descriptions, autoconf macros, tests, documentation.
49678
49679 2007-01-14  Bruno Haible  <bruno@clisp.org>
49680
49681         * modules/striconv-tests: New file.
49682         * tests/test-striconv.c: New file.
49683
49684 2007-01-14  Bruno Haible  <bruno@clisp.org>
49685
49686         * modules/iconv-tests: New file.
49687         * tests/test-iconv.c: New file.
49688
49689 2007-01-14  Bruno Haible  <bruno@clisp.org>
49690
49691         * gnulib-tool (func_get_license): For test modules, use the license of
49692         the main module.
49693
49694 2007-01-14  Bruno Haible  <bruno@clisp.org>
49695
49696         * modules/iconv (Include): Clarify that <iconv.h> can only be included
49697         if iconv is found to exist.
49698
49699 2007-01-14  Bruno Haible  <bruno@clisp.org>
49700
49701         * modules/c-ctype-tests: New file.
49702         * tests/test-c-ctype.c: New file.
49703
49704 2007-01-14  Bruno Haible  <bruno@clisp.org>
49705
49706         * modules/binary-io-tests: New file.
49707         * tests/test-binary-io.sh: New file.
49708         * tests/test-binary-io.c: New file.
49709
49710 2007-01-14  Bruno Haible  <bruno@clisp.org>
49711
49712         * modules/array-oset-tests: New file.
49713         * tests/test-array_oset.c: New file.
49714
49715 2007-01-14  Bruno Haible  <bruno@clisp.org>
49716
49717         * modules/array-list-tests: New file.
49718         * tests/test-array_list.c: New file.
49719
49720 2007-01-14  Bruno Haible  <bruno@clisp.org>
49721
49722         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
49723         and make.
49724         Reported by Simon Josefsson in
49725         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
49726
49727 2007-01-14  Bruno Haible  <bruno@clisp.org>
49728
49729         * modules/allocsa-tests: New file.
49730         * tests/test-allocsa.c: New file.
49731
49732 2007-01-14  Bruno Haible  <bruno@clisp.org>
49733
49734         * modules/fchdir (Depends-on): Add absolute-header.
49735         * modules/unistd (Depends-on): Likewise.
49736
49737 2006-12-30  Bruno Haible  <bruno@clisp.org>
49738
49739         * modules/fchdir: New file.
49740         * modules/unistd (Files): Add lib/unistd_.h.
49741         (Makefile.am): Generate unistd.h from unistd_.h.
49742         * lib/fchdir.c: New file.
49743         * lib/dirent_.h: New file.
49744         * lib/unistd_.h: New file.
49745         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
49746         * m4/fchdir.m4: New file.
49747         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
49748         (gl_HEADER_UNISTD): Invoke it.
49749         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
49750         function.
49751         * lib/backupfile.c (opendir, closedir): Undefine.
49752         * lib/chown.c (open, close): Undefine.
49753         * lib/clean-temp.c (open, close): Undefine.
49754         * lib/copy-file.c (open, close): Undefine.
49755         * lib/execute.c (open, close): Undefine.
49756         * lib/fsusage.c (open, close): Undefine.
49757         * lib/gc-gnulib.c (open, close): Undefine.
49758         * lib/getcwd.c (opendir, closedir): Undefine.
49759         * lib/glob.c (opendir, closedir): Undefine.
49760         * lib/javacomp.c (open, close): Undefine.
49761         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
49762         * lib/openat-proc.c (open, close): Undefine.
49763         * lib/pagealign_alloc.c (open, close): Undefine.
49764         * lib/pipe.c (open, close): Undefine.
49765         * lib/progreloc.c (open, close): Undefine.
49766         * lib/savedir.c (opendir, closedir): Undefine.
49767         * lib/utime.c (open, close): Undefine.
49768         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
49769
49770 2007-01-10  Bruno Haible  <bruno@clisp.org>
49771
49772         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
49773
49774 2007-01-12  Eric Blake  <ebb9@byu.net>
49775
49776         Provide a robust <wchar.h>.  Further simplifications are now
49777         possible in other modules, but not included here.
49778         * modules/wchar: New module.
49779         * m4/wchar.m4: New file.
49780         * lib/wchar_.h: Likewise.
49781         * modules/mbchar (Depends-on): Depend on wchar, as the first use
49782         of the new module.
49783         * MODULES.html.sh (Extended multibyte and wide character utilities):
49784         New section.
49785
49786 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
49787
49788         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
49789         to a reasonable default for memory allocation.
49790         (xreadlink): Don't allocate a huge buffer, to work around a buggy
49791         file system that reports garbage st_size values for symlinks.
49792         Problem reported by Liyang Hu.
49793
49794 2007-01-11  Simon Josefsson  <simon@josefsson.org>
49795
49796         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
49797         Emacs .#* auto-save files).
49798
49799 2007-01-11  Bruno Haible  <bruno@clisp.org>
49800
49801         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
49802         directory.
49803
49804 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49805
49806         Use @...@ consistently in lib/wctype_.h.
49807         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
49808         on it being set to 1 or 0.
49809         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
49810         go back to AC_SUBSTing it.
49811         * modules/wctype (Makefile.am): Undo previous change.
49812
49813 2007-01-10  Eric Blake  <ebb9@byu.net>
49814
49815         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
49816         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
49817         * modules/wctype (Makefile.am): Likewise.
49818         Reported by Chris McGuire.
49819
49820 2007-01-10  Jim Meyering  <jim@meyering.net>
49821
49822         fts.c: a small readability/maintainability improvement
49823         * lib/fts.c (fts_read): Make this code slightly more readable and
49824         maintainable by hoisting the "sp->fts_cur = p" assignments to
49825         immediately follow the statements that set P.  Derived from
49826         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
49827
49828 2007-01-10  Eric Blake  <ebb9@byu.net>
49829
49830         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
49831         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
49832         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49833         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49834         Reported by Chris McGuire.
49835
49836 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49837
49838         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
49839         in sed script.
49840
49841 2007-01-09  Bruno Haible  <bruno@clisp.org>
49842
49843         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
49844         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
49845         variables.
49846         (func_module): Use them.
49847
49848 2007-01-09  Bruno Haible  <bruno@clisp.org>
49849
49850         * modules/unistr/base: New file.
49851         * lib/unistr.h: New file.
49852
49853         * modules/unistr/u8-to-u16: New file.
49854         * lib/unistr/u8-to-u16.c: New file.
49855
49856         * modules/unistr/u8-to-u32: New file.
49857         * lib/unistr/u8-to-u32.c: New file.
49858
49859         * modules/unistr/u16-to-u8: New file.
49860         * lib/unistr/u16-to-u8.c: New file.
49861
49862         * modules/unistr/u16-to-u32: New file.
49863         * lib/unistr/u16-to-u32.c: New file.
49864
49865         * modules/unistr/u32-to-u8: New file.
49866         * lib/unistr/u32-to-u8.c: New file.
49867
49868         * modules/unistr/u32-to-u16: New file.
49869         * lib/unistr/u32-to-u16.c: New file.
49870
49871         * modules/unistr/u8-check: New file.
49872         * modules/unistr/u16-check: New file.
49873         * modules/unistr/u32-check: New file.
49874         * lib/unistr/u8-check.c: New file.
49875         * lib/unistr/u16-check.c: New file.
49876         * lib/unistr/u32-check.c: New file.
49877
49878         * modules/unistr/u8-chr: New file.
49879         * modules/unistr/u16-chr: New file.
49880         * modules/unistr/u32-chr: New file.
49881         * lib/unistr/u8-chr.c: New file.
49882         * lib/unistr/u16-chr.c: New file.
49883         * lib/unistr/u32-chr.c: New file.
49884
49885         * modules/unistr/u8-cmp: New file.
49886         * modules/unistr/u16-cmp: New file.
49887         * modules/unistr/u32-cmp: New file.
49888         * lib/unistr/u8-cmp.c: New file.
49889         * lib/unistr/u16-cmp.c: New file.
49890         * lib/unistr/u32-cmp.c: New file.
49891
49892         * modules/unistr/u8-cpy: New file.
49893         * modules/unistr/u16-cpy: New file.
49894         * modules/unistr/u32-cpy: New file.
49895         * lib/unistr/u8-cpy.c: New file.
49896         * lib/unistr/u16-cpy.c: New file.
49897         * lib/unistr/u32-cpy.c: New file.
49898         * lib/unistr/u-cpy.h: New file.
49899
49900         * modules/unistr/u8-cpy-alloc: New file.
49901         * modules/unistr/u16-cpy-alloc: New file.
49902         * modules/unistr/u32-cpy-alloc: New file.
49903         * lib/unistr/u8-cpy-alloc.c: New file.
49904         * lib/unistr/u16-cpy-alloc.c: New file.
49905         * lib/unistr/u32-cpy-alloc.c: New file.
49906         * lib/unistr/u-cpy-alloc.h: New file.
49907
49908         * modules/unistr/u8-endswith: New file.
49909         * modules/unistr/u16-endswith: New file.
49910         * modules/unistr/u32-endswith: New file.
49911         * lib/unistr/u8-endswith.c: New file.
49912         * lib/unistr/u16-endswith.c: New file.
49913         * lib/unistr/u32-endswith.c: New file.
49914         * lib/unistr/u-endswith.h: New file.
49915
49916         * modules/unistr/u8-mblen: New file.
49917         * modules/unistr/u16-mblen: New file.
49918         * modules/unistr/u32-mblen: New file.
49919         * lib/unistr/u8-mblen.c: New file.
49920         * lib/unistr/u16-mblen.c: New file.
49921         * lib/unistr/u32-mblen.c: New file.
49922
49923         * modules/unistr/u8-mbtouc: New file.
49924         * modules/unistr/u16-mbtouc: New file.
49925         * modules/unistr/u32-mbtouc: New file.
49926         * lib/unistr/u8-mbtouc.c: New file.
49927         * lib/unistr/u16-mbtouc.c: New file.
49928         * lib/unistr/u32-mbtouc.c: New file.
49929
49930         * modules/unistr/u8-mbtouc-safe: New file.
49931         * modules/unistr/u16-mbtouc-safe: New file.
49932         * modules/unistr/u32-mbtouc-safe: New file.
49933         * lib/unistr/u8-mbtouc-safe.c: New file.
49934         * lib/unistr/u16-mbtouc-safe.c: New file.
49935         * lib/unistr/u32-mbtouc-safe.c: New file.
49936
49937         * modules/unistr/u8-move: New file.
49938         * modules/unistr/u16-move: New file.
49939         * modules/unistr/u32-move: New file.
49940         * lib/unistr/u8-move.c: New file.
49941         * lib/unistr/u16-move.c: New file.
49942         * lib/unistr/u32-move.c: New file.
49943         * lib/unistr/u-move.h: New file.
49944
49945         * modules/unistr/u8-next: New file.
49946         * modules/unistr/u16-next: New file.
49947         * modules/unistr/u32-next: New file.
49948         * lib/unistr/u8-next.c: New file.
49949         * lib/unistr/u16-next.c: New file.
49950         * lib/unistr/u32-next.c: New file.
49951
49952         * modules/unistr/u8-prev: New file.
49953         * modules/unistr/u16-prev: New file.
49954         * modules/unistr/u32-prev: New file.
49955         * lib/unistr/u8-prev.c: New file.
49956         * lib/unistr/u16-prev.c: New file.
49957         * lib/unistr/u32-prev.c: New file.
49958
49959         * modules/unistr/u8-set: New file.
49960         * modules/unistr/u16-set: New file.
49961         * modules/unistr/u32-set: New file.
49962         * lib/unistr/u8-set.c: New file.
49963         * lib/unistr/u16-set.c: New file.
49964         * lib/unistr/u32-set.c: New file.
49965         * lib/unistr/u-set.h: New file.
49966
49967         * modules/unistr/u8-startswith: New file.
49968         * modules/unistr/u16-startswith: New file.
49969         * modules/unistr/u32-startswith: New file.
49970         * lib/unistr/u8-startswith.c: New file.
49971         * lib/unistr/u16-startswith.c: New file.
49972         * lib/unistr/u32-startswith.c: New file.
49973         * lib/unistr/u-startswith.h: New file.
49974
49975         * modules/unistr/u8-stpcpy: New file.
49976         * modules/unistr/u16-stpcpy: New file.
49977         * modules/unistr/u32-stpcpy: New file.
49978         * lib/unistr/u8-stpcpy.c: New file.
49979         * lib/unistr/u16-stpcpy.c: New file.
49980         * lib/unistr/u32-stpcpy.c: New file.
49981         * lib/unistr/u-stpcpy.h: New file.
49982
49983         * modules/unistr/u8-stpncpy: New file.
49984         * modules/unistr/u16-stpncpy: New file.
49985         * modules/unistr/u32-stpncpy: New file.
49986         * lib/unistr/u8-stpncpy.c: New file.
49987         * lib/unistr/u16-stpncpy.c: New file.
49988         * lib/unistr/u32-stpncpy.c: New file.
49989         * lib/unistr/u-stpncpy.h: New file.
49990
49991         * modules/unistr/u8-strcat: New file.
49992         * modules/unistr/u16-strcat: New file.
49993         * modules/unistr/u32-strcat: New file.
49994         * lib/unistr/u8-strcat.c: New file.
49995         * lib/unistr/u16-strcat.c: New file.
49996         * lib/unistr/u32-strcat.c: New file.
49997         * lib/unistr/u-strcat.h: New file.
49998
49999         * modules/unistr/u8-strchr: New file.
50000         * modules/unistr/u16-strchr: New file.
50001         * modules/unistr/u32-strchr: New file.
50002         * lib/unistr/u8-strchr.c: New file.
50003         * lib/unistr/u16-strchr.c: New file.
50004         * lib/unistr/u32-strchr.c: New file.
50005
50006         * modules/unistr/u8-strcmp: New file.
50007         * modules/unistr/u16-strcmp: New file.
50008         * modules/unistr/u32-strcmp: New file.
50009         * lib/unistr/u8-strcmp.c: New file.
50010         * lib/unistr/u16-strcmp.c: New file.
50011         * lib/unistr/u32-strcmp.c: New file.
50012
50013         * modules/unistr/u8-strcpy: New file.
50014         * modules/unistr/u16-strcpy: New file.
50015         * modules/unistr/u32-strcpy: New file.
50016         * lib/unistr/u8-strcpy.c: New file.
50017         * lib/unistr/u16-strcpy.c: New file.
50018         * lib/unistr/u32-strcpy.c: New file.
50019         * lib/unistr/u-strcpy.h: New file.
50020
50021         * modules/unistr/u8-strcspn: New file.
50022         * modules/unistr/u16-strcspn: New file.
50023         * modules/unistr/u32-strcspn: New file.
50024         * lib/unistr/u8-strcspn.c: New file.
50025         * lib/unistr/u16-strcspn.c: New file.
50026         * lib/unistr/u32-strcspn.c: New file.
50027         * lib/unistr/u-strcspn.h: New file.
50028
50029         * modules/unistr/u8-strdup: New file.
50030         * modules/unistr/u16-strdup: New file.
50031         * modules/unistr/u32-strdup: New file.
50032         * lib/unistr/u8-strdup.c: New file.
50033         * lib/unistr/u16-strdup.c: New file.
50034         * lib/unistr/u32-strdup.c: New file.
50035         * lib/unistr/u-strdup.h: New file.
50036
50037         * modules/unistr/u8-strlen: New file.
50038         * modules/unistr/u16-strlen: New file.
50039         * modules/unistr/u32-strlen: New file.
50040         * lib/unistr/u8-strlen.c: New file.
50041         * lib/unistr/u16-strlen.c: New file.
50042         * lib/unistr/u32-strlen.c: New file.
50043         * lib/unistr/u-strlen.h: New file.
50044
50045         * modules/unistr/u8-strmblen: New file.
50046         * modules/unistr/u16-strmblen: New file.
50047         * modules/unistr/u32-strmblen: New file.
50048         * lib/unistr/u8-strmblen.c: New file.
50049         * lib/unistr/u16-strmblen.c: New file.
50050         * lib/unistr/u32-strmblen.c: New file.
50051
50052         * modules/unistr/u8-strmbtouc: New file.
50053         * modules/unistr/u16-strmbtouc: New file.
50054         * modules/unistr/u32-strmbtouc: New file.
50055         * lib/unistr/u8-strmbtouc.c: New file.
50056         * lib/unistr/u16-strmbtouc.c: New file.
50057         * lib/unistr/u32-strmbtouc.c: New file.
50058
50059         * modules/unistr/u8-strncat: New file.
50060         * modules/unistr/u16-strncat: New file.
50061         * modules/unistr/u32-strncat: New file.
50062         * lib/unistr/u8-strncat.c: New file.
50063         * lib/unistr/u16-strncat.c: New file.
50064         * lib/unistr/u32-strncat.c: New file.
50065         * lib/unistr/u-strncat.h: New file.
50066
50067         * modules/unistr/u8-strncmp: New file.
50068         * modules/unistr/u16-strncmp: New file.
50069         * modules/unistr/u32-strncmp: New file.
50070         * lib/unistr/u8-strncmp.c: New file.
50071         * lib/unistr/u16-strncmp.c: New file.
50072         * lib/unistr/u32-strncmp.c: New file.
50073
50074         * modules/unistr/u8-strncpy: New file.
50075         * modules/unistr/u16-strncpy: New file.
50076         * modules/unistr/u32-strncpy: New file.
50077         * lib/unistr/u8-strncpy.c: New file.
50078         * lib/unistr/u16-strncpy.c: New file.
50079         * lib/unistr/u32-strncpy.c: New file.
50080         * lib/unistr/u-strncpy.h: New file.
50081
50082         * modules/unistr/u8-strnlen: New file.
50083         * modules/unistr/u16-strnlen: New file.
50084         * modules/unistr/u32-strnlen: New file.
50085         * lib/unistr/u8-strnlen.c: New file.
50086         * lib/unistr/u16-strnlen.c: New file.
50087         * lib/unistr/u32-strnlen.c: New file.
50088         * lib/unistr/u-strnlen.h: New file.
50089
50090         * modules/unistr/u8-strpbrk: New file.
50091         * modules/unistr/u16-strpbrk: New file.
50092         * modules/unistr/u32-strpbrk: New file.
50093         * lib/unistr/u8-strpbrk.c: New file.
50094         * lib/unistr/u16-strpbrk.c: New file.
50095         * lib/unistr/u32-strpbrk.c: New file.
50096         * lib/unistr/u-strpbrk.h: New file.
50097
50098         * modules/unistr/u8-strrchr: New file.
50099         * modules/unistr/u16-strrchr: New file.
50100         * modules/unistr/u32-strrchr: New file.
50101         * lib/unistr/u8-strrchr.c: New file.
50102         * lib/unistr/u16-strrchr.c: New file.
50103         * lib/unistr/u32-strrchr.c: New file.
50104
50105         * modules/unistr/u8-strspn: New file.
50106         * modules/unistr/u16-strspn: New file.
50107         * modules/unistr/u32-strspn: New file.
50108         * lib/unistr/u8-strspn.c: New file.
50109         * lib/unistr/u16-strspn.c: New file.
50110         * lib/unistr/u32-strspn.c: New file.
50111         * lib/unistr/u-strspn.h: New file.
50112
50113         * modules/unistr/u8-strstr: New file.
50114         * modules/unistr/u16-strstr: New file.
50115         * modules/unistr/u32-strstr: New file.
50116         * lib/unistr/u8-strstr.c: New file.
50117         * lib/unistr/u16-strstr.c: New file.
50118         * lib/unistr/u32-strstr.c: New file.
50119         * lib/unistr/u-strstr.h: New file.
50120
50121         * modules/unistr/u8-strtok: New file.
50122         * modules/unistr/u16-strtok: New file.
50123         * modules/unistr/u32-strtok: New file.
50124         * lib/unistr/u8-strtok.c: New file.
50125         * lib/unistr/u16-strtok.c: New file.
50126         * lib/unistr/u32-strtok.c: New file.
50127         * lib/unistr/u-strtok.h: New file.
50128
50129         * modules/unistr/u8-uctomb: New file.
50130         * modules/unistr/u16-uctomb: New file.
50131         * modules/unistr/u32-uctomb: New file.
50132         * lib/unistr/u8-uctomb.c: New file.
50133         * lib/unistr/u16-uctomb.c: New file.
50134         * lib/unistr/u32-uctomb.c: New file.
50135
50136         * MODULES.html.sh (Unicode string functions): Add the new modules.
50137
50138 2007-01-08  Bruno Haible  <bruno@clisp.org>
50139
50140         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
50141         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
50142         subdirectories.
50143
50144 2007-01-08  Karl Berry  <karl@gnu.org>
50145
50146         * doc/error.texi: mention that main() fns must set program_name
50147         when progname is used.
50148
50149 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
50150
50151         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
50152         WCTYPE_H is empty, for the benefit of builds from non-distclean
50153         directories.  Problem reported by Eric Blake in
50154         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
50155
50156 2007-01-08  Bruno Haible  <bruno@clisp.org>
50157
50158         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
50159         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
50160         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
50161         PROVIDE_CANONICALIZE_FILENAME_MODE.
50162         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
50163
50164 2007-01-08  Bruno Haible  <bruno@clisp.org>
50165
50166         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
50167         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
50168         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
50169         * lib/fts.c: Likewise.
50170         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
50171
50172 2006-12-25  Bruno Haible  <bruno@clisp.org>
50173
50174         * modules/utf8-ucs4-safe: New file.
50175         * lib/utf8-ucs4-safe.h: New file.
50176         * lib/unistr/utf8-ucs4-safe.c: New file.
50177
50178         * modules/utf16-ucs4-safe: New file.
50179         * lib/utf16-ucs4-safe.h: New file.
50180         * lib/unistr/utf16-ucs4-safe.c: New file.
50181
50182         * MODULES.html.sh (Unicode string functions): Add the new modules.
50183
50184 2007-01-08  Bruno Haible  <bruno@clisp.org>
50185
50186         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
50187         (Depends-on): Add unitypes.
50188         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50189         (u8_mbtouc_aux): Move out to separate file.
50190         (u8_mbtouc): Use ucs4_t, uint8_t types.
50191         * lib/unistr/utf8-ucs4.c: New file.
50192
50193         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
50194         (Depends-on): Add unitypes.
50195         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50196         (u16_mbtouc_aux): Move out to separate file.
50197         (u16_mbtouc): Use ucs4_t, uint16_t types.
50198         * lib/unistr/utf16-ucs4.c: New file.
50199
50200         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
50201         (Depends-on): Add unitypes.
50202         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
50203         (u8_uctomb_aux): Move out to separate file.
50204         (u8_uctomb): Use ucs4_t, uint8_t types.
50205         * lib/unistr/ucs4-utf8.c: New file.
50206
50207         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
50208         (Depends-on): Add unitypes.
50209         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
50210         (u16_uctomb_aux): Move out to separate file.
50211         (u16_uctomb): Use ucs4_t, uint16_t types.
50212         * lib/unistr/ucs4-utf16.c: New file.
50213
50214 2006-12-25  Bruno Haible  <bruno@clisp.org>
50215
50216         * modules/unitypes: New file.
50217         * lib/unitypes.h: New file.
50218         * MODULES.html.sh (func_all_modules): New section "Unicode string
50219         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
50220         this section. Add unitypes.
50221
50222 2007-01-08  Bruno Haible  <bruno@clisp.org>
50223
50224         Avoid variable names that conflict with those from libtool.
50225         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
50226         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
50227         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
50228         library_names_spec to acl_library_names_spec, hardcode_* to
50229         acl_hardcode_*.
50230         Reported by Ralf Wildenhues.
50231
50232 2007-01-08  Bruno Haible  <bruno@clisp.org>
50233
50234         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
50235         definition.
50236         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
50237         definition.
50238         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
50239         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
50240         definition.
50241         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
50242         definition.
50243         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
50244         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
50245         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
50246         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
50247         definition.
50248         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
50249         definition.
50250         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
50251         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
50252         GC_USE_<algorithm>.
50253         * lib/gc-libgcrypt.c: Likewise.
50254         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
50255         * modules/gc-arctwo (configure.ac): Likewise.
50256         * modules/gc-des (configure.ac): Likewise.
50257         * modules/gc-hmac-md5 (configure.ac): Likewise.
50258         * modules/gc-hmac-sha1 (configure.ac): Likewise.
50259         * modules/gc-md2 (configure.ac): Likewise.
50260         * modules/gc-md4 (configure.ac): Likewise.
50261         * modules/gc-md5 (configure.ac): Likewise.
50262         * modules/gc-random (configure.ac): Likewise.
50263         * modules/gc-rijndael (configure.ac): Likewise.
50264         * modules/gc-sha1 (configure.ac): Likewise.
50265
50266 2007-01-08  Bruno Haible  <bruno@clisp.org>
50267
50268         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
50269         macro definition.
50270         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
50271         definition.
50272         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
50273         definition.
50274         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
50275         * modules/fcntl-safer (configure.ac): Likewise.
50276         * modules/fopen-safer (configure.ac): Likewise.
50277         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
50278         GNULIB_FWRITEERROR macro definition.
50279
50280 2007-01-08  Bruno Haible  <bruno@clisp.org>
50281
50282         * m4/gnulib-common.m4: New file.
50283         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
50284         (func_get_filelist): Add m4/gnulib-common.m4.
50285
50286 2007-01-08  Bruno Haible  <bruno@clisp.org>
50287
50288         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
50289         command.
50290
50291 2007-01-08  Jim Meyering  <jim@meyering.net>
50292
50293         Use a more robust test for a "can't happen" condition.
50294         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
50295         narrowed the st_size value.  Presuming the "can't happen" condition
50296         is true, that narrowing could conceivably convert an invalid st_size
50297         value into a valid one.  Instead, use a change based on Matthew
50298         Woehlke's original patch.
50299
50300         Slight readability improvement: use an assert-like macro
50301         in place of literal "abort ()" uses.
50302         * lib/fts.c (fts_assert): Define.
50303         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
50304         Use this macro instead of a bare 'abort'.
50305
50306 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
50307
50308         Don't worry about using IRIX 5.3's wctype.h broken definitions;
50309         simply work around them.
50310         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
50311         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
50312         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
50313         declaring.
50314         Don't bother to define as macros, since the standard doesn't require it.
50315         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
50316         longer worry about IRIX 5.3.
50317         (HAVE_WCTYPE_CTMP_BUG): Remove.
50318
50319 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
50320
50321         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
50322         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
50323         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50324         Problems reported by Georg Schwarz for IRIX 5.3.
50325
50326         * gnulib-tool (autoconf_minversion): Take the maximum version number
50327         found, not the minimum.  Problem reported by James Youngman.
50328
50329 2007-01-03  Karl Berry  <karl@gnu.org>
50330
50331         * doc/error.texi: new file, explaining interaction with progname.
50332         * doc/gnulib.texi: include it.  Update copyright.
50333
50334 2007-01-03  Simon Josefsson  <simon@josefsson.org>
50335
50336         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
50337         AC_CANONICAL_HOST, to improve autobuild outputs.
50338
50339 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
50340             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50341
50342         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
50343         sockets, server sockets, and other file descriptors.  Count errors
50344         to compute the return value.  Reorder the code a bit to be easier
50345         to follow.  Don't set event bits that were not requested (except
50346         POLLERR and POLLHUP).
50347
50348 2007-01-01  Bruno Haible  <bruno@clisp.org>
50349
50350         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
50351
50352 2007-01-03  Jim Meyering  <jim@meyering.net>
50353
50354         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
50355
50356 2007-01-02  Bruno Haible  <bruno@clisp.org>
50357
50358         * modules/settime (Include): Require timespec.h.
50359         * modules/nanosleep (Include): Likewise.
50360
50361 2007-01-01  Bruno Haible  <bruno@clisp.org>
50362
50363         * gnulib-tool (func_emit_copyright_notice): Bump year.
50364         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
50365
50366 2007-01-01  Bruno Haible  <bruno@clisp.org>
50367
50368         Improve support for OpenBSD.
50369         * build-aux/config.rpath (libname_spec): Export.
50370         (library_names_spec): New variable. Export.
50371         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
50372         library_names_spec from the config.rpath output. Locate shared library
50373         through the name pattern in library_names_spec.
50374
50375 2007-01-01  Eric Blake  <ebb9@byu.net>
50376
50377         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
50378
50379 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
50380
50381         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
50382         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
50383         assume the C locale, and avoid an "eval" that could cause trouble.
50384         Problem with SORT reported by Bob Proulx.
50385
50386         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
50387         Define.  Trivial patch from Henning Nielsen Lund, originally
50388         sent to bug-grep@gnu.org today.
50389
50390 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50391
50392         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
50393         struct stat.  Problem reported by Henning Nielsen Lund.
50394         * lib/acl.c: Include acl.h first, to check interface.  Don't
50395         bother to include sys/types.h and sys/stat.h again.
50396
50397 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50398
50399         Import the following change from libc; problem reported by
50400         Sven Verdoolaege.
50401
50402         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
50403
50404         [BZ #1373]
50405         * lib/argp.h: Remove __NTH for __argp_usage inline function.
50406
50407 2006-12-28  Jim Meyering  <jim@meyering.net>
50408
50409         * build-aux/announce-gen: Do not assume that the package
50410         builds any of tar.gz, tar.bz2, and .xdelta files.
50411         Suggestion from Simon Josefsson.
50412
50413 2006-12-28  Simon Josefsson  <simon@josefsson.org>
50414
50415         * modules/announce-gen: New file.
50416
50417 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
50418
50419         * lib/mbchar.h: Just include <wctype.h>; the wctype module
50420         handles its gotchas now.
50421         * lib/mbswidth.c: Likewise.
50422         * lib/wcwidth.h: Likewise.
50423         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
50424         and iswcntrl; the wctype module does this stuff now.
50425         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50427         * modules/mbchar (Depends-on): Add wctype.
50428         * modules/mbswidth (Depends-on): Likewise.
50429         * modules/wcwidth (Depends-on): Likewise.
50430
50431 2006-12-27  Eric Blake  <ebb9@byu.net>
50432
50433         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
50434         module uses more than what <wctype.h> is required to provide.
50435
50436 2006-12-26  Eric Blake  <ebb9@byu.net>
50437
50438         * gnulib-tool (sed_extract_prog): Avoid space-tab.
50439
50440 2006-12-26  Eric Blake  <ebb9@byu.net>
50441
50442         * modules/absolute-header: New module.
50443         * modules/fcntl (Depends-on): Depend on it.
50444         * modules/inttypes (Depends-on): Likewise.
50445         * modules/stdint (Depends-on): Likewise.
50446         * modules/sys_stat (Depends-on): Likewise.
50447         * modules/wctype (Depends-on): Likewise.
50448         * MODULES.html.sh (Support for building libraries and
50449         executables): Document it.
50450
50451 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50452
50453         * gnulib-tool (SED): Remove, undoing previous change.
50454         The problem was that it broke coreutils on Solaris, because
50455         "sed --posix" leaked into a makefile.
50456         (sed): New alias, if 'alias' and GNU sed.
50457
50458 2006-12-24  Jim Meyering  <jim@meyering.net>
50459
50460         Work around an fchownat bug in glibc-2.4:
50461         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
50462         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
50463         in spite of the -P option.
50464         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
50465         New macros.
50466         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
50467         * modules/openat (Files): Add lib/fchownat.c.
50468         * lib/openat.c (fchownat): Don't define here.  Move to...
50469         * lib/fchownat.c: ...this new file.
50470
50471 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50472
50473         Fix bug reported by Bruno Haible in
50474         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
50475         where quotearg.c didn't compile on Mac OS X 10.2 because it
50476         lacks <wchar.h> and wint_t.
50477         * lib/wctype_.h (__wctype_wint_t): New type.
50478         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
50479         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
50480         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
50481         Arg is now of type __wctype_wint_t, not wint_t.
50482         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
50483         substitute HAVE_WINT_T.
50484         * modules/wctype (Files): Add m4/wint_t.m4.
50485         (wctype.h): Substitute HAVE_WINT_T.
50486
50487 2006-12-23  Bruno Haible  <bruno@clisp.org>
50488
50489         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
50490
50491 2006-12-23  Bruno Haible  <bruno@clisp.org>
50492
50493         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
50494         S_ISLNK.
50495         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
50496         mingw.
50497
50498 2006-12-22  Bruno Haible  <bruno@clisp.org>
50499
50500         * lib/copy-file.c: Include acl.h.
50501         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
50502         Close the file descriptors only after being done with copy_acl.
50503         * modules/copy-file (Depends-on): Add acl.
50504
50505 2006-12-22  Bruno Haible  <bruno@clisp.org>
50506
50507         * gnulib-tool (SED): New variable.
50508         Use $SED instead of sed everywhere.
50509
50510 2006-12-22  Bruno Haible  <bruno@clisp.org>
50511
50512         * modules/no-c++: New file.
50513         * m4/no-c++.m4: New file.
50514         * MODULES.html.sh (Support for building libraries and executables):
50515         Add no-c++.
50516
50517 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
50518
50519         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50520         Include <limits.h>, and use its INT_MAX to rewrite the
50521         j loop so that it does not overflow 'int'.  Problem reported by
50522         Ralf Wildenhues in
50523         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
50524         Play it safe by shifting left by 1 rather than multiplying by 2,
50525         as GCC is less likely to optimize this away when the value
50526         is signed (when it assumes overflow leads to undefined behavior).
50527         Also, don't assume time_t uses two's complement.
50528
50529 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
50530
50531         * MODULES.html.sh: New module wctype.
50532         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
50533         * lib/fnmatch.c: Don't bother to include <wchar.h> before
50534         <wctype.h>, since the new wctype module should fix this.
50535         * lib/quotearg.c: Include <wctype.h> unconditionally, since
50536         the wctype module should arrange for it.
50537         * lib/regex_internal.h: Likewise.
50538         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
50539         since the wctype module should handle this now.
50540         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
50541         * modules/fnmatch (Depends-on): Add wctype.
50542         * modules/quotearg (Depends-on): Likewise.
50543         * modules/regex (Depends-on): Likewise.
50544
50545 2006-12-19  Bruno Haible  <bruno@clisp.org>
50546
50547         * lib/strdup.h [C++]: Wrap definitions in extern "C".
50548         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
50549
50550 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50551
50552         * modules/savewd (Depends-on): Fix dependency on fcntl.
50553
50554 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50555
50556         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
50557         conforms to C99, rather than relying on the user's environment
50558         setting of STDINT_H.
50559
50560 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50561         and Eric Blake  <ebb9@byu.net>
50562
50563         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
50564         This is more consistent with the other defines here.
50565         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
50566         Port to z/OS.  Problem reported by Paul Gilmartin.
50567         Change local vars to use gl_ prefix rather than ac_.
50568         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
50569         with other defines.
50570         * modules/double-slash-root: New module.
50571         * modules/dirname (Files): Remove m4/double-slash-root.m4.
50572         (Depends-on): Add double-slash-root.
50573         * MODULES.html.sh (File system functions): Mention new module.
50574
50575 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
50576
50577         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
50578         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
50579         This is for the benefit of gzip, which doesn't do i18n.
50580
50581 2006-12-12  Jim Meyering  <jim@meyering.net>
50582
50583         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
50584         Reported by Andreas Schwab <schwab@suse.de>.
50585
50586 2006-12-12  Bruno Haible  <bruno@clisp.org>
50587
50588         Merge these changes.
50589         2006-09-05  Bruno Haible  <bruno@clisp.org>
50590         * lib/iconvme.c (iconv_string): No need to save and restore errno when
50591         iconv_alloc succeeded.
50592         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
50593         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
50594         test for " && dest " at the end - dest is always != NULL there. Call
50595         iconv with 4xNULL arguments initially, to reset the state. Call iconv
50596         with 2xNULL arguments, also to flush the state storage. Handle the
50597         IRIX iconv behaviour. Realloc the final result, to throw away unused
50598         memory.
50599
50600 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
50601
50602         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
50603         and fchmodat unconditionally, since glibc 2.4 has them.
50604         Problem reported by Arkadiusz Miskiewicz.
50605
50606 2006-12-10  Bruno Haible  <bruno@clisp.org>
50607
50608         * gnulib-tool (func_import): Show the include files only for those
50609         modules that are copied and specified.
50610         Reported by Karl Berry.
50611
50612 2006-12-08  Jim Meyering  <jim@meyering.net>
50613
50614         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
50615         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
50616
50617         * build-aux/announce-gen: Add two new options, both optional:
50618         --bootstrap-tools=TOOL_LIST
50619               a comma-separated list of tools, e.g.,
50620               autoconf,automake,bison,gnulib
50621         --gnulib-snapshot-date=DATE
50622               if gnulib is in the bootstrap tool list,
50623               then report this as the snapshot date.
50624               If not specified, use the current date/time.
50625               If you specify a date here, be sure it's UTC.
50626
50627 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50628
50629         * tests/test-argp-2.sh: Fix test to match actual output.
50630         (func_compare): Fix sed script to be portable.
50631
50632 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
50633
50634         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
50635         workaround for this case.  It is not autoconfigured now; offhand
50636         it's hard to see how to autoconfigure it.
50637
50638 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50639
50640         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
50641         a directory that is about to be chowned.  Such a directory's
50642         initial file permissions should permit the owner only and this
50643         should not be changed until after the chown, since the group and
50644         other bits would be incorrect if they granted permission before
50645         the chown.
50646
50647         Fix porting problem for iswctype reported by Georg Schwarz in:
50648         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
50649         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
50650         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
50651         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
50652         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50653
50654 2006-12-03  Jim Meyering  <jim@meyering.net>
50655
50656         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
50657         p->fts_statp may not yet be defined.
50658         (fts_read): Instead, set it in the caller, once p->fts_statp is
50659         sure to be defined, and corresponds to a top-level directory.
50660         This bug made du -x fail.  Here's the coreutils test case:
50661         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
50662         Reported by Mike Frysinger.
50663
50664 2006-12-01  Jim Meyering  <jim@meyering.net>
50665
50666         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
50667         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
50668         Reported by Simon Josefsson.
50669
50670 2006-11-30  Jim Meyering  <jim@meyering.net>
50671
50672         * m4/warning.m4: Use the all-permissive copyright notice
50673         recommended by RMS (rather than LGPL).
50674         * m4/vararrays.m4: Likewise.
50675         * m4/flexmember.m4: Likewise.
50676
50677 2006-11-29  Bruno Haible  <bruno@clisp.org>
50678
50679         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50680         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
50681         using +=.
50682         Reported by Simon Josefsson <simon@josefsson.org>.
50683
50684 2006-11-28  James Youngman <jay@gnu.org>
50685
50686         * README: Advise users that they might find the bug-gnulib@gnu.org
50687         and autotools-announce@gnu.org mailing lists useful.
50688
50689 2006-11-28  Bruno Haible  <bruno@clisp.org>
50690
50691         * m4/ptrdiff_max.m4: Remove file.
50692
50693 2006-11-21  Bruno Haible  <bruno@clisp.org>
50694
50695         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
50696         _AC_COMPUTE_INT.
50697         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50698         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
50699         _AC_COMPUTE_INT.
50700         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50701         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
50702         _AC_COMPUTE_INT.
50703         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50704
50705 2006-11-28  Jim Meyering  <jim@meyering.net>
50706
50707         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
50708         warning from "gcc -Wshadow" about shadowing the builtin.
50709
50710 2006-11-27  Bruno Haible  <bruno@clisp.org>
50711
50712         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
50713         _AC_COMPUTE_INT.
50714         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50715
50716 2006-11-27  Bruno Haible  <bruno@clisp.org>
50717             Paul Eggert  <eggert@cs.ucla.edu>
50718
50719         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
50720
50721 2006-11-26  Bruno Haible  <bruno@clisp.org>
50722
50723         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50724         noinst_LTLIBRARIES.
50725
50726 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50727             Bruno Haible  <bruno@clisp.org>
50728
50729         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
50730         if compiling with "gcc -ansi".
50731
50732 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50733
50734         Fix some incompatibilities with gcc -ansi -pedantic.
50735         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
50736         if compiling pedantically with GCC, unless it's C99 or later.
50737         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
50738         it mishandles gcc -ansi -pedantic as well.
50739         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
50740         if gcc -pedantic.
50741         * lib/regexec.c (check_node_accept_bytes): Don't use auto
50742         initializers for struct if -pedantic, unless it's C99 or later.
50743
50744 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
50745
50746         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
50747         Don't close an fd more than once. Identical atimes indicate
50748         success, not failure.
50749
50750 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
50751
50752         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
50753
50754 2006-11-23  Jim Meyering  <jim@meyering.net>
50755
50756         * build-aux/announce-gen: New file.  From coreutils.
50757
50758 2006-11-22  Jim Meyering  <jim@meyering.net>
50759
50760         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
50761         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
50762         (fts_read): Use a temporary to narrow the overused st_size member
50763         before using it in a switch statement.  Reported by Matthew Woehlke.
50764
50765         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
50766         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
50767
50768 2006-11-20  Bruno Haible  <bruno@clisp.org>
50769
50770         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
50771         changequote instead of pairs of brackets.
50772         Reported by Andreas Schwab <schwab@suse.de>.
50773
50774 2006-11-21  Jim Meyering  <jim@meyering.net>
50775
50776         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
50777         so as to remain compatible with older compilers.
50778         Patch from Michael Deutschmann.
50779
50780 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50781
50782         * MODULES.html.sh (File system functions): Add openat.
50783
50784         * lib/openat.h (rpl_fstatat): New macro, if
50785         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
50786         (fstatat): Define to rpl_fstatat under the same conditions,
50787         unless COMPILING_FSTATAT.
50788         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
50789         seems to have the bug.
50790         * lib/fstatat.c: New file.
50791         * modules/openat (Files): Add it.
50792
50793 2006-11-20  Bruno Haible  <bruno@clisp.org>
50794
50795         * Makefile: New file.
50796
50797 2006-11-20  Jim Meyering  <jim@meyering.net>
50798
50799         The beginnings of syntax-related checks for gnulib.
50800         * lib/Makefile: New file.
50801         * lib/t-idcache: New script.  Ensure that the two halves of
50802         idcache.c stay in sync.
50803
50804         * lib/idcache.c: Adjust comments in user- and group- portions to
50805         be more accurate, and to be consistent with one another.
50806
50807 2006-11-20  Jim Meyering  <jim@meyering.net>
50808
50809         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
50810         continue using the flexible array member (thus, this module performs
50811         half as many malloc calls), with the addition that...
50812         (getgroup, getuser): Consistently record a non-match via an empty
50813         "name" string, and map an empty string match to a NULL return value.
50814         * modules/idcache (Depends-on): Re-add flexmember.
50815
50816         * lib/idcache.c (getuser): Remove all uses of the register keyword.
50817         (getuidbyname, getgroup, getgidbyname): Likewise.
50818
50819         Use cleaner syntax: NULL rather than 0.
50820         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
50821
50822 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50823
50824         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
50825         It mishandled the case where the group was missing.
50826         Problem reported by Greg Schafer.
50827         * modules/idcache: Likewise.
50828
50829 2006-11-18  Jim Meyering  <jim@meyering.net>
50830
50831         * check-module (%exempt_header): Add exception for some
50832         conditionally-included headers.
50833
50834         * modules/i-ring (Depends-on): Add verify.
50835         (License): Change to LGPL.
50836
50837 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50838
50839         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
50840         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
50841         and inttostr.h.  Use snprintf rather than uinttostr, so that
50842         LGPLed code doesn't depend on GPLed.
50843
50844 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50845
50846         * modules/inline (License): Change from GPL to LGPL.
50847
50848 2006-11-17  Jim Meyering  <jim@meyering.net>
50849
50850         * modules/d-type (License): Switch to LGPL.
50851
50852 2006-11-15  Bruno Haible  <bruno@clisp.org>
50853
50854         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
50855
50856 2006-11-15  Eric Blake  <ebb9@byu.net>
50857
50858         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
50859         the module dependency.
50860
50861 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50862             Bruno Haible  <bruno@clisp.org>
50863
50864         * gnulib-tool (func_create_testdir): Add license consistency check.
50865
50866 2006-11-15  Eric Blake  <ebb9@byu.net>
50867
50868         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
50869         random "(cached)" in configure output.
50870
50871 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50872
50873         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
50874         test for conforming inttypes.h is both announced and cached.
50875
50876         * MODULES.html.sh (seen_modules, seen_files): New variables.
50877         (func_module): Rewrite to use a few less gnulib-tool and sed
50878         invocations.  Avoid a couple of quadratic algorithms for ...
50879         (missed_modules, missed_files): ... these, with ...
50880         (func_append, func_tmpdir): ... these new functions, from
50881         gnulib-tool.  Analogously, install traps for cleanup.
50882
50883         * tests/test-gc.c (main): Remove unused variables.
50884         * tests/test-read-file.c: Include stdlib.h, for 'free'.
50885
50886 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
50887
50888         * modules/inttostr (License): Change to LGPL.
50889
50890 2006-11-14  Eric Blake  <ebb9@byu.net>
50891
50892         * modules/tempname (License): Change to LGPL.
50893
50894 2006-11-14  Eric Blake  <ebb9@byu.net>
50895
50896         * doc/functions.texi (Function Portability): *printf functions on
50897         Cygwin now understand all POSIX size specifiers.
50898
50899 2006-11-14  Bruno Haible  <bruno@clisp.org>
50900
50901         * modules/c-ctype (License): Change to LGPL.
50902
50903 2006-11-12  Bruno Haible  <bruno@clisp.org>
50904
50905         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50906         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
50907         for GNOME libraries, for which the include files are installed in
50908         subdirectories of $prefix/include.
50909
50910 2006-11-12  Bruno Haible  <bruno@clisp.org>
50911
50912         * m4/lib-link.m4: Require at least autoconf-2.54.
50913         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
50914         name to underscores for the --with option.
50915
50916 2006-11-13  Bruno Haible  <bruno@clisp.org>
50917
50918         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
50919         the tests directory.
50920         Reported by Ralf Wildenhues.
50921
50922 2006-11-13  Bruno Haible  <bruno@clisp.org>
50923
50924         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
50925         (func_emit_initmacro_end): Undo the override here.
50926         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
50927         Works around the famous automake error in coreutils.
50928
50929 2006-11-13  Eric Blake  <ebb9@byu.net>
50930
50931         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
50932         element, not its node.
50933
50934 2006-11-12  Bruno Haible  <bruno@clisp.org>
50935
50936         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
50937         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
50938
50939 2006-11-12  Bruno Haible  <bruno@clisp.org>
50940
50941         * gnulib-tool: New option --local-symlink.
50942         (func_usage): Document it.
50943         (lsymbolic): New variable.
50944         (func_import, func_create_testdir): If --symlink was not specified,
50945         test whether --local-symlink was specified and the file comes from
50946         the local_gnulib_dir.
50947
50948 2006-11-12  Bruno Haible  <bruno@clisp.org>
50949
50950         * gnulib-tool (func_ln): New function.
50951         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
50952
50953 2006-11-12  Bruno Haible  <bruno@clisp.org>
50954
50955         Finish support for source files in subdirectories.
50956         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
50957         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
50958         AUTOMAKE_OPTIONS.
50959         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
50960
50961 2006-11-12  Bruno Haible  <bruno@clisp.org>
50962
50963         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50964         EXTRA_lib_SOURCES augmentation.
50965         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
50966
50967 2006-11-12  Jim Meyering  <jim@meyering.net>
50968
50969         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
50970         file descriptors.  This also averts a failure on systems with
50971         native openat support when a traversed directory lacks "x" access.
50972         * lib/fts_.h: Include "i-ring.h"
50973         (struct FTS) [fts_fd_ring]: New member.
50974         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
50975         (FCHDIR): Add parentheses.
50976         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
50977         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
50978         When descending, rather than simply closing the previous
50979         fts_cwd_fd value, push that file descriptor onto the ring.
50980         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
50981         (fts_open): Initialize the new fd_ring member.
50982         (fts_close): Clear the ring.
50983         (fts_safe_changedir): When possible, use our new fd_ring to skip
50984         the diropen and fstat and dev/ino comparison that would normally
50985         accompany a virtual `chdir ("..")'.
50986
50987         * modules/fts (Depends-on): Add i-ring.
50988         * modules/i-ring: New module.
50989         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
50990         * m4/i-ring.m4: New file.
50991
50992 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50993
50994         * gnulib-tool (func_create_testdir): Fix replacement of
50995         `build-aux' in configure.ac.  Run autotools in gltests
50996         subdirectory.
50997         (func_create_testdir, func_create_megatestdir, test): There is
50998         no need for '--force' in most autotool invocations in a new
50999         tree.  Actually fail the whole test if any of the tools, or the
51000         configure or make stages fail.
51001
51002         Sync from Automake.
51003         * build-aux/gnupload: Revert last change.  Add pointer to upload
51004         instructions of the GNU Maintenance Instructions.
51005         Suggestion by Karl Berry.
51006
51007 2006-11-10  Jim Meyering  <jim@meyering.net>
51008
51009         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
51010
51011 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51012
51013         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
51014         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
51015         (bind_textdomain_codeset) [! ENABLE_NLS]:
51016         Evaluate all the arguments.  That way, callers get compatible behavior
51017         if the arguments have side effects.  Also, it avoids some GCC
51018         diagnostics in some cases; Joel E. Denny reported problems when Bison
51019         was configured with --enable-gcc-warnigs.
51020
51021 2006-11-10  Jim Meyering  <jim@meyering.net>
51022
51023         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
51024         relevant options in CFLAGS (like -O, -fno-inline) are taken into
51025         account.
51026
51027 2006-11-10  Jim Meyering  <jim@meyering.net>
51028
51029         * modules/inline: New file/module.
51030         * modules/xalloc (Files): Remove m4/inline.m4.
51031         (Depends-on): Add inline, instead.
51032         * modules/oset: Likewise.
51033         * modules/list: Likewise.
51034
51035 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51036
51037         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
51038         Problem reported by Matthew Woehlke.
51039
51040 2006-11-09  Bruno Haible  <bruno@clisp.org>
51041
51042         * lib/tempname.c (gen_tempname): Remove variant that invokes
51043         __gen_tempname.
51044         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
51045         __gen_tempname.
51046
51047 2006-11-08  Bruno Haible  <bruno@clisp.org>
51048
51049         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
51050         to 'yes' instead of 'cross-compiling'.
51051
51052 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
51053
51054         * lib/quotearg.h (quotearg_free): New decl.
51055         * lib/quotearg.c (quotearg_free): New function.
51056         (slot0, nslots, slotvec0, slotvec):
51057         Now file-scope so that quotearg_free can get at them.
51058
51059 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51060
51061         Sync from Automake.
51062         * build-aux/gnupload: Add missing 'gnu' to example URL.
51063         Report by Karl Berry.
51064
51065 2006-11-08  Bruno Haible  <bruno@clisp.org>
51066
51067         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
51068         Suggested by Paul Eggert.
51069
51070 2006-11-08  Jim Meyering  <jim@meyering.net>
51071
51072         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
51073         It's already included if !_LIBC.
51074         (fts_safe_changedir): Add a comment.
51075
51076 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
51077
51078         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
51079         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
51080         Matthew Woehlke.
51081
51082         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
51083         definitions up, to avoid colliding with change below.
51084         (static_inline) [HAVE_INLINE]: New macro.
51085         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
51086         Provide extern decls when !HAVE_INLINE.  Do not define unless
51087         static_inline is defined, either by us or by xmalloc.c.  Use
51088         static_inline rather than static inline.
51089         (XCALLOC): Optimize sizeof(T) = 1 case.
51090         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
51091
51092 2006-11-07  Bruno Haible  <bruno@clisp.org>
51093
51094         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
51095         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
51096         AC_C_INLINE.
51097         * modules/xalloc (Files): Add m4/inline.m4.
51098
51099 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51100
51101         * README: Fix typo.
51102         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
51103         (Miscellanous Notes): ...from this.
51104
51105 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
51106
51107         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
51108         Mention that offsetof should be used instead of sizeof.
51109         From Bruno Haible.
51110
51111 2006-11-07  Bruno Haible  <bruno@clisp.org>
51112
51113         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
51114
51115 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
51116
51117         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
51118         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
51119         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
51120         (gl_tree_add_before, gl_tree_add_after):
51121         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
51122         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
51123         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51124         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
51125         (gl_linked_add_after, gl_linked_add_at): Likewise.
51126         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
51127         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
51128         (gl_tree_add_before, gl_tree_add_after): Likewise.
51129         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
51130         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
51131         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
51132
51133 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51134
51135         * lib/gl_oset.h: Use C comment style, not C++ comment style.
51136
51137 2006-11-06  Bruno Haible  <bruno@clisp.org>
51138
51139         * m4/inline.m4: New file.
51140         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
51141         * modules/list (Files): Add m4/inline.m4.
51142         * modules/oset (Files): Likewise.
51143
51144 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
51145
51146         * lib/idcache.c: Include <stddef.h>, for offsetof.
51147         (struct userid.name): Change from char * to a flexible array member.
51148         All uses changed.
51149         * modules/idcache (Depends-on): Add flexmember.
51150
51151         * MODULES.html.sh (Core language properties): New module flexmember.
51152         * modules/flexmember, m4/flexmember.m4: New files.
51153
51154         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
51155         inline functions that are identical with the old xnmalloc_inline,
51156         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
51157         that we can avoid some unnecessary integer multiplications and
51158         divisions in the common case where the element size is known at
51159         compile time.
51160         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
51161         needed.
51162         (xnboundedmalloc): Remove.
51163         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
51164         arguments, for consistency with rest of this header.
51165         (xcharalloc): Rewrite using XNMALLOC.
51166         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
51167         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
51168         versions have been moved to lib/xalloc.h and renamed to be the
51169         non-*_inline versions.
51170         (xmalloc, xrealloc): Implement without reference to the xnmalloc
51171         and xnrealloc functions, since those functions are now inline and
51172         now call us.
51173         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
51174         renaming described above.
51175         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
51176         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
51177         captures the dependency in AC_C_INLINE.
51178
51179         New module canonicalize-lgpl, proposed by Charles Wilson in
51180         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
51181         with a few small changes afterwards.
51182         * MODULES.html.sh (File system functions): New module
51183         canonicalize-lgpl.
51184         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
51185         and canonicalize_file_name.
51186         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
51187         * modules/canonicalize-lgpl: New files.
51188
51189 2006-11-05  Bruno Haible  <bruno@clisp.org>
51190
51191         * gnulib-tool (func_import, func_create_testdir): Create directories
51192         also for files in subdirectories of lib/.
51193
51194 2006-11-05  Bruno Haible  <bruno@clisp.org>
51195
51196         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
51197         ANSI C compliant.
51198
51199 2006-11-03  Bruno Haible  <bruno@clisp.org>
51200
51201         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
51202         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
51203         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
51204         (xnboundedmalloc): New inline function.
51205         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
51206         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
51207         xmalloc.
51208         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
51209         xmalloc.
51210         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
51211         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
51212         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
51213         xmalloc.
51214         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51215         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
51216         xmalloc.
51217         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
51218         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51219         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
51220         xmalloc.
51221         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51222         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
51223         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51224         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
51225         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
51226         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
51227         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
51228
51229 2006-11-03  Bruno Haible  <bruno@clisp.org>
51230
51231         * lib/c-ctype.h [C++]: Define functions without name mangling.
51232         * lib/fwriteerror.h [C++]: Likewise.
51233         * lib/gcd.h [C++]: Likewise.
51234         * lib/linebreak.h [C++]: Likewise.
51235
51236 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
51237
51238         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
51239         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
51240         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
51241         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
51242         Check for functions and headers just once.
51243         Check for declaration of canonicalize_file_name.
51244         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
51245
51246 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51247
51248         * gnulib-tool (func_import): Fix typo in actioncmd.
51249
51250 2006-11-02  Bruno Haible  <bruno@clisp.org>
51251
51252         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
51253         newline sequence in the Makefile.am snippet as a space, like "make"
51254         does.
51255         Reported by Roger Persson <perrog@gmail.com>.
51256
51257 2006-11-01  Bruno Haible  <bruno@clisp.org>
51258
51259         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
51260         already declared in <string.h>.
51261         * lib/strcase.h (strncasecmp): Don't declare it if yes.
51262
51263 2006-11-01  Bruno Haible  <bruno@clisp.org>
51264
51265         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
51266         * lib/strcase.h: Include <string.h>.
51267         (strcasecmp): Define to rpl_strcasecmp here.
51268
51269 2006-11-01  Bruno Haible  <bruno@clisp.org>
51270
51271         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
51272
51273 2006-11-01  Eric Blake  <ebb9@byu.net>
51274
51275         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
51276
51277         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
51278
51279 2006-10-29  Bruno Haible  <bruno@clisp.org>
51280
51281         Make it compile in C++ mode.
51282         * lib/full-write.c (full_rw): Add a cast.
51283
51284 2006-11-01  Bruno Haible  <bruno@clisp.org>
51285
51286         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
51287         be POSIX compliant.
51288         Reported by Roger Persson <perrog@gmail.com>.
51289
51290 2006-11-01  Eric Blake  <ebb9@byu.net>
51291
51292         * lib/getopt_.h: Fix comments.
51293
51294 2006-10-31  Eric Blake  <ebb9@byu.net>
51295
51296         * modules/tmpdir (Depends-on): Add sys_stat.
51297         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
51298         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
51299         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
51300         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
51301         tempname.
51302
51303 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
51304
51305         Avoid some C++ diagnostics reported by Bruno Haible.
51306         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
51307         xmalloc.
51308         (quotearg_alloc): Use xcharalloc rather than xmalloc.
51309         (struct slotvec): Move to top level.
51310         (quotearg_n_options): Rewrite to avoid xmalloc.
51311         * lib/xalloc.h (xcharalloc): New function.
51312         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
51313         [defined __cplusplus]: Add function template that provides result
51314         type propagation.  This part of the change is from Bruno Haible.
51315
51316 2006-10-29  Bruno Haible  <bruno@clisp.org>
51317
51318         Make it compile in C++ mode.
51319         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
51320         * lib/strnlen1.c (strnlen1): Cast memchr result.
51321         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
51322         * lib/clean-temp.c (string_equals, string_hash): Add casts.
51323         (create_temp_dir): Rename local variable 'template'.
51324         (compile_csharp_using_sscli): Add cast.
51325         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
51326         * lib/findprog.c (find_in_path): Likewise.
51327         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
51328         * lib/wait-process.c (register_slave_subprocess): Likewise.
51329
51330 2006-10-22  Bruno Haible  <bruno@clisp.org>
51331
51332         * modules/tsearch: New file.
51333         * lib/tsearch.h: New file.
51334         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
51335         * m4/tsearch.m4: New file.
51336         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
51337
51338 2006-10-29  Eric Blake  <ebb9@byu.net>
51339
51340         * lib/arcfour.c: Assume config.h.
51341         * lib/arctwo.c: Likewise.
51342         * lib/base64.c: Likewise.
51343         * lib/check-version.c: Likewise.
51344         * lib/crc.c: Likewise.
51345         * lib/des.c: Likewise.
51346         * lib/gc-gnulib.c: Likewise.
51347         * lib/gc-libgcrypt.c: Likewise.
51348         * lib/gc-pbkdf2-sha1.c: Likewise.
51349         * lib/getaddrinfo.c: Likewise.
51350         * lib/getdelim.c: Likewise.
51351         * lib/getline.c: Likewise.
51352         * lib/hmac-md5.c: Likewise.
51353         * lib/hmac-sha1.c: Likewise.
51354         * lib/iconvme.c: Likewise.
51355         * lib/md2.c: Likewise.
51356         * lib/md4.c: Likewise.
51357         * lib/memxor.c: Likewise.
51358         * lib/read-file.c: Likewise.
51359         * lib/readline.c: Likewise.
51360         * lib/rijndael-alg-fst.c: Likewise.
51361         * lib/rijndael-api-fst.c: Likewise.
51362         * lib/xgetdomainname.c: Likewise.
51363
51364 2006-10-28  Eric Blake  <ebb9@byu.net>
51365
51366         * lib/xstrndup.c: Assume config.h.
51367
51368 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
51369
51370         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
51371         stat-macros.h is now for our own macros, whereas stat_h is for
51372         macros in the <sys/stat.h> name space.
51373         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
51374         (STAT_MACROS_H): Remove.
51375         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
51376         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
51377         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
51378         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
51379         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
51380         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
51381         Move these macros to ...
51382         * lib/stat_.h: here.  Don't include stat-macros.h.
51383         * lib/canonicalize.c: Don't include stat-macros.h.
51384         * lib/chown.c: Likewise.
51385         * lib/euidaccess.c: Likewise.
51386         * lib/file-type.c: Likewise.
51387         * lib/filemode.c: Likewise.
51388         * lib/glob.c: Likewise.
51389         * lib/isapipe.c: Likewise.
51390         * lib/lchown.c: Likewise.
51391         * lib/lstat.c: Likewise.
51392         * lib/mkdir-p.c: Likewise.
51393         * lib/rmdir.c: Likewise.
51394         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
51395         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
51396         unless mkdir isn't declared, to speed up 'configure'.
51397         Always create sys/stat.h, since it's unlikely any real sys/stat.h
51398         would define all the S_* symbols.
51399         * modules/canonicalize (Depends-on):
51400         Depend on sys_stat, not stat-macros.
51401         * modules/chown: Likewise.
51402         * modules/euidaccess: Likewise.
51403         * modules/filemode: Likewise.
51404         * modules/file-type: Likewise.
51405         * modules/glob: Likewise.
51406         * modules/isapipe: Likewise.
51407         * modules/lchown: Likewise.
51408         * modules/lstat: Likewise.
51409         * modules/mkancesdirs: Likewise.
51410         * modules/rmdir: Likewise.
51411         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
51412         * modules/modechange: Likewise.
51413         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
51414         (configure.ac): Remove gl_STAT_MACROS.
51415         * modules/sys_stat (Depends-on): Remove stat-macros.
51416
51417 2006-10-27  Bruno Haible  <bruno@clisp.org>
51418
51419         * m4/signed.m4: Remove file.
51420         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
51421         invocation.
51422         * modules/vasnprintf (Files): Remove m4/signed.m4.
51423
51424 2006-10-27  Bruno Haible  <bruno@clisp.org>
51425
51426         Update to GNU gettext 0.16.
51427         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
51428         m4/inttypes-h.m4, m4/signed.m4.
51429         * m4/gettext.m4: Update to GNU gettext 0.16.
51430         * m4/intl.m4: New file, from GNU gettext.
51431         * m4/intldir.m4: New file, from GNU gettext.
51432         * config/srclist.txt: Update
51433
51434 2006-10-27  Eric Blake  <ebb9@byu.net>
51435
51436         * MODULES.html.sh: Document tempname.
51437         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
51438         dependencies.
51439         (Files): Move lib/tempname.c...
51440         * modules/tempname: ...to this new module.
51441         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
51442         (gl_PREREQ_TEMPNAME): Move...
51443         * m4/tempname.m4: ...to this new file.
51444         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
51445         * modules/sys_stat (Depends-on): Add stat-macros.
51446         * lib/stat_.h (includes): Pick up stat macros.
51447         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
51448         if stat macros are broken.
51449         * lib/tempname.c (includes): No need to include "stat-macros.h".
51450         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
51451         (direxists, __path_search) [!_LIBC]: Don't compile these in
51452         gnulib; the tmpdir module covers that.
51453         * lib/tempname.h: New file.
51454
51455 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
51456
51457         * COPYING: Explain how gnulib-tool converts licence headers.
51458         Almost all wording by Eric Blake.
51459
51460 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
51461
51462         * lib/mbchar.h (is_basic_table): Make read-only.
51463         * lib/mbchar.c (is_basic_table): Likewise.
51464         Reported by John Darrington.
51465
51466 2006-10-25  Bruno Haible  <bruno@clisp.org>
51467
51468         * lib/progname.h (set_program_name): Undefine before defining.
51469
51470 2006-10-25  Bruno Haible  <bruno@clisp.org>
51471
51472         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
51473         false for non-gcc C++ compilers.
51474         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51475
51476 2006-10-24  Bruno Haible  <bruno@clisp.org>
51477
51478         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
51479         iconv implementations like Irix iconv.
51480
51481 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51482
51483         * modules/vararrays: New file.
51484         * m4/vararrays.m4: New file, taken from diffutils.
51485         * MODULES.html.sh: New module vararrays.
51486
51487 2006-10-24  Karl Berry  <karl@gnu.org>
51488
51489         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
51490         Don't call GNU Unix.
51491
51492 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51493
51494         * users.txt: Add Libtool.
51495
51496         Sync from Libtool:
51497
51498         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51499
51500         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
51501         to gnulib's policy of including config.h unconditionally.
51502
51503 2006-10-24  Bruno Haible  <bruno@clisp.org>
51504
51505         * modules/wcwidth (Files): Add m4/wint_t.m4.
51506         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
51507         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
51508
51509 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51510
51511         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
51512         to pacify GCC with some -W flags enabled.  Problem reported by
51513         Bruno Haible.
51514
51515 2006-10-24  Jim Meyering  <jim@meyering.net>
51516
51517         * MODULES.html.sh: Remove uinttostr.  It's not a module.
51518         Reported by Karl Berry.
51519
51520 2006-10-23  Bruno Haible  <bruno@clisp.org>
51521
51522         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
51523
51524 2006-10-24  Bruno Haible  <bruno@clisp.org>
51525
51526         * lib/gl_list.h: Use C comment style, not C++ comment style.
51527
51528 2006-10-23  Eric Blake  <ebb9@byu.net>
51529
51530         * lib/getaddrinfo.c (includes): Add missing include.
51531
51532 2006-10-23  Bruno Haible  <bruno@clisp.org>
51533             Paul Eggert  <eggert@cs.ucla.edu>
51534
51535         Ability to rename obstack_free.
51536         * lib/obstack.h (__obstack_free): New macro. Declare instead of
51537         obstack_free.
51538         (obstack_free): Invoke the __obstack_free macro.
51539         * lib/obstack.c (obstack_free): Use __obstack_free macro.
51540
51541 2006-10-23  Bruno Haible  <bruno@clisp.org>
51542             Paul Eggert  <eggert@cs.ucla.edu>
51543
51544         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
51545         __argc, __argv from the declaration. (They are defined as macros on
51546         mingw.)
51547
51548 2006-10-22  Bruno Haible  <bruno@clisp.org>
51549
51550         * doc/gnulib-intro.texi: New file.
51551         * doc/gnulib.texi: Include it.
51552
51553 2006-10-21  Bruno Haible  <bruno@clisp.org>
51554
51555         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
51556         "Introduction", "Miscellanous Notes", "Particular Modules".
51557
51558 2006-10-21  Bruno Haible  <bruno@clisp.org>
51559
51560         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51561         Change mostlyclean-local rule to avoid sh syntax error from bash
51562         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
51563
51564 2006-10-23  Jim Meyering  <jim@meyering.net>
51565
51566         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
51567         in place of snprintf.
51568
51569         * modules/inttostr (Files): Add lib/uinttostr.c.
51570         * lib/uinttostr.c (inttostr): New file/function.
51571         * lib/inttostr.h (uinttostr): Declare.
51572         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
51573         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51574         Add uinttostr.
51575         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
51576
51577 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51578
51579         * lib/canonicalize.c (ELOOP): Define if not already defined.
51580         Problem reported by Bruno Haible in
51581         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
51582
51583 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51584
51585         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
51586         Problem reported by Perry Smith and Ville Laurikari.
51587
51588         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
51589         uses.
51590
51591 2006-10-19  Bruno Haible  <bruno@clisp.org>
51592
51593         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
51594         for mingw.
51595
51596 2006-10-19  Bruno Haible  <bruno@clisp.org>
51597
51598         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
51599         Needed for mingw.
51600
51601 2006-10-19  Bruno Haible  <bruno@clisp.org>
51602
51603         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
51604
51605 2006-10-19  Bruno Haible  <bruno@clisp.org>
51606
51607         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
51608         it.
51609
51610 2006-10-19  Bruno Haible  <bruno@clisp.org>
51611
51612         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
51613         invocation.
51614
51615 2006-10-19  Bruno Haible  <bruno@clisp.org>
51616
51617         * gnulib-tool (func_create_testdir): Don't include ftruncate and
51618         mountlist by default.
51619
51620 2006-10-16  Bruno Haible  <bruno@clisp.org>
51621
51622         * lib/c-strstr.c: Include c-strstr.h.
51623
51624 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51625
51626         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
51627         in a slash.
51628
51629 2006-10-18  Bruno Haible  <bruno@clisp.org>
51630
51631         * lib/lock.h [C++]: Wrap definitions in extern "C".
51632
51633 2006-10-18  Bruno Haible  <bruno@clisp.org>
51634
51635         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
51636         gl_LIBOBJS list.
51637
51638 2006-10-18  Bruno Haible  <bruno@clisp.org>
51639
51640         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
51641
51642 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
51643
51644         * lib/xstrtol.h: Include gettext.h.
51645         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
51646         Problem reported by Eric Blake.
51647         * modules/xstrtol (Depends-on): Add gettext-h.
51648
51649 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
51650
51651         * lib/strftime.c (advance): New macro.
51652         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
51653         incomplete type, so you can't add 0 to it.  Problem and patch
51654         reported by Eelco Dolstra for dietlibc.
51655
51656 2006-10-18  Jim Meyering  <jim@meyering.net>
51657
51658         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
51659         type for a local, and rename it: s/up/user_proc/.
51660
51661 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51662
51663         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
51664         READ_UTMP_USER_PROCESS.
51665         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
51666
51667 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51668
51669         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
51670         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
51671
51672 2006-10-17  Eric Blake  <ebb9@byu.net>
51673
51674         * lib/sigprocmask.c (sigprocmask): Fix typo.
51675
51676         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
51677
51678         * modules/clean-temp (Makefile.am): Don't add to make output...
51679         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
51680         config.h.
51681
51682 2006-10-17  Bruno Haible  <bruno@clisp.org>
51683
51684         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
51685         differently if DEFAULT_TEXT_DOMAIN is set.
51686
51687 2006-10-16  Bruno Haible  <bruno@clisp.org>
51688
51689         * lib/clean-temp.c: Include fwriteerror.h.
51690
51691 2006-10-16  Bruno Haible  <bruno@clisp.org>
51692
51693         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
51694
51695 2006-10-16  Bruno Haible  <bruno@clisp.org>
51696
51697         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
51698         * lib/sigprocmask.h: Include <sys/types.h>.
51699         (sigset_t): Use the system's definition if present.
51700
51701 2006-10-17  Eric Blake  <ebb9@byu.net>
51702
51703         * lib/xvasprintf.c (includes): Assume config.h.
51704         * lib/xasprintf.c (includes): Likewise.
51705
51706 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51707
51708         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
51709         at least as wide as intmax_t.
51710
51711 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
51712
51713         (Imported from Automake.)
51714         * build-aux/gnupload: Update to version 1.1 of directive file.
51715
51716 2006-10-16  Eric Blake  <ebb9@byu.net>
51717
51718         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
51719         match Automake 1.10a.
51720
51721 2006-10-14  Bruno Haible  <bruno@clisp.org>
51722
51723         * modules/sigprocmask: New file.
51724         * lib/sigprocmask.h: New file.
51725         * lib/sigprocmask.c: New file.
51726         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
51727         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
51728         request sigprocmask.o.
51729         (gl_PREREQ_SIGPROCMASK): New macro.
51730         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
51731         (Depends-on): Add sigprocmask.
51732         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
51733         gt_SIGNALBLOCKING. Test for 'raise' only once.
51734         * lib/fatal-signal.c: Include sigprocmask.h.
51735         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
51736         unblock_fatal_signals): Define always.
51737         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51738         sigprocmask.
51739
51740 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
51741
51742         Sync from Automake.
51743         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
51744         which incorrectly sets the mode of an existing destination
51745         directory.  In some cases the unpatched install-sh could do the
51746         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
51747         system.  We hope this is rare in practice, but it's clearly worth
51748         fixing.  Problem reported by Alex Unleashed in
51749         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
51750         Also, don't bother to check for -m bugs unless we're using -m;
51751         suggested by Stepan Kasal.
51752
51753 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51754
51755         Sync from Automake.
51756         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
51757         `-c' flag, so they appear at the same position as in %FASTDEP%
51758         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
51759         which ignores unknown options only after the first non-option.
51760         Bug report against M4 by Nelson H. F. Beebe.
51761
51762 2006-10-13  Jim Meyering  <jim@meyering.net>
51763
51764         Fix a bug in yesterday's change.
51765         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
51766         p->fts_statp->st_dev would be used uninitialized.
51767         Ensures that we always call fts_stat on the very first entry.
51768         Miklos Szeredi reported that find -xdev stopped working.
51769
51770 2006-10-12  Bruno Haible  <bruno@clisp.org>
51771
51772         * gnulib-tool (func_get_automake_snippet): Append an automatically
51773         computed EXTRA_DIST augmentation.
51774         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
51775         * modules/alloca-opt (Makefile.am): Likewise.
51776         * modules/allocsa (Makefile.am): Likewise.
51777         * modules/arcfour (Makefile.am): Likewise.
51778         * modules/arctwo (Makefile.am): Likewise.
51779         * modules/argmatch (Makefile.am): Likewise.
51780         * modules/argz (Makefile.am): Likewise.
51781         * modules/atexit (Makefile.am): Likewise.
51782         * modules/backupfile (Makefile.am): Likewise.
51783         * modules/byteswap (Makefile.am): Likewise.
51784         * modules/c-strtod (Makefile.am): Likewise.
51785         * modules/c-strtold (Makefile.am): Likewise.
51786         * modules/calloc (Makefile.am): Likewise.
51787         * modules/canon-host (Makefile.am): Likewise.
51788         * modules/canonicalize (Makefile.am): Likewise.
51789         * modules/chdir-long (Makefile.am): Likewise.
51790         * modules/chdir-safer (Makefile.am): Likewise.
51791         * modules/check-version (Makefile.am): Likewise.
51792         * modules/chown (Makefile.am): Likewise.
51793         * modules/cloexec (Makefile.am): Likewise.
51794         * modules/close-stream (Makefile.am): Likewise.
51795         * modules/closeout (Makefile.am): Likewise.
51796         * modules/crc (Makefile.am): Likewise.
51797         * modules/csharpexec (Makefile.am): Likewise.
51798         * modules/cycle-check (Makefile.am): Likewise.
51799         * modules/des (Makefile.am): Likewise.
51800         * modules/dev-ino (Makefile.am): Likewise.
51801         * modules/dirfd (Makefile.am): Likewise.
51802         * modules/dirname (Makefile.am): Likewise.
51803         * modules/dup2 (Makefile.am): Likewise.
51804         * modules/eealloc (Makefile.am): Likewise.
51805         * modules/error (Makefile.am): Likewise.
51806         * modules/euidaccess (Makefile.am): Likewise.
51807         * modules/exclude (Makefile.am): Likewise.
51808         * modules/exitfail (Makefile.am): Likewise.
51809         * modules/fcntl-safer (Makefile.am): Likewise.
51810         * modules/fcntl (Makefile.am): Likewise.
51811         * modules/file-type (Makefile.am): Likewise.
51812         * modules/fileblocks (Makefile.am): Likewise.
51813         * modules/filemode (Makefile.am): Likewise.
51814         * modules/filenamecat (Makefile.am): Likewise.
51815         * modules/fnmatch (Makefile.am): Likewise.
51816         * modules/fopen-safer (Makefile.am): Likewise.
51817         * modules/fpending (Makefile.am): Likewise.
51818         * modules/fprintftime (Makefile.am): Likewise.
51819         * modules/free (Makefile.am): Likewise.
51820         * modules/fsusage (Makefile.am): Likewise.
51821         * modules/ftruncate (Makefile.am): Likewise.
51822         * modules/fts (Makefile.am): Likewise.
51823         * modules/gc-arcfour (Makefile.am): Likewise.
51824         * modules/gc-des (Makefile.am): Likewise.
51825         * modules/gc-hmac-md5 (Makefile.am): Likewise.
51826         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
51827         * modules/gc-md4 (Makefile.am): Likewise.
51828         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51829         * modules/gc-sha1 (Makefile.am): Likewise.
51830         * modules/gc (Makefile.am): Likewise.
51831         * modules/getaddrinfo (Makefile.am): Likewise.
51832         * modules/getcwd (Makefile.am): Likewise.
51833         * modules/getdelim (Makefile.am): Likewise.
51834         * modules/getdomainname (Makefile.am): Likewise.
51835         * modules/getgroups (Makefile.am): Likewise.
51836         * modules/gethostname (Makefile.am): Likewise.
51837         * modules/gethrxtime (Makefile.am): Likewise.
51838         * modules/getline (Makefile.am): Likewise.
51839         * modules/getloadavg (Makefile.am): Likewise.
51840         * modules/getlogin_r (Makefile.am): Likewise.
51841         * modules/getndelim2 (Makefile.am): Likewise.
51842         * modules/getopt (Makefile.am): Likewise.
51843         * modules/getpagesize (Makefile.am): Likewise.
51844         * modules/getpass-gnu (Makefile.am): Likewise.
51845         * modules/getpass (Makefile.am): Likewise.
51846         * modules/getsubopt (Makefile.am): Likewise.
51847         * modules/gettime (Makefile.am): Likewise.
51848         * modules/gettimeofday (Makefile.am): Likewise.
51849         * modules/getugroups (Makefile.am): Likewise.
51850         * modules/getusershell (Makefile.am): Likewise.
51851         * modules/glob (Makefile.am): Likewise.
51852         * modules/group-member (Makefile.am): Likewise.
51853         * modules/hard-locale (Makefile.am): Likewise.
51854         * modules/hash (Makefile.am): Likewise.
51855         * modules/hmac-md5 (Makefile.am): Likewise.
51856         * modules/hmac-sha1 (Makefile.am): Likewise.
51857         * modules/human (Makefile.am): Likewise.
51858         * modules/idcache (Makefile.am): Likewise.
51859         * modules/imaxabs (Makefile.am): Likewise.
51860         * modules/imaxdiv (Makefile.am): Likewise.
51861         * modules/inet_ntop (Makefile.am): Likewise.
51862         * modules/inet_pton (Makefile.am): Likewise.
51863         * modules/intprops (Makefile.am): Likewise.
51864         * modules/inttostr (Makefile.am): Likewise.
51865         * modules/inttypes (Makefile.am): Likewise.
51866         * modules/isapipe (Makefile.am): Likewise.
51867         * modules/javaversion (Makefile.am): Likewise.
51868         * modules/lchmod (Makefile.am): Likewise.
51869         * modules/lchown (Makefile.am): Likewise.
51870         * modules/localcharset (Makefile.am): Likewise.
51871         * modules/long-options (Makefile.am): Likewise.
51872         * modules/lstat (Makefile.am): Likewise.
51873         * modules/malloc (Makefile.am): Likewise.
51874         * modules/mathl (Makefile.am): Likewise.
51875         * modules/mbchar (Makefile.am): Likewise.
51876         * modules/md2 (Makefile.am): Likewise.
51877         * modules/md4 (Makefile.am): Likewise.
51878         * modules/md5 (Makefile.am): Likewise.
51879         * modules/memcasecmp (Makefile.am): Likewise.
51880         * modules/memchr (Makefile.am): Likewise.
51881         * modules/memcmp (Makefile.am): Likewise.
51882         * modules/memcoll (Makefile.am): Likewise.
51883         * modules/memcpy (Makefile.am): Likewise.
51884         * modules/memmem (Makefile.am): Likewise.
51885         * modules/memmove (Makefile.am): Likewise.
51886         * modules/mempcpy (Makefile.am): Likewise.
51887         * modules/memrchr (Makefile.am): Likewise.
51888         * modules/memset (Makefile.am): Likewise.
51889         * modules/memxor (Makefile.am): Likewise.
51890         * modules/mkancesdirs (Makefile.am): Likewise.
51891         * modules/mkdir-p (Makefile.am): Likewise.
51892         * modules/mkdir (Makefile.am): Likewise.
51893         * modules/mkdtemp (Makefile.am): Likewise.
51894         * modules/mkstemp (Makefile.am): Likewise.
51895         * modules/mktime (Makefile.am): Likewise.
51896         * modules/modechange (Makefile.am): Likewise.
51897         * modules/mountlist (Makefile.am): Likewise.
51898         * modules/nanosleep (Makefile.am): Likewise.
51899         * modules/obstack (Makefile.am): Likewise.
51900         * modules/openat (Makefile.am): Likewise.
51901         * modules/pagealign_alloc (Makefile.am): Likewise.
51902         * modules/pathmax (Makefile.am): Likewise.
51903         * modules/physmem (Makefile.am): Likewise.
51904         * modules/poll (Makefile.am): Likewise.
51905         * modules/posixtm (Makefile.am): Likewise.
51906         * modules/posixver (Makefile.am): Likewise.
51907         * modules/putenv (Makefile.am): Likewise.
51908         * modules/quote (Makefile.am): Likewise.
51909         * modules/quotearg (Makefile.am): Likewise.
51910         * modules/raise (Makefile.am): Likewise.
51911         * modules/read-file (Makefile.am): Likewise.
51912         * modules/readline (Makefile.am): Likewise.
51913         * modules/readlink (Makefile.am): Likewise.
51914         * modules/readtokens (Makefile.am): Likewise.
51915         * modules/readutmp (Makefile.am): Likewise.
51916         * modules/realloc (Makefile.am): Likewise.
51917         * modules/regex (Makefile.am): Likewise.
51918         * modules/rename-dest-slash (Makefile.am): Likewise.
51919         * modules/rename (Makefile.am): Likewise.
51920         * modules/rijndael (Makefile.am): Likewise.
51921         * modules/rmdir (Makefile.am): Likewise.
51922         * modules/rpmatch (Makefile.am): Likewise.
51923         * modules/safe-read (Makefile.am): Likewise.
51924         * modules/safe-write (Makefile.am): Likewise.
51925         * modules/same-inode (Makefile.am): Likewise.
51926         * modules/same (Makefile.am): Likewise.
51927         * modules/save-cwd (Makefile.am): Likewise.
51928         * modules/savedir (Makefile.am): Likewise.
51929         * modules/setenv (Makefile.am): Likewise.
51930         * modules/settime (Makefile.am): Likewise.
51931         * modules/sha1 (Makefile.am): Likewise.
51932         * modules/sig2str (Makefile.am): Likewise.
51933         * modules/snprintf (Makefile.am): Likewise.
51934         * modules/stat-macros (Makefile.am): Likewise.
51935         * modules/stat-time (Makefile.am): Likewise.
51936         * modules/stdbool (Makefile.am): Likewise.
51937         * modules/stdint (Makefile.am): Likewise.
51938         * modules/stdlib-safer (Makefile.am): Likewise.
51939         * modules/stpcpy (Makefile.am): Likewise.
51940         * modules/stpncpy (Makefile.am): Likewise.
51941         * modules/strcase (Makefile.am): Likewise.
51942         * modules/strcasestr (Makefile.am): Likewise.
51943         * modules/strchrnul (Makefile.am): Likewise.
51944         * modules/strcspn (Makefile.am): Likewise.
51945         * modules/strdup (Makefile.am): Likewise.
51946         * modules/strerror (Makefile.am): Likewise.
51947         * modules/strftime (Makefile.am): Likewise.
51948         * modules/strndup (Makefile.am): Likewise.
51949         * modules/strnlen (Makefile.am): Likewise.
51950         * modules/strpbrk (Makefile.am): Likewise.
51951         * modules/strsep (Makefile.am): Likewise.
51952         * modules/strstr (Makefile.am): Likewise.
51953         * modules/strtod (Makefile.am): Likewise.
51954         * modules/strtoimax (Makefile.am): Likewise.
51955         * modules/strtok_r (Makefile.am): Likewise.
51956         * modules/strtol (Makefile.am): Likewise.
51957         * modules/strtoll (Makefile.am): Likewise.
51958         * modules/strtoul (Makefile.am): Likewise.
51959         * modules/strtoull (Makefile.am): Likewise.
51960         * modules/strtoumax (Makefile.am): Likewise.
51961         * modules/strverscmp (Makefile.am): Likewise.
51962         * modules/sys_socket (Makefile.am): Likewise.
51963         * modules/sys_stat (Makefile.am): Likewise.
51964         * modules/sysexits (Makefile.am): Likewise.
51965         * modules/time_r (Makefile.am): Likewise.
51966         * modules/timegm (Makefile.am): Likewise.
51967         * modules/timespec (Makefile.am): Likewise.
51968         * modules/tmpfile-safer (Makefile.am): Likewise.
51969         * modules/trim (Makefile.am): Likewise.
51970         * modules/unistd-safer (Makefile.am): Likewise.
51971         * modules/unlinkdir (Makefile.am): Likewise.
51972         * modules/unlocked-io (Makefile.am): Likewise.
51973         * modules/userspec (Makefile.am): Likewise.
51974         * modules/utime (Makefile.am): Likewise.
51975         * modules/utimecmp (Makefile.am): Likewise.
51976         * modules/utimens (Makefile.am): Likewise.
51977         * modules/vasnprintf (Makefile.am): Likewise.
51978         * modules/vasprintf (Makefile.am): Likewise.
51979         * modules/vsnprintf (Makefile.am): Likewise.
51980         * modules/xalloc (Makefile.am): Likewise.
51981         * modules/xgetcwd (Makefile.am): Likewise.
51982         * modules/xnanosleep (Makefile.am): Likewise.
51983         * modules/xreadlink (Makefile.am): Likewise.
51984         * modules/xstrtod (Makefile.am): Likewise.
51985         * modules/xstrtol (Makefile.am): Likewise.
51986         * modules/xstrtold (Makefile.am): Likewise.
51987         * modules/yesno (Makefile.am): Likewise.
51988         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
51989
51990 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51991
51992         * modules/error (Makefile.am): Distribute files through
51993         EXTRA_DIST, not lib_SOURCES.
51994
51995 2006-10-12  Eric Blake  <ebb9@byu.net>
51996
51997         * modules/error (Makefile.am): Distribute files in /lib.
51998         * modules/obstack (Makefile.am): Likewise.
51999
52000 2006-10-12  Bruno Haible  <bruno@clisp.org>
52001
52002         * modules/acl (Makefile.am): Distribute all files in lib/ through
52003         EXTRA_DIST.
52004         * modules/arcfour (Makefile.am): Likewise.
52005         * modules/arctwo (Makefile.am): Likewise.
52006         * modules/argmatch (Makefile.am): Likewise.
52007         * modules/argz (Makefile.am): Likewise.
52008         * modules/atexit (Makefile.am): Likewise.
52009         * modules/backupfile (Makefile.am): Likewise.
52010         * modules/c-strtod (Makefile.am): Likewise.
52011         * modules/c-strtold (Makefile.am): Likewise.
52012         * modules/calloc (Makefile.am): Likewise.
52013         * modules/canon-host (Makefile.am): Likewise.
52014         * modules/canonicalize (Makefile.am): Likewise.
52015         * modules/chdir-long (Makefile.am): Likewise.
52016         * modules/chdir-safer (Makefile.am): Likewise.
52017         * modules/check-version (Makefile.am): Likewise.
52018         * modules/chown (Makefile.am): Likewise.
52019         * modules/cloexec (Makefile.am): Likewise.
52020         * modules/close-stream (Makefile.am): Likewise.
52021         * modules/closeout (Makefile.am): Likewise.
52022         * modules/crc (Makefile.am): Likewise.
52023         * modules/cycle-check (Makefile.am): Likewise.
52024         * modules/des (Makefile.am): Likewise.
52025         * modules/dirfd (Makefile.am): Likewise.
52026         * modules/dirname (Makefile.am): Likewise.
52027         * modules/dup2 (Makefile.am): Likewise.
52028         * modules/euidaccess (Makefile.am): Likewise.
52029         * modules/exclude (Makefile.am): Likewise.
52030         * modules/exitfail (Makefile.am): Likewise.
52031         * modules/fcntl-safer (Makefile.am): Likewise.
52032         * modules/file-type (Makefile.am): Likewise.
52033         * modules/fileblocks (Makefile.am): Likewise.
52034         * modules/filemode (Makefile.am): Likewise.
52035         * modules/filenamecat (Makefile.am): Likewise.
52036         * modules/fnmatch (Makefile.am): Likewise.
52037         * modules/fopen-safer (Makefile.am): Likewise.
52038         * modules/fpending (Makefile.am): Likewise.
52039         * modules/fprintftime (Makefile.am): Likewise.
52040         * modules/free (Makefile.am): Likewise.
52041         * modules/fsusage (Makefile.am): Likewise.
52042         * modules/ftruncate (Makefile.am): Likewise.
52043         * modules/fts (Makefile.am): Likewise.
52044         * modules/gc (Makefile.am): Likewise.
52045         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
52046         * modules/getaddrinfo (Makefile.am): Likewise.
52047         * modules/getcwd (Makefile.am): Likewise.
52048         * modules/getdelim (Makefile.am): Likewise.
52049         * modules/getdomainname (Makefile.am): Likewise.
52050         * modules/getgroups (Makefile.am): Likewise.
52051         * modules/gethostname (Makefile.am): Likewise.
52052         * modules/gethrxtime (Makefile.am): Likewise.
52053         * modules/getline (Makefile.am): Likewise.
52054         * modules/getloadavg (Makefile.am): Likewise.
52055         * modules/getlogin_r (Makefile.am): Likewise.
52056         * modules/getopt (Makefile.am): Likewise.
52057         * modules/getpass (Makefile.am): Likewise.
52058         * modules/getpass-gnu (Makefile.am): Likewise.
52059         * modules/getsubopt (Makefile.am): Likewise.
52060         * modules/gettime (Makefile.am): Likewise.
52061         * modules/gettimeofday (Makefile.am): Likewise.
52062         * modules/getugroups (Makefile.am): Likewise.
52063         * modules/getusershell (Makefile.am): Likewise.
52064         * modules/glob (Makefile.am): Likewise.
52065         * modules/group-member (Makefile.am): Likewise.
52066         * modules/hard-locale (Makefile.am): Likewise.
52067         * modules/hash (Makefile.am): Likewise.
52068         * modules/hmac-md5 (Makefile.am): Likewise.
52069         * modules/hmac-sha1 (Makefile.am): Likewise.
52070         * modules/human (Makefile.am): Likewise.
52071         * modules/idcache (Makefile.am): Likewise.
52072         * modules/imaxabs (Makefile.am): Likewise.
52073         * modules/imaxdiv (Makefile.am): Likewise.
52074         * modules/inet_ntop (Makefile.am): Likewise.
52075         * modules/inet_pton (Makefile.am): Likewise.
52076         * modules/inttostr (Makefile.am): Likewise.
52077         * modules/isapipe (Makefile.am): Likewise.
52078         * modules/lchown (Makefile.am): Likewise.
52079         * modules/long-options (Makefile.am): Likewise.
52080         * modules/lstat (Makefile.am): Likewise.
52081         * modules/malloc (Makefile.am): Likewise.
52082         * modules/mathl (Makefile.am): Likewise.
52083         * modules/mbchar (Makefile.am): Likewise.
52084         * modules/md2 (Makefile.am): Likewise.
52085         * modules/md4 (Makefile.am): Likewise.
52086         * modules/md5 (Makefile.am): Likewise.
52087         * modules/memcasecmp (Makefile.am): Likewise.
52088         * modules/memchr (Makefile.am): Likewise.
52089         * modules/memcmp (Makefile.am): Likewise.
52090         * modules/memcoll (Makefile.am): Likewise.
52091         * modules/memcpy (Makefile.am): Likewise.
52092         * modules/memmem (Makefile.am): Likewise.
52093         * modules/memmove (Makefile.am): Likewise.
52094         * modules/mempcpy (Makefile.am): Likewise.
52095         * modules/memrchr (Makefile.am): Likewise.
52096         * modules/memset (Makefile.am): Likewise.
52097         * modules/memxor (Makefile.am): Likewise.
52098         * modules/mkancesdirs (Makefile.am): Likewise.
52099         * modules/mkdir (Makefile.am): Likewise.
52100         * modules/mkdir-p (Makefile.am): Likewise.
52101         * modules/mkdtemp (Makefile.am): Likewise.
52102         * modules/mkstemp (Makefile.am): Likewise.
52103         * modules/mktime (Makefile.am): Likewise.
52104         * modules/modechange (Makefile.am): Likewise.
52105         * modules/mountlist (Makefile.am): Likewise.
52106         * modules/nanosleep (Makefile.am): Likewise.
52107         * modules/openat (Makefile.am): Likewise.
52108         * modules/pagealign_alloc (Makefile.am): Likewise.
52109         * modules/physmem (Makefile.am): Likewise.
52110         * modules/poll (Makefile.am): Likewise.
52111         * modules/posixtm (Makefile.am): Likewise.
52112         * modules/posixver (Makefile.am): Likewise.
52113         * modules/putenv (Makefile.am): Likewise.
52114         * modules/quote (Makefile.am): Likewise.
52115         * modules/quotearg (Makefile.am): Likewise.
52116         * modules/raise (Makefile.am): Likewise.
52117         * modules/read-file (Makefile.am): Likewise.
52118         * modules/readline (Makefile.am): Likewise.
52119         * modules/readlink (Makefile.am): Likewise.
52120         * modules/readtokens (Makefile.am): Likewise.
52121         * modules/readutmp (Makefile.am): Likewise.
52122         * modules/realloc (Makefile.am): Likewise.
52123         * modules/regex (Makefile.am): Likewise.
52124         * modules/rename (Makefile.am): Likewise.
52125         * modules/rename-dest-slash (Makefile.am): Likewise.
52126         * modules/rijndael (Makefile.am): Likewise.
52127         * modules/rmdir (Makefile.am): Likewise.
52128         * modules/rpmatch (Makefile.am): Likewise.
52129         * modules/safe-read (Makefile.am): Likewise.
52130         * modules/safe-write (Makefile.am): Likewise.
52131         * modules/same (Makefile.am): Likewise.
52132         * modules/save-cwd (Makefile.am): Likewise.
52133         * modules/savedir (Makefile.am): Likewise.
52134         * modules/setenv (Makefile.am): Likewise.
52135         * modules/settime (Makefile.am): Likewise.
52136         * modules/sha1 (Makefile.am): Likewise.
52137         * modules/sig2str (Makefile.am): Likewise.
52138         * modules/snprintf (Makefile.am): Likewise.
52139         * modules/stdlib-safer (Makefile.am): Likewise.
52140         * modules/stpcpy (Makefile.am): Likewise.
52141         * modules/stpncpy (Makefile.am): Likewise.
52142         * modules/strcase (Makefile.am): Likewise.
52143         * modules/strcasestr (Makefile.am): Likewise.
52144         * modules/strchrnul (Makefile.am): Likewise.
52145         * modules/strcspn (Makefile.am): Likewise.
52146         * modules/strdup (Makefile.am): Likewise.
52147         * modules/strerror (Makefile.am): Likewise.
52148         * modules/strftime (Makefile.am): Likewise.
52149         * modules/strndup (Makefile.am): Likewise.
52150         * modules/strnlen (Makefile.am): Likewise.
52151         * modules/strpbrk (Makefile.am): Likewise.
52152         * modules/strsep (Makefile.am): Likewise.
52153         * modules/strstr (Makefile.am): Likewise.
52154         * modules/strtod (Makefile.am): Likewise.
52155         * modules/strtoimax (Makefile.am): Likewise.
52156         * modules/strtok_r (Makefile.am): Likewise.
52157         * modules/strtol (Makefile.am): Likewise.
52158         * modules/strtoll (Makefile.am): Likewise.
52159         * modules/strtoul (Makefile.am): Likewise.
52160         * modules/strtoull (Makefile.am): Likewise.
52161         * modules/strtoumax (Makefile.am): Likewise.
52162         * modules/strverscmp (Makefile.am): Likewise.
52163         * modules/time_r (Makefile.am): Likewise.
52164         * modules/timegm (Makefile.am): Likewise.
52165         * modules/tmpfile-safer (Makefile.am): Likewise.
52166         * modules/unistd-safer (Makefile.am): Likewise.
52167         * modules/unlinkdir (Makefile.am): Likewise.
52168         * modules/userspec (Makefile.am): Likewise.
52169         * modules/utime (Makefile.am): Likewise.
52170         * modules/utimecmp (Makefile.am): Likewise.
52171         * modules/utimens (Makefile.am): Likewise.
52172         * modules/vasnprintf (Makefile.am): Likewise.
52173         * modules/vasprintf (Makefile.am): Likewise.
52174         * modules/vsnprintf (Makefile.am): Likewise.
52175         * modules/xalloc (Makefile.am): Likewise.
52176         * modules/xgetcwd (Makefile.am): Likewise.
52177         * modules/xnanosleep (Makefile.am): Likewise.
52178         * modules/xreadlink (Makefile.am): Likewise.
52179         * modules/xstrtod (Makefile.am): Likewise.
52180         * modules/xstrtol (Makefile.am): Likewise.
52181         * modules/xstrtold (Makefile.am): Likewise.
52182         * modules/yesno (Makefile.am): Likewise.
52183
52184 2006-10-12  Jim Meyering  <jim@meyering.net>
52185
52186         * m4/getloadavg.m4: Revert the change below.
52187
52188         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
52189         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
52190         fail with a symlink, which is what coreutils' ./bootstrap now
52191         creates by default.
52192
52193 2006-10-12  Bruno Haible  <bruno@clisp.org>
52194
52195         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
52196         mingw.
52197         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
52198         MSVC and mingw explicitly.
52199
52200 2006-10-11  Simon Josefsson  <jas@extundo.com>
52201             Bruno Haible  <bruno@clisp.org>
52202
52203         Add support for multiple gnulib-tool invocations in the scope of a
52204         single configure.ac file.
52205         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
52206         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
52207         with the same contents as the _LIBADD variable.
52208         (func_emit_initmacro_start, func_emit_initmacro_end,
52209         func_emit_initmacro_done): New functions.
52210         (func_import, func_create_testdir): Invoke them. Allow the identifiers
52211         gl_LIBOBJS and gl_LTLIBOBJS.
52212
52213 2006-10-11  Bruno Haible  <bruno@clisp.org>
52214
52215         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
52216         (func_create_testdir): Don't create po/Makefile.am, don't invoke
52217         autoreconf. Instead, invoke autopoint explicitly but move back the
52218         *.m4 files from gnulib.
52219
52220 2006-10-11  Bruno Haible  <bruno@clisp.org>
52221
52222         * gnulib-tool (func_usage): Make module names after --create-testdir
52223         optional.
52224         (func_create_testdir): If no module was specified, use nearly all
52225         modules.
52226
52227 2006-10-12  Jim Meyering  <jim@meyering.net>
52228
52229         Big performance improvement for fts-based tools that use FTS_NOSTAT.
52230         Avoid spurious inode-mismatch problems on non-POSIX file systems.
52231         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
52232         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
52233         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
52234         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
52235         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
52236         (fts_set_stat_required): New function.
52237         (fts_open): Defer the calls to fts_stat, if possible or requested.
52238         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
52239         into fts_stat itself.
52240         (fts_read): Perform any required (deferred) fts_stat call.
52241         (fts_build): Likewise, for the directory we're about to open and read.
52242         In the readdir loop, carefully decide whether each entry will require
52243         an eventual call to fts_stat, using dirent.d_type info if available.
52244         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
52245         a command line argument into this function.  Update all callers.
52246         Map a return value of FTS_DOT to FTS_D for a command line argument.
52247         * modules/fts (Depends-on): Add d-type.  Alphabetize.
52248         Thanks to Miklos Szeredi for his tenacity and for the initial
52249         bug report about "find" failing on a FUSE-based file system.
52250
52251         * lib/fts.c (fts_open): Use consistent indentation.
52252
52253 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52254
52255         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
52256         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
52257         reported by Jim Meyering.  All uses of cache variables renamed
52258         to match Autoconf's.
52259         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
52260         the other one.
52261
52262         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
52263         Fix misspelling in diagnostic.
52264
52265 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52266
52267         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
52268         defined.  Problem reported by Matthew Woehlke.
52269
52270         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
52271         Add support for Tandem NonStop R series.
52272         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
52273         Use new macro.
52274
52275         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
52276         (has_trailing_slash): Omit size arg; all callers changed.
52277         Omit 'inline', since it doesn't help performance and we'd
52278         need to configure it.
52279         Don't count //, ///, etc. as having a trailing slash.
52280         As a side effect, this removes a C99ism reported by Matthew Woehlke.
52281         (rpl_rename_dest_slash): On failure, use rename's errno rather
52282         than (in some cases) an incorrect or junk errno.
52283         Simplify code by removing need to compute length; this does
52284         cause it to make two passes instead of one over the file name,
52285         but it's worth it.
52286
52287         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
52288         change, since Autoconf's version may no longer be appropriate now
52289         that we are using CVS Autoconf's version.  Add support for Tandem.
52290
52291 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52292             Bruno Haible  <bruno@clisp.org>
52293
52294         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
52295         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
52296         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
52297         gl_AC_TYPE_LONG_LONG.
52298
52299         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
52300         instead of HAVE_LONG_LONG.
52301         * lib/printf-args.c (printf_fetchargs): Likewise.
52302         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
52303         * lib/vasnprintf.c (VASNPRINTF): Likewise.
52304         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
52305         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
52306         gl_AC_TYPE_LONG_LONG.
52307
52308 2006-10-11  Bruno Haible  <bruno@clisp.org>
52309
52310         * m4/longlong.m4: Add comments.
52311         * m4/ulonglong.m4: Likewise.
52312
52313 2006-10-10  Bruno Haible  <bruno@clisp.org>
52314
52315         Make it possible to #define stpcpy, strdup to aliases.
52316         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
52317         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
52318
52319 2006-10-10  Bruno Haible  <bruno@clisp.org>
52320
52321         Make it possible to #define gcd to an alias.
52322         * lib/gcd.c: Include config.h.
52323
52324 2006-10-10  Bruno Haible  <bruno@clisp.org>
52325
52326         Make it possible to #define c_isascii to an alias.
52327         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
52328         defined. Undefine the macros before defining them, to avoid gcc
52329         warnings.
52330         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
52331         define NO_C_CTYPE_MACROS early.
52332
52333 2006-10-10  Bruno Haible  <bruno@clisp.org>
52334
52335         Make it possible to #define set_program_name to an alias.
52336         * lib/progname.c: Don't undefine set_program_name; instead, undefine
52337         ENABLE_RELOCATABLE early.
52338
52339 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52340
52341         Port to Tandem NSK OSS, which has 64-bit signed int but at most
52342         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
52343         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
52344         More generally, don't assume that 64-bit signed int is available
52345         if unsigned int is, and vice versa.
52346         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
52347         unsigned symbols, not on their signed counterparts.
52348         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
52349         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
52350         (UINT64_C, UINTMAX_C):
52351         Likewise.
52352         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
52353         unsigned counterparts.
52354         (Have_long_long, Unsigned): New macros.
52355         (Int): Renamed from INT.
52356         (strtoimax): Use the new macros.
52357         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
52358         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
52359         * modules/inttypes (inttypes.h): Substitute
52360         HAVE_UNSIGNED_LONG_LONG_INT.
52361         * modules/stdint (stdint.h): Likewise.
52362         (Files): Add m4/ulonglong.m4.
52363
52364 2006-10-10  Bruno Haible  <bruno@clisp.org>
52365
52366         Fix a gcc -Wshadow warning.
52367         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
52368         to 'bucket'.
52369         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
52370         gl_linked_indexof_from_to): Likewise.
52371         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
52372         Likewise.
52373         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
52374         Likewise.
52375         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
52376         Reported by Eric Blake.
52377
52378 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
52379
52380         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
52381         for NetBSD.  Problem reported by Bruno Haible.
52382
52383 2006-10-09  Jim Meyering  <jim@meyering.net>
52384
52385         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
52386         Patch from Bruno Haible.
52387
52388 2006-10-09  Jim Meyering  <jim@meyering.net>
52389
52390         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
52391         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
52392         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
52393
52394 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52395
52396         Don't include <config.h> twice; this doesn't work in some cases,
52397         e.g., when config.h has "#define intmax_t long long int" and
52398         we include <config.h>, <inttypes.h>, <config.h> in that order.
52399         Problem reported by Matthew Woehlke in:
52400         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
52401         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
52402         * lib/fts-cycle.c: Don't include config.h.
52403         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
52404         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
52405         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
52406         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
52407         inttypes.h.
52408         * lib/xstrtoumax.c: Likewise.
52409         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
52410         __strtol and the like, so that this module is more like its siblings.
52411         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
52412         Remove; no longer needed now that we assume gnulib inttypes.h.
52413
52414 2006-10-08  Bruno Haible  <bruno@clisp.org>
52415
52416         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
52417         option.
52418
52419 2006-10-07  Jim Meyering  <jim@meyering.net>
52420
52421         * modules/inttypes (inttypes.h): Revert what seems to have been
52422         an inadvertent part of today's change: use "|", not "/" in the
52423         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
52424
52425 2006-10-07  Bruno Haible  <bruno@clisp.org>
52426
52427         * modules/sublist: New file.
52428
52429 2006-10-07  Bruno Haible  <bruno@clisp.org>
52430
52431         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
52432         * modules/argz (argz.h): Likewise.
52433         * modules/arpa_inet (arpa/inet.h): Likewise.
52434         * modules/byteswap (byteswap.h): Likewise.
52435         * modules/configmake (configmake.h): Likewise.
52436         * modules/fcntl (fcntl.h): Likewise.
52437         * modules/fnmatch (fnmatch.h): Likewise.
52438         * modules/getopt (getopt.h): Likewise.
52439         * modules/glob (glob.h): Likewise.
52440         * modules/inttypes (inttypes.h): Likewise.
52441         * modules/netinet_in (netinet/in.h): Likewise.
52442         * modules/poll (poll.h): Likewise.
52443         * modules/stdbool (stdbool.h): Likewise.
52444         * modules/stdint (stdint.h): Likewise.
52445         * modules/sys_select (sys/select.h): Likewise.
52446         * modules/sys_socket (sys/socket.h): Likewise.
52447         * modules/sys_stat (sys/stat.h): Likewise.
52448         * modules/sysexits (sysexits.h): Likewise.
52449         * modules/unistd (unistd.h): Likewise.
52450         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52451         Add a "DO NOT EDIT" comment to the generated file.
52452         (func_import): Likewise for gnulib-comp.m4.
52453
52454 2006-10-07  Bruno Haible  <bruno@clisp.org>
52455
52456         * lib/gl_sublist.h: New file.
52457         * lib/gl_sublist.c: New file.
52458
52459 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52460
52461         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
52462         name (relative to the original working directory) and the file
52463         name component (relative to the temporary working directory).  All
52464         callers changed.
52465         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
52466         * lib/mkdir-p.c (make_dir_parents): Likewise.
52467         * lib/mkdir-p.h (make_dir_parents): Likewise.
52468
52469 2006-10-06  Eric Blake  <ebb9@byu.net>
52470
52471         Define several macros for use by the clean-temp module.
52472         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
52473         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
52474         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
52475
52476         * lib/clean-temp.h (close_stream_temp): New declaration.
52477         * lib/clean-temp.c (includes): Pull in headers according to what
52478         other modules are in use.
52479         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
52480
52481 2006-10-06  Bruno Haible  <bruno@clisp.org>
52482
52483         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
52484         instead of fopen, fwriteerror.
52485
52486 2006-10-06  Bruno Haible  <bruno@clisp.org>
52487
52488         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
52489         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
52490         int.
52491         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
52492         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
52493         Return an error indicator.
52494         Suggested by Eric Blake.
52495
52496 2006-10-06  Bruno Haible  <bruno@clisp.org>
52497
52498         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
52499         Reported by Eric Blake.
52500
52501 2006-10-06  Bruno Haible  <bruno@clisp.org>
52502
52503         * modules/closeout (Description): Mention stderr too.
52504
52505 2006-10-06  Bruno Haible  <bruno@clisp.org>
52506         and Paul Eggert  <eggert@cs.ucla.edu>
52507
52508         * lib/closeout.c (close_stdout): Also close stderr.
52509         * lib/closeout.h: Update comment.
52510
52511 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52512
52513         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
52514         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
52515         * lib/dirchownmod.c: Include lchown.h.
52516         * lib/lchown.c: Don't include files that lchown.h now includes.
52517         Don't declare chown, since lchown.h now does that.
52518         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
52519         (lchown): Define to rpl_chown if lchown is declared but
52520         does not exist.  Declare using a prototype if lchown is not
52521         declared.  Add a copyright notice.
52522         * lib/mkstemp.h: Include <unistd.h>.
52523         * lib/openat.c: Include lchown.h.
52524
52525         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
52526         we now test for that separately.
52527         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
52528         rather than O_NOFOLLOW, when testing whether it's possible to
52529         avoid a race condition reliably.
52530         * lib/savewd.c (savewd_chdir): Likewise.
52531
52532         Remove macros that are no longer needed now that stdint.h is
52533         reliable.
52534         * lib/fsusage.c (UINTMAX_MAX): Remove.
52535         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
52536         * lib/utimecmp.c (SIZE_MAX): Remove.
52537
52538         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
52539
52540         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
52541         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
52542         O_NOATIME works.
52543
52544 2006-10-05  Bruno Haible  <bruno@clisp.org>
52545
52546         * lib/gl_list.h (gl_sortedlist_search_from_to,
52547         gl_sortedlist_indexof_from_to): New declarations.
52548         (gl_list_implementation): New fields sortedlist_search_from_to,
52549         sortedlist_indexof_from_to.
52550         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
52551         inline functions.
52552         * lib/gl_list.c (gl_sortedlist_search_from_to,
52553         gl_sortedlist_indexof_from_to): New functions.
52554         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
52555         function.
52556         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
52557         (gl_array_sortedlist_search_from_to): New function.
52558         (gl_array_list_implementation): Update.
52559         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
52560         function.
52561         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
52562         (gl_carray_sortedlist_search_from_to): New function.
52563         (gl_carray_list_implementation): Update.
52564         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
52565         gl_linked_sortedlist_indexof_from_to): New functions.
52566         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52567         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52568         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
52569         gl_tree_sortedlist_indexof_from_to): New functions.
52570         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52571         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52572         Update.
52573         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52574         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
52575         Update.
52576
52577 2006-10-05  Bruno Haible  <bruno@clisp.org>
52578
52579         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
52580         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
52581         (struct gl_list_implementation): Add fields search_from_to,
52582         indexof_from_to. Remove fields search, indexof.
52583         (gl_list_search): Use the search_from_to method.
52584         (gl_list_search_from, gl_list_search_from_to): New functions.
52585         (gl_list_indexof): Use the indexof_from_to method.
52586         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52587         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
52588         (gl_list_search_from, gl_list_search_from_to): New functions.
52589         (gl_list_indexof): Use the indexof_from_to method.
52590         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52591         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
52592         gl_array_indexof. Add start_index, end_index arguments.
52593         (gl_array_search_from_to): Renamed from gl_array_search. Add
52594         start_index, end_index arguments.
52595         (gl_array_remove, gl_array_list_implementation): Update.
52596         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
52597         gl_carray_indexof. Add start_index, end_index arguments.
52598         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
52599         start_index, end_index arguments.
52600         (gl_carray_remove, gl_carray_list_implementation): Update.
52601         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
52602         gl_linked_search. Add start_index, end_index arguments.
52603         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
52604         start_index, end_index arguments.
52605         (gl_linked_remove): Update.
52606         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52607         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52608         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
52609         field to 'size_t'.
52610         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
52611         gl_tree_search. Add start_index, end_index arguments.
52612         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52613         start_index, end_index arguments.
52614         (gl_tree_remove): Update.
52615         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52616         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52617         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
52618         function.
52619         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
52620         gl_tree_search. Add start_index, end_index arguments.
52621         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52622         start_index, end_index arguments.
52623         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52624         Update.
52625         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52626
52627 2006-10-05  Bruno Haible  <bruno@clisp.org>
52628
52629         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
52630
52631         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
52632         fwriteerror_temp): New declarations.
52633         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
52634         (descriptors): New variable.
52635         (cleanup): First, close the descriptors.
52636         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
52637         fclose_temp, fwriteerror_temp): New functions.
52638
52639 2006-10-04  Jim Meyering  <jim@meyering.net>
52640
52641         * lib/fts.c (fts_open): Tiny comment change.
52642
52643 2006-10-04  Bruno Haible  <bruno@clisp.org>
52644
52645         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
52646         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
52647         gl_LOCK_BODY.
52648         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
52649         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
52650         gl_LOCK_EARLY_BODY.
52651         (gl_LOCK): Require gl_LOCK_BODY.
52652
52653 2006-10-04  Bruno Haible  <bruno@clisp.org>
52654
52655         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
52656         (gl_oset_search_atleast): New declaration.
52657         (struct gl_oset_implementation): Add field 'search_atleast'.
52658         (gl_oset_search_atleast): New inline function.
52659         * lib/gl_oset.c (gl_oset_search_atleast): New function.
52660         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
52661         (gl_array_oset_implementation): Update.
52662         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
52663         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
52664         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
52665
52666 2006-10-04  Bruno Haible  <bruno@clisp.org>
52667
52668         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
52669
52670 2006-10-03  Bruno Haible  <bruno@clisp.org>
52671
52672         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
52673         from gl_avltreehash_list_implementation.
52674
52675 2006-10-03  Bruno Haible  <bruno@clisp.org>
52676
52677         * lib/gl_oset.c (gl_oset_add): Fix return type.
52678
52679 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
52680
52681         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
52682
52683 2006-10-02  Eric Blake  <ebb9@byu.net>
52684
52685         * modules/strnlen (Depends-on): Add extensions.
52686
52687 2006-10-02  Eric Blake  <ebb9@byu.net>
52688
52689         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
52690         definition in 2.60+.
52691
52692 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
52693
52694         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
52695         checks.
52696
52697 2006-10-02  Bruno Haible  <bruno@clisp.org>
52698
52699         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
52700         to the AUTOMAKE_OPTIONS.
52701         Reported by Jim Meyering.
52702
52703 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52704
52705         Work around bug in Solaris 10 /proc file system:
52706         /proc/self/fd/NNN/.. isn't the parent directory of
52707         the directory whose file descriptor is NNN.  This needs to
52708         be worked around at run time, not compile time, since a
52709         program might be built on Solaris 8, where things work, and
52710         run on Solaris 10.
52711         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
52712         to use the following interface instead:
52713         (OPENAT_BUFFER_SIZE): New macro.
52714         (openat_proc_name): New function.
52715         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
52716         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
52717         Likewise.
52718         * lib/openat-proc.c: New file.
52719         * modules/openat (Files): Add lib/openat-proc.c.
52720         (Depends-on): Add same-inode, stdbool.
52721         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
52722
52723 2006-09-29  Bruno Haible  <bruno@clisp.org>
52724
52725         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
52726         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
52727         argument. Set stdout_closed before testing for ferror, not after.
52728         (fwriteerror, fwriteerror_no_ebadf): New functions.
52729
52730 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52731
52732         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
52733
52734 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
52735
52736         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
52737         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
52738
52739 2006-09-28  Jim Meyering  <jim@meyering.net>
52740
52741         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
52742         Include <unistd.h>.
52743
52744 2006-09-28  Bruno Haible  <bruno@clisp.org>
52745
52746         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
52747         * modules/linkedhash-list (Depends-on): Likewise.
52748         * modules/rbtreehash-list (Depends-on): Likewise.
52749
52750 2006-09-28  Bruno Haible  <bruno@clisp.org>
52751
52752         * lib/strndup.h: Simplify the redefinition of strndup.
52753         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
52754         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
52755
52756 2006-09-28  Bruno Haible  <bruno@clisp.org>
52757
52758         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
52759         * lib/gl_linkedhash_list.c: Likewise.
52760         * lib/gl_rbtreehash_list.c: Likewise.
52761
52762 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52763
52764         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
52765         getaddrinfo.
52766
52767         * lib/__fpending.h: Don't include <stdio_ext.h> unless
52768         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
52769         it causes <stdio_ext.h> to cause a compile-time error.
52770         Problem reported by Nelson H. F. Beebe.
52771         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
52772         of HAVE_DECL___PENDING.
52773
52774         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
52775         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
52776         declaration.
52777
52778 2006-09-27  Jim Meyering  <jim@meyering.net>
52779
52780         This file could end up with a definition for a function
52781         named __strndup, rather than rpl_strndup on a system with
52782         incomplete weak_alias support.
52783         * lib/strndup.c (strndup): Rename from __strndup.
52784         Remove #defines that used to map __strndup to strndup.
52785         Don't use K&R prototypes.
52786         Remove LIBC-related code, since this file is not sync'd with glibc.
52787         * lib/strndup.h: Revamp, accordingly.
52788         * m4/strndup.m4: Modernize.
52789
52790 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52791
52792         * modules/savewd (Depends-on): Add 'raise'.
52793         * lib/savewd.c: Include <signal.h>, for 'raise'.
52794
52795 2006-09-26  Jim Meyering  <jim@meyering.net>
52796
52797         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
52798         when we detect Darwin 8.7.0's acl_get_file bug.
52799         Rearrange to perform the new (below) run-test while $LIBS
52800         contains any acl-related library.  Set USE_ACL at the end.
52801         (gl_ACL_GET_FILE): New function.
52802
52803 2006-09-26  Eric Blake  <ebb9@byu.net>
52804
52805         * lib/verror.c: Include <config.h> unconditionally.
52806
52807 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
52808
52809         * modules/clock-time (Maintainer): Add self.
52810         * modules/getlogin_r (Depends-on): Add extensions.
52811
52812 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52813
52814         * modules/clock-time: New module.
52815         * modules/nanosleep (Depends-on): Add clock-time.
52816         * modules/gethrxtime (Depends-on): Likewise.
52817         * modules/gettime (Depends-on): Likewise.
52818         * modules/settime (Depends-on): Likewise.
52819
52820         * modules/fts-lgpl: Depend on openat.
52821         * modules/mkancesdirs: Depend on savewd.
52822         * modules/mkdir-p: Likewise.
52823
52824 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52825
52826         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
52827
52828         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
52829         `gl_have_arbitrary_file_name_length_limit' to
52830         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
52831         actually works between configure runs.
52832
52833 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52834             Bruno Haible  <bruno@clisp.org>
52835
52836         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
52837
52838 2006-09-25  Jim Meyering  <jim@meyering.net>
52839
52840         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
52841         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
52842
52843 2006-09-25  Eric Blake  <ebb9@byu.net>
52844
52845         * gnulib-tool (func_import, func_create_testdir): Fix typos in
52846         exec's in 2006-09-18 patch when shuffling fds.
52847
52848 2006-09-25  Bruno Haible  <bruno@clisp.org>
52849
52850         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
52851         Reported by Jim Meyering.
52852
52853 2006-09-24  Jim Meyering  <jim@meyering.net>
52854
52855         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
52856         compare a pointer against a literal "0".  That caused failures with
52857         at least HP-UX's hpcc.
52858
52859 2006-09-22  Simon Josefsson  <jas@extundo.com>
52860
52861         * modules/gc-sha1:
52862         * modules/gc-md4:
52863         * modules/gc-hmac-sha1:
52864         * modules/gc-hmac-md5:
52865         * modules/gc-des:
52866         * modules/gc-arcfour: Distribute more files.
52867
52868 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52869
52870         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
52871         (gl_linked_iterator_from_to): Initialize struct completely.
52872         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
52873         (gl_tree_iterator_from_to): Likewise
52874         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
52875         * lib/gl_array_list.c [lint] (gl_array_iterator)
52876         (gl_array_iterator_from_to): Likewise.
52877         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
52878         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
52879         (gl_carray_iterator_from_to): Likewise.
52880
52881         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
52882         * lib/md4.c (md4_process_block): Remove unused variable.
52883         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
52884         parentheses for clarity.
52885
52886 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52887
52888         * modules/bison-i18n (Depends-on): Add gettext.
52889
52890 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52891
52892         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
52893         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
52894         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
52895         also add missing comma that caused broken test.
52896         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
52897         stdlib.h, for `abort'.
52898         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
52899         variables.
52900         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
52901         include unistd.h if present, for `rmdir'.
52902         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
52903         variables.
52904         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
52905         in the process include standard headers for prototypes.
52906         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
52907         gets declared on GNU/Linux.
52908         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
52909         unistd.h, for `rmdir'.
52910         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
52911
52912         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
52913         always true.
52914         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
52915
52916         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
52917
52918 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52919
52920         * gnulib-tool (func_version): Create output all at once.  This
52921         may help avoid triggering unnecessary SIGPIPEs, and at any
52922         rate it doesn't hurt.
52923
52924 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52925             Bruno Haible  <bruno@clisp.org>
52926
52927         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
52928         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52929         * m4/signed.m4 (bh_C_SIGNED): Likewise.
52930
52931         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
52932         (gl_FUNC_VASPRINTF): Invoke it.
52933
52934 2006-09-22  Bruno Haible  <bruno@clisp.org>
52935
52936         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
52937         getloadavg.c as first argument.
52938
52939 2006-09-22  Bruno Haible  <bruno@clisp.org>
52940
52941         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
52942         at the beginning of the gl_INIT macro.
52943         * modules/getloadavg (configure.ac): Pass $gl_source_base to
52944         gl_GETLOADAVG.
52945
52946 2006-09-22  Bruno Haible  <bruno@clisp.org>
52947
52948         * gnulib-tool (func_create_megatestdir): Don't include the config-h
52949         module.
52950         Suggested by Ralf Wildenhues.
52951
52952 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52953
52954         Import this patch from libc:
52955
52956         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
52957
52958         * lib/regex_internal.c (re_string_reconstruct): Handle
52959         offset < pstr->valid_raw_len && pstr->offsets_needed case.
52960         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
52961         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
52962         re_string_context_at.
52963
52964         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
52965         now requires it.
52966         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
52967         gl_REGEX now does it for us.
52968         (gl_REGEX): Add test taken from
52969         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
52970
52971         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
52972         Check that large offsets work.  Modernize Autoconf usages.
52973         Prefer "yes" to mean a good thing rather than a bad.
52974         Don't put "#define mkstemp" in config.h, as this might interfere
52975         with standard system headers that "#define mkstemp mkstemp64".
52976
52977         * modules/mkstemp (Depends-on): Add extensions, so that
52978         mkstemp is visible on some platforms.
52979         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
52980         (Include): Change to "mkstemp.h" from <stdlib.h>.
52981         (Files): Add mkstemp.h.
52982
52983         * lib/mkstemp.h: New file, since some standard headers
52984         #define mkstemp.
52985         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
52986         Include "mkstemp.h".
52987         Make the _LIBC code resemble glibc original more,
52988         e.g., use K&R style.
52989         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
52990         (mkstemp): Remove, since mkstemp.h does this for us.
52991         * lib/stdlib--.h: Include mkstemp.h.
52992
52993         Import this patch from libc:
52994
52995         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52996
52997         * lib/tempname.c (__gen_tempname): Change attempts_min
52998         into a macro.  Use preprocessor to decide how to initialize
52999         attempts [Coverity CID 67].
53000
53001 2006-09-20  Bruno Haible  <bruno@clisp.org>
53002
53003         * lib/mkdtemp.c: Import from libc.
53004         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
53005                 * sysdeps/posix/tempname.c (__gen_tempname): Change
53006                 attempts_min into a macro.  Use preprocessor to decide how to
53007                 initialize attempts [Coverity CID 67].
53008         2001-11-27  Paul Eggert  <eggert@twinsun.com>
53009                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
53010                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
53011
53012 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53013
53014         * gnulib-tool (func_exit): New function, to allow to pass the
53015         exit status portably through the trap.  Use everywhere.
53016         (--help, --version): Signal a write error.
53017         (trap): catch SIGPIPE, for write errors.
53018         Exit at the end of the trap, with the correct exit status.
53019
53020 2006-09-19  Karl Berry  <karl@gnu.org>
53021
53022         * doc/gnulib.texi: note about the license texinfo files.
53023
53024 2006-09-19  Eric Blake  <ebb9@byu.net>
53025
53026         * gnulib-tool: Avoid space-tab.
53027
53028 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
53029
53030         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
53031         that prevented coreutils 6.1 from building.  Problem reported
53032         by Petter Reinholdtsen.
53033
53034 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
53035
53036         * gnulib-tool (avoidlist): Fix typo that broke options like
53037         --avoid=lock that are used by coreutils bootstrap.
53038
53039 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
53040
53041         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
53042         more systematically.
53043
53044 2006-09-18  Jim Meyering  <jim@meyering.net>
53045
53046         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
53047
53048 2006-09-18  Bruno Haible  <bruno@clisp.org>
53049
53050         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
53051
53052 2006-09-18  Bruno Haible  <bruno@clisp.org>
53053
53054         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
53055         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
53056         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
53057         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
53058         * m4/gettext.m4: Require autoconf >= 2.52.
53059         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
53060         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
53061         of gl_cv_header_inttypes_h.
53062
53063 2006-09-18  Bruno Haible  <bruno@clisp.org>
53064
53065         * lib/javaversion.c: Include configmake.h.
53066
53067 2006-09-18  Bruno Haible  <bruno@clisp.org>
53068
53069         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
53070         avoid that the while loops be executed in a subshell.
53071
53072 2006-09-18  Bruno Haible  <bruno@clisp.org>
53073
53074         * MODULES.html.sh (func_module): Break long lines.
53075         Suggested by Bruce Korb <bkorb@gnu.org>.
53076
53077 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53078
53079         Speed up by a factor of 1.12.
53080         * gnulib-tool (nl): New variable.
53081         (func_import): Rewrite include directive extraction to only read each
53082         directive once.
53083
53084 2006-09-17  Bruno Haible  <bruno@clisp.org>
53085
53086         * modules/javaversion (Makefile.am): Remove DEFS setting.
53087         (Depends-on): Add configmake, for PKGDATADIR definition.
53088
53089 2006-09-17  Bruno Haible  <bruno@clisp.org>
53090
53091         * gnulib-tool (func_create_testdir): Rewrite all files at once.
53092
53093 2006-09-17  Bruno Haible  <bruno@clisp.org>
53094
53095         * gnulib-tool (func_append): New function, stolen from libtool.m4.
53096         (func_modules_transitive_closure, func_modules_add_dummy,
53097         func_modules_to_filelist, func_import, func_create_testdir,
53098         func_create_megatestdir, ...): Use it wherever possible.
53099         Suggested by Ralf Wildenhues.
53100
53101 2006-09-16  Karl Berry  <karl@gnu.org>
53102
53103         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
53104         to avoid sectioning errors.
53105         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
53106         [ifinfo]: blank line after @center-ed titles.
53107         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
53108         Spell FSF address consistently with others.
53109         (These changes approved by rms.)
53110
53111 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53112
53113         Speed up by a factor of 1.61.
53114         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
53115         already checked module names again.
53116
53117 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53118
53119         Speed up by a factor of 1.13.
53120         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
53121         for new_files, and the input to func_add_or_update.
53122
53123 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53124
53125         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
53126         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
53127
53128 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53129
53130         * modules/mkancesdirs (Depends-on): Add fcntl.
53131         * modules/savewd: New file.
53132         * MODULES.html.sh (File system functions): Add savewd.
53133
53134         * modules/configmake (Makefile.am): Add support for the
53135         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
53136
53137 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53138
53139         * m4/savewd.m4: New file.
53140
53141 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53142
53143         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
53144         (dirchownmod): New arg FD.  All callers changed.
53145         Use FD rather than opening the directory ourself, as opening is
53146         now the caller's responsibility.
53147         * lib/dirchownmod.h: Likewise.
53148         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
53149         hosts that require <sys/types.h> before <sys/stat.h>.  Include
53150         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
53151         (test_dir): Remove.
53152         (mkancesdirs): Return length of prefix of FILE that has already
53153         been made, or -2 if there is a child doing the work.  Redo
53154         algorithm so that it is O(N) rather than O(N**2).  Optimize away
53155         ".", and treat ".." specially since it might stray back into
53156         already-created areas.  Use a subprocess if necessary.  New arg
53157         WD; all users changed.  MAKE_DIR function should now return 1
53158         if it creates a directory that is not readable.  Return -2 if
53159         a child process is spun off.
53160         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
53161         Adjust signature to match code.
53162         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
53163         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
53164         all users changed.
53165         * lib/savewd.c, lib/savewd.h: New files.
53166
53167 2006-09-15  Jim Meyering  <jim@meyering.net>
53168
53169         * modules/rename-dest-slash: New module.
53170         * MODULES.html.sh (posix_compat): Add it here.
53171
53172         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
53173
53174 2006-09-15  Jim Meyering  <jim@meyering.net>
53175
53176         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
53177         file.
53178
53179         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
53180
53181 2006-09-15  Jim Meyering  <jim@meyering.net>
53182
53183         * lib/rename-dest-slash.c (has_trailing_slash): Use
53184         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
53185         (rpl_rename_dest_slash): Perform the cheaper trailing slash
53186         test before testing whether SRC is a directory.
53187         Suggestions from Bruno Haible.
53188
53189         Avoid a warning about an unused variable.
53190         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
53191         into the #ifdef block where it's used.
53192
53193         * lib/rename-dest-slash.c: New file.
53194
53195 2006-09-14  Bruno Haible  <bruno@clisp.org>
53196
53197         * lib/allocsa.c: Include <config.h> unconditionally.
53198         * lib/asnprintf.c: Likewise.
53199         * lib/asprintf.c: Likewise.
53200         * lib/c-strcasecmp.c: Likewise.
53201         * lib/c-strcasestr.c: Likewise.
53202         * lib/c-strncasecmp.c: Likewise.
53203         * lib/c-strstr.c: Likewise.
53204         * lib/classpath.c: Likewise.
53205         * lib/clean-temp.c: Likewise.
53206         * lib/concatpath.c: Likewise.
53207         * lib/copy-file.c: Likewise.
53208         * lib/csharpcomp.c: Likewise.
53209         * lib/csharpexec.c: Likewise.
53210         * lib/execute.c: Likewise.
53211         * lib/fatal-signal.c: Likewise.
53212         * lib/findprog.c: Likewise.
53213         * lib/fwriteerror.c: Likewise.
53214         * lib/gl_array_list.c: Likewise.
53215         * lib/gl_array_oset.c: Likewise.
53216         * lib/gl_avltree_list.c: Likewise.
53217         * lib/gl_avltree_oset.c: Likewise.
53218         * lib/gl_avltreehash_list.c: Likewise.
53219         * lib/gl_carray_list.c: Likewise.
53220         * lib/gl_linked_list.c: Likewise.
53221         * lib/gl_linkedhash_list.c: Likewise.
53222         * lib/gl_list.c: Likewise.
53223         * lib/gl_oset.c: Likewise.
53224         * lib/gl_rbtree_list.c: Likewise.
53225         * lib/gl_rbtree_oset.c: Likewise.
53226         * lib/gl_rbtreehash_list.c: Likewise.
53227         * lib/imaxabs.c: Likewise.
53228         * lib/imaxdiv.c: Likewise.
53229         * lib/javacomp.c: Likewise.
53230         * lib/javaexec.c: Likewise.
53231         * lib/javaversion.c: Likewise.
53232         * lib/linebreak.c: Likewise.
53233         * lib/localcharset.c: Likewise.
53234         * lib/lock.c: Likewise.
53235         * lib/mbchar.c: Likewise.
53236         * lib/mbswidth.c: Likewise.
53237         * lib/mkdtemp.c: Likewise.
53238         * lib/pipe.c: Likewise.
53239         * lib/printf-args.c: Likewise.
53240         * lib/printf-parse.c: Likewise.
53241         * lib/progname.c: Likewise.
53242         * lib/progreloc.c: Likewise.
53243         * lib/readlink.c: Likewise.
53244         * lib/sh-quote.c: Likewise.
53245         * lib/stpcpy.c: Likewise.
53246         * lib/stpncpy.c: Likewise.
53247         * lib/strcasecmp.c: Likewise.
53248         * lib/strcasestr.c: Likewise.
53249         * lib/strcspn.c: Likewise.
53250         * lib/striconv.c: Likewise.
53251         * lib/strncasecmp.c: Likewise.
53252         * lib/strnlen1.c: Likewise.
53253         * lib/strstr.c: Likewise.
53254         * lib/strtok_r.c: Likewise.
53255         * lib/tls.c: Likewise.
53256         * lib/tmpdir.c: Likewise.
53257         * lib/unicodeio.c: Likewise.
53258         * lib/unsetenv.c: Likewise.
53259         * lib/vasnprintf.c: Likewise.
53260         * lib/vasprintf.c: Likewise.
53261         * lib/wait-process.c: Likewise.
53262         * lib/xallocsa.c: Likewise.
53263         * lib/xsetenv.c: Likewise.
53264         * lib/xstriconv.c: Likewise.
53265
53266 2006-09-13  Simon Josefsson  <jas@extundo.com>
53267
53268         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
53269         that internally, suggested by Ralf Wildenhues
53270         <Ralf.Wildenhues@gmx.de>.
53271
53272 2006-09-13  Simon Josefsson  <jas@extundo.com>
53273
53274         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
53275         @LIBOBJS@.
53276         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53277
53278 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53279
53280         * lib/_fpending.c: Include <config.h> unconditionally, since we no
53281         longer worry about uses that don't define HAVE_CONFIG_H.
53282         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
53283         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
53284         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
53285         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
53286         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
53287         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
53288         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
53289         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
53290         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
53291         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
53292         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
53293         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
53294         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
53295         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
53296         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
53297         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
53298         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
53299         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
53300         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
53301         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
53302         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
53303         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
53304         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
53305         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
53306         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
53307         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
53308         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
53309         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
53310         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
53311         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
53312         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
53313         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
53314         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
53315         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
53316         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
53317         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
53318         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
53319         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
53320         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
53321         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
53322         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
53323         Likewise.
53324
53325 2006-09-13  Eric Blake  <ebb9@byu.net>
53326
53327         * lib/getopt.c: Fix typo in last commit.
53328
53329 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53330
53331         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
53332         dgettext.
53333
53334 2006-09-12  Jim Meyering  <jim@meyering.net>
53335
53336         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
53337         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
53338         Reported by Nelson H. F. Beebe.
53339
53340 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53341
53342         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
53343         program_invocation_name and program_invocation_short_name are
53344         initialized.
53345         * lib/argp-namefrob.h: Move declarations of program_invocation_name
53346         and program_invocation_short_name to argp.h, so they are visible
53347         to user programs.
53348         * lib/argp.h: Likewise
53349
53350 2006-09-10  Bruno Haible  <bruno@clisp.org>
53351
53352         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
53353         m4/inttypes_h.m4, m4/uintmax_t.m4.
53354
53355 2006-09-10  Bruno Haible  <bruno@clisp.org>
53356
53357         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
53358         gl_AC_TYPE_UINTMAX_T.
53359
53360 2006-09-10  Bruno Haible  <bruno@clisp.org>
53361
53362         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
53363
53364 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53365
53366         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
53367         convention.  Text proposed by Bruno Haible.
53368         (struct argp_option): Document the use of N_() wrappers.
53369
53370         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
53371         '\v', and translate the two parts separately, instead of feeding
53372         the whole string to gettext.  This allows to exclude
53373         '\v' from the strings visible to the translator by writing doc
53374         strings as N_("..") "\v" N_("..").
53375
53376 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
53377
53378         * config/srclist.txt: Undo latest change; the bug was fixed.
53379
53380 2006-09-09  Bruno Haible  <bruno@clisp.org>
53381
53382         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
53383         assignments if building a library without libtool.
53384         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
53385         in func_emit_lib_Makefile_am.
53386         (func_import): When building a static library libfoo.a, arrange to
53387         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
53388         (func_create_testdir): Likewise.
53389         * modules/gc (configure.ac, Makefile.am): If building statically,
53390         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
53391         * modules/iconvme (configure.ac, Makefile.am): Likewise.
53392         * modules/striconv (configure.ac, Makefile.am): Likewise.
53393         Based on a suggestion by Ralf Wildenhues.
53394
53395 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53396
53397         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53398         Check for unistd.h too, since Autoconf doesn't assume POSIX.
53399         Also:
53400
53401         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53402         Add year_2050_test to catch glibc bug 2821
53403         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53404
53405         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53406         Prefer #ifdef to #if.
53407
53408         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
53409         Return from 'main' instead of calling 'exit'.
53410
53411 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53412
53413         * lib/mktime.c (guess_time_tm): Fix bug where mktime
53414         returned the maximum time_t value rather than (time_t) -1.
53415         Problem originally reported by William Bardwell
53416         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53417
53418         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53419         Moved to here ...
53420         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53421         ... from here.
53422
53423 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53424
53425         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
53426         2821 is fixed.
53427
53428 2006-09-08  Jim Meyering  <jim@meyering.net>
53429
53430         Don't make generated files read-only.  That would bother too many
53431         people.  However, do retain the ability to work when targets are
53432         read-only: remove the destination and temporary files before writing
53433         them (when generated via sed or echo), or by using the -f option for
53434         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
53435         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53436         * modules/byteswap, modules/configmake, modules/fcntl:
53437         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53438         * modules/localcharset, modules/netinet_in, modules/poll:
53439         * modules/stdbool, modules/stdint, modules/sys_select:
53440         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53441
53442 2006-09-08  Jim Meyering  <jim@meyering.net>
53443
53444         Avoid new build failure on FreeBSD 6.0.
53445         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
53446         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
53447         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
53448
53449 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53450
53451         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
53452
53453 2006-09-07  Jim Meyering  <jim@meyering.net>
53454
53455         Fix global typo in last change: use chmod u-w, not chmod u-x.
53456         Spotted by Paul Eggert and Bruce Korb.
53457         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53458         * modules/byteswap, modules/configmake, modules/fcntl:
53459         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53460         * modules/localcharset, modules/netinet_in, modules/poll:
53461         * modules/stdbool, modules/stdint, modules/sys_select:
53462         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53463
53464 2006-09-06  Jim Meyering  <jim@meyering.net>
53465
53466         Make generated files be read-only.
53467         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
53468         Ensure that each generated file is now read-only.
53469         * modules/argz: Likewise.
53470         * modules/arpa_inet: Likewise.
53471         * modules/byteswap: Likewise.
53472         * modules/configmake: Likewise.
53473         * modules/fcntl: Likewise.
53474         * modules/fnmatch: Likewise.
53475         * modules/getopt: Likewise.
53476         * modules/glob: Likewise.
53477         * modules/inttypes: Likewise.
53478         * modules/netinet_in: Likewise.
53479         * modules/poll: Likewise.
53480         * modules/stdbool: Likewise.
53481         * modules/stdint: Likewise.
53482         * modules/sys_select: Likewise.
53483         * modules/sys_socket: Likewise.
53484         * modules/sys_stat: Likewise.
53485         * modules/sysexits: Likewise.
53486         * modules/localcharset: Same as above, but continue using temporary
53487         file named "t-$@" (why different?) rather than the "$@-t" used
53488         everywhere else.
53489
53490         * modules/sysexits (Makefile.am): Replace literal occurrences
53491         of "sysexit.h" more readable, and more consistent, "$@".
53492
53493 2006-09-06  Bruno Haible  <bruno@clisp.org>
53494
53495         * modules/striconv: New file.
53496         * modules/xstriconv: New file.
53497         * MODULES.html.sh (Internationalization functions): Add striconv,
53498         xstriconv.
53499
53500 2006-09-06  Bruno Haible  <bruno@clisp.org>
53501
53502         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
53503         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
53504         not using libtool correctly.
53505
53506 2006-09-06  Bruno Haible  <bruno@clisp.org>
53507
53508         * lib/striconv.h: New file.
53509         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
53510         iconvstring.c.
53511         * lib/xstriconv.h: New file.
53512         * lib/xstriconv.c: New file.
53513
53514 2006-09-06  Bruno Haible  <bruno@clisp.org>
53515
53516         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53517         lib_..._LDFLAGS.
53518
53519 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53520
53521         * lib/argz_.h: Sync from Libtool.
53522
53523         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
53524                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
53525
53526         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
53527
53528 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53529
53530         * modules/trim: New file.
53531
53532 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53533
53534         * lib/trim.h: New file.
53535         * lib/trim.c: New file.
53536
53537 2006-09-05  Bruno Haible  <bruno@clisp.org>
53538
53539         * MODULES.html.sh (String handling): Add trim.
53540
53541 2006-09-04  Karl Berry  <karl@gnu.org>
53542
53543         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
53544         until next release.
53545
53546 2006-09-03  Bruno Haible  <bruno@clisp.org>
53547
53548         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
53549         correctly.
53550
53551 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53552
53553         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
53554         not gl_GETLOADAVG.  Omit unneeded semicolons.
53555         Problems reported by Ralf Wildenhues in
53556         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53557         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
53558         at the end, which is the usual gnulib style.
53559
53560         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
53561         of doing all the work ourselves.
53562         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
53563         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
53564
53565 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53566
53567         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
53568         Problem reported by Ralf Wildenhues in
53569         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53570
53571         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
53572         HAVE_STRUCT_STATFS_F_FSTYPENAME.
53573
53574 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53575
53576         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
53577         yesterday's patch by changing test -n to test -z.
53578
53579 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53580
53581         * modules/getloadavg (Files): Add m4/getloadavg.m4.
53582         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
53583         the former is now obsolescent.
53584
53585         * modules/chdir-long (Depends-on): Add fcntl.
53586
53587 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53588
53589         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
53590         obsolescent, and programs should use gnulib instead.
53591         * m4/getloadavg.m4: New file, with contents taken from Autoconf
53592         but with prefixes changed.
53593
53594 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53595
53596         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
53597         or stdbool.h, because they might not exist while configuring.
53598
53599         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
53600         Don't include unistd.h or limits.h; not needed, since chdir-long.h
53601         does that for us.
53602         (O_DIRECTORY): Remove.
53603
53604 2006-08-31  Eric Blake  <ebb9@byu.net>
53605
53606         * gnulib-tool: Don't let emacs change spaces to TAB.
53607
53608 2006-08-31  Bruno Haible  <bruno@clisp.org>
53609
53610         * gnulib-tool: When calling func_import more than once, do it in a
53611         subshell.
53612         Reported by Eric Blake <ebb9@byu.net>.
53613
53614 2006-08-31  Bruno Haible  <bruno@clisp.org>
53615
53616         * gnulib-tool (nl): Remove variable.
53617         (sed_transform_lib_file): Use more robust test for config-h module.
53618         (func_import): Fix typo in 2006-08-25 patch.
53619
53620 2006-08-31  Bruno Haible  <bruno@clisp.org>
53621
53622         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
53623         specified, augment Makefile.am variables instead of assigning them.
53624
53625 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53626
53627         Work around a bug in both the Linux and SunOS 64-bit kernels:
53628         nanosleep mishandles sleeps for longer than 2**31 seconds.
53629         Problem reported by Frank v Waveren in
53630         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
53632         Check for nanosleep bug.
53633         (LIB_NANOSLEEP): Append clock_gettime library if needed.
53634
53635 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53636
53637         Work around a bug in both the Linux and SunOS 64-bit kernels:
53638         nanosleep mishandles sleeps for longer than 2**31 seconds.
53639         Problem reported by Frank v Waveren in
53640         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53641         * lib/nanosleep.c (BILLION): New constant.
53642         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
53643         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
53644         implementation.
53645
53646 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53647
53648         * modules/nanosleep (Depends-on): Add gettime.
53649
53650 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53651         and Simon Josefsson  <jas@extundo.com>
53652         and Oskar Liljeblad  <oskar@osk.mine.nu>
53653
53654         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
53655         * gnulib-tool (func_import): New license type 'unmodifiable license
53656         text'.
53657         * modules/fdl: Use it.  Longer description.
53658         * module/gpl, module/lgpl: New files.
53659
53660 2006-08-30  Jim Meyering  <jim@meyering.net>
53661
53662         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
53663         shadowing the parameter.
53664
53665 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53666
53667         Sync from Libtool:
53668
53669         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53670
53671         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
53672         sharing with gnulib.  Report by Eric Blake.
53673
53674 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53675
53676         * modules/isapipe: New file.
53677         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
53678
53679 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53680
53681         * modules/configmake (Makefile.am): Add a comment, and omit
53682         the CONFIGMAKE_ prefix from generated macro names.  Suggested
53683         by Bruno Haible.
53684
53685 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53686
53687         * m4/isapipe.m4: New file.
53688
53689 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53690
53691         * lib/isapipe.c, lib/isapipe.h: New files.
53692
53693 2006-08-29  Jim Meyering  <jim@meyering.net>
53694
53695         * modules/configmake (Makefile.am): Make configmake.h depend on
53696         Makefile.  Otherwise, a stale configmake.h could hang around.
53697
53698 2006-08-29  Eric Blake  <ebb9@byu.net>
53699
53700         * lib/error.c (error_at_line, print_errno_message): Match libc, after
53701         resolution of upstream bug 3044.
53702
53703 2006-08-29  Bruno Haible  <bruno@clisp.org>
53704
53705         * modules/localcharset (Depends-on): Add configmake.
53706         (Makefile.am): Remove setting of LIBDIR through DEFS.
53707
53708 2006-08-29  Bruno Haible  <bruno@clisp.org>
53709
53710         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
53711         defined.
53712
53713 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53714
53715         * modules/fcntl: New file.
53716         * modules/chdir-safer (Depends-on): Add fcntl.
53717         * modules/fts: Likewise.
53718         * modules/mkdir-p: Likewise.
53719
53720         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
53721         This undoes the most recent change, since we're now addressing the
53722         problem in a different way.
53723
53724         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
53725         into output, since the output might be called Makefile.am even
53726         if $makefile_name is something different.
53727         (func_import): Use $makefile_am rather than
53728         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
53729         empty.
53730
53731         * modules/inttypes (Files): Add m4/inttypes-h.m4.
53732
53733 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53734
53735         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
53736         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
53737         recent change to stdint.m4, since we're now addressing the problem in a
53738         different way.
53739
53740 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53741
53742         * m4/fcntl_h.m4: New file.
53743
53744 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53745
53746         * lib/fcntl_.h: New file.
53747         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
53748         the fcntl module.
53749         * lib/dirchownmod.c: Likewise.
53750         * lib/fts.c: Likewise.
53751
53752         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
53753         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
53754         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
53755         just before including <inttypes.h>, to avoid circular inclusion.
53756
53757 2006-08-28  Jim Meyering  <jim@meyering.net>
53758
53759         * doc/visibility.texi: Actually read and correct the grammar of the
53760         sentence affected by yesterday's change.
53761
53762 2006-08-28  Eric Blake  <ebb9@byu.net>
53763
53764         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
53765         needs wrapper.
53766
53767 2006-08-28  Eric Blake  <ebb9@byu.net>
53768
53769         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
53770
53771 2006-08-28  Eric Blake  <ebb9@byu.net>
53772
53773         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
53774
53775 2006-08-28  Bruno Haible  <bruno@clisp.org>
53776
53777         * modules/c-strstr: New file, from GNU gettext.
53778         * MODULES.html.sh (String handling): Add c-strstr.
53779
53780 2006-08-28  Bruno Haible  <bruno@clisp.org>
53781
53782         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
53783         macros.
53784         Reported by Eric Blake.
53785
53786 2006-08-28  Bruno Haible  <bruno@clisp.org>
53787
53788         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
53789         (VASNPRINTF): Return a string of length > INT_MAX without failing.
53790         * lib/vasprintf.c: Include errno.h, limits.h.
53791         (EOVERFLOW): New fallback definition.
53792         (vasprintf): Test here whether the string length is > INT_MAX.
53793         * lib/vsnprintf.c: Include errno.h, limits.h.
53794         (EOVERFLOW): New fallback definition.
53795         (vsnprintf): Fix bug when generated string was too long for the buffer.
53796         Test here whether the string length is > INT_MAX.
53797
53798 2006-08-28  Bruno Haible  <bruno@clisp.org>
53799
53800         * lib/inttypes_.h (SCNX*): Remove definitions.
53801         Reported by Eric Blake.
53802
53803 2006-08-28  Bruno Haible  <bruno@clisp.org>
53804
53805         * lib/c-strstr.h: New file, from GNU gettext.
53806         * lib/c-strstr.c: New file, from GNU gettext.
53807
53808 2006-08-28  Bruno Haible  <bruno@clisp.org>
53809
53810         * gnulib-tool: Reorder some statements.
53811
53812 2006-08-28  Bruno Haible  <bruno@clisp.org>
53813
53814         * gnulib-tool: New option --makefile-name.
53815         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
53816         $makefile_name.
53817         (func_import): Write $makefile_name to the cache file, and read it from
53818         there unless explicitly specified. Use $makefile_name as file name
53819         instead of Makefile.am. Adjust the recommendations accordingly.
53820
53821 2006-08-28  Bruno Haible  <bruno@clisp.org>
53822
53823         * gnulib-tool (func_verify_module): Check against misapplying patch.
53824
53825 2006-08-28  Bruno Haible  <bruno@clisp.org>
53826
53827         * gnulib-tool (func_relativize, func_relconcat): New functions.
53828         Give an error if --local-dir is given with --update.
53829         Remove trailing slashes from $local_gnulib_dir.
53830         (func_import): Store the relativized $local_gnulib_dir in
53831         gnulib-cache.m4, and read it from there if not specified explicitly.
53832
53833 2006-08-28  Bruno Haible  <bruno@clisp.org>
53834
53835         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
53836         is the current directory. Respect also $local_gnulib_dir.
53837
53838 2006-08-28  Bruno Haible  <bruno@clisp.org>
53839             Simon Josefsson  <jas@extundo.com>
53840
53841         BeOS portability.
53842         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
53843
53844 2006-08-27  Jim Meyering  <jim@meyering.net>
53845
53846         * doc/visibility.texi: Remove duplicate word: "pointer".
53847
53848 2006-08-26  Bruno Haible  <bruno@clisp.org>
53849
53850         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
53851         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
53852         (Makefile.am): Create inttypes.h from inttypes_.h.
53853         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
53854
53855         * modules/imaxabs: New file.
53856
53857         * modules/imaxdiv: New file.
53858
53859 2006-08-26  Bruno Haible  <bruno@clisp.org>
53860
53861         * m4/inttypes.m4: New file.
53862         * m4/_inttypes_h.m4: Remove file.
53863         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
53864         PRI_MACROS_BROKEN.
53865         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
53866
53867         * m4/imaxabs.m4: New file.
53868
53869         * m4/imaxdiv.m4: New file.
53870
53871 2006-08-26  Bruno Haible  <bruno@clisp.org>
53872
53873         * lib/inttypes_.h: New file.
53874         * lib/inttypes.h: Remove file.
53875         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
53876
53877         * lib/imaxabs.c: New file.
53878
53879         * lib/imaxdiv.c: New file.
53880
53881 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53882
53883         New config-h module, so that "make" output needn't be cluttered
53884         by -DHAVE_CONFIG_H.
53885         * MODULES.html.sh (Support for building libraries and executables):
53886         Add config-h.
53887         * modules/config-h: New file.
53888         * gnulib-tool (nl, sed_transform_lib_file): New vars.
53889         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
53890         the config-h module is used.
53891
53892         New configmake module, so that "make" output needn't be cluttered
53893         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
53894         * MODULES.html.sh (Support for building libraries and executables):
53895         Add configmake.
53896         * modules/configmake: New file.
53897
53898 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53899
53900         * m4/config-h.m4: New file.
53901
53902 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53903
53904         * config/srclist.txt: Add elisp-comp.
53905
53906 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53907
53908         * MODULES.html.sh (Support for building libraries and executables):
53909         Add elisp-comp.
53910         * build-aux/elisp-comp: New file.
53911         * modules/elisp-comp: New file.
53912
53913 2006-08-24  Bruno Haible  <bruno@clisp.org>
53914
53915         * gnulib-tool (func_create_testdir): Use non-default values of
53916         sourcebase and m4base.
53917
53918 2006-08-24  Bruno Haible  <bruno@clisp.org>
53919
53920         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
53921         HTML structure.
53922
53923 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53924
53925         * modules/openat (Depends-on): Add lchown.
53926
53927 2006-08-23  Bruno Haible  <bruno@clisp.org>
53928
53929         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
53930         of gl_LOCK_EARLY instead of gl_LOCK.
53931
53932 2006-08-23  Bruno Haible  <bruno@clisp.org>
53933
53934         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
53935         on OSF/1 to no.
53936         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
53937
53938 2006-08-23  Bruno Haible  <bruno@clisp.org>
53939
53940         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
53941         as unusable.
53942
53943         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
53944         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
53945         (gl_LOCK): New macro.
53946
53947 2006-08-22  Simon Josefsson  <jas@extundo.com>
53948
53949         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
53950         to md5 module.
53951
53952 2006-08-22  Simon Josefsson  <jas@extundo.com>
53953
53954         * MODULES.html.sh: Add "Support for maintaining and release
53955         projects".
53956
53957         * build-aux/gnupload: New file, from coreutils.
53958
53959 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53960
53961         Avoid the need for AC_LIBSOURCES in m4 macros.
53962         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
53963         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
53964         * modules/check-version (EXTRA_DIST): Add check-version.h.
53965         * modules/crc (EXTRA_DIST): Add crc.h.
53966         * modules/des (EXTRA_DIST): Add des.h.
53967         * modules/gc (EXTRA_DIST): Add gc.h.
53968         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
53969         * modules/getline (EXTRA_DIST): Add getline.h.
53970         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
53971         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
53972         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
53973         * modules/md2 (EXTRA_DIST): Add md2.h.
53974         * modules/md4 (EXTRA_DIST): Add md4.h.
53975         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
53976         * modules/read-file (EXTRA_DIST): Add read-file.h.
53977         * modules/readline (EXTRA_DIST): Add readline.h.
53978         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
53979         rijndael-api-fst.h.
53980
53981 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53982
53983         * m4/rijndael.m4 (gl_ARCFOUR):
53984         * m4/arctwo.m4 (gl_ARCTWO):
53985         * m4/check-version.m4 (gl_CHECK_VERSION):
53986         * m4/crc.m4 (gl_CRC):
53987         * m4/des.m4 (gl_DES):
53988         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
53989         * m4/gc.m4 (gl_GC):
53990         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
53991         * m4/getline.m4 (gl_FUNC_GETLINE):
53992         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
53993         * m4/hmac-md5.m4 (gl_HMAC_MD5):
53994         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
53995         * m4/md2.m4 (gl_MD2):
53996         * m4/md4.m4 (gl_MD4):
53997         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
53998         * m4/read-file.m4 (gl_FUNC_READ_FILE):
53999         * m4/readline.m4 (gl_FUNC_READLINE):
54000         * m4/rijndael.m4 (gl_RIJNDAEL):
54001         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54002         to get the necessary .h files and whatnot.
54003
54004 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54005
54006         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
54007         gnulib rather than the other way around.
54008         * config/srclistvars.sh (COREUTILS): Remove.
54009
54010 2006-08-22  Jim Meyering  <jim@meyering.net>
54011
54012         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
54013
54014         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
54015
54016 2006-08-22  Eric Blake  <ebb9@byu.net>
54017
54018         * modules/regexprops-generic: New file.
54019         * MODULES.html.sh (Support for building documentation): List it.
54020
54021 2006-08-22  Eric Blake  <ebb9@byu.net>
54022
54023         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
54024         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
54025         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
54026         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
54027
54028 2006-08-22  Bruno Haible  <bruno@clisp.org>
54029
54030         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
54031         and lib_LTLIBRARIES like the other lib_* variables.
54032
54033 2006-08-22  Bruno Haible  <bruno@clisp.org>
54034
54035         * build-aux/x-to-1.in: New file, from GNU gettext.
54036
54037 2006-08-22  Bruno Haible  <bruno@clisp.org>
54038
54039         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
54040         <utmpx.h> exists.
54041
54042 2006-08-22  Bruno Haible  <bruno@clisp.org>
54043
54044         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
54045         <utmpx.h> exists.
54046
54047 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54048
54049         BeOS portability.
54050         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
54051         exist.
54052         Problem reported by Bruno Haible.
54053
54054 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54055
54056         Avoid the need for AC_LIBSOURCES in m4 macros.
54057         * modules/acl (EXTRA_DIST): Add acl.h.
54058         * modules/argmatch (Files): Add m4/argmatch.m4.
54059         (configure.ac): Add gl_ARGMATCH.
54060         (EXTRA_DIST): Renamed from lib_SOURCES, for
54061         consistency with the other modules.  Remove argmatch.c.
54062         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
54063         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
54064         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
54065         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
54066         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
54067         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
54068         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
54069         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
54070         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
54071         * modules/closeout (EXTRA_DIST): Add closeout.h.
54072         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
54073         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
54074         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
54075         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
54076         dirname.h; remove basename.c and stripslash.c.
54077         * modules/exclude (EXTRA_DIST): Add exclude.h.
54078         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
54079         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
54080         * modules/file-type (EXTRA_DIST): Add file-type.h.
54081         * modules/filemode (EXTRA_DIST): Add filemode.h.
54082         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
54083         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
54084         * modules/fpending (EXTRA_DIST): Add __fpending.h.
54085         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
54086         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
54087         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
54088         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
54089         * modules/getdate (EXTRA_DIST): Add getdate.c.
54090         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
54091         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
54092         * modules/getpass (EXTRA_DIST): Add getpass.h.
54093         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
54094         * modules/group-member (EXTRA_DIST): Add group-member.h.
54095         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
54096         * modules/hash (EXTRA_DIST): Add hash.h.
54097         * modules/human (EXTRA_DIST): Add human.h.
54098         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
54099         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
54100         * modules/lchown (EXTRA_DIST): Add lchown.h.
54101         * modules/long-options (EXTRA_DIST): Add long-options.h.
54102         * modules/lstat (EXTRA_DIST): Add lstat.h.
54103         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
54104         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
54105         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
54106         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
54107         * modules/memxor (EXTRA_DIST): Add memxor.h.
54108         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
54109         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
54110         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
54111         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
54112         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
54113         * modules/physmem (EXTRA_DIST): Add physmem.h.
54114         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
54115         * modules/posixver (EXTRA_DIST): Add posixver.h.
54116         * modules/quote (EXTRA_DIST): Add quote.h.
54117         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
54118         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
54119         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
54120         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
54121         regex_internal.h regexec.c.
54122         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
54123         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
54124         * modules/same (EXTRA_DIST): Add same.h.
54125         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
54126         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
54127         * modules/savedir (EXTRA_DIST): Add savedir.h.
54128         * modules/sha1 (EXTRA_DIST): Add sha1.h.
54129         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
54130         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
54131         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
54132         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
54133         * modules/strdup (EXTRA_DIST): Add strdup.h.
54134         * modules/strftime (EXTRA_DIST): Add strftime.h.
54135         * modules/strndup (EXTRA_DIST): Add strndup.h.
54136         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
54137         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
54138         * modules/time_r (EXTRA_DIST): Add time_r.h.
54139         * modules/timespec (EXTRA_DIST): Add timespec.h.
54140         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
54141         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
54142         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
54143         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
54144         * modules/userspec (EXTRA_DIST): Add userspec.h.
54145         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
54146         * modules/utimens (EXTRA_DIST): Add utimens.h.
54147         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
54148         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
54149         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
54150         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
54151         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
54152         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
54153         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
54154         * modules/yesno (EXTRA_DIST): Add yesno.h.
54155
54156 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54157
54158         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
54159
54160         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
54161         * m4/dev-ino.m4, same-inode.m4: Remove.
54162
54163         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
54164         * m4/acl.m4 (AC_FUNC_ACL):
54165         * m4/backupfile.m4 (gl_BACKUPFILE):
54166         * m4/c-strtod.m4 (gl_C99_STRTOLD):
54167         * m4/canon-host.m4 (gl_CANON_HOST):
54168         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54169         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
54170         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
54171         * m4/cloexec.m4 (gl_CLOEXEC):
54172         * m4/close-stream.m4 (gl_CLOSE_STREAM):
54173         * m4/closeout.m4 (gl_CLOSEOUT):
54174         * m4/dirfd.m4 (gl_FUNC_DIRFD):
54175         * m4/dirname.m4 (gl_DIRNAME):
54176         * m4/exclude.m4 (gl_EXCLUDE):
54177         * m4/exitfail.m4 (gl_EXITFAIL):
54178         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
54179         * m4/file-type.m4 (gl_FILE_TYPE):
54180         * m4/filemode.m4 (gl_FILEMODE):
54181         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
54182         * m4/fpending.m4 (gl_FUNC_FPENDING):
54183         * m4/fprintftime.m4 (gl_FPRINTFTIME):
54184         * m4/fts.m4 (gl_FUNC_FTS):
54185         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
54186         * m4/getdate.m4 (gl_GETDATE):
54187         * m4/gethrxtime.m4 (gl_GETHRXTIME):
54188         * m4/getpagesize.m4 (gl_GETPAGESIZE):
54189         * m4/getpass.m4 (gl_FUNC_GETPASS):
54190         * m4/gettime.m4 (gl_GETTIME):
54191         * m4/getugroups.m4 (gl_GETUGROUPS):
54192         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
54193         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
54194         * m4/hard-locale.m4 (gl_HARD_LOCALE):
54195         * m4/hash.m4 (gl_HASH):
54196         * m4/idcache.m4 (gl_IDCACHE):
54197         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
54198         * m4/lchown.m4 (gl_FUNC_LCHOWN):
54199         * m4/long-options.m4 (gl_LONG_OPTIONS):
54200         * m4/lstat.m4 (gl_FUNC_LSTAT):
54201         * m4/md5.m4 (gl_MD5):
54202         * m4/memcasecmp.m4 (gl_MEMCASECMP):
54203         * m4/memcoll.m4 (gl_MEMCOLL):
54204         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
54205         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
54206         * m4/memxor.m4 (gl_MEMXOR):
54207         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
54208         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
54209         * m4/modechange.m4 (gl_MODECHANGE):
54210         * m4/mountlist.m4 (gl_MOUNTLIST):
54211         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54212         * m4/openat.m4 (gl_FUNC_OPENAT):
54213         * m4/pathmax.m4 (gl_PATHMAX):
54214         * m4/physmem.m4 (gl_PHYSMEM):
54215         * m4/posixtm.m4 (gl_POSIXTM):
54216         * m4/posixver.m4 (gl_POSIXVER):
54217         * m4/quote.m4 (gl_QUOTE):
54218         * m4/quotearg.m4 (gl_QUOTEARG):
54219         * m4/readtokens.m4 (gl_READTOKENS):
54220         * m4/readutmp.m4 (gl_READUTMP):
54221         * m4/regex.m4 (gl_REGEX):
54222         * m4/safe-read.m4 (gl_SAFE_READ):
54223         * m4/safe-write.m4 (gl_SAFE_WRITE):
54224         * m4/same.m4 (gl_SAME):
54225         * m4/save-cwd.m4 (gl_SAVE_CWD):
54226         * m4/savedir.m4 (gl_SAVEDIR):
54227         * m4/settime.m4 (gl_SETTIME):
54228         * m4/sha1.m4 (gl_SHA1):
54229         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
54230         * m4/stat-macros.m4 (gl_STAT_MACROS):
54231         * m4/stat-time.m4 (gl_STAT_TIME):
54232         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
54233         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
54234         * m4/strdup.m4 (gl_FUNC_STRDUP):
54235         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
54236         * m4/strndup.m4 (gl_FUNC_STRNDUP):
54237         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
54238         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
54239         * m4/time_r.m4 (gl_TIME_R):
54240         * m4/timespec.m4 (gl_TIMESPEC):
54241         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
54242         * m4/unlinkdir.m4 (gl_UNLINKDIR):
54243         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
54244         * m4/userspec.m4 (gl_USERSPEC):
54245         * m4/utimecmp.m4 (gl_UTIMECMP):
54246         * m4/utimens.m4 (gl_UTIMENS):
54247         * m4/xalloc.m4 (gl_XALLOC):
54248         * m4/xgetcwd.m4 (gl_XGETCWD):
54249         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
54250         * m4/xreadlink.m4 (gl_XREADLINK):
54251         * m4/xstrtod.m4 (gl_XSTRTOD):
54252         * m4/yesno.m4 (gl_YESNO):
54253         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54254         to get the necessary .h files and whatnot.
54255
54256 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
54257             Bruno Haible  <bruno@clisp.org>
54258
54259         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
54260         /bin/sh understanding of '!' conditional negation.
54261
54262 2006-08-21  Jim Meyering  <jim@meyering.net>
54263
54264         * modules/openat (Depends-on): Really alphabetize.
54265
54266         * modules/acl (Depends-on): Add error and quote.
54267
54268         * check-module (find_included_lib_files): Add at-func.c to the
54269         ok-to-include-more-than-once white list.
54270
54271         * modules/openat (Depends-on): Add lstat.  Alphabetize.
54272
54273 2006-08-21  Bruno Haible  <bruno@clisp.org>
54274
54275         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54276         Emit a pkgdata_DATA variable only if some snippets add contents to it.
54277         Reported by Martin Lambers <marlam@marlam.de>.
54278
54279 2006-08-21  Bruno Haible  <bruno@clisp.org>
54280
54281         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
54282         specify an installation location, don't emit a noinst_LIBRARIES or
54283         noinst_LTLIBRARIES assignment.
54284
54285 2006-08-21  Bruno Haible  <bruno@clisp.org>
54286
54287         BeOS portability.
54288         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
54289         BeOS has mbrtowc() but no <wctype.h>.
54290
54291 2006-08-21  Bruno Haible  <bruno@clisp.org>
54292
54293         BeOS portability.
54294         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
54295         exist.
54296
54297 2006-08-21  Bruno Haible  <bruno@clisp.org>
54298
54299         BeOS portability.
54300         * lib/mbchar.h: Include <wctype.h> only if it exists.
54301
54302 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54303
54304         Remove files that are no longer needed by their respective modules.
54305         * m4/obstack.m4: Remove.
54306         * m4/strerror_r.m4: Remove.
54307         * m4/uint32_t.m4: Remove.
54308         * m4/uintptr_t.m4: Remove.
54309         * m4/ullong_max.m4: Remove.
54310         * m4/xstrtoimax.m4: Remove.
54311         * m4/xstrtoumax.m4: Remove.
54312
54313         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
54314         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
54315         dependencies now capture this.
54316
54317         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
54318         Do not use AC_LIBSOURCES, since gnulib modules now do this.
54319         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
54320         * m4/human.m4 (gl_HUMAN): Likewise.
54321         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
54322         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
54323
54324         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
54325
54326         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
54327         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
54328         stdint.
54329         * m4/human.m4 (gl_HUMAN): Likewise.
54330         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
54331         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
54332         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54333         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54334         * m4/xstrtol (gl_XSTRTOL): Likewise.
54335
54336         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
54337         AC_TYPE_LONG_LONG_INT.
54338         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54339         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
54340         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
54341         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54342
54343         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
54344         on stdbool.
54345
54346         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
54347         (gl_PREREQ_XSTRTOUL): Remove.
54348
54349         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
54350
54351         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
54352         mode.
54353
54354 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54355
54356         Add and change modules to make it easier for coreutils to use
54357         gnulib-tool.
54358         * modules/backupfile (Files): Remove m4/d-ino.m4.
54359         (Depends-on): Add d-ino.
54360         * modules/cycle-check (Depends-on): Add stdint.
54361         (lib_SOURCES): Add cycle-check.h.
54362         * modules/d-ino: New module.
54363         * modules/d-type: New module.
54364         * modules/error (Files): Remove m4/strerror_r.m4.
54365         * modules/filemode (Files): Add m4/st_dm_mode.m4.
54366         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
54367         m4/inttypes_h.m4, m4/uintmax_t.m4.
54368         (Depends-on): Add stdint.
54369         (lib_SOURCES): Add fsusage.h.
54370         * modules/getcwd (Files): Remove d-ino.m4.
54371         (Depends-on): Add d-ino.
54372         * modules/getndelim2 (Depends-on): Add stdint.
54373         * modules/glob (Files): Remove m4/d-type.m4.
54374         (Depends-on): Add d-type.
54375         * modules/host-os: New module.
54376         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
54377         m4/inttypes_h.m4, m4/uintmax_t.m4.
54378         * Depends-on: Add stdint.
54379         (lib_SOURCES): Add human.h.
54380         * modules/inttostr (Files): Remove m4/intmax_t.m4,
54381         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
54382         m4/uintmax_t.m4, m4/ulonglong.m4.
54383         (Depends-on): Add stdint.
54384         (EXTRA_DIST): Add inttostr.h.
54385         * modules/lchmod: New module.
54386         * modules/link-follow: New module.
54387         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
54388         (Depends-on): Add lchmod.
54389         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
54390         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
54391         (Depends-on): Add stdint.
54392         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
54393         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
54394         (Depends-on): Add stdint.
54395         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
54396         * modules/perl: New module.
54397         * modules/regex (Depends-on): Add stdint.
54398         * modules/rmdir-errno: New module.
54399         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54400         m4/intmax_t.m4.
54401         (Depends-on): Add stdint.
54402         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54403         m4/uintmax_t.m4.
54404         (Depends-on): Add stdint.
54405         * modules/unlink-busy: New module.
54406         * modules/utimecmp (Depends-on): Add stdint.
54407         * modules/uptime: New module.
54408         * modules/winsz-ioctl: New module.
54409         * modules/winsz-termios: New module.
54410         * modules/xnanosleep (Depends-on): Add nanosleep.
54411         * modules/ullong_max: Remove.
54412         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
54413         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
54414         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
54415         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
54416         (Depends-on): Add inttypes.
54417         (lib_SOURCES): Add xstrtol.h.
54418         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
54419         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
54420         * MODULES.html.sh: Move 'assert' into the assert section.
54421         Move 'dummy' into the linking section.
54422         Remove ullong_max.
54423         Add section for compatibility checks for POSIX:2001 functions,
54424         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
54425         winsz-ioctl, and winsz-termios into it.
54426         Add lchmod.
54427         Add top-level Misc section and put host-os, perl, and uptime
54428         into it.
54429
54430 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54431
54432         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
54433         now assume the stdint module.  Do not include inttypes.h.
54434         * lib/fsusage.h: Likewise.
54435         * lib/getndelim2.c: Likewise.
54436         * lib/human.h: Likewise.
54437         * lib/inttostr.h: Likewise.
54438         * lib/obstack.c: Likewise.
54439         * lib/regex_internal.h: Likewise.
54440         * lib/tempname.c: Likewise.
54441         * lib/utimecmp.c: Likewise.
54442         * lib/xstrtol.h: Likewise.
54443
54444         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
54445
54446         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
54447         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
54448         * lib/xtime.h: Likewise.
54449
54450 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54451
54452         * modules/openat (Files): Add lib/fchmodat.c.
54453         Fixes problem reported by Jay Youngman.
54454
54455 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54456
54457         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
54458         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
54459
54460 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
54461             Bruno Haible  <bruno@clisp.org>
54462
54463         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
54464         and is a script that invokes bison. Tighten the code. Add comments.
54465
54466 2006-08-18  Jim Meyering  <jim@meyering.net>
54467
54468         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
54469         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
54470         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
54471         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
54472
54473 2006-08-18  Bruno Haible  <bruno@clisp.org>
54474
54475         * modules/bison-i18n: New file.
54476         * MODULES.html.sh (Internationalization functions): Add it.
54477
54478 2006-08-18  Bruno Haible  <bruno@clisp.org>
54479
54480         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
54481         sys/statvfs.h. When getmntinfo was found, check its declaration and
54482         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
54483
54484 2006-08-18  Bruno Haible  <bruno@clisp.org>
54485
54486         * m4/bison-i18n.m4: New file, from bison.
54487
54488 2006-08-18  Bruno Haible  <bruno@clisp.org>
54489
54490         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
54491         (ME_DUMMY): Treat "kernfs" as a dummy.
54492         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
54493
54494 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54495
54496         Update from coreutils.
54497
54498         2006-08-15  Jim Meyering  <jim@meyering.net>
54499
54500         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
54501
54502         2006-01-17  Jim Meyering  <jim@meyering.net>
54503
54504         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
54505
54506         2006-01-11  Jim Meyering  <jim@meyering.net>
54507
54508         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
54509         Check for the lchmod function.
54510
54511 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54512
54513         Update from coreutils.
54514
54515         * lib/__fpending.h: Add copyright notice.
54516         * lib/fprintftime.h: Likewise.
54517         * lib/savedir.c: Use (C) in copyright notice.
54518         * lib/savedir.h: Likewise.
54519
54520         2006-08-15  Jim Meyering  <jim@meyering.net>
54521
54522         * lib/at-func.c: New file, with the logic of all emulated at-functions.
54523         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
54524         in support of the EXPECTED_ERRNO macro.
54525         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
54526         definitions.  Instead, define the appropriate symbols and include
54527         "at-func.c".
54528         * lib/mkdirat.c (mkdirat): Likewise.
54529         * lib/fchmodat.c (fchmodat): Likewise.
54530         (ENOSYS): Remove definition.
54531         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
54532         it.  Don't include "unistd--.h" -- it wasn't ever used.
54533
54534         2006-01-17  Jim Meyering  <jim@meyering.net>
54535
54536         Rewrite fts.c not to change the current working directory,
54537         by using openat, fstatat, fdopendir, etc..
54538
54539         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
54540         (HAVE_OPENAT_SUPPORT): Define.
54541         [_LIBC] (fchdir): Don't undef or define; no longer used.
54542         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
54543         Now, this `function' always succeeds, and consumes its file descriptor
54544         parameter -- so callers must not close such FDs.  Update callers.
54545         (diropen_fd, opendirat, cwd_advance_fd): New functions.
54546         (diropen): Add parameter, SP.  Adjust all callers.
54547         Implement using diropen_fd, rather than open.
54548         (fts_open): Initialize new member, fts_cwd_fd.
54549         Remove fts_rft-setting code.
54550         (fts_close): Close fts_cwd_fd, if necessary.
54551         (__opendir2): Define in terms of opendir or opendirat,
54552         depending on whether the FST_NOCHDIR flag is set.
54553         (fts_build): Since fts_safe_changedir consumes its FD, and since
54554         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
54555         and close the dup'd file descriptor upon failure.
54556         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
54557         (fts_safe_changedir): Tweak semantics to reflect that this function
54558         now calls cwd_advance_fd and hence consumes its FD argument.
54559         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
54560         [struct FTS] (fts_rft): Remove now-unused member.
54561         [struct FTS] (fts_cycle.state): Improve comment.
54562
54563         * lib/openat.c (openat_needs_fchdir): New function.
54564         * lib/openat.h (openat_needs_fchdir): Declare it.
54565
54566 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54567
54568         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
54569         Problem and fix reported by Pádraig Brady in
54570         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
54571
54572 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54573
54574         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
54575
54576 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54577
54578         * lib/memcoll.c (memcoll): Optimize for the common case where the
54579         arguments are bytewise equal.
54580
54581 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54582
54583         * doc/regexprops-generic.texi: Add a copyright notice.
54584
54585 2006-08-15  Bruno Haible  <bruno@clisp.org>
54586
54587         * modules/tmpdir (License): Change to LGPL.
54588
54589 2006-08-15  Bruno Haible  <bruno@clisp.org>
54590
54591         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
54592         module.
54593
54594 2006-08-14  Simon Josefsson  <jas@extundo.com>
54595
54596         * config/srclist.txt: Add gnupload.
54597
54598 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54599
54600         Change copyright notice from LGPL 2 to GPL 2, since that's the
54601         standard form used in the gnulib repository.
54602         * tests/test-lock.c: Likewise.
54603         * tests/test-stdint.c: Likewise.
54604         * tests/test-tls.c: Likewise.
54605
54606         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
54607         prelude-manager.  User shorter URLs for GNU projects, without '?'.
54608         Add copyright notice.
54609
54610         * check-module: Add copyright notice.  Output a copyright
54611         notice if "--version" is specified.
54612         * modules/COPYING: New file.
54613         * tests/test-getaddrinfo.c: Add copyright notice.
54614         * tests/test-verify.c: Likewise.
54615
54616 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54617
54618         Change copyright notice from LGPL 2 to GPL 2, since that's the
54619         standard form used in the gnulib repository.
54620         * lib/lock.c: LGPL -> GPL.
54621         * lib/lock.h: Likewise.
54622         * lib/strnlen1.c: Likewise.
54623         * lib/strnlen1.h: Likewise.
54624         * lib/tls.c: Likewise.
54625         * lib/tls.h: Likewise.
54626         * lib/tmpdir.c: Likewise.
54627
54628         * lib/TODO: Remove; this belongs only in coreutils.
54629
54630 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54631
54632         Add copyright notices to long-enough files that lack them, since
54633         otherwise the files aren't clearly free.  Use the same notice that
54634         getdate.texi already uses.
54635         * doc/alloca-opt.texi: Add copyright notice.
54636         * doc/alloca.texi: Likewise.
54637         * doc/ctime.texi: Likewise.
54638         * doc/functions.texi: Likewise.
54639         * doc/gcd.texi: Likewise.
54640         * doc/gnulib-tool.texi: Likewise.
54641         * doc/inet_ntoa.texi: Likewise.
54642         * doc/visibility.texi: Likewise.
54643
54644         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
54645         * doc/quote.texi: Add copyright notice.
54646
54647         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
54648         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
54649         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
54650         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
54651         is now obsolete, and give a pointer to the Sun list.
54652         Add copyright notice.
54653
54654 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54655
54656         * config/srclistvars.sh: Add copyright notice.
54657
54658 2006-08-14  Eric Blake  <ebb9@byu.net>
54659
54660         Import the following change from libc:
54661
54662         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
54663
54664         Upstream bug 2997.
54665         * lib/misc/error.c: Add space between program name and message if file
54666         name is missing.
54667
54668 2006-08-12  Karl Berry  <karl@gnu.org>
54669
54670         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
54671         remove, these originate in gnulib now.
54672
54673 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54674
54675         * doc/Makefile (standards.info standards.html standards.dvi):
54676         Also depend on make-stds.texi.
54677
54678 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54679
54680         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
54681         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
54682
54683         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
54684         in wchar_t.  Problem reported by Eric Blake.
54685
54686         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
54687         LEN is smaller than SIZE.  Suggested by Bruno Haible.
54688         Also, help the compiler to keep LEN in a register.
54689
54690 2006-08-11  Eric Blake  <ebb9@byu.net>
54691
54692         * users.txt: Sort.  Add tar.
54693
54694 2006-08-11  Bruno Haible  <bruno@clisp.org>
54695
54696         * users.txt: New file.
54697
54698 2006-08-11  Bruno Haible  <bruno@clisp.org>
54699
54700         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
54701         before <wchar.h>. Needed for OSF/1 and BSD/OS.
54702
54703 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54704
54705         * modules/snprintf (Depends-on): Remove minmax.
54706         (Maintainer): Add self and Bruno.
54707
54708 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54709
54710         * lib/.cppi-disable: Add snprintf.h, socket_.h.
54711         * lib/snprintf.c: Include <errno.h> and <limits.h>.
54712         (EOVERFLOW): Define if the system does not.
54713         Do not include "minmax.h"; it wasn't used.
54714         (snprintf): Don't assume size_t promotes to an unsigned type.
54715         Fix bug when generated string was too long for the buffer: the
54716         buffer's contents are supposed to be the initial prefix of the
54717         output.  Don't assume vasnprintf returns EOVERFLOW if the size
54718         exceeds INT_MAX; do the check ourselves.
54719
54720         Import the following changes from libc:
54721
54722         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
54723
54724         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
54725         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
54726         set wc to the byte which couldn't be converted.
54727         (re_string_reconstruct): Don't clear valid_raw_len before calling
54728         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
54729         tip_context using re_string_context_at.
54730
54731         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
54732
54733         * lib/posix/regex.h: g++ still cannot handled [restrict].
54734
54735         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
54736
54737         * lib/posix/regex.h: Remove special handling for VMS.
54738
54739 2006-08-10  Jim Meyering  <jim@meyering.net>
54740
54741         * modules/same-inode: New module.
54742         * modules/dev-ino: New module.
54743         * modules/cycle-check: Depend on these modules, rather than simply
54744         including their .h files.
54745         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
54746         required via m4/cycle-check.m4.
54747         * modules/same: Depend on new same-inode module, rather than
54748         including same-inode.h.
54749         * modules/chdir-safer: New file.
54750
54751         * modules/chown (Depends-on): Add stat-macros.
54752
54753 2006-08-10  Jim Meyering  <jim@meyering.net>
54754
54755         * m4/cycle-check.m4: New file.
54756         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
54757         * m4/dev-ino.m4, m4/same-inode.m4: New files.
54758
54759 2006-08-10  Eric Blake  <ebb9@byu.net>
54760
54761         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
54762         in from original proposal.
54763
54764 2006-08-10  Eric Blake  <ebb9@byu.net>
54765         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54766
54767         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
54768         namespace.
54769
54770 2006-08-10  Bruno Haible  <bruno@clisp.org>
54771
54772         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
54773         as well.
54774
54775 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54776
54777         Sync from coreutils.
54778
54779         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
54780
54781         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
54782         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
54783
54784 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54785
54786         * modules/restrict: Remove; no longer needed now that we assume
54787         Autoconf 2.59 or later.
54788         * MODULES.html.sh: Remove 'restrict'.
54789         * modules/argp (Depends-on): Remove 'restrict'.
54790         * modules/base64 (Depends-on): Likewise.
54791         * modules/gc (Depends-on): Likewise.
54792         * modules/getaddrinfo (Depends-on): Likewise.
54793         * modules/glob (Depends-on): Likewise.
54794         * modules/inet_ntop (Depends-on): Likewise.
54795         * modules/inet_pton (Depends-on): Likewise.
54796         * modules/memxor (Depends-on): Likewise.
54797         * modules/regex (Depends-on): Likewise.
54798         * modules/strtok_r (Depends-on): Likewise.
54799         * modules/time_r (Depends-on): Likewise.
54800
54801 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54802
54803         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
54804         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
54805         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54806         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
54807         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
54808         * m4/memxor.m4 (gl_MEMXOR): Likewise.
54809         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
54810         gl_C_RESTRICT replaced by AC_C_RESTRICT.
54811
54812         Merge from coreutils.
54813         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
54814         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
54815         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54816         * m4/time_r.m4 (gl_TIME_R): Likewise.
54817
54818 2006-08-09  Karl Berry  <karl@gnu.org>
54819
54820         * config/srclist.txt: no more gettext-tools, per Bruno.
54821
54822 2006-08-08  Eric Blake  <ebb9@byu.net>
54823
54824         * modules/verror: New module.
54825         * MODULES.html.sh: Document it.
54826
54827 2006-08-08  Eric Blake  <ebb9@byu.net>
54828
54829         * lib/verror.h, lib/verror.c: New files.
54830
54831 2006-08-08  Eric Blake  <ebb9@byu.net>
54832
54833         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
54834         verror_at_line output complies with GNU Coding Standards even when
54835         file is NULL.
54836
54837 2006-08-07  Bruno Haible  <bruno@clisp.org>
54838
54839         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
54840         versions of AIX.
54841         Reported by Ralf Wildenhues.
54842
54843 2006-08-07  Bruno Haible  <bruno@clisp.org>
54844
54845         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
54846         in an AC_DEFUN. Needed so that the autoconf snippets can use
54847         AC_REQUIRE.
54848
54849 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54850
54851         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54852         Initialize pkgdata_DATA.
54853         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
54854         overriding it.
54855
54856 2006-08-06  Eric Blake  <ebb9@byu.net>
54857
54858         * lib/error.h: Fold in some upstream changes from glibc.
54859         * lib/error.c: Likewise.
54860
54861 2006-08-04  Bruno Haible  <bruno@clisp.org>
54862
54863         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54864         Make the mostlyclean-local rule depend on mostlyclean-generic.
54865         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
54866
54867 2006-07-31  Bruno Haible  <bruno@clisp.org>
54868
54869         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
54870         <stdlib.h>, <string.h>.
54871
54872 2006-07-30  Bruno Haible  <bruno@clisp.org>
54873
54874         * modules/readlink (License): Change to LGPL.
54875
54876 2006-07-30  Bruno Haible  <bruno@clisp.org>
54877
54878         * modules/javaversion (Makefile.am): Distribute javaversion.java and
54879         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
54880         set PKGDATADIR to point to it.
54881
54882 2006-07-30  Bruno Haible  <bruno@clisp.org>
54883
54884         * modules/csharpexec (configure.ac): Comment out macro invocation.
54885         * modules/javaexec (configure.ac): Likewise.
54886         * modules/javacomp-script (configure.ac): Likewise.
54887
54888         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
54889
54890 2006-07-30  Bruno Haible  <bruno@clisp.org>
54891
54892         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
54893         linked-list.
54894
54895 2006-07-30  Bruno Haible  <bruno@clisp.org>
54896
54897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
54898
54899 2006-07-30  Bruno Haible  <bruno@clisp.org>
54900
54901         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54902         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
54903         get removed.
54904
54905 2006-07-29  Bruno Haible  <bruno@clisp.org>
54906
54907         Make it possible for gnulib-tool to work with locally modified or
54908         augmented gnulib repositories.
54909         * gnulib-tool (func_usage): Document --local-dir option.
54910         (local_gnulib_dir): New variable.
54911         Handle --local-dir option.
54912         (func_lookup_file): New function.
54913         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
54914         (func_get_description, func_get_filelist, func_get_description,
54915         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
54916         func_get_automake_snippet, func_get_include_directive,
54917         func_get_license, func_get_maintainer): Use func_lookup_file.
54918         (func_import, func_create_testdir): Use func_lookup_file.
54919
54920 2006-07-29  Bruno Haible  <bruno@clisp.org>
54921
54922         * modules/setenv (Depends-on): Add unistd.
54923
54924 2006-07-29  Bruno Haible  <bruno@clisp.org>
54925
54926         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
54927
54928 2006-07-29  Bruno Haible  <bruno@clisp.org>
54929
54930         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
54931
54932 2006-07-29  Bruno Haible  <bruno@clisp.org>
54933
54934         * gnulib-tool (import, update): If there is no Makefile.am, look at
54935         aclocal.m4, instead of bailing out.
54936
54937 2006-07-29  Bruno Haible  <bruno@clisp.org>
54938
54939         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
54940         Categorize the options by when they are useful.
54941
54942 2006-07-29  Bruno Haible  <bruno@clisp.org>
54943
54944         * gnulib-tool (func_usage): Document option --no-libtool.
54945         Handle option --no-libtool.
54946         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
54947         for changed semantics of $libtool variable.
54948         (func_import): Likewise. If libtool is not used, show this through
54949         an option --no-libtool.
54950         (func_create_testdir): Update.
54951
54952 2006-07-29  Bruno Haible  <bruno@clisp.org>
54953
54954         * gnulib-tool (func_import): Extend error message about missing
54955         --doc-base.
54956
54957 2006-07-29  Bruno Haible  <bruno@clisp.org>
54958
54959         * gnulib-tool (func_import): Don't create the $docbase directory if
54960         there is no file to store there.
54961
54962 2006-07-29  Bruno Haible  <bruno@clisp.org>
54963
54964         * gnulib-tool (autoconf_minversion): If a --dir option is given and
54965         relevant, look for configure.ac there, not in the current directory.
54966         Also use a simple search for AC_PREREQ, not "autoconf --trace".
54967
54968 2006-07-29  Bruno Haible  <bruno@clisp.org>
54969
54970         * gnulib-tool (SORT): New variable.
54971         (func_usage): Undocument --assume-autoconf option.
54972         Remove --assume-autoconf option handling.
54973         (autoconf_minversion): Determine from the contents of configure.ac.
54974         (func_import): Remove autoconf_minversion handling.
54975         Suggested by Eric Blake.
54976
54977 2006-07-29  Bruno Haible  <bruno@clisp.org>
54978
54979         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
54980
54981 2006-07-29  Bruno Haible  <bruno@clisp.org>
54982
54983         * config/srclist.txt (*setenv.[ch]): Remove rules.
54984
54985 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54986
54987         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
54988
54989 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54990
54991         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
54992         arpa/inet.h.
54993
54994 2006-07-28  Simon Josefsson  <jas@extundo.com>
54995
54996         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
54997         * modules/inet_pton (Depends-on): Likewise.
54998
54999 2006-07-28  Simon Josefsson  <jas@extundo.com>
55000
55001         * m4/netinet_in_h.m4: New file.
55002
55003 2006-07-28  Simon Josefsson  <jas@extundo.com>
55004
55005         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
55006         #include's.
55007
55008 2006-07-28  Simon Josefsson  <jas@extundo.com>
55009
55010         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
55011         #include's.
55012
55013 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
55014
55015         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
55016         setgid on directories only if they set these bits.
55017         * lib/modechange.h: Remove obsolete comment about masks.
55018
55019 2006-07-28  Eric Blake  <ebb9@byu.net>
55020
55021         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
55022         macro expansion.
55023
55024 2006-07-28  Bruno Haible  <bruno@clisp.org>
55025
55026         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
55027
55028 2006-07-28  Bruno Haible  <bruno@clisp.org>
55029
55030         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
55031
55032 2006-07-28  Bruno Haible  <bruno@clisp.org>
55033
55034         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55035         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55036         Define fallbacks.
55037         Avoids link error on FreeBSD 4.x.
55038         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55039
55040         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
55041         encoding.
55042         * lib/mbswidth.c (iswcntrl): Likewise.
55043
55044 2006-07-27  Bruno Haible  <bruno@clisp.org>
55045
55046         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
55047         test.
55048
55049 2006-07-27  Bruno Haible  <bruno@clisp.org>
55050
55051         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
55052         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
55053         defined.
55054
55055 2006-07-26  Eric Blake  <ebb9@byu.net>
55056
55057         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
55058
55059 2006-07-26  Eric Blake  <ebb9@byu.net>
55060
55061         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
55062         like mingw that lack mkstemp.
55063         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
55064         avoid compilation warning on mingw.
55065
55066 2006-07-26  Bruno Haible  <bruno@clisp.org>
55067
55068         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
55069         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
55070         INT_FAST*_MIN, INTPTR_MIN.
55071
55072 2006-07-25  Bruno Haible  <bruno@clisp.org>
55073
55074         * modules/version-etc (Depends-on): Add stdarg.
55075
55076 2006-07-25  Bruno Haible  <bruno@clisp.org>
55077
55078         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
55079         complex commands.
55080
55081 2006-07-25  Bruno Haible  <bruno@clisp.org>
55082
55083         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
55084         defined in <stdarg.h> or config.h.
55085
55086 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
55087
55088         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
55089         (gl_STDIO_SAFER): Remove.
55090
55091 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
55092
55093         * MODULES.html.sh (File stream based Input/Output):
55094         Add fopen-safer, tmpfile-safer; remove stdio-safer.
55095         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
55096         * modules/fopen-safer, modules/tmpfile-safer: New files.
55097         * modules/stdio-safer: Remove.
55098
55099 2006-07-24  Bruno Haible  <bruno@clisp.org>
55100
55101         * modules/tmpdir: New file.
55102         * MODULES.html.sh (File system functions): Add it.
55103
55104 2006-07-24  Bruno Haible  <bruno@clisp.org>
55105
55106         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
55107         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
55108
55109 2006-07-24  Bruno Haible  <bruno@clisp.org>
55110
55111         * modules/clean-temp: New file.
55112
55113 2006-07-24  Bruno Haible  <bruno@clisp.org>
55114
55115         * m4/tmpdir.m4: New file, from GNU gettext.
55116
55117 2006-07-24  Bruno Haible  <bruno@clisp.org>
55118
55119         * lib/tmpdir.h: New file, from GNU gettext.
55120         * lib/tmpdir.c: New file, from GNU gettext.
55121
55122 2006-07-24  Bruno Haible  <bruno@clisp.org>
55123
55124         * lib/clean-temp.h: New file, from GNU gettext.
55125         * lib/clean-temp.c: New file, from GNU gettext.
55126
55127 2006-07-23  Eric Blake  <ebb9@byu.net>
55128
55129         * modules/stdio-safer (Files): Add tmpfile-safer.c.
55130         (Depends-on): Add binary-io.
55131
55132 2006-07-23  Eric Blake  <ebb9@byu.net>
55133
55134         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
55135
55136 2006-07-23  Eric Blake  <ebb9@byu.net>
55137
55138         * lib/tmpfile-safer.c: New file.
55139         * lib/stdio-safer.h (fopen_safer): Add prototype.
55140         * lib/stdio--.h (tmpfile): Make safer.
55141
55142 2006-07-23  Bruno Haible  <bruno@clisp.org>
55143
55144         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
55145         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
55146         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
55147         gl_linked_remove_at): Use it.
55148
55149 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55150         and Simon Josefsson <jas@extundo.com>
55151
55152         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
55153
55154         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
55155
55156 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55157
55158         * modules/close-stream: New file.
55159         * modules/closeout (Description): Make it clear that it exits
55160         with a diagnostic on error.
55161         (Depends-on): Add close-stream.  Remove fpending, stdbool.
55162         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
55163
55164 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55165
55166         * m4/close-stream.m4: New file.
55167
55168 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55169
55170         * lib/close-stream.c, lib/close-stream.h: New files.
55171
55172 2006-07-22  Bruno Haible  <bruno@clisp.org>
55173
55174         Merge from GNU gettext 0.15.
55175
55176         2006-05-01  Bruno Haible  <bruno@clisp.org>
55177
55178                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
55179
55180         2006-07-22  Bruno Haible  <bruno@clisp.org>
55181
55182                 * modules/javaversion: New file.
55183                 * MODULES.html.sh (Java): Add javaversion.
55184
55185         2006-03-12  Bruno Haible  <bruno@clisp.org>
55186
55187                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
55188
55189         2005-12-04  Bruno Haible  <bruno@clisp.org>
55190
55191                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
55192                 (untested).
55193
55194         2006-06-21  Bruno Haible  <bruno@clisp.org>
55195
55196                 Avoid warnings from recent versions of mcs.
55197                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
55198                 -o, -L, -r any more. Use options documented since mcs-1.0
55199                 instead. Similarly for -g.
55200
55201         2005-12-04  Bruno Haible  <bruno@clisp.org>
55202
55203                 * build-aux/csharpcomp.sh.in: Suffix for resources is
55204                 .resources, not .resource.
55205
55206         2005-07-09  Bruno Haible  <bruno@clisp.org>
55207
55208                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
55209                 add a .dll suffix.
55210                 Reported by Mark Junker <mjscod@gmx.de>.
55211
55212         2006-07-22  Bruno Haible  <bruno@clisp.org>
55213
55214                 * modules/gettext: Upgrade to gettext-0.15.
55215                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
55216                 m4/visibility.m4.
55217                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
55218
55219 2006-07-22  Bruno Haible  <bruno@clisp.org>
55220
55221         Merge from GNU gettext 0.15.
55222
55223         2006-03-25  Bruno Haible  <bruno@clisp.org>
55224
55225                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
55226
55227         2006-07-21  Bruno Haible  <bruno@clisp.org>
55228
55229                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
55230                 "1.1".
55231
55232         2006-05-09  Bruno Haible  <bruno@clisp.org>
55233
55234                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
55235                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
55236                 for the conftestver execution.
55237
55238         2006-05-01  Bruno Haible  <bruno@clisp.org>
55239
55240                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
55241                 optional target-version argument. Verify that the compiler
55242                 groks source of the specified source-version, or add -source
55243                 option as necessary. Verify that the compiler produces
55244                 bytecode in the specified target-version, or add -target and
55245                 -source options as necessary. Make the result of the test
55246                 available as variable CONF_JAVAC. Also log error output in
55247                 config.log.
55248
55249         2006-03-11  Bruno Haible  <bruno@clisp.org>
55250
55251                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
55252
55253         2006-05-09  Bruno Haible  <bruno@clisp.org>
55254
55255                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
55256                 CLASSPATH_SEPARATOR to a semicolon.
55257
55258         2006-03-12  Bruno Haible  <bruno@clisp.org>
55259
55260                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
55261                 available as variable CONF_JAVA, for subsequent autoconf
55262                 tests. Also log error output in config.log.
55263
55264         2006-07-19  Bruno Haible  <bruno@clisp.org>
55265
55266                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
55267                 that getline works on glibc2 systems. Needed to avoid trouble
55268                 in relocatable.c.
55269                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
55270
55271         2005-12-04  Bruno Haible  <bruno@clisp.org>
55272
55273                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
55274                 launcher (untested).
55275
55276         2005-12-04  Bruno Haible  <bruno@clisp.org>
55277
55278                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
55279
55280         2006-07-22  Bruno Haible  <bruno@clisp.org>
55281
55282                 * gettext.m4: Update from GNU gettext-0.15.
55283                 * nls.m4: Likewise.
55284                 * po.m4: Likewise.
55285                 * inttypes-pri.m4: Likewise.
55286                 * inttypes-h.m4: Renamed from inttypes.m4.
55287                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
55288
55289 2006-07-22  Bruno Haible  <bruno@clisp.org>
55290
55291         Merge from GNU gettext 0.15.
55292
55293         2005-07-05  Bruno Haible  <bruno@clisp.org>
55294
55295                 * printf-args.c (printf_fetchargs): Work around broken
55296                 definition of wint_t on mingw.
55297
55298         2005-02-12  Bruno Haible  <bruno@clisp.org>
55299
55300                 * xallocsa.h: Add extern "C" for C++.
55301
55302         2006-05-17  Bruno Haible  <bruno@clisp.org>
55303
55304                 Cygwin portability.
55305                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
55306
55307         2006-04-30  Bruno Haible  <bruno@clisp.org>
55308
55309                 * progreloc.c: Include <mach-o/dyld.h> if available.
55310                 (find_executable): Use _NSGetExecutablePath when possible.
55311
55312         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55313
55314                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
55315                 function.
55316
55317         2005-12-29  Bruno Haible  <bruno@clisp.org>
55318
55319                 * progreloc.c (set_program_name_and_installdir): Fix
55320                 compilation error.
55321
55322         2005-12-04  Bruno Haible  <bruno@clisp.org>
55323
55324                 Cygwin portability.
55325                 * progreloc.c: Include <windows.h> also on Cygwin.
55326                 (find_executable): Add support for Cygwin.
55327                 (set_program_name_and_installdir): Handle also platforms with
55328                 nonempty EXEEXT.
55329
55330         2006-07-11  Bruno Haible  <bruno@clisp.org>
55331
55332                 * javacomp.c: Fix a comment.
55333                 Reported by Jim Meyering.
55334
55335         2006-04-30  Bruno Haible  <bruno@clisp.org>
55336
55337                 * javacomp.h (compile_java_class): Add source_version,
55338                 target_version arguments.
55339                 * javacomp.c: Rewritten to choose only a compiler that
55340                 respects the specified source_version and target_version.
55341
55342         2006-06-27  Bruno Haible  <bruno@clisp.org>
55343
55344                 Assume correct S_ISDIR macro.
55345                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
55346
55347         2006-07-22  Bruno Haible  <bruno@clisp.org>
55348
55349                 * javaversion.h: New file, from GNU gettext.
55350                 * javaversion.c: New file, from GNU gettext.
55351                 * javaversion.java: New file, from GNU gettext.
55352                 * javaversion.class: New file, from GNU gettext.
55353
55354         2006-05-17  Bruno Haible  <bruno@clisp.org>
55355
55356                 Cygwin portability.
55357                 * javaexec.c (execute_java_class): Test for jview program
55358                 also on Cygwin.
55359
55360         2006-04-09  Bruno Haible  <bruno@clisp.org>
55361
55362                 * fatal-signal.c: Don't include string.h.
55363                 (at_fatal_signal): Use a copying loop instead of memcpy.
55364
55365         2005-12-04  Bruno Haible  <bruno@clisp.org>
55366
55367                 * csharpexec.c: Add support for 'clix' launcher (untested).
55368                 (execute_csharp_using_sscli): New function.
55369                 (execute_csharp_program): Call it.
55370
55371         2006-06-21  Bruno Haible  <bruno@clisp.org>
55372
55373                 Avoid warnings from recent versions of mcs.
55374                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
55375                 -o, -L, -r any more. Use options documented since mcs-1.0
55376                 instead. Similarly for -g.
55377
55378         2005-07-09  Bruno Haible  <bruno@clisp.org>
55379
55380                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
55381                 add a .dll suffix.
55382                 Reported by Mark Junker <mjscod@gmx.de>.
55383
55384         2006-06-17  Bruno Haible  <bruno@clisp.org>
55385
55386                 * config.charset: Update for NetBSD 3.0.
55387
55388         2006-05-17  Bruno Haible  <bruno@clisp.org>
55389
55390                 Cygwin portability.
55391                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
55392
55393         2006-05-16  Bruno Haible  <bruno@clisp.org>
55394
55395                 * localcharset.c [CYGWIN]: Include <windows.h>.
55396                 (get_charset_aliases): For Cygwin, return the same CPxxx
55397                 aliases list as under WIN32.
55398                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
55399                 the environment variables. Fall back to GetACP().
55400
55401         2006-04-05  Bruno Haible  <bruno@clisp.org>
55402
55403                 * config.charset: Update Juan Manuel Guerrero's address.
55404
55405         2005-02-12  Bruno Haible  <bruno@clisp.org>
55406
55407                 * allocsa.h: Add extern "C" for C++.
55408
55409         2005-02-10  Bruno Haible  <bruno@clisp.org>
55410
55411                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
55412                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
55413
55414         2006-07-22  Bruno Haible  <bruno@clisp.org>
55415
55416                 * gettext.h: Update to GNU gettext-0.15.
55417
55418 2006-07-22  Bruno Haible  <bruno@clisp.org>
55419
55420         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
55421         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
55422         lib-prefix.m4, longdouble.m4, ssize_t.m4.
55423
55424 2006-07-21  Eric Blake  <ebb9@byu.net>
55425
55426         * modules/stdlib-safer: New file.
55427         * MODULES.html.sh (File stream based Input/Output): Add
55428         stdlib-safer.
55429
55430 2006-07-21  Eric Blake  <ebb9@byu.net>
55431
55432         * lib/stdlib-safer.h: New file from coreutils, required by
55433         stdlib--.h.
55434
55435 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
55436
55437         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
55438
55439 2006-07-20  Bruno Haible  <bruno@clisp.org>
55440
55441         * gnulib-tool: Recognize new option --assume-autoconf.
55442         (autoconf_minversion): New variable.
55443         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
55444
55445 2006-07-20  Bruno Haible  <bruno@clisp.org>
55446
55447         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
55448
55449 2006-07-19  Derek R. Price  <derek@ximbiot.com>
55450
55451         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
55452         Reindent and repaginate.
55453
55454 2006-07-19  Derek Price  <derek@ximbiot.com>
55455
55456         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
55457         Correct grammar.
55458
55459 2006-07-17  Bruno Haible  <bruno@clisp.org>
55460
55461         * modules/list: New file.
55462         * modules/array-list: New file.
55463         * modules/carray-list, modules/carray-list-tests: New files.
55464         * modules/linked-list, modules/linked-list-tests: New files.
55465         * modules/avltree-list, modules/avltree-list-tests: New files.
55466         * modules/rbtree-list, modules/rbtree-list-tests: New files.
55467         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
55468         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
55469         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
55470         * modules/oset: New file.
55471         * modules/array-oset: New file.
55472         * modules/avltree-oset, modules/avltree-oset-tests: New files.
55473         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
55474         * tests/test-carray_list.c: New file.
55475         * tests/test-linked_list.c: New file.
55476         * tests/test-avltree_list.c: New file.
55477         * tests/test-rbtree_list.c: New file.
55478         * tests/test-linkedhash_list.c: New file.
55479         * tests/test-avltreehash_list.c: New file.
55480         * tests/test-rbtreehash_list.c: New file.
55481         * tests/test-avltree_oset.c: New file.
55482         * tests/test-rbtree_oset.c: New file.
55483         * MODULES.html.sh (Container data structures): New section.
55484
55485 2006-07-17  Bruno Haible  <bruno@clisp.org>
55486
55487         * m4/gl_list.m4: New file.
55488
55489 2006-07-17  Bruno Haible  <bruno@clisp.org>
55490
55491         * lib/gl_list.h: New file.
55492         * lib/gl_list.c: New file.
55493         * lib/gl_array_list.h: New file.
55494         * lib/gl_array_list.c: New file.
55495         * lib/gl_carray_list.h: New file.
55496         * lib/gl_carray_list.c: New file.
55497         * lib/gl_linked_list.h: New file.
55498         * lib/gl_linked_list.c: New file.
55499         * lib/gl_anylinked_list1.h: New file.
55500         * lib/gl_anylinked_list2.h: New file.
55501         * lib/gl_avltree_list.h: New file.
55502         * lib/gl_avltree_list.c: New file.
55503         * lib/gl_anyavltree_list1.h: New file.
55504         * lib/gl_anyavltree_list2.h: New file.
55505         * lib/gl_rbtree_list.h: New file.
55506         * lib/gl_rbtree_list.c: New file.
55507         * lib/gl_anyrbtree_list1.h: New file.
55508         * lib/gl_anyrbtree_list2.h: New file.
55509         * lib/gl_anytree_list1.h: New file.
55510         * lib/gl_anytree_list2.h: New file.
55511         * lib/gl_linkedhash_list.h: New file.
55512         * lib/gl_linkedhash_list.c: New file.
55513         * lib/gl_anyhash_list1.h: New file.
55514         * lib/gl_anyhash_list2.h: New file.
55515         * lib/gl_avltreehash_list.h: New file.
55516         * lib/gl_avltreehash_list.c: New file.
55517         * lib/gl_rbtreehash_list.h: New file.
55518         * lib/gl_rbtreehash_list.c: New file.
55519         * lib/gl_anytreehash_list1.h: New file.
55520         * lib/gl_anytreehash_list2.h: New file.
55521
55522         * lib/gl_oset.h: New file.
55523         * lib/gl_oset.c: New file.
55524         * lib/gl_array_oset.h: New file.
55525         * lib/gl_array_oset.c: New file.
55526         * lib/gl_avltree_oset.h: New file.
55527         * lib/gl_avltree_oset.c: New file.
55528         * lib/gl_rbtree_oset.h: New file.
55529         * lib/gl_rbtree_oset.c: New file.
55530         * lib/gl_anytree_oset.h: New file.
55531
55532 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55533
55534         * m4/mkancesdirs.m4: New file.
55535         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
55536         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
55537         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
55538         it.
55539
55540 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55541
55542         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
55543         * lib/mkancesdirs.h: New files.
55544         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
55545         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
55546         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
55547         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
55548         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
55549         callers changed.  Revamp internals significantly, by not
55550         attempting to create directories that are temporarily more
55551         permissive than the final results.  Do not attempt to use
55552         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
55553         This removes some race conditions, fixes some bugs, and simplifies
55554         things.  Use new dirchownmod function to do owner and mode changes.
55555         * lib/mkdir-p.h: Likewise.
55556         * lib/modechange.c (octal_to_mode): New function.
55557         (struct mode_change): New member mentioned.
55558         (make_node_op_equals): New arg mentioned.  All callers changed.
55559         (mode_compile): Keep track of which mode bits the user has explicitly
55560         mentioned.
55561         (mode_adjust): New arg DIR, so that we implement the X op correctly.
55562         New arg PMODE_BITS, to keep track of which mode bits the user
55563         mentioned; it treats S_ISUID and S_ISGID speciall.
55564         All callers changed.
55565         * lib/modechange.h: Likewise.
55566
55567 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55568
55569         * MODULES.html.sh: Add mkancestors.
55570         * modules/mkancesdirs: New module.
55571         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
55572         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
55573         The chdir-safer and afs files are now orphans; I'll remove them
55574         unless someone speaks up.
55575         Add lib/dirchownmod.c, lib/dirchownmod.h.
55576         (Depends-on): Remove alloca, chown, save-cwd, dirname.
55577         Add lchown, mkancesdirs.
55578         (Maintainer): Add self.
55579
55580 2006-07-15  Karl Berry  <karl@gnu.org>
55581
55582         * gnulib-tool: help message wording/arrangement.
55583
55584 2006-07-14  Simon Josefsson  <jas@extundo.com>
55585
55586         * doc/gnulib.texi (Libtool and Windows): New section.
55587
55588 2006-07-12  Simon Josefsson  <jas@extundo.com>
55589
55590         * modules/gendocs (License): Fix license, approved by Karl.
55591
55592 2006-07-12  Eric Blake  <ebb9@byu.net>
55593
55594         * MODULES.html.sh: Add gendocs.
55595
55596 2006-07-11  Eric Blake  <ebb9@byu.net>
55597
55598         * modules/fdl: New module, to install doc/fdl.texi.
55599         * MODULES.html.sh: Add new section for documentation modules.
55600         * gnulib-tool: Avoid space-tab.
55601         (--doc-base): New option, to manage files from doc.
55602
55603 2006-07-11  Eric Blake  <ebb9@byu.net>
55604
55605         * m4/absolute-header.m4: Fix comments to match recent change.
55606
55607 2006-07-11  Eric Blake  <ebb9@byu.net>
55608
55609         * gnulib-tool: List --doc-base before --tests-base.
55610
55611 2006-07-11  Derek R. Price  <derek@ximbiot.com>
55612
55613         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
55614
55615 2006-07-11  Bruno Haible  <bruno@clisp.org>
55616
55617         * README: Mention where to put documentation.
55618
55619 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55620
55621         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
55622
55623 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55624
55625         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
55626         to stdint.m4.
55627
55628 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55629
55630         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
55631         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
55632         "no/such/file/stdint.h" when there is no such file, so that
55633         the resulting C code can be parsed by dodgy compilers.
55634         Problems reported by Bob Proulx.
55635
55636 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55637
55638         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
55639         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55640         macros into the GNU _D_EXACT_NAMLEN.
55641         * lib/savedir.c:  Likewise.
55642         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
55643
55644 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55645         and Paul Eggert  <eggert@cs.ucla.edu>
55646
55647         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
55648         * m4/savedir.m4:
55649         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55650         macros into the GNU _D_EXACT_NAMLEN.
55651
55652 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55653
55654         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
55655         around the absolute name, to work around a problem with the HP-UX
55656         11.23 native C compiler, reported by Bob Proulx.
55657
55658 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55659
55660         * doc/maintain.texi, make-stds.texi: Sync from
55661         <http://savannah.gnu.org/projects/gnustandards>.
55662
55663 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55664
55665         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
55666
55667 2006-07-09  Jim Meyering  <jim@meyering.net>
55668
55669         * m4/glob.m4: Remove a doubled word in a comment.
55670
55671 2006-07-09  Jim Meyering  <jim@meyering.net>
55672
55673         * lib/argp-pv.c: Remove a doubled word in a comment.
55674         * lib/check-version.c (check_version): Likewise.
55675         * lib/javacomp.c (compile_java_class): Likewise.
55676
55677 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55678
55679         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
55680         for the benefit of people using Autoconf 2.60.  If you want to
55681         support older Autoconf versions you can copy m4/onceonly_2_57.m4
55682         (or m4/onceonly.m4, if pre-2.57) manually.
55683
55684 2006-07-08  Jim Meyering  <jim@meyering.net>
55685
55686         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
55687         comment.
55688         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
55689         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
55690         comment.
55691
55692 2006-07-08  Jim Meyering  <jim@meyering.net>
55693
55694         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
55695
55696 2006-07-07  Simon Josefsson  <jas@extundo.com>
55697
55698         * tests/test-crc.c: Change expected crc value, the test vector
55699         were probably computed using the old broken crc.c?
55700
55701 2006-07-06  Simon Josefsson  <jas@extundo.com>
55702
55703         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
55704         now the canonical place for the M4 file).
55705
55706         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
55707         from the sys_socket dependency now.
55708
55709         * modules/inet_pton (Files): Ditto.
55710
55711         * modules/inet_ntop (Files): Ditto.
55712
55713 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55714
55715         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
55716         not gl_PREREQ_GETUSERSHELL.
55717
55718 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55719
55720         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
55721         with only one argument, for Autoconf 2.60.
55722         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
55723         expand to nothing, so add a shell command to avoid syntax error.
55724         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
55725
55726 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55727
55728         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
55729
55730 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55731
55732         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
55733         no longer needed.  Check for isblank decl.
55734         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
55735         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
55736         of existence.
55737
55738 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55739
55740         * lib/getloadavg.c: Use __VMS, not VMS.
55741         * lib/getopt.c: Likewise.
55742         * lib/getpagesize.h: Likewise.
55743         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
55744         and probably does not work.
55745
55746 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55747
55748         * lib/.cppi-disable: Add wcwidth.
55749         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
55750         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
55751         (ISGRAPH): Remove.  All uses changed to isgraph.
55752         (FOLD) [!defined _LIBC]: Remove special case.
55753         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
55754         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
55755         HAVE_ISBLANK.
55756         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
55757         case.
55758
55759 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55760
55761         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
55762         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
55763         brackets.  Other minor changes to suppress some compiler
55764         warnings.
55765
55766 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55767         and Paul Eggert  <eggert@cs.ucla.edu>
55768
55769         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
55770         of invoking obsolescent AC_HEADER_DIRENT macro.
55771         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
55772         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
55773         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
55774         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
55775         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
55776         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55777         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
55778         * m4/readdir.m4: Remove; no longer needed.
55779
55780 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55781         and Paul Eggert  <eggert@cs.ucla.edu>
55782
55783         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
55784         Don't worry about this obsolete case any more.
55785         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
55786         directories.
55787         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
55788         worry about this obsolete case any more.
55789         * lib/fts.c: Likewise.
55790         * lib/getcwd.c: Likewise.
55791         * lib/glob.h: Likewise.
55792         * lib/savedir.c: Likewise.
55793
55794 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55795
55796         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
55797         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
55798         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
55799         needed.
55800         All uses removed.
55801         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55802         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55803         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
55804         needed.
55805         * m4/getdate.m4 (gl_GETDATE): Likewise.
55806         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55807         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55808         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55809         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55810         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55811         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55812         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
55813         needed.
55814
55815 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55816
55817         * lib/memcasecmp.c: Include <limits.h>.
55818         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
55819         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
55820         Don't assume isdigit succeeds only on '0' through '9'.
55821
55822 2006-07-05  Eric Blake  <ebb9@byu.net>
55823
55824         * modules/getaddrinfo (Depends-on): Add snprintf.
55825
55826 2006-07-05  Eric Blake  <ebb9@byu.net>
55827
55828         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
55829         to avoid 'header present but could not be compiled' on cygwin.
55830
55831 2006-07-05  Eric Blake  <ebb9@byu.net>
55832
55833         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
55834         missing from netdb.h.
55835         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
55836
55837 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55838
55839         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
55840         no longer needed.
55841         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
55842         * m4/getdate.m4 (gl_GETDATE): Likewise.
55843         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55844         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55845         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55846         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55847         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55848
55849 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55850
55851         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
55852         All uses of is_space replaced by isspace.
55853         * lib/exit.h: Don't talk about STDC_HEADERS.
55854         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
55855         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
55856         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
55857         replaced by isprint etc.
55858         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
55859         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55860         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
55861         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
55862         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
55863         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55864
55865 2006-07-05  Bruno Haible  <bruno@clisp.org>
55866
55867         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
55868         the function exists, before testing against AIX.
55869         Reported by Martin Lambers <marlam@marlam.de>.
55870
55871 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55872
55873         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
55874         From Mark D. Baushke.
55875
55876 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55877
55878         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
55879         to the absolute name, not just one, to bypass Sun C 5.8's
55880         "warning: #include of /usr/include/... may be non-portable".
55881
55882 2006-07-04  Eric Blake  <ebb9@byu.net>
55883
55884         * modules/dirname-tests: New test module.
55885         * tests/test-dirname.c: New file, replacing dirname.c
55886         TEST_DIRNAME section that was recently deleted.
55887
55888 2006-07-04  Bruno Haible  <bruno@clisp.org>
55889
55890         Assume ANSI C header files and <ctype.h> functions.
55891         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
55892         (mbsnwidth): Use isprint, iscntrl instead.
55893
55894 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55895
55896         Merge from coreutils.
55897         * MODULES.html.sh: Add xstrtold.
55898         * modules/xstrtold: New file.
55899         * modules/cycle-check (Files): Add lib/same-inode.h.
55900         * modules/dirname (Files): Add m4/double-slash-root.m4.
55901         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
55902         * modules/mkdir-p (Files): Add lib/same-inode.h.
55903         * modules/same (Files): Add lib/same-inode.h.
55904
55905 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55906
55907         * m4/absolute-header.m4: Renamed from full-header-path.m4.
55908         This is to keep the terminology clean; POSIX talks about
55909         "absolute pathnames", not "full pathnames", but the GNU
55910         Coding Standards say to use "path" for something else;
55911         so use "absolute" to keep both sides happy.
55912         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
55913         Set gl_absolute_header, not gl_full_header_path.
55914         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
55915         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
55916         All uses changed.
55917
55918         Merge from coreutils.
55919
55920         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55921
55922         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
55923         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
55924         want to require the building of c-strtod.o.
55925         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
55926         needs -lm directly.
55927         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
55928
55929         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
55930
55931         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
55932         --as-needed option if available.  Problem reported by Albert Chin in
55933         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
55934         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
55935         cc merely issues a bunch of annoying warnings for --as-needed
55936         (this problem was reported by Bob Proulx).  Also, try linking with
55937         -lm to detect a bug in binutils 2.16 (this problem was reported
55938         by Ralf Wildenhues).
55939
55940         2006-06-18  Jim Meyering  <jim@meyering.net>
55941
55942         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
55943         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
55944         macro.
55945         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
55946         also check for glibc-2.4's abort-inducing bug.
55947
55948         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
55949         Low-probability clean-up should be to use rmdir to get rid of
55950         the just-created directory, not unlink.
55951
55952         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
55953         configure fail, and request a bug report to inform us about it.
55954         Add a comment that, barring reports to the contrary, in 2007 we'll
55955         assume ftruncate is universally available.
55956
55957         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55958
55959         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
55960
55961         2006-03-12  Jim Meyering  <jim@meyering.net>
55962
55963         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
55964         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
55965         * m4/same.m4 (gl_SAME): Likewise.
55966         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
55967
55968         2006-03-11  Eric Blake  <ebb9@byu.net>
55969
55970         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
55971         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
55972         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
55973         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
55974
55975 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55976
55977         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
55978         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
55979         reported by Mark D. Baushke, one in
55980         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
55981
55982         Merge from coreutils.
55983
55984         * lib/.cppi-disable: Add stdint_.h.
55985         * lib/.cvsignore: Add stdint.h.
55986
55987         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55988
55989         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
55990         both double and long double versions.
55991         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
55992         * lib/xstrtold.c: New file.
55993         * lib/xstrtod.h (xstrtold): New decl.
55994
55995         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55996
55997         * lib/filemode.c (setst): Remove.
55998         (strmode): Rewrite to avoid setst.  This makes the code shorter,
55999         (arguably) clearer, and the generated code is a bit smaller on my
56000         Debian GNU/Linux stable x86 host.
56001
56002         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
56003
56004         * lib/filemode.c: Include "filemode.h" first, to test the interface.
56005         Assume that filemode.h includes sys/types.h and sys/stat.h.
56006         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
56007         (ftypelet): Reorder to put common cases first, for efficiency.
56008         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
56009         to do 'M'.
56010         (strmode): Renamed from mode_string, and now stores 12 bytes instead
56011         of 10, for compatibility with FreeBSD.  All callers changed.
56012         (filemodestring): Now stores 12 bytes instead of 10, and sets file
56013         types that can't be deduced solely from st_mode.  First arg is now a
56014         const pointer.
56015         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
56016         (strmode): Renamed from mode_string.
56017         (filemodestring): New decl.
56018         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
56019         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
56020         needed.
56021         (S_ISPORT, S_ISWHT): New macros, if not already defined.
56022
56023         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56024
56025         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
56026         fsusage.h now does that.  Include fsusage.h first, to test interface.
56027         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
56028         at most one method (the old code could have generated decls that
56029         didn't conform to C89, not that this was ever exercised).
56030         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
56031
56032         2006-03-19  Jim Meyering  <jim@meyering.net>
56033
56034         Work even in a chroot where d_ino values for entries in "/"
56035         don't match the stat.st_ino values for the same names.
56036         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
56037         number, iterate through all entries again, using lstat instead.
56038         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
56039         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
56040
56041         * lib/getcwd.c (__getcwd): Clarify a comment.
56042         Use memcpy in place of a call to strcpy.
56043
56044         2006-03-12  Jim Meyering  <jim@meyering.net>
56045
56046         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
56047         matches that of the current directory (which we're about to chdir ".."
56048         out of), then save the dev-ino of the parent, instead.
56049
56050         * lib/same-inode.h (SAME_INODE): New file/macro.
56051         * lib/chdir-safer.c (SAME_INODE): Remove definition.
56052         Include "same-inode.h", instead.
56053         * lib/same.c: Likewise.
56054         * lib/cycle-check.h: Include "same-inode.h".
56055         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
56056         * lib/cycle-check.c (SAME_INODE): Remove definition.
56057         * lib/root-dev-ino.h: Include "same-inode.h".
56058
56059         2006-03-11  Eric Blake  <ebb9@byu.net>
56060
56061         * lib/same.c (same_name): s/base_name/last_component/
56062         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
56063         * lib/filenamecat.c (file_name_concat): Likewise.
56064
56065         2006-03-11  Eric Blake  <ebb9@byu.net>,
56066                     Paul Eggert  <eggert@cs.ucla.edu>
56067
56068         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
56069         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
56070         drive prefix.
56071         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
56072         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
56073         (last_component): New method.
56074         * lib/dirname.c (dir_len): Determine when drive letters need a
56075         subsequent slash.  Preserve // when it is special.
56076         (dir_name): Don't append dot when drive letter is absolute.
56077         [TEST_DIRNAME]: Move into a full-blown gnulib test.
56078         * lib/basename.c (base_name): New semantics - malloc the result.
56079         Preserve // when it is special.  Preserve relative files that look
56080         like drive letters.
56081         (base_len): Preserve // when it is special.
56082         (last_component): New method, similar to old base_name semantics.
56083         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
56084         base_name.  Strip redundant slashes from ///.
56085
56086 2006-07-03  Jim Meyering  <jim@meyering.net>
56087
56088         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
56089         macro is used before the first cycle_check call.
56090
56091 2006-07-03  Eric Blake  <ebb9@byu.net>
56092
56093         * modules/dirname (Depends-on): Add xstrndup.
56094
56095 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56096
56097         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
56098         test cases, so that config.log is a bit easier to follow.
56099
56100 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56101
56102         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
56103         both are 64 bits, since this seems to be the tradition, and this
56104         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
56105         we ever run into a host that prefers long long to long in this
56106         case, we'll need another configure-time test.  Problem reported by
56107         Jim Meyering.
56108
56109 2006-07-02  Eric Blake  <ebb9@byu.net>
56110
56111         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
56112
56113 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56114
56115         * modules/inttypes (Depends-on): No longer depends on stdint.
56116         * modules/stdint (Description): Say more about assumptions.
56117         Say that the fast types might differ.  Say macros are used.
56118         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
56119         (Makefile.am): Revise list of substituted symbols to match
56120         new stdint.m4.
56121         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
56122         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
56123         * tests/test-stdint.c (verify_same_types)
56124         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
56125         the code conforms to C99/C89.
56126         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
56127         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
56128
56129 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56130
56131         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
56132         but fix a bug, by requiring at least 64 bits.
56133         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56134         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
56135         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
56136         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
56137
56138         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
56139         changes.  Make 2.59 a prerequisite.  Check and substitute for
56140         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
56141         inttypes.h.  Do not use special include files; just use the
56142         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
56143         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
56144         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
56145         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
56146         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
56147         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
56148         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
56149         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
56150         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
56151         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
56152         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
56153         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
56154         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
56155         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
56156         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
56157         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
56158         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
56159         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
56160         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
56161         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
56162         WINT_MAX.  Check for C99 conformance more strictly, by detecting
56163         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
56164         not check for things that C99 does not require, e.g., int8_t.  If
56165         a test isn't needed unless <stdint.h> isn't working, and is
56166         unlikely to be needed for any other reason, then don't do it
56167         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
56168         size_t, since we assume C89 freestanding at least.  Do not check
56169         for sig_atomic_t, wchar_t, or wint_t, since the code now does
56170         the right thing even if the types are not defined.  Instead use:
56171         (gl_STDINT_TYPE_PROPERTIES): New macro.
56172         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
56173         testing whether <sys/types.h> clashes, as Autoconf does this for
56174         us now.  All uses removed.
56175         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
56176         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
56177         (gl_CHECK_TYPE_SAME):
56178         Remove; no longer needed.
56179         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
56180         exists, since we'll return 0 anyway in that case.
56181         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
56182
56183 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56184
56185         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
56186         possible collision with system files.
56187         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
56188         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
56189         WCHAR_MIN and WCHAR_MAX in this case.
56190         (<stddef.h>): Do not include; no longer needed.
56191         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
56192         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
56193         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
56194         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
56195         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
56196         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
56197         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
56198         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
56199         !defined(__c99))]: Include in this case too, since it's harmless
56200         now.
56201         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
56202         dangerous to do so.
56203         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
56204         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
56205         (_STDINT_MIN, _STDINT_MAX): New macros.
56206         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
56207         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
56208         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
56209         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
56210         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
56211         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
56212         macros, not typedefs; this simplifies things quite a bit.
56213         Use long int for all types narrower than int64_t.
56214         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
56215         Define in terms of long long int or int64_t or long int,
56216         not int64_t or int32_t.  This saves some compile-time testing.
56217         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
56218         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
56219         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
56220         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
56221         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
56222         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
56223         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
56224         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
56225         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
56226         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
56227         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56228         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56229         undef any previous version and define our own version, for
56230         simplicity and consistency with the new macros for types.
56231         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56232         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56233         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
56234         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
56235         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
56236         @WINT_T_SUFFIX@ to keep things simple here.
56237         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
56238         Simplify by assuming typical 8/16/32/64 host, since we're
56239         already doing that elsewhere anyway.
56240         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
56241         and assume long long int is 64 bits if available.  This
56242         speeds up 'configure'.
56243
56244 2006-07-01  Eric Blake  <ebb9@byu.net>
56245
56246         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
56247         Reported by Andreas Buening.
56248
56249 2006-07-01  Eric Blake  <ebb9@byu.net>
56250
56251         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
56252
56253 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
56254
56255         * lib/getaddrinfo.c: fixed typo
56256
56257 2006-06-29  Jim Meyering  <jim@meyering.net>
56258
56259         * modules/strftime (Maintainer): Add my name, since with the
56260         FPRINTFTIME changes strftime.c has forked from glibc.
56261
56262 2006-06-29  Eric Blake  <ebb9@byu.net>
56263
56264         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
56265
56266 2006-06-29  Eric Blake  <ebb9@byu.net>
56267
56268         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
56269
56270 2006-06-29  Eric Blake  <ebb9@byu.net>
56271
56272         * lib/stat_.h: New file.
56273
56274 2006-06-29  Eric Blake  <ebb9@byu.net>
56275
56276         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
56277         unused static function.
56278
56279 2006-06-29  Eric Blake  <ebb9@byu.net>
56280
56281         * doc/functions.texi (Function Portability): Document missing lstat
56282         on mingw.
56283
56284 2006-06-29  Eric Blake  <ebb9@byu.net>
56285
56286         * MODULES.html.sh: Add sys_stat.
56287         * modules/sys_stat: New module.
56288         * modules/mkstemp (Depends-on): Add sys_stat.
56289
56290 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56291
56292         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
56293
56294 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56295
56296         * m4/c-bs-a.m4: Removed.
56297
56298 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56299
56300         * lib/strftime.c: Assume strftime() exists.
56301
56302 2006-06-29  Derek Price  <derek@ximbiot.com>
56303
56304         * modules/c-bs-a: Removed - \a is C89.
56305         * MODULES.html.sh: Remove c-bs-a.
56306
56307 2006-06-29  Bruno Haible  <bruno@clisp.org>
56308
56309         * modules/wcwidth (License): Change to LGPL.
56310
56311 2006-06-28  Simon Josefsson  <jas@extundo.com>
56312
56313         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
56314         on _WIN32.
56315
56316         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
56317         getnameinfo.
56318
56319 2006-06-28  Simon Josefsson  <jas@extundo.com>
56320
56321         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
56322
56323 2006-06-28  Simon Josefsson  <jas@extundo.com>
56324
56325         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
56326         functions there.  It will succeed on Windows XP, but on Windows
56327         2000 and (presumably) earlier, it will fail, and use the internal
56328         re-implementation.
56329         (use_win32_p): New function.
56330         (getaddrinfo): Use strtoul on servname, to support numeric ports.
56331         Support AI_NUMERICSERV to disable getservbyname.
56332         (getnameinfo): New function, only supports
56333         NI_NUMERICHOST|NI_NUMERICSERV for now.
56334
56335         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
56336         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
56337         getnameinfo.
56338
56339 2006-06-28  Eric Blake  <ebb9@byu.net>
56340
56341         * modules/wcwidth: New file.
56342         * modules/mbchar (Depends-on): Add wcwidth.
56343         * modules/mbswidth (Depends-on): Add wcwidth.
56344         * MODULES.html.sh: Add wcwidth.
56345
56346 2006-06-28  Eric Blake  <ebb9@byu.net>
56347
56348         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
56349         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
56350
56351 2006-06-28  Eric Blake  <ebb9@byu.net>
56352
56353         * lib/xvasprintf.h: Fix comments.
56354
56355 2006-06-28  Eric Blake  <ebb9@byu.net>
56356
56357         * lib/mbchar.h (wcwidth): Include wcwidth.h.
56358         * lib/mbswidth.c (wcwidth): Move from here...
56359         * lib/wcwidth.h: ...to this new file.
56360
56361 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56362
56363         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
56364
56365         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
56366         it's obsolete.
56367         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
56368
56369 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56370
56371         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
56372         Autoconf 2.60 says this stuff was obsolete.
56373
56374 2006-06-28  Bruno Haible  <bruno@clisp.org>
56375
56376         * modules/wcwidth (Files): Add m4/wchar_t.m4.
56377
56378 2006-06-28  Bruno Haible  <bruno@clisp.org>
56379
56380         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
56381         gt_TYPE_WCHAR_T.
56382
56383 2006-06-28  Bruno Haible  <bruno@clisp.org>
56384
56385         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
56386         declaration for wcwidth.
56387         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
56388
56389 2006-06-28  Bruno Haible  <bruno@clisp.org>
56390
56391         * lib/mkdtemp.c [MINGW]: Include <io.h>.
56392         (mkdir): Define using _mkdir.
56393
56394 2006-06-28  Bruno Haible  <bruno@clisp.org>
56395
56396         * lib/getaddrinfo.h: Fix POSIX URL.
56397         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
56398         _WIN32.
56399         (use_win32_p): Make static.
56400         (getaddrinfo): Reject service name if it is empty or does not consist
56401         solely of decimal digits, or if its value is > 65535.
56402         (getnameinfo): Remove useless casts.
56403
56404 2006-06-27  Simon Josefsson  <jas@extundo.com>
56405
56406         * modules/sys_select: New file, suggested by Bruno Haible, Paul
56407         Eggert and Martin Lambers.
56408
56409 2006-06-27  Simon Josefsson  <jas@extundo.com>
56410
56411         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
56412         Eggert and Martin Lambers.
56413
56414 2006-06-27  Bruno Haible  <bruno@clisp.org>
56415
56416         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
56417         result to 0, not to empty.
56418         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
56419
56420 2006-06-27  Bruno Haible  <bruno@clisp.org>
56421
56422         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
56423
56424 2006-06-26  Simon Josefsson  <jas@extundo.com>
56425
56426         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
56427         present.
56428
56429 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
56430
56431         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
56432         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
56433         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
56434
56435 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
56436
56437         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
56438
56439 2006-06-26  Bruno Haible  <bruno@clisp.org>
56440
56441         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
56442
56443 2006-06-26  Bruno Haible  <bruno@clisp.org>
56444
56445         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
56446
56447 2006-06-26  Bruno Haible  <bruno@clisp.org>
56448
56449         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
56450         SGI C compiler in pre-C99 mode.
56451         Suggested by Mark D. Baushke and Larry Jones.
56452
56453 2006-06-26  Bruno Haible  <bruno@clisp.org>
56454
56455         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
56456         WCHAR_MAX.
56457         Reported by Mark D. Baushke and Larry Jones.
56458
56459 2006-06-26  Bruno Haible  <bruno@clisp.org>
56460
56461         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
56462         in pre-C99 mode.
56463         Suggested by Mark D. Baushke and Larry Jones.
56464
56465 2006-06-23  Simon Josefsson  <jas@extundo.com>
56466             Bruno Haible  <bruno@clisp.org>
56467
56468         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
56469         Emit mostlyclean-local rule.
56470         (func_emit_tests_Makefile_am): Likewise.
56471         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
56472
56473 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
56474
56475         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
56476
56477 2006-06-23  Bruno Haible  <bruno@clisp.org>
56478
56479         * tests/test-stdint.c: Update to match ISO C 99 Technical
56480         Corrigendum 1.
56481
56482 2006-06-23  Bruno Haible  <bruno@clisp.org>
56483
56484         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
56485
56486 2006-06-23  Bruno Haible  <bruno@clisp.org>
56487
56488         * lib/stdint_.h: Treat IRIX like OpenBSD.
56489
56490 2006-06-23  Bruno Haible  <bruno@clisp.org>
56491
56492         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
56493         ISO C 99 Technical Corrigendum 1.
56494
56495 2006-06-22  Simon Josefsson  <jas@extundo.com>
56496
56497         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
56498         MinGW.
56499
56500 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56501
56502         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
56503         needed.  Some compiler complained about some of them.  Problem reported
56504         by Larry Jones in
56505         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
56506
56507 2006-06-21  Simon Josefsson  <jas@extundo.com>
56508
56509         * tests/test-getaddrinfo.c: New file.
56510
56511         * modules/getaddrinfo-tests: New file.
56512
56513         * MODULES.html.sh: Add inet_pton.
56514
56515         * modules/inet_pton: New file.
56516
56517 2006-06-21  Simon Josefsson  <jas@extundo.com>
56518
56519         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
56520         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
56521         of using the (limited) gnulib implementation on Windows XP.
56522
56523         * m4/inet_pton.m4: New file.
56524
56525 2006-06-21  Simon Josefsson  <jas@extundo.com>
56526
56527         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
56528         variable.
56529
56530         * lib/socket_.h: Don't define WINVER.
56531
56532         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
56533         slightly modified to work in gnulib.
56534
56535 2006-06-21  Simon Josefsson  <jas@extundo.com>
56536
56537         * doc/gnulib.texi (Windows sockets): Add.
56538
56539 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56540
56541         * lib/read-file.c (fread_file): Start with buffer allocation of
56542         0 bytes rather than 1 byte; this simplifies the code.
56543         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
56544         code to free buffer and save/restore errno.
56545         (internal_read_file): Remove unused local.
56546
56547 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56548
56549         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
56550         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
56551         Problem reported by Denis Excoffier in
56552         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
56553
56554 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56555
56556         * modules/sys_socket, modules/socklen: Include sys/types since
56557         FreeBSD 4.x's sys/socket.h needs it.
56558
56559 2006-06-19  Simon Josefsson  <jas@extundo.com>
56560
56561         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
56562
56563 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56564
56565         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
56566
56567 2006-06-19  Bruno Haible  <bruno@clisp.org>
56568
56569         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
56570         and FULL_PATH_INTTYPES_H in angle brackets.
56571         Reported by Mark D. Baushke <mdb@gnu.org>.
56572
56573 2006-06-17  Eric Blake  <ebb9@byu.net>
56574
56575         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
56576         errno.
56577
56578 2006-06-17  Bruno Haible  <bruno@clisp.org>
56579
56580         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
56581         <sys/inttypes.h>.
56582
56583 2006-06-17  Bruno Haible  <bruno@clisp.org>
56584
56585         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
56586         whether errno is declared. Assume <errno.h> declares errno.
56587
56588 2006-06-17  Bruno Haible  <bruno@clisp.org>
56589
56590         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
56591
56592 2006-06-17  Bruno Haible  <bruno@clisp.org>
56593
56594         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
56595         problem on Solaris 2.5.1.
56596
56597 2006-06-16  Eric Blake  <ebb9@byu.net>
56598
56599         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
56600         * lib/unicodeio.c [!defined errno]: Likewise.
56601         * lib/strtol.c [!defined errno]: Likewise.
56602         * lib/strtod.c [!defined errno]: Likewise.
56603
56604 2006-06-15  Eric Blake  <ebb9@byu.net>
56605
56606         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
56607
56608 2006-06-15  Eric Blake  <ebb9@byu.net>
56609
56610         * config/srclist.txt (ssize_t.m4): Lose sync.
56611
56612 2006-06-15  Bruno Haible  <bruno@clisp.org>
56613
56614         * modules/stdint (Files): Include m4/full-header-path.m4,
56615         m4/size_max.m4, m4/wchar_t.m4.
56616         (Makefile.am): Many more substitutions.
56617         * modules/stdint-tests: New file.
56618         * tests/test-stdint.c: New file.
56619
56620 2006-06-15  Bruno Haible  <bruno@clisp.org>
56621
56622         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
56623         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
56624         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
56625         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
56626         gl_CHECK_TYPE_SAME): New macros.
56627
56628 2006-06-15  Bruno Haible  <bruno@clisp.org>
56629
56630         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
56631
56632 2006-06-15  Bruno Haible  <bruno@clisp.org>
56633
56634         * lib/stdint_.h: Rewritten to be fully auto-configured.
56635         Fixes bug on HP-UX/IA64.
56636
56637 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
56638
56639         * lib/getdate.y (__attribute__): Don't define if already defined.
56640         Problem reported by Larry Jones.
56641         * lib/utimens.c (__attribute__): Likewise.
56642
56643 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
56644
56645         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
56646         reported by Andreas Schwab.
56647
56648 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56649             Bruno Haible  <bruno@clisp.org>
56650
56651         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
56652         check for the declaration of strnlen and a run test that exposes the
56653         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
56654         rpl_strndup.
56655
56656 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56657             Bruno Haible  <bruno@clisp.org>
56658
56659         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
56660
56661 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56662
56663         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
56664         compile test, for Tru64 4.0D.
56665
56666 2006-05-28  Karl Berry  <karl@gnu.org>
56667
56668         * config/srclist.txt (printf-args.c): lose sync.
56669
56670 2006-05-26  Martin Lambers  <marlam@marlam.de>
56671
56672         * lib/getpass.c: Updates the test for the native W32 API, and adds
56673         missing includes, thus fixing compilation warnings.
56674
56675 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
56676
56677         * lib/exclude.c (exclude_fnmatch): New function.
56678         (excluded_file_name): Call exclude_fnmatch.
56679         * lib/exclude.h (excluded_file_name): New prototype
56680
56681 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
56682
56683         * lib/tempname.c (small_open, large_open): New macros.
56684         (__open, __open64) [!_LIBC]: Remove.
56685         (__gen_tempname): Use small_open and large_open instead of __open
56686         and __open64.  This fixes a portability bug on HP-UX 11.11i
56687         reported by Simon Wing-Tang in
56688         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
56689
56690 2006-05-24  Bruno Haible  <bruno@clisp.org>
56691
56692         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
56693         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
56694         Reported by Thorsten Maerz <torte@netztorte.de> via
56695         Aaron Stone <aaron@serendipity.cx>.
56696
56697 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56698
56699         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
56700         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
56701         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
56702         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
56703         not really conditional on the cache.
56704         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
56705
56706 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56707
56708         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
56709         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
56710         (my_usleep): Don't mishandle maximum value.
56711
56712 2006-05-19  Jim Meyering  <jim@meyering.net>
56713
56714         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
56715
56716 2006-05-17  Bruno Haible  <bruno@clisp.org>
56717
56718         Cygwin portability.
56719         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
56720
56721 2006-05-17  Bruno Haible  <bruno@clisp.org>
56722
56723         * lib/stdint_.h: Fix recognition of Cygwin.
56724
56725 2006-05-15  Bruno Haible  <bruno@clisp.org>
56726
56727         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
56728         on libtool patch by Ralf Wildenhues.
56729
56730 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56731
56732         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
56733         test for C99 conformance; (bool) 0.5 is an integer constant
56734         expression, but (bool) -0.5 is not.  Problem reported by Fedor
56735         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
56736
56737 2006-05-11  Simon Josefsson  <jas@extundo.com>
56738
56739         * m4/xvasprintf.m4: Fix obvious typo.
56740
56741 2006-05-11  Jim Meyering  <jim@meyering.net>
56742
56743         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
56744         James Lemley.
56745
56746 2006-05-10  Simon Josefsson  <jas@extundo.com>
56747
56748         * lib/md4.c: Typo fix, update copyright years.
56749         (K1, K2): Don't use L because it turn computations into 64-bit on
56750         64-bit platforms.
56751
56752 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
56753
56754         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
56755         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
56756         unwanted sign propagation, e.g., on hosts with 64-bit int.
56757         There still are some problems with reeelly weird theoretical hosts
56758         (e.g., 33-bit int) but it's not worth worrying about now.
56759         * lib/sha1.c (rol): Likewise.
56760         (K1, K2, K3, K4): Remove unnecessary L suffix.
56761
56762 2006-05-10  Bruno Haible  <bruno@clisp.org>
56763
56764         * lib/des.c: Cast to avoid warnings.
56765
56766 2006-05-09  Bruno Haible  <bruno@clisp.org>
56767
56768         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
56769         (Depends-on): Depend also on xsize, stdarg.
56770         (configure.ac): Add gl_XVASPRINTF.
56771
56772 2006-05-09  Bruno Haible  <bruno@clisp.org>
56773
56774         * m4/xvasprintf.m4: New file.
56775
56776 2006-05-09  Bruno Haible  <bruno@clisp.org>
56777
56778         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
56779         (EOVERFLOW): Define fallback value.
56780         (xstrcat): New function.
56781         (xvasprintf): Recognize the special case of a string concatenation.
56782
56783 2006-05-08  Eric Blake  <ebb9@byu.net>
56784
56785         * gnulib-tool (func_version): Base copyright year on CVS date.
56786         (func_emit_copyright_notice): New function.
56787         (func_emit_lib_Makefile_am): Use it.
56788         (func_emit_tests_Makefile_am): Likewise.
56789         (func_import): Likewise.
56790
56791 2006-05-08  Bruno Haible  <bruno@clisp.org>
56792
56793         * modules/stdarg: New file.
56794         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
56795
56796 2006-05-08  Bruno Haible  <bruno@clisp.org>
56797
56798         * m4/stdarg.m4: New file, from GNU gettext.
56799
56800 2006-05-08  Bruno Haible  <bruno@clisp.org>
56801
56802         * config/srclist.txt (build-aux/config.rpath): different from latest
56803         release.
56804
56805 2006-05-08  Bruno Haible  <bruno@clisp.org>
56806
56807         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
56808
56809 2006-05-05  Jim Meyering  <jim@meyering.net>
56810
56811         * m4/warning.m4: New file, derived from bison's file by the same name.
56812
56813 2006-05-03  Bruno Haible  <bruno@clisp.org>
56814
56815         * lib/stdint_.h: Shorter URL.
56816         * lib/inttypes.h: Likewise.
56817
56818 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56819
56820         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
56821
56822 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56823
56824         * lib/verify.h: Document the internals better.  Most of this change
56825         was written by Bruno Haible.
56826
56827 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56828
56829         * doc/verify.texi: New file, partly based on a proposal by
56830         Bruno Haible.
56831
56832 2006-05-02  Bruno Haible  <bruno@clisp.org>
56833
56834         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
56835         test from here...
56836         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
56837
56838 2006-04-29  Bruno Haible  <bruno@clisp.org>
56839
56840         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
56841         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
56842
56843 2006-04-29  Bruno Haible  <bruno@clisp.org>
56844
56845         * gnulib-tool: Make --update option actually work.
56846
56847 2006-04-29  Bruno Haible  <bruno@clisp.org>
56848
56849         * doc/gcd.texi: New file.
56850         * doc/gnulib.texi: Include it.
56851
56852 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56853
56854         * lib/getdate.y (get_date): When adding relative date, start with the
56855         initial time, not with the result of the first mktime call.
56856
56857 2006-04-25  Bruno Haible  <bruno@clisp.org>
56858
56859         * gnulib-tool (func_import): Output the include directives in three
56860         blocks, sorted separately.
56861         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56862
56863 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56864
56865         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
56866         to define main with arguments, for C++.  Reported by Eric Blake.
56867         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
56868         Prefer 'int main ()' to 'int main (void)', for C++.
56869         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
56870         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
56871         for 'main', for C99 and C++.
56872
56873 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56874
56875         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
56876         Don't assume that exit status -1 is valid.
56877         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56878         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56879         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
56880         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
56881         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
56882         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
56883         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
56884         functions can be used without declaring them, or that you can
56885         exit with status -1.
56886         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
56887
56888 2006-04-24  Karl Berry  <karl@gnu.org>
56889
56890         * config/srclist.txt (longdouble.m4): sync lost.
56891
56892 2006-04-24  Eric Blake  <ebb9@byu.net>
56893
56894         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
56895
56896 2006-04-24  Bruno Haible  <bruno@clisp.org>
56897
56898         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
56899         poll() implementation in AIX.
56900         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56901
56902 2006-04-24  Bruno Haible  <bruno@clisp.org>
56903
56904         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
56905         assigned exactly once.
56906
56907 2006-04-23  Claudio Fontana  <claudio@gnu.org>
56908             Bruno Haible  <bruno@clisp.org>
56909
56910         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
56911         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
56912         for AM_CPPFLAGS.
56913
56914 2006-04-23  Bruno Haible  <bruno@clisp.org>
56915
56916         * modules/copy-file: Depend on unistd.
56917         * modules/execute: Likewise.
56918         * modules/fatal-signal: Likewise.
56919         * modules/findprog: Likewise.
56920         * modules/mkdtemp : Likewise.
56921         * modules/pipe: Likewise.
56922         * modules/wait-process: Likewise.
56923
56924 2006-04-23  Bruno Haible  <bruno@clisp.org>
56925
56926         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
56927         condition was already detected.
56928         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56929
56930 2006-04-23  Bruno Haible  <bruno@clisp.org>
56931
56932         * lib/copy-file.c: Include <unistd.h> unconditionally.
56933         * lib/execute.c: Likewise.
56934         * lib/fatal-signal.c: Likewise.
56935         * lib/findprog.c: Likewise.
56936         * lib/mkdtemp.c: Likewise.
56937         * lib/pipe.h: Likewise.
56938         * lib/pipe.c: Likewise.
56939         * lib/wait-process.h: Likewise.
56940
56941 2006-04-23  Bruno Haible  <bruno@clisp.org>
56942
56943         * gnulib-tool (func_usage): Fix --import description. Document
56944         --update.
56945         (func_import): Create temporary file in a temporary directory, if
56946         --dry-run is specified. Silence errors from 'grep' when there are no
56947         m4 files in $m4dir.
56948         (func_create_testdir): Silence errors from 'grep' when there are no
56949         m4 files in $m4dir.
56950         Reported by Karl Berry <karl@freefriends.org>.
56951
56952 2006-04-20  Bruno Haible  <bruno@clisp.org>
56953
56954         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
56955         one argument, so that the code will be portable to Autoconf 2.60.
56956         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
56957         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56958         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
56959
56960 2006-04-19  Derek Price  <derek@ximbiot.com>
56961             Eric Blake  <ebb9@byu.net>
56962
56963         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
56964         rather than "/full/path.h".  Update comment to match.  Shorten &
56965         generalize m4_translit call via AS_TR_CPP.
56966
56967 2006-04-19  Derek Price  <derek@ximbiot.com>
56968             Eric Blake  <ebb9@byu.net>
56969
56970         * lib/inttypes.h: Correct grammar in comment.
56971
56972 2006-04-18  Derek Price  <derek@ximbiot.com>
56973             Paul Eggert  <eggert@cs.ucla.edu>
56974
56975         * modules/inttypes: New file.
56976         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
56977
56978 2006-04-18  Derek Price  <derek@ximbiot.com>
56979             Paul Eggert  <eggert@cs.ucla.edu>
56980
56981         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
56982         New files.
56983
56984 2006-04-18  Derek Price  <derek@ximbiot.com>
56985             Paul Eggert  <eggert@cs.ucla.edu>
56986
56987         * lib/inttypes.h: New file.
56988         * lib/strtoimax.c: Assume <inttypes.h>.
56989
56990 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
56991
56992         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
56993         isn't mounted.  Problem reported by Kir Kolyshkin.
56994
56995 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56996
56997         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
56998         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
56999         Derek R. Price.
57000         * lib/regex.h (RE_DUP_MAX): Update comment to match current
57001         implementation.
57002
57003 2006-04-12  Eric Blake  <ebb9@byu.net>
57004
57005         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
57006         is now done automatically by the corresponding Autoconf macro.
57007
57008 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
57009
57010         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
57011         time_r.h.
57012
57013 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57014
57015         Merge regex changes from libc, removing some of our
57016         POSIX-conformance changes that were rejected and redoing them in a
57017         less-intrusive way.
57018
57019         * lib/regcomp.c (re_compile_internal, init_dfa):
57020         Length arg is now size_t, not Idx.  All uses changed.
57021         (peek_token): Forward decl now says internal_function.
57022         (__re_error_msgid, __re_error_msgid_idx):
57023         Now static rather than extern with attribute_hidden.
57024         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
57025         For some reason libc prefers K&R style defns for external functions.
57026         (regerror) [!defined _LIBC]: Likewise.
57027         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
57028         (seek_collating_symbol_entry, lookup_collation_sequence_value):
57029         (build_range_exp, build_collating_symbol):
57030         Use K&R-style defn.
57031         (re_compile_fastmap): Use '\0' to memset, not 0.
57032         (utf8_sb_map): Make the calculations more obvious.
57033         (init_dfa, parse_bracket_exp, build_charclass_op):
57034         Call calloc and cast result, as glibc does.
57035         (init_word_char, fetch_token, peek_token, peek_token_bracket):
57036         (build_range_exp, build_collating_symbol):
57037         Now internal functions.
57038
57039         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
57040
57041         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
57042         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
57043         Don't depend on VMS; depend on __VMS instead, for POSIX
57044         namespace cleanness.
57045         (regoff_t): Define to ssize_t, not long int.
57046
57047         Remove the REG_ macros named below.  Instead, make the old names
57048         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
57049         __USE_GNU_REGEX.
57050         (REG_BACKSLASH_ESCAPE_IN_LISTS):
57051         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
57052         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
57053         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
57054         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
57055         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
57056         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
57057         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
57058         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
57059         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
57060         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
57061         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
57062         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
57063         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
57064         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
57065         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
57066         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
57067         (REG_NREGS):
57068         Remove.  All uses replaced by the old RE_* names.
57069         (RE_BACKSLASH_ESCAPE_IN_LISTS):
57070         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
57071         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
57072         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
57073         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
57074         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
57075         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
57076         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
57077         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
57078         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
57079         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
57080         Don't bother having these macros be independent of each others'
57081         values, since they no longer exist in the POSIX name space.
57082
57083         Rename the following member names back to their old names,
57084         unless !__USE_GNU_REGEX.  All uses changed back.
57085         (buffer): Renamed from re_buffer.
57086         (allocated): Renamed from re_allocated.
57087         (used): Renamed from re_used.
57088         (syntax): Renamed from re_syntax.
57089         (fastmap): Renamed from re_fastmap.
57090         (translate): Renamed from re_translate.
57091         (can_be_null): Renamed from re_can_be_null.
57092         (regs_allocated): Renamed from re_regs_allocated.
57093         (fastmap_accurate): Renamed from re_fastmap_accurate.
57094         (no_sub): Renamed from re_no_sub.
57095         (not_bol): Renamed from re_not_bol.
57096         (not_eol): Renamed from re_not_eol.
57097         (newline_anchor): Renamed from re_newline_anchor.
57098         (num_regs): Renamed from rm_num_regs.
57099         (start): Renamed from rm_start.
57100         (end): Renamed from rm_end.
57101
57102         (free_state): Move up a bit.
57103
57104         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
57105         #define to be empty.
57106         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
57107         when that is what is intended.
57108         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
57109         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
57110         (MAX): New macro.
57111         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
57112         All uses changed back to re_malloc, etc.  It's now the caller's
57113         responsibility to check for overflow; all callers changed.
57114         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
57115         (re_x2nrealloc): Remove.
57116         (free_state): Remove decl.
57117
57118         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
57119         (re_set_registers, re_exec):
57120         Use K&R-style defn.
57121
57122         2006-01-31  Roland McGrath  <roland@redhat.com>
57123
57124         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
57125         Reported by Mike Frysinger <vapier@gentoo.org>.
57126
57127         2006-01-15  Andreas Jaeger  <aj@suse.de>
57128
57129         [BZ #1950]
57130         * lib/regex_internal.c (re_string_reconstruct): Adjust for
57131         build_wcs_upper_buffer change.
57132         (build_wcs_upper_buffer): Change return type.
57133
57134         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
57135
57136         * lib/regex_internal.h: Include <stdint.h> if available.
57137
57138         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
57139
57140         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
57141
57142         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57143
57144         * lib/regcomp.c: Adjust for changed secondary hash function.
57145
57146         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
57147
57148         * lib/regex.h: Pretty printing.
57149         Clean up namespace a bit.
57150
57151         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
57152
57153         * lib/regexec.c (update_cur_sifted_state, check_arrival,
57154         check_arrival_add_next_nodes): Avoid using uninitialized variable.
57155
57156         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57157                     Ulrich Drepper  <drepper@redhat.com>
57158
57159         [BZ #1302]
57160         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
57161         changed.
57162         (bitset_word_t): Renamed from bitset_word.  All uses changed.
57163
57164         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
57165
57166         [BZ #281]
57167         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
57168         * lib/regcomp.c: Remove unnecessary uses of
57169         unsigned RE_TRANSLATE_TYPE.
57170         * lib/regex_internal.h: Likewise.
57171         * lib/regex_internal.c: Likewise.
57172         * lib/regexec.c: Likewise.
57173         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
57174
57175         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
57176
57177         * lib/regexec.c (find_recover_state): Remove unnecessary
57178         initialization.
57179         (transit_state_bkref): Make DFA a const pointer.
57180         (get_subexp): Likewise.
57181         (check_arrival): Likewise.
57182         (update_cur_sifted_state): Likewise.
57183         (re_search_internal): Likewise.
57184         (prune_impossible_nodes): Likewise.
57185         (acquire_init_state_context): Likewise.
57186         (proceed_next_node): Likewise.
57187         (set_regs): Likewise.
57188         (free_fail_stack_return): Likewise.
57189         (check_arrival_expand_ecl): Mark DFA parameter as const.
57190         (check_arrival_expand_ecl_sub): Likewise.
57191         (check_subexp_limits): Likewise.
57192         (sub_epsilon_src_nodes):  Likewise.
57193         (add_epsilon_src_nodes):  Likewise.
57194         (merge_state_array): Likewise.
57195         (update_regs): Likewise.
57196         (build_trtable): Likewise.
57197         (sift_states_backward): Mark MCTX parameter as const.
57198         (build_sifted_states): Likewise.
57199         (update_cur_sifted_state): Likewise.
57200         (sift_states_mkref): Likewise.
57201         (check_arrival_expand_ecl): Mark eclosure as const.
57202         (check_dst_limits_calc_pos_1): Likewise.
57203         * lib/regex_internal.h (re_match_context_t): Make dfa a const
57204         pointer.
57205
57206         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
57207
57208         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
57209         (transit_state_sb): Likewise.
57210         (transit_state_mb): Likewise.
57211         (sift_states_iter_mb): Likewise.
57212         (check_arrival_add_next_nodes): Likewise.
57213         (check_node_accept_bytes): Change first parameter to pointer-to-const.
57214         [_LIBC] (re_search_2_stub): Use mempcpy.
57215
57216         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
57217         mbrtowc for very simple UTF-8 case.
57218
57219         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
57220         a pointer-to-const.
57221         (re_acquire_state_context): Likewise.
57222         * lib/regex_internal.h: Adjust prototypes.
57223
57224         * lib/regex.c: Prevent using C++ compilers.
57225
57226         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
57227         (re_acquire_state_context): Likewise.
57228
57229 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57230
57231         * modules/regex (Depends-on): Add ssize_t.
57232
57233 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57234
57235         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
57236         translation table.
57237
57238 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57239
57240         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
57241
57242 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
57243             Bruno Haible  <bruno@clisp.org>
57244
57245         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
57246         <sys/types.h> and <inttypes.h>.
57247
57248 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57249
57250         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
57251         `__error_t_defined', so argp.h will not typedef the former.
57252
57253 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
57254
57255         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
57256         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
57257         glibc names.  Even if glibc is changed to conform to POSIX, the
57258         traditional names will be available anyway, since regex depends on
57259         the extensions module.  Also, fix a longstanding typo in the
57260         implementation of Spencer ERE test #75 from grep 2.3.  Problems
57261         reported by Emanuele Giaquinta.  Also, change sense of cached
57262         variable, so that the message makes sense.
57263
57264 2006-03-24  Simon Josefsson  <jas@extundo.com>
57265
57266         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
57267         including some doc fixes.
57268         (base64_encode_alloc): Fix +1 bug on allocation failures.
57269
57270 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57271
57272         * lib/base64.c (base64_encode): Do not read past end of array with
57273         unsanitized input on systems with CHAR_BIT > 8.
57274
57275 2006-03-24  Eric Blake  <ebb9@byu.net>
57276
57277         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
57278
57279 2006-03-22  Karl Berry  <karl@gnu.org>
57280
57281         * config/srclist.txt (*setenv.[ch]): get from coreutils.
57282         * config/srclistvars.sh (COREUTILS): new var.
57283
57284 2006-03-17  Jim Meyering  <jim@meyering.net>
57285
57286         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
57287         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
57288
57289 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57290
57291         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
57292         no longer needs it.  Instead, check that regoff_t is as least
57293         as wide as ptrdiff_t.
57294
57295         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
57296         so that our regex.h stays compatible with the installed regex.
57297         This is helpful for installers who configure --without-included-regex.
57298         Problem reported by Emanuele Giaquinta.
57299
57300 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57301
57302         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
57303         Typedef to long int, not to off_, as POSIX will likely change
57304         in that direction.
57305
57306 2006-03-15  Eric Blake  <ebb9@byu.net>
57307
57308         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
57309
57310 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57311
57312         * lib/argp-help.c (validate_uparams): Fix typo
57313         * lib/argp-parse.c (argp_default_options): Consistently begin help
57314         messages with a lowercase letter.
57315
57316 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
57317
57318         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
57319         overrun buffers and shouldn't be used (much as gets shouldn't be
57320         used).
57321         * lib/time_r.c (asctime_r, ctime_r): Likewise.
57322
57323 2006-03-08  Simon Josefsson  <jas@extundo.com>
57324
57325         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
57326         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57327
57328 2006-03-08  Simon Josefsson  <jas@extundo.com>
57329
57330         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
57331         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57332
57333 2006-03-08  Simon Josefsson  <jas@extundo.com>
57334
57335         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
57336         signal that configure disabled the device.
57337
57338 2006-03-08  Simon Josefsson  <jas@extundo.com>
57339
57340         * build-aux/maint.mk: Fix refresh-po, to handle no translated
57341         languages.
57342
57343 2006-03-07  Simon Josefsson  <jas@extundo.com>
57344
57345         * modules/getopt (Depends-on): Add unistd.
57346
57347         * modules/unistd: New file.
57348
57349 2006-03-07  Simon Josefsson  <jas@extundo.com>
57350
57351         * modules/gc-random: New file.
57352
57353 2006-03-07  Simon Josefsson  <jas@extundo.com>
57354
57355         * m4/unistd_h.m4: New file.
57356
57357 2006-03-07  Simon Josefsson  <jas@extundo.com>
57358
57359         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
57360         test to be side-effect free by storing the result in the cache
57361         variable gl_cv_lib_readline, and moving the assignment of
57362         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
57363         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57364
57365 2006-03-07  Simon Josefsson  <jas@extundo.com>
57366
57367         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
57368         error on missing devices (the functions will return an error).
57369
57370         * m4/gc.m4: Move random stuff to gc-random.m4
57371
57372 2006-03-07  Simon Josefsson  <jas@extundo.com>
57373
57374         * lib/unistd_.h: New file.
57375
57376 2006-03-07  Simon Josefsson  <jas@extundo.com>
57377
57378         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
57379
57380 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57381
57382         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
57383         Problem reported by Juan Manuel Guerrero.
57384
57385 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57386
57387         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
57388         the unistd module.
57389         * lib/getlogin_r.c: Likewise.
57390         * lib/getlogin_r.h: Likewise.
57391         * lib/glob.c: Likewise.
57392         * lib/pagealign_alloc.c: Likewise.
57393         * lib/unistd_.h: Remove; no longer needed.
57394
57395 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57396
57397         * MODULES.html.sh (Support for systems lacking POSIX:2001):
57398         Add unistd.
57399         * modules/c-stack (Depends-on): Add unistd.
57400         * modules/getlogin_r: Likewise.
57401         * modules/glob: Likewise.
57402         * modules/pagealign_alloc: Likewise.
57403         * modules/unistd (Files): Remove lib/unistd_.h.
57404         (EXTRA_DIST): Remove.
57405         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
57406         need unistd_.h.
57407         (MOSTLYCLEANFILES): Remove unistd.h-t.
57408
57409 2006-03-03  Simon Josefsson  <jas@extundo.com>
57410
57411         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
57412
57413 2006-03-03  Simon Josefsson  <jas@extundo.com>
57414
57415         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
57416         libidn and bison.
57417
57418 2006-03-03  Simon Josefsson  <jas@extundo.com>
57419
57420         * build-aux/maint.mk: Add indent target.
57421
57422 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
57423
57424         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
57425         our replacement poll.h in any case, to avoid a differing
57426         declaration from a system header.  Seen on AIX.
57427
57428 2006-03-01  Simon Josefsson  <jas@extundo.com>
57429
57430         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
57431         <kasal@ucw.cz>.
57432
57433 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57434
57435         * modules/gettime (Depends-on): Add extensions module.
57436         * modules/nanosleep (Depends-on): Likewise.
57437         * modules/settime (Depends-on): Likewise.
57438
57439 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57440
57441         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
57442         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
57443         pedantically.
57444         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57445         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
57446
57447         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
57448         not "==".  Reported by Ralf Wildenhues.
57449
57450 2006-03-01  Karl Berry  <karl@gnu.org>
57451
57452         * doc/Copyright/request-*: new files, synced from gnuorg.
57453
57454 2006-03-01  Karl Berry  <karl@gnu.org>
57455
57456         * config/srclist.txt (Copyright/*): new entries.
57457
57458 2006-02-28  Simon Josefsson  <jas@extundo.com>
57459
57460         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
57461
57462 2006-02-27  Simon Josefsson  <jas@extundo.com>
57463
57464         * lib/base64.h: Indent #define's.  From Jim Meyering
57465         <jim@meyering.net>.
57466
57467 2006-02-27  Jim Meyering  <jim@meyering.net>
57468
57469         Revert the change of 2006-02-24, so these files can continue
57470         to be sync'd from gettext.
57471         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
57472         of `config.h'.
57473
57474 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57475
57476         * modules/intprops: New file.
57477         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57478         Add intprops.
57479         * modules/getloadavg (Files): Remove lib/intprops.h.
57480         (Depends-on): Add intprops.
57481         * modules/human: Likewise.
57482         * modules/inttostr: Likewise.
57483         * modules/openat: Likewise.
57484         * modules/sig2str: Likewise.
57485         * modules/userspec: Likewise.
57486         * modules/utimecmp: Likewise.
57487         * modules/xnanosleep: Likewise.
57488         * modules/xstrtol: Likewise.
57489
57490 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
57491
57492         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
57493         * modules/lock-tests (TESTS): Use $(EXEEXT).
57494         * modules/tls-tests: Likewise.
57495         * modules/argp-tests: Likewise.
57496         (check_PROGRAMS): New var, replacing...
57497         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
57498
57499 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57500
57501         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
57502         `config.h'.
57503
57504 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57505
57506         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
57507
57508 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57509
57510         Sync from coreutils.
57511         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
57512         gl_CHDIR_SAFER.
57513
57514 2006-02-22  Jim Meyering  <jim@meyering.net>
57515
57516         Sync from coreutils.
57517         * m4/chdir-safer.m4: New file.
57518
57519 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57520
57521         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
57522         AT_FDCWD exceeds INT_MAX.
57523         * lib/openat.h (AT_FDCWD): Likewise.
57524
57525 2006-02-17  Eric Blake  <address@hidden>
57526
57527         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
57528
57529 2006-02-16  Simon Josefsson  <jas@extundo.com>
57530
57531         * modules/getaddrinfo (Depends-on): Add sys_socket.
57532
57533 2006-02-15  Simon Josefsson  <jas@extundo.com>
57534
57535         * build-aux/maint.mk: Add dsyntax-check rule.
57536
57537 2006-02-15  Eric Blake  <ebb9@byu.net>
57538
57539         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
57540         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
57541         'present but cannot compile' warnings on cygwin.
57542         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
57543         use ws2tcpip.h if sys/socket.h works.
57544         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
57545         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
57546
57547 2006-02-14  Simon Josefsson  <jas@extundo.com>
57548
57549         * modules/maintainer-makefile (Files): Rename.
57550
57551         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
57552         and (the local) Makefile.cfg to maint-cfg.mk.
57553
57554         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
57555         to the latter.
57556
57557         * modules/maintainer-makefile: New module.
57558
57559         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
57560         severaly stripped to make it possible to build it up from scratch
57561         with reliable tests.
57562
57563         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
57564         fixes to permit overriding the default actions when configure and
57565         makefile are not available.
57566
57567 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57568
57569         Sync from coreutils.
57570         * modules/lstat (Depends-on): Don't depend on xalloc.
57571         (License): Change from GPL to LGPL, since this is now simply a
57572         replacement for a libc function.
57573
57574 2006-02-14  Jim Meyering  <jim@meyering.net>
57575
57576         Sync from coreutils.
57577
57578         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
57579         failure on deficient systems, and simplify gnulib lgpl dependencies.
57580         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
57581         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
57582
57583         * lib/xalloc-die.c: Remove unused definition of N_.
57584
57585 2006-02-14  Jim Meyering  <jim@meyering.net>
57586
57587         Sync from coreutils.
57588         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
57589         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
57590         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
57591         double-quote uses of that variable, to accommodate the rare case in
57592         which getmntent is available in none of the libraries checked.  This
57593         happens at least on FreeBSD 5.0.
57594
57595 2006-02-13  Simon Josefsson  <jas@extundo.com>
57596
57597         * gnulib-tool (Usage): Fix --import, from
57598         karl@freefriends.org (Karl Berry).
57599
57600 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57601
57602         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
57603
57604 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
57605
57606         * lib/argp-namefrob.h: Restore changes accidentally lost during the
57607         "autoupdate" on 2005-12-12.
57608
57609 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57610
57611         * modules/closeout (Depends-on): Remove atexit.
57612
57613 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57614
57615         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
57616         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
57617
57618 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57619
57620         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
57621         __EXTENSIONS__ if this causes compilation to fail.  Problem
57622         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
57623         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
57624
57625 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
57626
57627         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
57628         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
57629         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
57630         All uses changed.
57631
57632 2006-01-26  Simon Josefsson  <jas@extundo.com>
57633
57634         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
57635         prototype is visible on mingw32.
57636
57637         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
57638         for mingw32.
57639
57640         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
57641         mingw32).
57642
57643 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57644
57645         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
57646         attempt to open for write; this always fails, at least on POSIX
57647         hosts.  This reinstates the 2006-01-09 change, which was
57648         inadvertently removed.
57649
57650 2006-01-26  Bruno Haible  <bruno@clisp.org>
57651
57652         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
57653         Reported by Paul Eggert.
57654
57655 2006-01-26  Bruno Haible  <bruno@clisp.org>
57656             Paul Eggert  <eggert@cs.ucla.edu>
57657
57658         * lib/stdbool_.h (_Bool)
57659         [(! (defined __cplusplus || defined __BEOS__)
57660           && !defined __GNUC__
57661           && !(defined __HP_cc || defined __xlc__
57662                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
57663                || defined __sgi))]:
57664         #define to signed char in these cases too; this simplifies
57665         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
57666         etc., separately) and makes it more conservative.
57667
57668 2006-01-25  Simon Josefsson  <jas@extundo.com>
57669
57670         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
57671         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
57672         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
57673
57674 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57675
57676         * lib/argp-namefrob.h: Bugfix. Remove stray #
57677
57678 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57679
57680         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
57681         so that we test the test.
57682         Check for yet another HP-UX cc bug involving *bool |= bool.
57683
57684 2006-01-25  Karl Berry  <karl@gnu.org>
57685
57686         * config/srclist.txt (vasnprintf.c): sync lost.
57687
57688 2006-01-25  Jim Meyering  <jim@meyering.net>
57689
57690         Sync from the stable (b5) branch of coreutils:
57691
57692         * lib/fts.c (fts_children): Don't let close() clobber errno from
57693         failed fchdir().
57694
57695         * lib/fts.c (fts_stat): When following a symlink-to-directory,
57696         don't necessarily interpret stat-fails+lstat-succeeds as indicating
57697         a dangling symlink.  That can also happen at least for ELOOP.
57698         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
57699         FYI, this bug predates the inclusion of fts.c in coreutils.
57700
57701         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
57702         in their own block, so pre-c99 compilers don't object.
57703
57704         Avoid the double-free (first in fts_read, second in fts_close) that
57705         would occur when an `active' directory is made inaccessible (e.g.,
57706         via chmod a-x) during a traversal.
57707         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57708         before returning.  Reproduce this failure by
57709         mkdir -p a/b; cd a; chmod a-x . b
57710         Reported by Stavros Passas.
57711
57712 2006-01-25  Jim Meyering  <jim@meyering.net>
57713
57714         * lib/fileblocks.c: Remove more useless parentheses.
57715         * lib/readutmp.h: Likewise.
57716
57717 2006-01-25  Bruno Haible  <bruno@clisp.org>
57718
57719         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
57720         warnings.
57721         Reported by Paul Eggert.
57722
57723 2006-01-25  Bruno Haible  <bruno@clisp.org>
57724
57725         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
57726         rid of a trap command. For Solaris sh.
57727         Reported by Mark D. Baushke <mdb@gnu.org>.
57728
57729 2006-01-24  Simon Josefsson  <jas@extundo.com>
57730
57731         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
57732         Bruno.
57733
57734 2006-01-24  Karl Berry  <karl@gnu.org>
57735
57736         * config/srclist.txt (argp-namefrob.h): sync lost.
57737
57738 2006-01-24  Jim Meyering  <jim@meyering.net>
57739
57740         * modules/openat (Files): Add lib/intprops.h.
57741         From Mark D. Baushke.
57742
57743 2006-01-24  Jim Meyering  <jim@meyering.net>
57744
57745         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
57746         Reported by Mark D. Baushke.
57747
57748 2006-01-24  Jim Meyering  <jim@meyering.net>
57749
57750         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
57751
57752 2006-01-24  Bruno Haible  <bruno@clisp.org>
57753
57754         * modules/strnlen (Maintainer): Change from glibc to all.
57755
57756 2006-01-24  Bruno Haible  <bruno@clisp.org>
57757
57758         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
57759         Patch by Paul Eggert.
57760
57761 2006-01-24  Bruno Haible  <bruno@clisp.org>
57762
57763         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
57764         already has it.
57765         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
57766         2005-11-26.
57767
57768         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
57769         'signed char' to avoid problems with the built-in _Bool type.
57770         Reported by Paul Eggert on 2005-11-26.
57771
57772 2006-01-24  Bruno Haible  <bruno@clisp.org>
57773
57774         * gnulib-tool (func_import): Avoid constructing complicated sed
57775         expressions inside backquote.
57776         Report and solution by Mark D. Baushke <mdb@gnu.org>.
57777
57778 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
57779
57780         These changes imported from libc.
57781         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
57782         test and two separate function calls.
57783         * lib/strndup.c (__strndup): Add libc_hidden_def.
57784
57785 2006-01-23  Simon Josefsson  <jas@extundo.com>
57786
57787         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
57788         Remove the test_*_SOURCES variable: automake infers it by default.
57789         * modules/tls-tests: Likewise.
57790
57791 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57792
57793         Work around porting bugs reported by Dieter in
57794         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
57795         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
57796         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
57797         Include "getopt.h" first, to check interface.
57798         (getenv): Declare only if defined HAVE_DECL_GETENV &&
57799         !HAVE_DECL_GETENV.
57800         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
57801         (__strndup): Revert to K&R-style function dfns, the glibc style.
57802         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
57803         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
57804         Include strnlen.h first, to get prototype properly.
57805         (strnlen): Renamed from __strnlen.
57806         Remove weak alias.
57807
57808 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57809
57810         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
57811
57812 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57813
57814         * config/srclist.txt: Adjust to reflect glibc reorganization.
57815         This affects only comments.
57816
57817 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57818
57819          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
57820          Reported by Bruce Korb <bkorb@gnu.org>.
57821
57822 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57823
57824         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
57825         to pacify gcc -Wswitch-default.
57826
57827 2006-01-22  Bruno Haible  <bruno@clisp.org>
57828
57829         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
57830         temporary buffer for sprintf, take into account the precision also
57831         for 'd', 'i', 'u', 'o', 'x', 'X'.
57832
57833 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57834
57835         * modules/argp-tests: New module
57836         * tests/test-argp.c: New file
57837         * tests/test-argp-2.sh: New file
57838
57839 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57840
57841         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
57842         (__argp_base_name): Removed
57843         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
57844         typo.
57845         (__argp_base_name): Provide macro definition or extern declaration
57846         depending on the configuration
57847
57848 2006-01-20  Simon Josefsson  <jas@extundo.com>
57849
57850         * modules/inet_ntop (Depends-on): Depend on sys_socket.
57851
57852 2006-01-20  Simon Josefsson  <jas@extundo.com>
57853
57854         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
57855
57856 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57857
57858         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
57859         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
57860         Suggested by Bruno Haible.
57861
57862 2006-01-20  Karl Berry  <karl@gnu.org>
57863
57864         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
57865         until changes propagate, I guess.
57866
57867 2006-01-19  Simon Josefsson  <jas@extundo.com>
57868
57869         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
57870
57871 2006-01-19  Simon Josefsson  <jas@extundo.com>
57872
57873         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
57874
57875 2006-01-19  Simon Josefsson  <jas@extundo.com>
57876
57877         * gnulib-tool: Set check_PROGRAMS.
57878
57879         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57880         modules/des-tests, modules/gc-arcfour-tests,
57881         modules/gc-arctwo-tests, modules/gc-des-tests,
57882         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57883         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57884         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57885         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57886         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57887         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
57888         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
57889         test_*_SOURCES.
57890
57891 2006-01-18  Simon Josefsson  <jas@extundo.com>
57892
57893         * modules/socklen (Depends-on): Depend on sys_socket.
57894
57895 2006-01-18  Simon Josefsson  <jas@extundo.com>
57896
57897         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57898         modules/des-tests, modules/gc-arcfour-tests,
57899         modules/gc-arctwo-tests, modules/gc-des-tests,
57900         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57901         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57902         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57903         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57904         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57905         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
57906         $(EXEEXT) to automake TESTS variable, for mingw32.
57907
57908 2006-01-17  Simon Josefsson  <jas@extundo.com>
57909
57910         * modules/socklen (Include): Need sys/socket.h.
57911
57912 2006-01-17  Bruno Haible  <bruno@clisp.org>
57913
57914         * modules/ssize_t (Include): Add <sys/types.h>.
57915
57916 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
57917
57918         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
57919         it's not portable and it doesn't work with cross-compiles.
57920         Problem reported by Bruno Haible.  Fix missing-$ typo in
57921         'test "gl_cv_ignore_unused_libraries" ...' that prevented
57922         -zignore from being used with Sun's C compiler.
57923
57924 2006-01-12  Simon Josefsson  <jas@extundo.com>
57925
57926         * lib/base64.c: Fix warning, reported by Bruno Haible
57927         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
57928
57929 2006-01-12  Bruno Haible  <bruno@clisp.org>
57930
57931         * modules/ldd: New file.
57932         * build-aux/ldd.sh.in: New file.
57933         * MODULES.html.sh (Support for building libraries and executables): Add
57934         ldd.
57935
57936 2006-01-12  Bruno Haible  <bruno@clisp.org>
57937
57938         * m4/ldd.m4: New file.
57939
57940 2006-01-12  Bruno Haible  <bruno@clisp.org>
57941
57942         * gnulib-tool (func_import, func_create_testdir): Don't go into an
57943         endless loop while replacing $auxdir with build-aux.
57944
57945 2006-01-11  Simon Josefsson  <jas@extundo.com>
57946
57947         * lib/stdint_.h (SIZE_MAX): Add missing (.
57948
57949 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57950
57951         Sync from coreutils.
57952         * lib/md5.c: Fix commentary typos.
57953         (alignof, UNALIGNED_P): No need for a GCC-specific version.
57954         * lib/md5.h (__attribute__): Remove; unused.
57955         * lib/sha1.c: Fix commentary to match md5 better.
57956         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
57957         so that we don't need to worry about alignment.  All uses changed.
57958         This merges the 2005-10-28 md5 change into sha1.
57959
57960 2006-01-11  Jim Meyering  <jim@meyering.net>
57961
57962         Sync from coreutils.
57963         * lib/md5.c (OP): Fix spacing.
57964
57965 2006-01-11  Bruno Haible  <bruno@clisp.org>
57966
57967         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57968         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
57969         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
57970
57971 2006-01-11  Bruno Haible  <bruno@clisp.org>
57972
57973         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57974         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
57975         the "early" section as well.
57976
57977 2006-01-11  Bruno Haible  <bruno@clisp.org>
57978
57979         Avoid "ar: no archive members specified" error on MacOS X.
57980         * gnulib-tool (func_modules_add_dummy): New function.
57981         (func_import, func_create_testdir): Invoke it.
57982
57983 2006-01-11  Bruno Haible  <bruno@clisp.org>
57984
57985         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
57986         with $auxdir in AC_CONFIG_FILES statements.
57987
57988 2006-01-11  Bruno Haible  <bruno@clisp.org>
57989
57990         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57991         Initialize also noinst_HEADERS to empty.
57992
57993 2006-01-11  Bruno Haible  <bruno@clisp.org>
57994
57995         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
57996         variables.
57997         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
57998         autoreconf.
57999
58000 2006-01-11  Bruno Haible  <bruno@clisp.org>
58001
58002         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
58003         overridable by the user.
58004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58005
58006 2006-01-10  Simon Josefsson  <jas@extundo.com>
58007
58008         * modules/sys_socket: New file.
58009
58010 2006-01-10  Simon Josefsson  <jas@extundo.com>
58011
58012         * m4/sys_socket_h.m4: New file.
58013
58014 2006-01-10  Simon Josefsson  <jas@extundo.com>
58015
58016         * lib/socket_.h: New file.
58017
58018 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58019
58020         * modules/readutmp (Maintainer): Add myself.
58021
58022 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58023
58024         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
58025         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
58026         People who are still concerned with buggy memcmp implementations
58027         can invoke gl_FUNC_MEMCMP themselves.
58028
58029 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58030
58031         * lib/regex_internal.h (BITSET_WORD_BITS):
58032         Work around a bug in 64-bit PGC (before version 6.1-2), where the
58033         preprocessor mishandles large unsigned values as if they were signed.
58034         Problem reported by Claudio Fontana in
58035         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
58036
58037 2006-01-10  Jim Meyering  <jim@meyering.net>
58038
58039         Avoid the double-free (first in fts_read, second in fts_close) that
58040         would occur when an `active' directory is made inaccessible (e.g.,
58041         via chmod a-x) during a traversal.
58042         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
58043         before returning.  Reproduce this failure by
58044         mkdir -p a/b; cd a; chmod a-x . b
58045         Reported by Stavros Passas.
58046
58047         Sync from coreutils.
58048         * lib/sha1.c: Tweak grammar in a comment.
58049
58050 2006-01-10  Jim Meyering  <jim@meyering.net>
58051
58052         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
58053         Patch by Joerg Sonnenberger.
58054
58055 2006-01-10  Bruno Haible  <bruno@clisp.org>
58056
58057         * modules/readutmp: Depend on module free.
58058         * modules/strtok_r: Depend on module restrict.
58059
58060 2006-01-10  Bruno Haible  <bruno@clisp.org>
58061
58062         * modules/gettext (configure.ac): Add an invocation of
58063         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
58064
58065 2006-01-10  Bruno Haible  <bruno@clisp.org>
58066
58067         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
58068         Reported by Werner Lemberg <wl@gnu.org>.
58069
58070 2006-01-10  Bruno Haible  <bruno@clisp.org>
58071
58072         * lib/localcharset.c: Update from GNU gettext.
58073
58074 2006-01-10  Bruno Haible  <bruno@clisp.org>
58075
58076         * lib/argp.h (__const): Remove macro. Use const instead.
58077         * lib/argp-fmtstream.h (__const): Likewise.
58078         * lib/glob_.h (__const): Remove macro.
58079         * lib/glob-libc.h: Use const instead of __const.
58080
58081 2006-01-10  Bruno Haible  <bruno@clisp.org>
58082
58083         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
58084         variable.
58085         Needed to avoid an automake error regarding the 'gettext' module.
58086
58087 2006-01-09  Simon Josefsson  <jas@extundo.com>
58088
58089         * modules/inet_ntop (Depends-on): Add restrict.
58090
58091 2006-01-09  Simon Josefsson  <jas@extundo.com>
58092
58093         * modules/gc-rijndael-tests (License): Put under LGPL.
58094
58095         * modules/gc-des-tests (License): Likewise.
58096
58097         * modules/gc-arcfour-tests (License): Likewise.
58098
58099         * modules/gc-arctwo-tests (License): Likewise.
58100
58101         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
58102
58103         * modules/gc-hmac-sha1-tests (Files): Likewise.
58104
58105         * modules/gc-hmac-md5-tests (License): Likewise.
58106
58107         * modules/gc-sha1-tests (License): Likewise.
58108
58109         * modules/gc-md5-tests (License): Likewise.
58110
58111         * modules/gc-md4-tests (License): Likewise.
58112
58113         * modules/gc-md2-tests (License): Likewise.
58114
58115         * modules/gc-tests (License): Likewise.
58116
58117         * modules/des-tests (License): Likewise.
58118
58119         * modules/md4-tests (License): Likewise.
58120
58121         * modules/md2-tests (License): Likewise.
58122
58123 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58124
58125         Sync from coreutils:
58126
58127         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
58128         * modules/lib-ignore: New file.
58129         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
58130         chdir-safer.m4, lchmod.m4.
58131         * modules/openat: Add mkdirat.c, openat-priv.h.
58132
58133 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58134
58135         Sync from coreutils.
58136         * m4/lib-ignore.m4: New file.
58137         * m4/lchmod.m4: New file.
58138
58139 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58140
58141         Sync from coreutils.
58142         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
58143         for write access: POSIX says that must fail.
58144         * lib/fts.c (diropen): Likewise.
58145         * lib/save-cwd.c (save_cwd): Likewise.
58146         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
58147         well, for minor improvements on hosts that lack O_DIRECTORY.
58148         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
58149         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
58150         Fall back on chown if open failed with EACCES.
58151
58152         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
58153         Report an error at compile-time if only a 1-second nominal clock
58154         resolution is found.
58155
58156         * lib/lchmod.h: New file.
58157         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
58158         (make_dir_parents): Use lchown rather than chown, and
58159         lchmod rather than chmod.
58160
58161         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
58162         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
58163         "proc" reported by n0dalus.
58164
58165         * lib/mountlist.c: Include <limits.h>.
58166         (dev_from_mount_options)
58167         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
58168         New function.  It no longer assumes "dev=" has the System V meaning
58169         on Linux (since it doesn't).  It also parses "dev=" more carefully.
58170         (read_file_system_list)
58171         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
58172         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
58173         dev= in that case.
58174
58175         * lib/posixtm.h (PDS_PRE_2000): New macro.
58176         * lib/posixtm.c (year): Arg is now syntax_bits rather than
58177         allow_century.  All usages changed.  Reject dates outside the range
58178         1969-1999 if PDS_PRE_2000 is used.
58179
58180 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58181
58182         Sync from coreutils.
58183         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
58184         (Time of day items): Mention the possibility of leap seconds.
58185         Problem reported by Dr. David Alan Gilbert.
58186
58187 2006-01-09  Jim Meyering  <jim@meyering.net>
58188
58189         Sync from coreutils.
58190
58191         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
58192
58193         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
58194
58195         * lib/modechange.c (mode_compile): Reject an invalid mode string
58196         that starts with an octal digit.  From Andreas Gruenbacher.
58197
58198         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
58199         and dup to open_safer and dup_safer, respectively.
58200         (openat_permissive): Fix typo in comment.
58201
58202         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
58203         "gettext.h"; either no longer needed or are guaranteed by openat.h.
58204         (_): Remove; no longer needed.
58205         (openat): Renamed from rpl_openat; no need for rpl_openat
58206         since openat.h renames openat for us.
58207         Replace most of the body with a call to openat_permissive,
58208         to avoid duplicate code.
58209         Port to (probably hypothetical) environments were mode_t is
58210         wider than int.
58211         (openat_permissive): Require mode arg, so that we can check
58212         types better.  Put it just after flags.  Change cwd failure
58213         indicator from pointer-to-bool to pointer-to-errno-value.
58214         All callers changed.
58215         Invoke openat_save_fail and/or openat_restore_fail if
58216         cwd_errno is null, so that openat can call us.
58217         (openat_permissive, fdopendir, fstatat, unlinkat):
58218         Simplify errno handling to avoid some duplicate code,
58219         as it's OK to set errno on success.
58220         * lib/openat.h: Revamp code so that function macros depend on
58221         __OPENAT_PREFIX only, not also on AT_FDCWD.
58222         (openat_ro): Remove.  Caller changed to use openat_permissive.
58223         (openat_permissive): Now a macro, if not a function.
58224         (openat_restore_fail, openat_save_fail): Now always functions,
58225         since mkdirat needs them even if __OPENAT_PREFIX is defined.
58226
58227         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
58228         and openat.c.
58229         * lib/mkdirat.c: Include openat-priv.h.
58230         Remove definitions of macros defined therein.
58231         * lib/openat.c: Likewise.
58232
58233         * lib/mkdirat.c (mkdirat): New file and function.
58234         * lib/openat.h (mkdirat): Declare.
58235
58236         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
58237
58238         * lib/openat.h (openat_permissive): Declare.
58239         (openat_ro): Define.
58240
58241         * lib/openat.c (EXPECTED_ERRNO): New macro.
58242         (openat_permissive): New function -- used in remove.c rewrite.
58243         (all functions): Set errno just before returning, only if there
58244         was an actual failure.
58245         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
58246
58247         Emulate openat-family functions using Linux's procfs, if possible.
58248         Idea and some code based on Ulrich Drepper's glibc changes.
58249
58250         * lib/openat.c: (BUILD_PROC_NAME): New macro.
58251         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
58252         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
58253         before falling back on save_cwd and restore_cwd.
58254         (fdopendir, fstatat, unlinkat): Likewise.
58255
58256         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
58257         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
58258
58259         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
58260         as second argument to va_arg.  Otherwise, some versions of gcc
58261         warn that `if this code is reached, the program will abort'.
58262
58263 2006-01-09  Jim Meyering  <jim@meyering.net>
58264
58265         Sync from coreutils.
58266         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
58267         Require openat-priv.h.
58268
58269 2006-01-09  Bruno Haible  <bruno@clisp.org>
58270
58271         * modules/strnlen (Include): Use strnlen.h.
58272
58273 2006-01-09  Bruno Haible  <bruno@clisp.org>
58274
58275         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
58276
58277 2006-01-09  Bruno Haible  <bruno@clisp.org>
58278
58279         * lib/sysexit_.h (EX_OK): New macro.
58280         Suggested by Martin Lambers <marlam@marlam.de>.
58281
58282 2006-01-09  Bruno Haible  <bruno@clisp.org>
58283
58284         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
58285         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
58286
58287 2006-01-09  Bruno Haible  <bruno@clisp.org>
58288
58289         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
58290         numbers.
58291
58292 2006-01-09  Bruno Haible  <bruno@clisp.org>
58293
58294         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
58295         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
58296         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
58297         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
58298
58299 2006-01-09  Bruno Haible  <bruno@clisp.org>
58300
58301         * build-aux/javacomp.sh.in: New file, moved from lib/.
58302         * modules/javacomp-script (Files): Update.
58303         (configure.ac): Add AC_CONFIG_FILES invocation.
58304         (EXTRA_DIST): Remove variable.
58305
58306         * build-aux/javaexec.sh.in: New file, moved from lib/.
58307         * modules/javaexec (Files): Update.
58308         (configure.ac): Add AC_CONFIG_FILES invocation.
58309         (EXTRA_DIST): Remove javaexec.sh.in.
58310
58311         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
58312         * modules/csharpcomp-script (Files): Update.
58313         (configure.ac): Add AC_CONFIG_FILES invocation.
58314         (EXTRA_DIST): Remove variable.
58315
58316         * build-aux/csharpexec.sh.in: New file, moved from lib/.
58317         * modules/csharpexec (Files): Update.
58318         (configure.ac): Add AC_CONFIG_FILES invocation.
58319         (EXTRA_DIST): Remove csharpexec.sh.in.
58320
58321 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58322
58323         Sync from coreutils.
58324
58325         Add POSIX ACL support
58326         * lib/acl.h (copy_acl, set_acl): Add declarations.
58327         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
58328         systems other than Linux.
58329         (chmod_or_fchmod): New function: use fchmod when possible,
58330         and chmod otherwise.
58331         (file_has_acl): Add a POSIX ACL implementation, with a
58332         Linux-specific subcase.
58333         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
58334         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
58335         acls are unsupported.
58336         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
58337         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
58338         are unsupported.
58339
58340 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58341
58342         Sync from coreutils.
58343         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
58344
58345 2006-01-07  Bruno Haible  <bruno@clisp.org>
58346
58347         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
58348         gl_EARLY.
58349
58350 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58351
58352         * lib/strftime.c (tzname): Don't declare if it is already #defined.
58353         Problem reported for Mingw by Mark Junker.
58354
58355 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58356
58357         * README: Gnulib normally doesn't generate a tarball.
58358
58359 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
58360
58361         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
58362         long int, not int, for nanosecond counts, so that people who are
58363         used to POSIX struct timespec won't be surprised.  Reported by Jim
58364         Meyering.
58365
58366 2005-12-28  Bruno Haible  <bruno@clisp.org>
58367
58368         * build-aux/config.rpath: Update from GNU gettext.
58369
58370 2005-12-16  Jim Meyering  <jim@meyering.net>
58371
58372         * modules/fprintftime: New module.
58373         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
58374
58375 2005-12-16  Jim Meyering  <jim@meyering.net>
58376
58377         * m4/fprintftime.m4: New file.
58378
58379 2005-12-16  Jim Meyering  <jim@meyering.net>
58380
58381         * lib/fprintftime.c, lib/fprintftime.h: New files.
58382
58383 2005-12-15  Simon Josefsson  <jas@extundo.com>
58384
58385         * modules/socklen (configure.ac): Fix M4 macro name, to align with
58386         new m4/socklen.m4.
58387
58388 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58389
58390         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
58391         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
58392
58393 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58394
58395         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
58396         * lib/argp-help.c (fill_in_uparams): Check if the constructed
58397         struct uparams is valid. Fall back to the default values if it is
58398         not.
58399
58400 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58401
58402         * modules/argp (Files): Add argp-pin.c
58403         (Depends-on): dirname
58404         (lib_SOURCES): Add argp-pin.c
58405
58406 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58407
58408         * m4/argp.m4:  Check if program_invocation_name and
58409         program_invocation_short_name are declared and define appropriate
58410         macros if they are not.
58411
58412 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58413
58414         * lib/argp-help.c (__argp_base_name): New function
58415         (__argp_short_program_name): Rewrite using __argp_base_name
58416         * lib/argp-namefrob.h: Define program_invocation_name and
58417         program_invocation_short_name if requested
58418         (__argp_base_name): Add prototype
58419         * lib/argp-parse.c (argp_def): Use gettext wrappers
58420         (argp_default_parser): Use __argp_base_name
58421         * lib/argp-pin.c: New file. Defines program_invocation_name and
58422         program_invocation_short_name on systems that lack them.
58423
58424 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58425
58426         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
58427         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58428         porting problem reported by Georg Schwarz in
58429         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58430
58431 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58432
58433         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
58434         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58435         porting problem reported by Georg Schwarz in
58436         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58437
58438 2005-12-05  Bruno Haible  <bruno@clisp.org>
58439
58440         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
58441         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
58442         Reported by Mark Junker <mjscod@gmx.de>.
58443
58444 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
58445
58446         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
58447         Use implementation from Albert Chin, with some
58448         comments/corrections by Stepan Kasal and myself.
58449
58450 2005-12-02  Bruno Haible  <bruno@clisp.org>
58451
58452         * gnulib-tool (func_import): Accept GPLed build tool modules when
58453         --lgpl is given.
58454         * modules/csharpcomp-script: New file.
58455         * modules/csharpcomp: Depend on it.
58456         * modules/javacomp-script: New file.
58457         * modules/javacomp: Depend on it.
58458         Suggested by Simon Josefsson.
58459
58460 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
58461
58462         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
58463         statement, to work around an HP-UX 10.20 compiler bug reported by
58464         Peter O'Gorman.
58465
58466 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58467
58468         * modules/savedir (Depends-on): Add openat.
58469
58470 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58471
58472         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
58473         (uintmax_t) [defined uintmax_t]: Do not declare.
58474         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
58475         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
58476         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
58477         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
58478         sake of portability to weird hosts that C allows (though we don't
58479         know of any practical examples).
58480
58481         * lib/savedir.h (fdsavedir): New decl.
58482         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
58483         contains most of the former guts of savedir.
58484         (savedir): Use savedirstream.
58485         Include "openat.h".
58486
58487 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58488
58489         * modules/obstack (Files): Add m4/ulonglong.m4.
58490         Problem reported by Davide Angelocola.
58491
58492 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58493
58494         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
58495         coreutils no longer futzes with rounding modes.
58496
58497 2005-11-14  Jim Meyering  <jim@meyering.net>
58498
58499         * lib/mkstemp-safer.c: Include <config.h>, required for possible
58500         replacement of mkstemp.
58501
58502 2005-11-10  Simon Josefsson  <jas@extundo.com>
58503
58504         * lib/readline.c: Remove EOL.
58505
58506 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58507
58508         * modules/gethrxtime (Depends-on): Add gettime.
58509
58510 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58511
58512         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
58513         or gettimeofday; no longer needed.
58514
58515 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58516
58517         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
58518         time business.
58519         (gethrxtime) [! (HAVE_NANOUPTIME
58520         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
58521         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
58522         our own approximation.
58523
58524 2005-11-08  Eric Blake  <ebb9@byu.net>
58525
58526         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58527
58528 2005-11-08  Eric Blake  <ebb9@byu.net>
58529
58530         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58531
58532 2005-11-04  Bruno Haible  <bruno@clisp.org>
58533
58534         * gnulib-tool: Implement --update mode.
58535
58536 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58537
58538         Fix porting problem reported by Theodoros V. Kalamatianos.
58539         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
58540         Don't assume that futimes failing means we must fail.
58541
58542 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58543
58544         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
58545         variables to suggest the intended function of the PATH_MAX check.
58546
58547 2005-10-30  Kean Johnston  <jkj@sco.com>
58548
58549         Trivial changes to support SCO systems.
58550         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
58551         as PATH_MAX.
58552         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
58553         where __ptr is null when no I/O is pending.
58554
58555 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58556
58557         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
58558         leave errno alone.  Problem reported by Dmitry V. Levin.
58559
58560 2005-10-28  Simon Josefsson  <jas@extundo.com>
58561
58562         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
58563         Test more.
58564
58565         * tests/test-gc-md2.c, tests/test-md2.c: New files.
58566
58567         * modules/md2, modules/md2-tests: New files.
58568
58569 2005-10-28  Simon Josefsson  <jas@extundo.com>
58570
58571         * m4/inet_ntop.m4: More tests.
58572
58573         * m4/gc-md2.m4, md2.m4: New file.
58574
58575 2005-10-28  Simon Josefsson  <jas@extundo.com>
58576
58577         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
58578         "restrict" keywords, as per POSIX.  Protect the function
58579         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
58580         Don't use K&R prototypes.  Check the sprintf return values.
58581         Re-define EAFNOSUPPORT if not present.  Indent.
58582
58583         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
58584         suggested by Bruno Haible <bruno@clisp.org>.
58585
58586         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
58587
58588         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
58589
58590         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
58591         libgcrypt).
58592
58593         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
58594
58595         * lib/md2.h, lib/md2.c: New files.
58596
58597 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
58598
58599         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
58600         errno alone.  Problem reported by Frederic Jolliton.
58601
58602 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58603
58604         * modules/verify (License): Change from GPL to LGPL.  This is a
58605         tiny module and there are apparently near-equivalents that are
58606         under the BSD license.
58607
58608 2005-10-24  Simon Josefsson  <jas@extundo.com>
58609
58610         * modules/sha1: Relicense to LGPL.
58611
58612 2005-10-24  Simon Josefsson  <jas@extundo.com>
58613
58614         * lib/md4.h: Shrink buffer size, now that we changed the type.
58615
58616 2005-10-23  Simon Josefsson  <jas@extundo.com>
58617
58618         * gnulib-tool (func_import): Fix --tests-base.
58619
58620 2005-10-22  Simon Josefsson  <jas@extundo.com>
58621
58622         * modules/arcfour (Depends-on): Need stdint.
58623
58624 2005-10-22  Simon Josefsson  <jas@extundo.com>
58625
58626         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
58627         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
58628
58629 2005-10-22  Simon Josefsson  <jas@extundo.com>
58630
58631         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
58632         suggested by Bruno Haible <bruno@clisp.org>.
58633
58634 2005-10-22  Simon Josefsson  <jas@extundo.com>
58635
58636         * lib/crc.h: Include stddef.h, for size_t.
58637
58638 2005-10-22  Simon Josefsson  <jas@extundo.com>
58639
58640         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
58641         arcfour_context struct (simplify test vector testing in GNU
58642         Shishi).
58643
58644 2005-10-21  Simon Josefsson  <jas@extundo.com>
58645
58646         * modules/des, modules/des-tests: New files.
58647
58648         * modules/gc-des, modules/gc-des-tests: New files.
58649
58650         * tests/test-des.c, tests/test-gc-des.c: New file.
58651
58652 2005-10-21  Simon Josefsson  <jas@extundo.com>
58653
58654         * modules/arctwo, modules/arctwo-tests: New files.
58655
58656         * tests/test-arctwo.c: New file.
58657
58658         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
58659
58660         * tests/test-gc-arctwo.c: New file.
58661
58662 2005-10-21  Simon Josefsson  <jas@extundo.com>
58663
58664         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
58665         Bruno Haible <bruno@clisp.org>.
58666
58667         * m4/gc-des.m4: New file.
58668
58669 2005-10-21  Simon Josefsson  <jas@extundo.com>
58670
58671         * m4/arctwo.m4: New file.
58672
58673         * m4/gc-arctwo.m4: New file.
58674
58675 2005-10-21  Simon Josefsson  <jas@extundo.com>
58676
58677         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
58678         block.
58679
58680 2005-10-21  Simon Josefsson  <jas@extundo.com>
58681
58682         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
58683         <bruno@clisp.org>.
58684
58685         * lib/hmac-sha1.c (hmac_sha1): Likewise.
58686
58687         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
58688         Bruno Haible <bruno@clisp.org>.
58689
58690         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
58691         <bruno@clisp.org>.
58692
58693 2005-10-21  Simon Josefsson  <jas@extundo.com>
58694
58695         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
58696
58697 2005-10-21  Simon Josefsson  <jas@extundo.com>
58698
58699         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
58700
58701 2005-10-21  Simon Josefsson  <jas@extundo.com>
58702
58703         * lib/des.h, lib/des.c: New files.
58704
58705         * lib/gc-gnulib.c: Support DES.c
58706
58707 2005-10-21  Simon Josefsson  <jas@extundo.com>
58708
58709         * lib/arctwo.h, lib/arctwo.c: New files.
58710
58711         * lib/gc-gnulib.c: Support ARCTWO.
58712
58713 2005-10-21  Simon Josefsson  <jas@extundo.com>
58714
58715         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
58716         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58717
58718 2005-10-21  Simon Josefsson  <jas@extundo.com>
58719
58720         * gnulib-tool (func_import, func_create_testdir): Define automake
58721         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
58722         Makefile.am snippet),
58723         suggested by Bruno Haible <bruno@clisp.org>.
58724
58725         * modules/gc (Makefile.am): Use it.
58726
58727 2005-10-21  Bruno Haible  <bruno@clisp.org>
58728
58729         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
58730         patch.
58731
58732 2005-10-19  Simon Josefsson  <jas@extundo.com>
58733
58734         * tests/test-gc-rijndael.c: New file.
58735
58736         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
58737
58738 2005-10-19  Simon Josefsson  <jas@extundo.com>
58739
58740         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
58741         interface too.
58742
58743 2005-10-19  Simon Josefsson  <jas@extundo.com>
58744
58745         * tests/test-gc-arcfour.c: New file.
58746
58747         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
58748
58749 2005-10-19  Simon Josefsson  <jas@extundo.com>
58750
58751         * modules/gc-md4, modules/gc-md4-tests: New file.
58752
58753         * tests/test-gc-md4.c: New file.
58754
58755 2005-10-19  Simon Josefsson  <jas@extundo.com>
58756
58757         * m4/gc-md4.m4: New file.
58758
58759 2005-10-19  Simon Josefsson  <jas@extundo.com>
58760
58761         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
58762         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
58763         <kasal@ucw.cz>.
58764
58765 2005-10-19  Simon Josefsson  <jas@extundo.com>
58766
58767         * m4/gc-arcfour.m4: New file.
58768
58769         * m4/gc-rijndael.m4: New file.
58770
58771 2005-10-19  Simon Josefsson  <jas@extundo.com>
58772
58773         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
58774
58775 2005-10-19  Simon Josefsson  <jas@extundo.com>
58776
58777         * lib/gc-gnulib.c: Support ARCFOUR.
58778
58779 2005-10-19  Simon Josefsson  <jas@extundo.com>
58780
58781         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
58782         support.
58783
58784         * lib/gc.h: Add ECB enum type.
58785
58786         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
58787
58788 2005-10-18  Simon Josefsson  <jas@extundo.com>
58789
58790         * tests/test-md5.c: New file.
58791
58792         * modules/md5-tests: New file.
58793
58794 2005-10-18  Simon Josefsson  <jas@extundo.com>
58795
58796         * tests/test-md4.c: New file.
58797
58798         * modules/md4, modules/md4-tests: New files.
58799
58800 2005-10-18  Simon Josefsson  <jas@extundo.com>
58801
58802         * m4/md4.m4: New file.
58803
58804 2005-10-18  Simon Josefsson  <jas@extundo.com>
58805
58806         * lib/md4.h, lib/md4.c: New files, based on md5.?.
58807
58808 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
58809
58810         * gnulib-tool (func_create_testdir): Omit the second check whether
58811         BUILT_SOURCES in nonempty.
58812
58813 2005-10-17  Simon Josefsson  <jas@extundo.com>
58814
58815         * tests/test-rijndael.c: New file.
58816
58817 2005-10-17  Simon Josefsson  <jas@extundo.com>
58818
58819         * modules/sha1: Depend on stdint instead of md5.
58820
58821         * modules/md5: Depend on stdint, remove uint32_t.
58822
58823 2005-10-17  Simon Josefsson  <jas@extundo.com>
58824
58825         * modules/gc-sha1-tests: New file.
58826
58827         * tests/test-gc-sha1.c: New file.
58828
58829 2005-10-17  Simon Josefsson  <jas@extundo.com>
58830
58831         * m4/md5.m4: Remove call to uint32_t.m4.
58832
58833 2005-10-17  Simon Josefsson  <jas@extundo.com>
58834
58835         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
58836
58837         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
58838         md5.h.
58839
58840         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
58841
58842         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
58843
58844 2005-10-17  Simon Josefsson  <jas@extundo.com>
58845
58846         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
58847
58848 2005-10-17  Simon Josefsson  <jas@extundo.com>
58849
58850         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
58851
58852 2005-10-17  Simon Josefsson  <jas@extundo.com>
58853
58854         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
58855
58856         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
58857
58858 2005-10-17  Bruno Haible  <bruno@clisp.org>
58859
58860         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
58861         that it can also be used in a test.
58862
58863 2005-10-16  Bruno Haible  <bruno@clisp.org>
58864
58865         * gnulib-tool (func_emit_tests_Makefile_am): Also define
58866         TESTS_ENVIRONMENT, so that individual tests can augment it.
58867
58868         * gnulib-tool (func_create_testdir): Use an intermediate target for
58869         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
58870         macros, like $(ALLOCA_H), which cannot be passed through the command
58871         line.
58872
58873 2005-10-15  Simon Josefsson  <jas@extundo.com>
58874
58875         * modules/rijndael-tests: New file.
58876
58877         * modules/rijndael: New file.
58878
58879 2005-10-15  Simon Josefsson  <jas@extundo.com>
58880
58881         * m4/rijndael.m4: New file.
58882
58883 2005-10-15  Simon Josefsson  <jas@extundo.com>
58884
58885         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
58886
58887         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
58888
58889 2005-10-14  Simon Josefsson  <jas@extundo.com>
58890
58891         * tests/test-arcfour.c: New file.
58892
58893         * modules/arcfour, modules/arcfour-tests: New files.
58894
58895 2005-10-14  Simon Josefsson  <jas@extundo.com>
58896
58897         * m4/arcfour.m4: New file.
58898
58899 2005-10-14  Simon Josefsson  <jas@extundo.com>
58900
58901         * lib/arcfour.h, lib/arcfour.c: New files.
58902
58903 2005-10-14  Roland McGrath  <roland@redhat.com>
58904
58905         Import from libc.  [BZ #1331]
58906         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
58907         macro argument.
58908         Reported by Matej Vela <vela@debian.org>.
58909
58910 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58911
58912         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
58913         include <wchar.h>; no longer needed.
58914
58915 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58916
58917         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
58918
58919 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
58920         and  Ulrich Drepper  <drepper@redhat.com>
58921
58922         Import from libc.
58923         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
58924         instead of inline stream orientation test and two separate
58925         function calls.  Pay no attention to USE_IN_LIBIO.
58926
58927 2005-10-13  Simon Josefsson  <jas@extundo.com>
58928
58929         * modules/gc-hmac-md5-tests: New file.
58930
58931         * tests/test-gc-hmac-sha1.c: New file.
58932
58933         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
58934
58935         * modules/gc-hmac-md5-tests: New file.
58936
58937         * tests/test-gc-md5.c: New file.
58938
58939         * modules/gc-md5-tests: New file.
58940
58941 2005-10-13  Simon Josefsson  <jas@extundo.com>
58942
58943         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
58944         Move memory allocation outside of loop.
58945
58946 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
58947
58948         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
58949         intermediate directory is in a read-only file system.  Problem
58950         reported by Eric Blake.
58951
58952 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
58953
58954         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
58955
58956 2005-10-12  Simon Josefsson  <jas@extundo.com>
58957
58958         * tests/test-hmac-sha1.c: New file.
58959
58960         * modules/hmac-sha1-tests: New file.
58961
58962         * modules/hmac-sha1: New file.
58963
58964 2005-10-12  Simon Josefsson  <jas@extundo.com>
58965
58966         * modules/gc-sha1: New file.
58967
58968 2005-10-12  Simon Josefsson  <jas@extundo.com>
58969
58970         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
58971
58972         * tests/test-gc-pbkdf2-sha1.c: New file.
58973
58974 2005-10-12  Simon Josefsson  <jas@extundo.com>
58975
58976         * modules/gc-md5, modules/gc-hmac-md5: New files.
58977
58978         * modules/gc (Files): Remove md5, memxor and hmac files.
58979
58980 2005-10-12  Simon Josefsson  <jas@extundo.com>
58981
58982         * m4/gc-pbkdf2-sha1.m4: New file.
58983
58984         * m4/gc-hmac-sha1.m4: New file.
58985
58986         * m4/gc-sha1: New file.
58987
58988         * m4/hmac-sha1.m4: New file.
58989
58990 2005-10-12  Simon Josefsson  <jas@extundo.com>
58991
58992         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
58993
58994         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
58995
58996 2005-10-12  Simon Josefsson  <jas@extundo.com>
58997
58998         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
58999         suggested by Bruno Haible <bruno@clisp.org>.
59000
59001 2005-10-12  Simon Josefsson  <jas@extundo.com>
59002
59003         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
59004
59005 2005-10-12  Simon Josefsson  <jas@extundo.com>
59006
59007         * lib/gc-pbkdf2-sha1.c: New file.
59008
59009         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
59010
59011 2005-10-12  Simon Josefsson  <jas@extundo.com>
59012
59013         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
59014
59015         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
59016
59017 2005-10-12  Simon Josefsson  <jas@extundo.com>
59018
59019         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
59020         GC_USE_HMAC_MD5, respectively.
59021
59022         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
59023         (gc_md5): Fix typo.
59024
59025         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
59026
59027         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
59028
59029         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
59030
59031 2005-10-12  Bruno Haible  <bruno@clisp.org>
59032
59033         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
59034         Reported by Stepan Kasal <kasal@ucw.cz>.
59035
59036 2005-10-11  Simon Josefsson  <jas@extundo.com>
59037
59038         * tests/test-crc.c: New file.
59039
59040         * modules/crc, modules/crc-tests: New files.
59041
59042 2005-10-11  Simon Josefsson  <jas@extundo.com>
59043
59044         * m4/crc.m4: New file.
59045
59046 2005-10-11  Simon Josefsson  <jas@extundo.com>
59047
59048         * lib/gc.h: Add gc_hash and gc_hash_buffer.
59049
59050         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
59051
59052         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
59053
59054 2005-10-11  Simon Josefsson  <jas@extundo.com>
59055
59056         * lib/crc.h, lib/crc.c: New files.
59057
59058         * lib/gc.h (gc_hash_buffer): Add doc.
59059
59060 2005-10-11  Bruno Haible  <bruno@clisp.org>
59061
59062         * modules/c-strcasestr: New file.
59063         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
59064
59065 2005-10-11  Bruno Haible  <bruno@clisp.org>
59066
59067         * modules/c-strcase: New file.
59068         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
59069
59070 2005-10-11  Bruno Haible  <bruno@clisp.org>
59071
59072         * lib/strcasecmp.c: Include limits.h.
59073         (strcasecmp): Avoid integer overflow on exotic platforms.
59074         * lib/strncasecmp.c: Include limits.h.
59075         (strncasecmp): Avoid integer overflow on exotic platforms.
59076         Reported by Paul Eggert.
59077
59078 2005-10-11  Bruno Haible  <bruno@clisp.org>
59079
59080         * lib/c-strcasestr.h: New file, from GNU gettext.
59081         * lib/c-strcasestr.c: New file, from GNU gettext.
59082
59083 2005-10-11  Bruno Haible  <bruno@clisp.org>
59084
59085         * lib/c-strcase.h: New file, from GNU gettext.
59086         * lib/c-strcasecmp.c: New file, from GNU gettext.
59087         * lib/c-strncasecmp.c: New file, from GNU gettext.
59088
59089 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59090
59091         * modules/mempcpy (License): GPL -> LGPL.
59092         * modules/strchrnul (License): Likewise.
59093         * modules/sysexits (License): Likewise.
59094
59095 2005-10-08  Simon Josefsson  <jas@extundo.com>
59096
59097         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
59098
59099 2005-10-07  Simon Josefsson  <jas@extundo.com>
59100
59101         * m4/memxor.m4: Remove gl_C_RESTRICT call.
59102
59103 2005-10-06  Simon Josefsson  <jas@extundo.com>
59104
59105         * tests/test-hmac-md5.c: New file.
59106
59107         * modules/hmac-md5-tests: New file.
59108
59109         * modules/hmac-md5: New file.
59110
59111 2005-10-06  Simon Josefsson  <jas@extundo.com>
59112
59113         * m4/hmac-md5.m4: New file.
59114
59115         * m4/memxor.m4: Require gl_C_RESTRICT.
59116
59117 2005-10-06  Simon Josefsson  <jas@extundo.com>
59118
59119         * lib/memxor.c (memxor): Avoid casts and warnings.
59120
59121 2005-10-06  Simon Josefsson  <jas@extundo.com>
59122
59123         * lib/hmac-md5.c: New file.
59124
59125         * lib/hmac.h: New file.
59126
59127 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59128
59129         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
59130         promotes to int, not unsigned int, to catch the AIX 5.3
59131         compiler bug.
59132
59133 2005-10-05  Simon Josefsson  <jas@extundo.com>
59134
59135         * modules/memxor: New file.
59136
59137         * modules/iconv (Files): Move config.rpath to havelib, it is used
59138         there.
59139
59140         * modules/havelib (Files): Add config.rpath.
59141
59142 2005-10-05  Simon Josefsson  <jas@extundo.com>
59143
59144         * m4/memxor.m4: New file.
59145
59146 2005-10-05  Simon Josefsson  <jas@extundo.com>
59147
59148         * lib/memxor.c (memxor): Fix compiler error.
59149
59150         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
59151         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
59152
59153         * lib/memxor.h, lib/memxor.c: New files.
59154
59155         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
59156         we assume all systems have it, suggested by Jim Meyering
59157         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
59158         any systems lack sys/socket.h; mingw32 is known to lack it, but we
59159         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
59160         same reasons.
59161
59162 2005-10-05  Simon Josefsson  <jas@extundo.com>
59163
59164         * config/srclist.txt: Add glibc bug 1423 for md5.h.
59165
59166 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59167
59168         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
59169         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
59170         needed, since the source code now assumes these .h files.
59171
59172 2005-10-05  Derek Price  <derek@ximbiot.com>
59173
59174         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
59175
59176 2005-10-05  Bruno Haible  <bruno@clisp.org>
59177
59178         * modules/stdint (License): Change to LGPL.
59179
59180 2005-10-04  Simon Josefsson  <jas@extundo.com>
59181
59182         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
59183         D. Baushke" <mdb@gnu.org>.
59184
59185 2005-10-04  Bruno Haible  <bruno@clisp.org>
59186
59187         * lib/verify.h (verify_true): Provide alternative definition for C++.
59188
59189 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
59190
59191         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
59192         (SSIZE_MAX): New macro, if not already defined.
59193         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
59194         than 2 GiB.
59195
59196 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59197
59198         Sync from coreutils.
59199         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
59200         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
59201         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
59202         ULLONG_MAX doesn't work with 2.7.2.1.
59203
59204 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59205
59206         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
59207         From Ben Pfaff.
59208
59209         * modules/exclude (Depends-on): Depend on verify.
59210         * modules/strtoimax (Depends-on): Likewise.
59211         * modules/utimecmp (Depends-on): Likewise.
59212
59213 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59214
59215         * lib/exclude.c: Include verify.h.
59216         (verify): Remove.  All callers changed to use verify.h's version.
59217         * lib/strtoimax.c: Likewise.
59218         * lib/utimecmp.c: Likewis.e
59219
59220         Sync from coreutils.
59221         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
59222         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
59223         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
59224         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
59225         bother returning ENOSYS if settimeofday or stime fails; just let
59226         them return whatever errno they want to return.
59227         * lib/utimens.c: Include unistd.h, for dup2.
59228         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
59229         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
59230
59231 2005-10-02  Jim Meyering  <jim@meyering.net>
59232
59233         Sync from coreutils.
59234         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
59235         from glibc-2.2.5 that fails for read-only files.
59236
59237 2005-10-02  Jim Meyering  <jim@meyering.net>
59238
59239         Sync from coreutils.
59240         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
59241         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
59242         `#if HAVE_CONFIG_H'.
59243         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
59244         Remove AT_FDCWD test.
59245         Do not consume the fd unless successful.
59246         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
59247         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
59248         block, so that we don't even try to compile it if settimeofday is
59249         available.  This works around a compilation failure on OSF1 V5.1,
59250         due to stime requiring a `long int*' while tv_sec is `int'.
59251
59252 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
59253
59254         Sync from coreutils.
59255         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
59256         against `yes', rather than just testing for nonempty.
59257
59258 2005-10-01  Simon Josefsson  <jas@extundo.com>
59259
59260         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
59261         and Darwin.
59262
59263         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
59264         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
59265         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
59266         freeaddrinfo and gai_strerror are declared by the POSIX headers.
59267         Check if struct addrinfo is declared.
59268
59269 2005-10-01  Simon Josefsson  <jas@extundo.com>
59270
59271         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
59272         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
59273         AI_* and EAI_* definitions.  Protect function declarations.
59274
59275 2005-10-01  Jim Meyering  <jim@meyering.net>
59276
59277         Sync from coreutils.
59278
59279         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
59280         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
59281         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
59282         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59283         in the inet and nsl libraries.  Required on Solaris 5.7.
59284
59285 2005-10-01  Jim Meyering  <jim@meyering.net>
59286
59287         Sync from coreutils.
59288         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59289         in the inet and nsl libraries.  Required on Solaris 5.7.
59290
59291 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
59292
59293         * lib/getdelim.c (getdelim): Remove unused variables.
59294
59295 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59296
59297         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
59298         so that the code works even with ancient cpp.  Portability problem
59299         with GCC 2.7.2.1 reported by Thomas M.Ott.
59300
59301 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59302
59303         * modules/regex (Depends-on): Add strcase.
59304
59305         * modules/gethostname (Licence): Change from GPL to LGPL, since
59306         gethostname.c is a trivial implementation of a standard library
59307         function.
59308         * modules/poll (License): Change from GPL to LGPL, since it's
59309         derived from LGPL code.
59310
59311 2005-09-27  Jim Meyering  <jim@meyering.net>
59312
59313         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
59314         HAVE_CONFIG_H.
59315
59316         * lib/intprops.h (signed_type_or_expr__): Define.
59317         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
59318         for unsigned types.
59319
59320 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59321
59322         * lib/verify.h (verify_expr): Remove, replacing with:
59323         (verify_true): New macro that returns true instead of void.
59324         (verify_type__): Remove.
59325         (verify): Use verify_true rather than verify_type__.
59326
59327 2005-09-26  Bruno Haible  <bruno@clisp.org>
59328
59329         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
59330         is necessary.
59331         (lib_SOURCES): Remove mbchar.c.
59332         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
59333         (Files): Add m4/mbrtowc.m4.
59334         * modules/mbiter: Likewise.
59335         * modules/mbuiter: Likewise.
59336
59337 2005-09-26  Bruno Haible  <bruno@clisp.org>
59338
59339         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
59340         compile mbchar.c if they are not both present.
59341         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
59342         * m4/mbiter.m4 (gl_MBITER): Likewise.
59343         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
59344         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
59345         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
59346
59347 2005-09-25  Jim Meyering  <jim@meyering.net>
59348
59349         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
59350         also uses socklen_t.
59351
59352 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
59353
59354         * lib/utimens.c (ENOSYS): Define if not already defined.
59355         (futimens): Support having a null PATH if the file descriptor
59356         is nonnegative.
59357
59358         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
59359         Remove.
59360         (__attribute): Define to empty unless GCC 3.1 or later.
59361         This works around a core dump on OpenBSD 3.4, which has GCC
59362         2.95.3, which dumps core when given __attribute__(()).  It also
59363         simplifies other tests, since we really don't want to bother with
59364         worrying about which ancient version of GCC supported what.
59365         Original problem reported by Yoann Vandoorselaere, with part of
59366         the fix suggested by Derek Price.
59367
59368 2005-09-24  Jim Meyering  <jim@meyering.net>
59369
59370         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
59371         so we can once again use a positive bitfield width of 1 -- now we
59372         don't have to explain why we were using a bitfield width of 2.
59373
59374 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59375
59376         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
59377         and similarly for the other external symbols.  Problem reported
59378         by James Gallager.
59379
59380         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
59381         bug reported by Jim Meyering.
59382
59383         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
59384         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
59385         not needed, since socklen is a prerequisite module.
59386
59387 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59388
59389         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
59390         Problem reported by Eric Blake.
59391         (getaddrinfo): Initialize se so that it's not garbage.
59392         Redo internal storage allocation so that it doesn't make unportable
59393         assumptions about alignment.
59394         Fix a memory leak.
59395
59396         * lib/utimens.c (futimens): Use futimesat if available.
59397         Prefer it to futimes since it doesn't have the futimes bug.
59398
59399         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
59400         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
59401         Instead, declare a function that returns a pointer to an array,
59402         and use verify_type__ to declare the size of the array.
59403         Problem and germ of a solution reported by Bruno Haible.
59404         (verify_type__): Use 2, not 1, for bitfield size, to avoid
59405         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
59406
59407 2005-09-23  Jim Meyering  <jim@meyering.net>
59408
59409         Sync from coreutils.
59410         Correct build failure (socklen_t not defined) on at least
59411         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
59412         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
59413
59414 2005-09-23  Jim Meyering  <jim@meyering.net>
59415
59416         * modules/getaddrinfo (Depends-on): Add socklen.
59417
59418 2005-09-23  Bruno Haible  <bruno@clisp.org>
59419
59420         * tests/test-verify.c: New file.
59421
59422 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59423
59424         Sync from coreutils.
59425
59426         * modules/argmatch (Depends-on): Add verify.
59427         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
59428         unistd-safer.
59429         * modules/save-cwd (Depends-on): Likewise.
59430
59431         * modules/openat (Files): Add lib/openat-die.c.
59432         (Depends-on): Remove error, exitfail.
59433         Add dirname.
59434
59435         * modules/verify: New file.
59436         * MODULES.html.sh (Diagnostics <assert.h>): New section,
59437         with "verify" module.
59438
59439 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59440
59441         Sync from coreutils.
59442
59443         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
59444         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
59445         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
59446         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
59447         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
59448         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
59449         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
59450         Don't bother checking for string.h, stdlib.h, unistd.h.
59451         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
59452         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
59453         module's job.
59454         * m4/jm-macros.m4 (gl_MACROS): Likewise.
59455         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
59456
59457         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
59458         (gl_GETDATE): Use it.
59459
59460         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
59461
59462 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59463
59464         Sync from coreutils.
59465
59466         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
59467         stat-time.h.
59468         * lib/argmatch.h: Include verify.h
59469         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
59470         (ARGMATCH_ASSERT): Remove; unused.
59471         * lib/canonicalize.c: Assume STDC_HEADERS.
59472         * lib/exclude.c: Include "strcase.h".
59473         * lib/regex_internal.h [!defined _LIBC]: Likewise.
59474         * lib/getusershell.c: Include stdio--.h rather than stdio.h
59475         and stdio-safer.h.
59476         (getusershell): Call fopen, not fopen_safer.
59477         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
59478         Do not include unistd-safer.h.
59479         (save_cwd): Don't call fd_safer; no longer needed
59480         now that we include fcntl--.h.
59481
59482         * lib/getdate.y (relative_time): New type.
59483         (RELATIVE_TIME_0): New constant.
59484         (parser_control): Use relative_time instead of doing it ourselves.
59485         (%union): Add new relative_time rel member.
59486         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
59487         Now typeless.
59488         (relunit, relunit_snumber): Now of type rel.
59489         (zone, rel, relunit, get_date): Adjust to above changes.
59490
59491         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
59492         Do not include unistd-safer.h.
59493         (getloadavg): Don't call fd_safer; no longer needed
59494         now that we include fcntl--.h.
59495
59496         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
59497         (make_dir_parents): Treat ENOSYS like EEXIST.
59498
59499         Improve quality of diagnostics on restore_cwd failure.
59500         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
59501         (make_dir_parents): Last arg is now int * (for errno), not bool *.
59502         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
59503         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
59504         each time through the loop.  Do not diagnose restore_cwd failure;
59505         that is the caller's job (and perhaps the caller does not care).
59506
59507         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
59508         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
59509         If the file already exists but is not a directory, don't bother
59510         to try to make its parents.
59511         Close potential file descriptor leak if we can't chdir("/") (!).
59512         Don't always return true if chdir($PWD) fails; return true only
59513         if the requested action was done successfully (except for the
59514         chdir($PWD)).
59515         Don't log final directory unless we actually made it.
59516         Refactor to avoid duplicate code to fix up permissions.
59517         Don't attempt to fix up parent permissions if chdir($PWD) fails.
59518
59519         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
59520         to make it a bit faster and (I hope) clearer.
59521         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
59522         Fix bug in formats like %2N.
59523
59524         * lib/verify.h: New file.
59525
59526 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59527
59528         Sync from coreutils.
59529         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
59530
59531 2005-09-22  Jim Meyering  <jim@meyering.net>
59532
59533         Sync from coreutils.
59534
59535         * m4/lstat.m4 (gl_FUNC_LSTAT):
59536         Use AC_LIBSOURCES to require lstat.c and lstat.h.
59537         Remove obsolete comment.
59538         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
59539         * m4/xstrtod.m4: Likewise.
59540
59541         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
59542
59543 2005-09-22  Jim Meyering  <jim@meyering.net>
59544
59545         Sync from coreutils.
59546
59547         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
59548
59549         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
59550         the .tm_year member, since otherwise gcc-4.0 would now warn about
59551         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
59552
59553         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
59554         order to avoid an unsuppressible warning from gcc on 64-bit systems.
59555
59556         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
59557         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
59558         when run in a time zone for which daylight savings time is in effect
59559         for the starting date.
59560
59561         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
59562         stop us from restricting permissions of just-created absolute-named
59563         directories.
59564         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
59565         to restore initial working directory.
59566         * lib/mkdir-p.c (make_dir_parents): New parameter:
59567         different_working_dir, to tell caller if/when we change the working
59568         directory and are unable to return to the initial one.
59569         * lib/mkdir-p.h (make_dir_parents): Update prototype.
59570         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
59571         `return false'.  This fixes a bug introduced on 2004-07-30.
59572
59573         * lib/openat.c (fdopendir): Be sure to close the supplied
59574         file descriptor before returning.  This makes our replacement
59575         implementation a little closer to Solaris's, where fdopendir
59576         ties the file descriptor to the returned DIR* pointer.
59577         * lib/openat.c (unlinkat): New function.
59578         * lib/openat.h (unlinkat): Add prototype.
59579         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
59580         (openat_restore_fail): Rename from openat_restore_die.
59581         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
59582
59583         Provide an alternative to exiting immediately upon save_cwd or
59584         restore_cwd failure.  Now, an application can arrange e.g.,
59585         to perform a longjump in that case.
59586         * lib/openat.c: Include dirname.h.
59587         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
59588         (rpl_openat, fdopendir, fstatat): Call openat_save_die
59589         and openat_restore_die rather than calling error directly.
59590         Don't include "error.h" or "exitfail.h"; they're no longer needed.
59591
59592         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
59593         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
59594         define.
59595
59596         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
59597         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
59598                             int utc, int nanoseconds);
59599         Background:
59600         date should not have to allocate a megabyte of virtual memory to
59601         handle a format argument like +%1048575T.  When implemented with
59602         strftime, it must allocate such a buffer, use strftime to fill it
59603         in, print it, then free it.
59604         With fprintftime, it simply prints everything and exits.
59605         With no need for memory allocation, that's one fewer way to fail.
59606         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
59607         optional field width, not before, so we accept %9:z, not %:9z.
59608         (my_strftime): Be sure to use L_('x') for literals.
59609
59610         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
59611         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
59612         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
59613         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
59614         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
59615         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
59616         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
59617         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
59618         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
59619         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
59620         * lib/xgethostname.c, lib/xreadlink.c:
59621         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
59622
59623         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
59624         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
59625         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
59626         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59627         and don't include <sys/file.h>).
59628
59629 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
59630
59631         Sync from coreutils.
59632
59633         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
59634         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
59635         [!LDAV_DONE]: Avoid unused variable warning.
59636
59637 2005-09-21  Bruno Haible  <bruno@clisp.org>
59638
59639         * lib/unicodeio.h (unicode_to_mb): New declaration.
59640
59641 2005-09-20  Derek Price  <derek@ximbiot.com>
59642
59643         * lib/getaddrinfo.c: Don't include <netdb.h> included from
59644         getaddrinfo.h.
59645
59646 2005-09-20  Bruno Haible  <bruno@clisp.org>
59647
59648         * gnulib-tool: Remove trailing slashes from the values specified for
59649         --source-base, --m4-base, --tests-base, --aux-dir.
59650         Suggested by Simon Josefsson <jas@extundo.com>.
59651
59652 2005-09-20  Bruno Haible  <bruno@clisp.org>
59653
59654         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
59655         func_modules_to_filelist, func_import, func_create_testdir): Make all
59656         sorting results locale-independent, so that gnulib-cache.m4 doesn't
59657         change when gnulib-tool is invoked in a different locale.
59658
59659 2005-09-19  Simon Josefsson  <jas@extundo.com>
59660
59661         * m4/socklen.m4: Fix typo.
59662
59663 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59664
59665         Use a consistent style for including <config.h>.
59666         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
59667         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
59668         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
59669         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
59670         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
59671         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
59672         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
59673         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
59674         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
59675         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
59676         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
59677         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
59678         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
59679         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
59680         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
59681         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
59682         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
59683         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
59684         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
59685         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
59686         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
59687         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
59688         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
59689         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
59690         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
59691         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
59692         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
59693         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
59694         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
59695         lib/xstrtoumax.c, lib/yesno.c:
59696         Standardize inclusion of config.h.
59697         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
59698         lib/inttostr.h:  Removed inclusion of config.h from header files.
59699         * lib/inttostr.c:  Adjusted in-tree users.
59700         * lib/timespec.h: Remove superfluous warning to include config.h.
59701         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
59702         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
59703         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
59704         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
59705         config.h with HAVE_CONFIG_H.
59706
59707 2005-09-19  Jim Meyering  <jim@meyering.net>
59708
59709         * modules/pathmax (License): Change to LGPL.
59710
59711 2005-09-19  Derek Price  <derek@ximbiot.com>
59712
59713         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
59714
59715 2005-09-19  Bruno Haible  <bruno@clisp.org>
59716
59717         * gnulib-tool (import): Provide default for --tests-base.
59718
59719 2005-09-19  Bruno Haible  <bruno@clisp.org>
59720
59721         * doc/quote.texi: New file, extracted from gnulib.texi.
59722         * doc/ctime.texi: New file, extracted from gnulib.texi.
59723         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
59724         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
59725         * doc/gnulib.texi: Include them.
59726
59727 2005-09-18  Bruno Haible  <bruno@clisp.org>
59728
59729         Portability fix.
59730         * gnulib-tool (func_readlink): New function.
59731         (func_ln_if_changed): Use it.
59732
59733 2005-09-18  Bruno Haible  <bruno@clisp.org>
59734
59735         * gnulib-tool: Support --with-tests also with --import.
59736         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
59737         (func_import): Use variables $testsbase and $inctests. Emit a
59738         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
59739         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
59740         SUBDIRS += $testsdir.
59741         (func_create_testdir): Update.
59742
59743 2005-09-18  Bruno Haible  <bruno@clisp.org>
59744
59745         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
59746         instead of $dry_run.
59747         (func_cp_if_changed, func_mv_if_changed): Remove functions.
59748         (func_ln_if_changed): Don't handle dry-run here.
59749         (func_import): In dry-run mode, detect more precisely which actions
59750         would be performed, and don't use "...ing" verbs.
59751
59752 2005-09-18  Bruno Haible  <bruno@clisp.org>
59753
59754         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
59755         (func_import): Use join on two temporary files instead of three nested
59756         loops, in order to determine which files are new or old.
59757
59758 2005-09-18  Bruno Haible  <bruno@clisp.org>
59759
59760         * gnulib-tool (func_import): Comment out code that spits out the
59761         new files with --dry-run.
59762
59763 2005-09-18  Bruno Haible  <bruno@clisp.org>
59764
59765         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
59766
59767 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59768
59769         * lib/stat-time.h: New file.
59770         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
59771         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
59772         in a different way.
59773         (timespec_cmp): New function.
59774         * lib/utimecmp.c: Include stat-time.h.
59775         (SYSCALL_RESOLUTION): Depend on whether various struct stat
59776         members exist, not on the obsolescent ST_MTIM_NSEC.
59777         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
59778
59779 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59780
59781         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
59782
59783 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59784
59785         * MODULES.html.sh (File system functions): Add stat-time.
59786         * modules/stat-time: New file.
59787         * modules/timespec (Files): Remove m4/st_mtim.m4; this
59788         is now done in a different way, by the stat-time module.
59789         * modules/utimecmp (Depends-on): Add stat-time.
59790
59791 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59792
59793         * m4/st_mtim.m4: Remove.  Superseded by...
59794         * m4/stat-time.m4: New file.
59795         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
59796         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
59797
59798 2005-09-15  Derek Price  <derek@ximbiot.com>
59799
59800         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
59801
59802 2005-09-15  Derek Price  <derek@ximbiot.com>
59803
59804         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
59805         * lib/regex_internal.c: Ditto, using this...
59806         (__GNUC_PREREQ): ...new macro.
59807         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
59808         using...
59809         (__GNUC_PREREQ): ...this new macro.
59810
59811         * lib/strstr.h: Include string.h. Define strstr as a macro here.
59812
59813 2005-09-15  Derek Price  <derek@ximbiot.com>
59814             Paul Eggert  <eggert@cs.ucla.edu>
59815
59816         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
59817         changes, consolidating in...
59818         * lib/regex_internal.h: ...this file.
59819
59820 2005-09-13  Jim Meyering  <jim@meyering.net>
59821
59822         * lib/canon-host.c: Filter through gnu indent and reword comments
59823         slightly.
59824         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
59825
59826 2005-09-13  Derek Price  <derek@ximbiot.com>
59827
59828         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
59829         failure.
59830         Reported by Jim Meyering  <jim@meyering.net>.
59831
59832 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59833
59834         * lib/base64.c: Typo.
59835         (base64_encode): Put b64str in initialized data section.
59836
59837 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
59838
59839         Merge glibc and coreutils changes into gnulib, plus a few
59840         extra fixes.
59841         * lib/md5.c: Use #error rather than a string.
59842         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
59843         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
59844         (__attribute__): Define to empty for non recent-GCC.
59845         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
59846         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
59847         Renamed from their non-__ counterparts, with new macros replacing
59848         them if not _LIBC.  Add __THROW attribute.
59849         (rol): Remove.
59850         (struct md5_ctx): Align buffer if using GCC.
59851         * lib/sha1.h (struct sha1_ctx): Likewise.
59852         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
59853         The old name was backwards.
59854         (NOTSWAP): Remove; not used.
59855         (rol): New macro, moved here from md5.h.
59856         (sha1_process_block): Remove a FIXME that doesn't make sense.
59857
59858 2005-09-12  Derek Price  <derek@ximbiot.com>
59859
59860         Return usable errors from canon-host.
59861         * lib/canon-host.h: New file.
59862         * lib/canon-host.c (canon_host): Wrap...
59863         (canon_host_r): ...this new function, which now relies exclusively on
59864         getaddrinfo.
59865         (ch_strerror): New function.
59866         (last_cherror): New global.
59867         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
59868         interface.
59869         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
59870         void *.
59871         (freeaddrinfo): Free ai->ai_canonname when set.
59872
59873 2005-09-12  Derek Price  <derek@ximbiot.com>
59874
59875         Make canon-host require getaddrinfo.
59876         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
59877         AC_LIBSOURCE canon-host.h.  Call...
59878         (gl_PREREQ_CANON_HOST): ...this new function, which requires
59879         gl_GETADDRINFO.
59880         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
59881
59882 2005-09-12  Derek Price  <derek@ximbiot.com>
59883
59884         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
59885         LGPL.
59886         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
59887
59888 2005-09-12  Derek Price  <derek@ximbiot.com>
59889
59890         * lib/gai_strerror.c: Include config.h when available.  Include
59891         getaddrinfo.h before other headers to test interface.
59892         Reported by Larry Jones <lawrence.jones@ugs.com>.
59893
59894 2005-09-12  Derek Price  <derek@ximbiot.com>
59895             Paul Eggert  <eggert@cs.ucla.edu>
59896
59897         * modules/glob (Files): Add glob-libc.h.
59898
59899 2005-09-12  Derek Price  <derek@ximbiot.com>
59900             Paul Eggert  <eggert@cs.ucla.edu>
59901
59902         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
59903         glob_.h, glob-libc.h.
59904         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
59905
59906 2005-09-12  Derek Price  <derek@ximbiot.com>
59907             Paul Eggert  <eggert@cs.ucla.edu>
59908
59909         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
59910         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
59911         protecting things that should be done only in gnulib contexts.
59912         * lib/glob_.h: New file, containing only the glob things needed for
59913         gnulib.
59914         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
59915         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
59916         (glob, globfree, glob_pattern_p): Now defined simply in terms of
59917         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
59918         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
59919         and to respect the namespace rules better.
59920
59921 2005-09-08  Simon Josefsson  <jas@extundo.com>
59922
59923         * modules/socklen: New file.
59924
59925 2005-09-08  Simon Josefsson  <jas@extundo.com>
59926
59927         * m4/socklen.m4: New file.
59928
59929 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59930
59931         * modules/utimens (Files): Add m4/utimbuf.m4, since
59932         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
59933         Reported by Sergey Poznyakoff.
59934
59935 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59936
59937         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
59938         definitions, since that's the preferred style in glibc.
59939         Fix a minor spacing issue, and update copyright notice to match
59940         glibc's.
59941
59942 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59943
59944         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
59945
59946 2005-09-06  Simon Josefsson  <jas@extundo.com>
59947
59948         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
59949         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
59950
59951 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59952
59953         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
59954         warning.
59955
59956 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59957
59958         * config/srclist.txt: Add glibc bug 1302.
59959
59960 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
59961
59962         Change bitset word type from unsigned int to unsigned long int,
59963         as this has better performance on typical 64-bit hosts.
59964         Port bitset code to hosts with unusual word sizes.
59965         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
59966         (build_collating_symbol):
59967         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
59968         argument is a bitset.  This is merely a style issue, but it makes
59969         it clearer that an entire array is expected.
59970         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
59971         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
59972         Port to the case where bitset_word is not the same as unsigned int.
59973         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59974         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
59975         Likewise.
59976         * lib/regexec.c (check_dst_limits_calc_pos_1,
59977         check_subexp_matching_top):
59978         (build_trtable, group_nodes_into_DFAstates):
59979         Likewise.
59980         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
59981         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
59982         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
59983         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
59984         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
59985         * lib/regcomp.c (optimize_subexps, lower_subexp):
59986         Work even if bitset_word has holes in its bitwise representation.
59987         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
59988         * lib/regexec.c (check_dst_limits_calc_pos_1,
59989         check_subexp_matching_top):
59990         Likewise.
59991         * lib/regex_internal.c (re_string_reconstruct):
59992         Don't assume UCHAR_MAX == 255.
59993         * lib/regex_internal.h (bitset_set_all): Likewise.
59994         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
59995         All uses changed.
59996         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
59997         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
59998         All uses changed.
59999         (BITSET_WORD_MAX): New macro.
60000         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
60001         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
60002         (bitset_empty, bitset_copy):
60003         Prefer sizeof (bitset) to multiplying it out ourselves.
60004         (bitset_not_merge): Remove; unused.
60005         (bitset_contain): Return bool, not unsigned int with one bit on.
60006         All callers changed.
60007         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
60008         alignment than re_node_set; do this by defining a new internal
60009         type struct dests_alloc and using it to allocate memory.
60010
60011 2005-09-05  Bruno Haible  <bruno@clisp.org>
60012
60013         * gnulib-tool (func_import): Fix comparison in handling of symbolic
60014         links.
60015
60016 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
60017
60018         * modules/size_max (Makefile.am): Add size_max.h
60019
60020 2005-09-04  Derek Price  <derek@ximbiot.com>
60021
60022         * gnulib-tool (func_import): Fix reversed $symbolic logic.
60023
60024 2005-09-03  Simon Josefsson  <jas@extundo.com>
60025
60026         * gnulib-tool: Fix typo.
60027
60028 2005-09-03  Simon Josefsson  <jas@extundo.com>
60029
60030         * config/srclist.txt: Add glibc bug 1293.
60031
60032 2005-09-03  Derek Price  <derek@ximbiot.com>
60033
60034         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
60035         From Larry Jones <lawrence.jones@ugs.com>.
60036
60037 2005-09-02  Simon Josefsson  <jas@extundo.com>
60038
60039         * modules/socklen: New file.
60040
60041 2005-09-02  Simon Josefsson  <jas@extundo.com>
60042
60043         * modules/havelib: New module.
60044
60045         * modules/gettext, modules/iconv, modules/lock, modules/readline:
60046         Use havelib.
60047
60048 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
60049
60050         Check for arithmetic overflow when calculating sizes, to prevent
60051         some buffer-overflow issues.  These patches are conservative, in the
60052         sense that when I couldn't determine whether an overflow was possible,
60053         I inserted a run-time check.
60054         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
60055         macros.
60056         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
60057         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
60058         (re_xnrealloc, re_x2nrealloc): New inline functions.
60059         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
60060         parse_bracket_exp):
60061         (build_equiv_class, build_charclass): Check for arithmetic overflow
60062         in size expression calculations.
60063         * lib/regex_internal.c (re_string_realloc_buffers):
60064         (build_wcs_upper_buffer, re_node_set_add_intersect):
60065         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
60066         (re_dfa_add_node, register_state): Likewise.
60067         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
60068         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
60069         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
60070         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
60071
60072 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
60073
60074         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
60075         m4/ulonglong.m4.  Problem reported by Martin Lambers.
60076
60077 2005-09-02  Bruno Haible  <bruno@clisp.org>
60078
60079         Support for lib vs. lib64 distinction on biarch platforms.
60080         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
60081         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
60082         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
60083
60084 2005-09-02  Bruno Haible  <bruno@clisp.org>
60085
60086         * gnulib-tool (import): In the other first-use case, provide defaults
60087         as well.
60088
60089 2005-09-02  Bruno Haible  <bruno@clisp.org>
60090
60091         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
60092         patches not yet found in the latest gettext release.
60093
60094 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60095
60096         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
60097         to avoid a collision with bits/local_lim.h in glibc.
60098         All uses changed.  Problem reported by Dmitry V. Levin in
60099         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
60100
60101         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
60102         bugs in int versus size_t comparisons.
60103         (re_string_context_at): Fix bug where the code assumed that
60104         Idx is signed.
60105
60106         Use bool where appropriate.
60107         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
60108         All callers changed.
60109         (calc_eclosure_iter): Likewise, for ROOT arg.
60110         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
60111         (build_charclass_op): Likewise, for NON_MATCH arg.
60112         * lib/regex_internal.c (re_string_allocate, re_string_construct):
60113         (re_string_construct_common): Likewise, for ICASE arg.
60114         * lib/regexec.c (re_search_2_stub, re_search_stub):
60115         Likewise, for RET_LEN arg.
60116         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
60117         (set_regs): Likewise, for FL_BACKTRACK arg.
60118         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
60119         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
60120         (calc_eclosure_iter, parse_bracket_exp):
60121         Use bool for internal variables that are booleans.
60122         * lib/regexec.c (re_search_internal, check_matching,
60123         proceed_next_node):
60124         (set_regs, build_sifted_states, sift_states_bkref):
60125         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
60126         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60127         (find_collation_sequence_value):
60128         Likewise.
60129         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
60130         (re_node_set_compare):
60131         Return bool, not int. All callers changed.
60132         * lib/regexec.c (check_halt_node_context, check_dst_limits):
60133         (build_trtable, check_node_accept): Likewise.
60134         * lib/regex_internal.h: Include stdbool.h.
60135
60136         Fix bugs uncovered when converting to bool.
60137         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
60138         failure instead of charging ahead blindly.
60139         * lib/regex_internal.c (register_state): Likewise.
60140         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
60141         for freeing internal storage.
60142         (group_nodes_into_DFA_states): Use unsigned int, not int, for
60143         bitset pieces used as boolean, to avoid undefined behavior
60144         on hosts that do int overflow checking.
60145
60146 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60147
60148         * config/srclist.txt: Add glibc bugs 1285-1287.
60149
60150 2005-09-01  Jim Meyering  <jim@meyering.net>
60151
60152         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
60153         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
60154         Require gl_STAT_MACROS, too.
60155
60156 2005-09-01  Bruno Haible  <bruno@clisp.org>
60157
60158         * gnulib-tool (import): In the first-use case, provide defaults.
60159
60160 2005-09-01  Bruno Haible  <bruno@clisp.org>
60161
60162         * gnulib-tool (func_import): Remove the .tmp files.
60163
60164 2005-09-01  Bruno Haible  <bruno@clisp.org>
60165
60166         * gnulib-tool (func_import): Fix handling of symbolic links.
60167
60168 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60169
60170         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
60171         old glibc regex code mishandles strings longer than 2**31 bytes.
60172         This patch fixes this when the regex code is used in gnulib
60173         (i.e., outside glibc).
60174
60175         This patch should not affect the use of the regex code inside
60176         glibc.  No doubt this problem also needs to be handled for glibc
60177         as well, but the result will be an incompatible change to the
60178         glibc ABI, and the old ABI will have to be supported too.  That
60179         can be the the subject for another patch.
60180
60181         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
60182         governing whether the rest of this patch is active.  By default,
60183         the macro is disabled and the patch has no effect.
60184         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
60185         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
60186         (struct re_pattern_buffer, re_search, re_search_2, re_match):
60187         (re_match_2, re_set_registers): Use the new types.
60188         * lib/regex_internal.h (Idx, re_hashval_t): New types.
60189         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
60190         New macros.
60191         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
60192         (re_string_context_at, bin_tree_t, re_dfastate_t):
60193         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
60194         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
60195         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
60196         (re_string_char_size_at, re_string_wchar_at):
60197         (re_string_elem_size_at):
60198         Use the new types and macros to port to 64-bit hosts.
60199         Use unsigned types for internal values, so that the code
60200         mostly works even for arrays larger than SSIZE_MAX.
60201         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
60202         (search_duplicated_node, calc_eclosure_iter, fetch_number):
60203         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
60204         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
60205         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
60206         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
60207         (calc_inveclosure, parse_dup_op, build_range_exp):
60208         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
60209         (fetch_number, create_token_tree, mark_opt_subexp):
60210         Likewise.
60211         * lib/regex_internal.c (re_string_construct_common,
60212         create_ci_newstate):
60213         (create_cd_newstate, re_string_allocate, re_string_construct):
60214         (re_string_realloc_buffers, build_wcs_upper_buffer):
60215         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60216         (re_string_reconstruct, re_string_peek_byte_case):
60217         (re_string_fetch_byte_case, re_string_context_at):
60218         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60219         (re_node_set_init_copy, re_node_set_add_intersect):
60220         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60221         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60222         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60223         (re_acquire_state, re_acquire_state_context, register_state):
60224         Likewise.
60225         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
60226         search_cur_bkref_entry):
60227         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
60228         (re_search_internal, re_search_2_stub, re_search_stub)
60229         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
60230         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
60231         (update_cur_sifted_state, check_dst_limits):
60232         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60233         (check_subexp_limits, sift_states_bkref, merge_state_array):
60234         (check_subexp_matching_top, get_subexp, get_subexp_sub):
60235         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
60236         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60237         (expand_bkref_cache, check_node_accept_bytes):
60238         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
60239         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
60240         (acquire_init_state_context, check_halt_node_context):
60241         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
60242         (sift_states_backward, clean_state_log_if_needed):
60243         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
60244         (find_recover_state, transit_state_sb, transit_state_mb):
60245         (transit_state_bkref, build_trtable, match_ctx_clean):
60246         Likewise.
60247         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
60248         to work around an assumption that REG_MISSING is negative.
60249
60250         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
60251         (seek_collating_symbol_entry) [defined _LIBC]:
60252         (lookup_collation_sequence_value) [defined _LIBC]:
60253         (build_range_exp, build_collating_symbol) [defined _LIBC]:
60254         Use prototypes rather than old-style function definitions.
60255         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
60256         (transit_state_sb) [0]:
60257         (find_collation_sequence_value) [defined _LIBC]: Likewise.
60258
60259         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
60260         rm_eo.
60261
60262         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
60263         (optimize_subexps, lower_subexp):
60264         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
60265         since the signed shift might overflow.  Use 1u<<31 instead.
60266         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
60267         Likewise.
60268         * lib/regexec.c (check_dst_limits_calc_pos_1,
60269         check_subexp_matching_top): Likewise.
60270
60271         * lib/regcomp.c (optimize_subexps, lower_subexp):
60272         Use CHAR_BIT rather than 8, for clarity.
60273         * lib/regexec.c (check_dst_limits_calc_pos_1):
60274         (check_subexp_matching_top): Likewise.
60275         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
60276         have to worry about portability issues when shifting it left.
60277         Remove no-longer-needed test for table_size > 0.
60278         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
60279         in a word, as the resulting behavior is undefined.
60280         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
60281         in one case, a <= should have been an <, and in another case the
60282         whole test was missing.
60283         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
60284         the standard name CHAR_BIT.
60285         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
60286         this is not true on one's complement and signed-magnitude hosts.
60287
60288         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
60289         next_last_offset.
60290         (struct re_dfa_t): Remove unused member states_alloc.
60291         * lib/regcomp.c (init_dfa): Don't initialize unused members.
60292
60293 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60294
60295         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
60296         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
60297         and large-file glibc and in 32-bit large-file Solaris.
60298
60299 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60300
60301         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
60302         lengths fit in regoff_t; this isn't true if regoff_t is the same
60303         width as size_t.
60304         * lib/regex.c (re_search_internal): 5th arg is LAST_START
60305         (= START + RANGE) instead of RANGE.  This avoids overflow
60306         problems when regoff_t is the same width as size_t.
60307         All callers changed.
60308         (re_search_2_stub): Check for overflow when adding the
60309         sizes of the two strings.
60310         (re_search_stub): Check for overflow when adding START
60311         to RANGE; if it occurs, substitute the extreme value.
60312
60313 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60314
60315         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
60316
60317 2005-08-31  Jim Meyering  <jim@meyering.net>
60318
60319         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
60320         a pointer-to-const.
60321         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
60322         (register_state): Likewise.
60323         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
60324         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60325         (group_nodes_into_DFAstates): Likewise.
60326
60327 2005-08-31  Jim Meyering  <jim@meyering.net>
60328
60329         * check-module: Add a FIXME comment.
60330
60331 2005-08-31  Eric Blake  <ebb9@byu.net>
60332
60333         * modules/unistd-safer (Files): Add unistd--.h.
60334         * modules/stdio-safer (Files): Add stdio--.h.
60335
60336 2005-08-31  Derek Price  <derek@ximbiot.com>
60337
60338         * lib/getdelim.c (getdelim): Return EOF on EOF.
60339         Reported by Larry Jones <lawrence.jones@ugs.com>.
60340
60341 2005-08-31  Bruno Haible  <bruno@clisp.org>
60342
60343         Avoid unnecessary diffs in the generated lib/Makefile.am.
60344         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
60345         the generated files.
60346         (func_import): Don't set cmd.
60347
60348 2005-08-31  Bruno Haible  <bruno@clisp.org>
60349
60350         * lib/strstr.c: Include <stddef.h>, for NULL.
60351         * lib/strcasestr.c: Likewise.
60352         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60353
60354 2005-08-31  Bruno Haible  <bruno@clisp.org>
60355
60356         * gnulib-tool: New option --macro-prefix.
60357         (func_import): Use macro_prefix.
60358         (import): Handle option --macro-prefix.
60359
60360 2005-08-31  Bruno Haible  <bruno@clisp.org>
60361
60362         * gnulib-tool (import): Rename most ac_* variables to cached_*.
60363         Also use new variables cached_lgpl, cached_libtool.
60364
60365 2005-08-31  Bruno Haible  <bruno@clisp.org>
60366
60367         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
60368         always instantiating them.
60369
60370 2005-08-31  Bruno Haible  <bruno@clisp.org>
60371
60372         * gnulib-tool (func_import): Read the previous cached settings
60373         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
60374         earlier added by gnulib but are now dropped. Warn when a gnulib file
60375         overwrites a non-gnulib file.
60376
60377 2005-08-31  Bruno Haible  <bruno@clisp.org>
60378
60379         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
60380         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
60381         projects that don't keep autogenerated files in CVS. Put into
60382         actioncmd only the specified modules, not the transitive closure.
60383
60384 2005-08-31  Bruno Haible  <bruno@clisp.org>
60385
60386         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
60387         Create directories that shall be filled.
60388         (import): Don't look for gl_* macros in configure.ac. Recurse across
60389         all directories containing a gnulib-cache.m4 files, if meaningful.
60390
60391 2005-08-31  Bruno Haible  <bruno@clisp.org>
60392
60393         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
60394         (import): Set seen_libtool when we see gl_LIBTOOL.
60395
60396 2005-08-31  Bruno Haible  <bruno@clisp.org>
60397
60398         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
60399         declaration macro definitions from generated gnulib.m4.
60400
60401 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
60402
60403         * lib/iconvme.h: Add prototype for iconv_alloc.
60404
60405 2005-08-29  Simon Josefsson  <jas@extundo.com>
60406
60407         * lib/iconvme.c: Fix errno.
60408
60409 2005-08-29  Bruno Haible  <bruno@clisp.org>
60410
60411         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
60412         that it works when the directory contains spaces.
60413
60414 2005-08-29  Bruno Haible  <bruno@clisp.org>
60415
60416         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
60417
60418 2005-08-29  Bruno Haible  <bruno@clisp.org>
60419
60420         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
60421         Emit more advice.
60422
60423 2005-08-29  Bruno Haible  <bruno@clisp.org>
60424         and Stepan Kasal  <kasal@ucw.cz>
60425
60426         * check-module: If more parameters are given, check each of them
60427         separately; add more exceptions, as noted by Jim Meyering.
60428         (check_module): New procedure.
60429         (%exempt_header): Now contains all exceptions.
60430
60431 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
60432
60433         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
60434
60435 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
60436
60437         * lib/iconvme.c: Split iconv_string into iconv_alloc.
60438
60439 2005-08-28  Bruno Haible  <bruno@clisp.org>
60440
60441         * m4/gnulib-tool.m4: New file.
60442
60443 2005-08-27  Jim Meyering  <jim@meyering.net>
60444
60445         * modules/unistd-safer (Files): Add pipe-safer.c.
60446         * modules/fcntl-safer (Files): Add creat-safer.c.
60447
60448 2005-08-27  Jim Meyering  <jim@meyering.net>
60449
60450         * m4/stdlib-safer.m4: New file.  From coreutils.
60451         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
60452         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
60453         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
60454         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
60455         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
60456
60457 2005-08-27  Jim Meyering  <jim@meyering.net>
60458
60459         * lib/fopen-safer.c: Merge minor changes from coreutils.
60460         * lib/dup-safer.c: Likewise.
60461         * lib/fd-safer.c: Likewise.
60462
60463         Merge from coreutils.
60464         * lib/stdio--.h: New file.
60465         * lib/stdlib--.h: New file.
60466         * lib/mkstemp-safer.c: New file.
60467
60468         GNU tar needs these.
60469         * lib/pipe-safer.c: New file.
60470         * lib/creat-safer.c: New file.
60471         * lib/fcntl--.h (creat): Define to creat_safer.
60472         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
60473         * lib/unistd--.h (pipe): Define to pipe_safer.
60474         * lib/unistd-safer.h: Declare pipe_safer.
60475
60476 2005-08-26  Simon Josefsson  <jas@extundo.com>
60477
60478         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
60479         Haible <bruno@clisp.org>.
60480
60481 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
60482
60483         * lib/regex_internal.h: Remove all references to
60484         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
60485         or better.
60486         (bitset_not, bitset_merge, bitset_not_merge):
60487         (bitset_mask, re_string_allocate, re_string_construct):
60488         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
60489         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
60490         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
60491         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
60492         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60493         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60494         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
60495         (re_acquire_state_context):
60496         Remove unnecessary forward decls.
60497         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
60498         Put __attribute at function definition,
60499         now that the function decl has been removed.
60500         * lib/regex_internal.c (re_string_peek_byte_case):
60501         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
60502         Likewise.
60503
60504 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
60505
60506         * m4/regex.m4: Add AC_PREREQ(2.50).
60507         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
60508
60509 2005-08-25  Simon Josefsson  <jas@extundo.com>
60510
60511         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
60512         __fsetlocking.
60513
60514 2005-08-25  Simon Josefsson  <jas@extundo.com>
60515
60516         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
60517         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
60518         GLIBC specific code.
60519
60520 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60521
60522         Make regex safe for g++.  This fixes one real bug (an "err"
60523         that should have been "*err").  g++ problem reported by
60524         Sam Steingold.
60525         * lib/regex_internal.h (re_calloc): New macro, consistent with
60526         re_malloc etc.  All callers of calloc changed to use re_calloc.
60527         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
60528         not int.  All callers changed.
60529         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
60530         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
60531         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
60532         (find_recover_state): Change "err" to "*err"; this fixes what
60533         appears to be a real bug.
60534         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
60535         versus int.
60536
60537 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60538
60539         * modules/regex (Depends-on): Add malloc, since the code
60540         assumes that !malloc(0) means failure.
60541
60542 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60543
60544         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
60545
60546         alloca modernization/simplification for regex.
60547         * lib/regex.c: Remove portability cruft for alloca.  This no longer
60548         needs to be at the start of the file, and can be moved into
60549         regex_internal.h and simplified.
60550         * lib/regex_internal.h: Include <alloca.h>.
60551         (__libc_use_alloca) [!defined _LIBC]: New macro.
60552         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
60553         now works outside glibc.
60554
60555 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60556
60557         * config/srclist.txt: Add glibc bugs 1241, 1245.
60558
60559 2005-08-25  Jim Meyering  <jim@meyering.net>
60560
60561         * lib/open-safer.c: Include <config.h>.
60562         Otherwise, we'd lose LARGEFILE support in any file using
60563         e.g. "fcntl--.h"
60564
60565 2005-08-25  Bruno Haible  <bruno@clisp.org>
60566
60567         * m4/minmax.m4: Require autoconf 2.52.
60568         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
60569         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
60570         alternatives of translit over the alphabet.
60571         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
60572
60573 2005-08-24  Simon Josefsson  <jas@extundo.com>
60574
60575         * tests/test-getpass.c: New file.
60576
60577 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60578
60579         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
60580         for GNU regex features.
60581
60582 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60583
60584         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
60585         * lib/regex.h (regerror): Likewise.
60586
60587         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
60588         requires this.  (The code never needed it.)
60589
60590         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
60591         All uses of recently-renamed identifiers changed to use the new,
60592         POSIX-compliant names.  The code will build and run just fine
60593         without these changes, but it's better to eat our own dog food
60594         and use the standard-conforming names.
60595
60596         * lib/regex.h: Fix a multitude of POSIX name space violations.
60597         These changes have an effect only for programs that define
60598         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
60599         do not change anything for programs compiled in the normal way.
60600         Also, there is no effect on the ABI.
60601
60602         (_REGEX_SOURCE): New macro.
60603         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
60604         defined and _GNU_SOURCE is not; this fixes a name space violation.
60605
60606         Rename the following macros to obey POSIX requirements.
60607         The old names are still visible as macros if _REGEX_SOURCE is defined.
60608         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
60609         RE_BACKSLASH_ESCAPE_IN_LISTS.
60610         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
60611         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
60612         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
60613         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
60614         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
60615         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
60616         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
60617         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
60618         (REG_INTERVALS): renamed from RE_INTERVALS.
60619         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
60620         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
60621         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
60622         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
60623         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
60624         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
60625         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
60626         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
60627         RE_UNMATCHED_RIGHT_PAREN_ORD.
60628         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
60629         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
60630         (REG_DEBUG): renamed from RE_DEBUG.
60631         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
60632         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
60633         unusual, since we can't clash with the POSIX REG_ICASE.
60634         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
60635         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
60636         (REG_NO_SUB): renamed from RE_NO_SUB.
60637         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
60638         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
60639         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
60640         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
60641         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
60642         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
60643         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
60644         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
60645         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
60646         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
60647         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
60648         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
60649         RE_SYNTAX_POSIX_MINIMAL_BASIC.
60650         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
60651         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
60652         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
60653         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
60654         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
60655         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
60656         (REG_FIXED): Renamed from REGS_FIXED.
60657         (REG_NREGS): Renamed from RE_NREGS.
60658
60659         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
60660         of other REG_* macros, since POSIX says the user is allowed to
60661         #undef these macros selectively.
60662
60663         (reg_errcode_t): Update comment stating what other tables need
60664         to be consistent.
60665
60666         Rename the following enum values to obey POSIX requirements.
60667         The old names are still visible as macros.
60668         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
60669         is not defined, since GNU is supposed to be a superset of POSIX as
60670         much as possible, and since we want reg_errcode_t to be a signed
60671         type for implementation consistency.
60672         (_REG_NOERROR): Renamed from REG_NOERROR.
60673         (_REG_NOMATCH): Renamed from REG_NOMATCH.
60674         (_REG_BADPAT): Renamed from REG_BADPAT.
60675         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
60676         (_REG_ECTYPE): Renamed from REG_ECTYPE.
60677         (_REG_EESCAPE): Renamed from REG_EESCAPE.
60678         (_REG_ESUBREG): Renamed from REG_ESUBREG.
60679         (_REG_EBRACK): Renamed from REG_EBRACK.
60680         (_REG_EPAREN): Renamed from REG_EPAREN.
60681         (_REG_EBRACE): Renamed from REG_EBRACE.
60682         (_REG_BADBR): Renamed from REG_BADBR.
60683         (_REG_ERANGE): Renamed from REG_ERANGE.
60684         (_REG_ESPACE): Renamed from REG_ESPACE.
60685         (_REG_BADRPT): Renamed from REG_BADRPT.
60686         (_REG_EEND): Renamed from REG_EEND.
60687         (_REG_ESIZE): Renamed from REG_ESIZE.
60688         (_REG_ERPAREN): Renamed from REG_ERPAREN.
60689         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
60690         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
60691         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
60692         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
60693
60694         (_REG_RE_NAME, _REG_RM_NAME): New macros.
60695         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
60696         changed.  But support the old name if the new one is not defined
60697         and if _REGEX_SOURCE.
60698
60699         Change the following member names in struct re_pattern_buffer.
60700         The old names are still supported if !_REGEX_SOURCE.
60701         The new names are always supported, regardless of _REGEX_SOURCE.
60702         (re_buffer): Renamed from buffer.
60703         (re_allocated): Renamed from allocated.
60704         (re_used): Renamed from used.
60705         (re_syntax): Renamed from syntax.
60706         (re_fastmap): Renamed from fastmap.
60707         (re_translate): Renamed from translate.
60708         (re_can_be_null): Renamed from can_be_null.
60709         (re_regs_allocated): Renamed from regs_allocated.
60710         (re_fastmap_accurate): Renamed from fastmap_accurate.
60711         (re_no_sub): Renamed from no_sub.
60712         (re_not_bol): Renamed from not_bol.
60713         (re_not_eol): Renamed from not_eol.
60714         (re_newline_anchor): Renamed from newline_anchor.
60715
60716         Change the following member names in struct re_registers.
60717         The old names are still supported if !_REGEX_SOURCE.
60718         The new names are always supported, regardless of _REGEX_SOURCE.
60719         (rm_num_regs): Renamed from num_regs.
60720         (rm_start): Renamed from start.
60721         (rm_end): Renamed from end.
60722
60723         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
60724         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
60725         Prepend __ to parameter names.
60726
60727         Undo yesterday's changes.
60728
60729 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60730
60731         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
60732         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
60733         lib/regex.c.
60734
60735 2005-08-24  Jim Meyering  <jim@meyering.net>
60736
60737         Sync from coreutils.
60738         * m4/fcntl-safer.m4: New file.
60739
60740         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
60741         and object files for this module.
60742
60743 2005-08-24  Jim Meyering  <jim@meyering.net>
60744
60745         Sync from coreutils.
60746         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
60747
60748 2005-08-24  Jim Meyering  <jim@meyering.net>
60749
60750         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
60751         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
60752
60753 2005-08-24  Jim Meyering  <jim@meyering.net>
60754
60755         * modules/fcntl-safer: New module.
60756         * modules/fts (Depends-on): Add fcntl-safer.
60757         * MODULES.html.sh (File descriptor based Input/Output):
60758         Add fcntl-safer.
60759
60760 2005-08-24  Bruno Haible  <bruno@clisp.org>
60761
60762         Support for unit test modules.
60763         * modules/README: Mention tests modules.
60764         * modules/TEMPLATE-TESTS: New file.
60765         * gnulib-tool: New options --extract-tests-module, --with-tests and
60766         --tests-base (unused for the moment).
60767         (testsbase, inctests): New variables.
60768         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
60769         (func_verify_module): Exclude TEMPLATE-TESTS.
60770         (func_verify_nontests_module, func_verify_tests_module): New functions.
60771         (func_get_dependencies): Add implicit dependency for tests modules.
60772         (func_get_tests_module): New function.
60773         (func_modules_transitive_closure): When --with-tests was specified,
60774         include the unit tests as well, unless explicitly avoided.
60775         (func_emit_lib_Makefile_am): Ignore the tests modules here.
60776         (func_emit_tests_Makefile_am): New function.
60777         (func_create_testdir): When --with-tests was specified, emit a
60778         tests/ directory.
60779         * MODULES.html.sh (Future developments): Update.
60780
60781 2005-08-24  Bruno Haible  <bruno@clisp.org>
60782
60783         * modules/tls-tests: New file.
60784         * tests/test-tls.c: New file, from GNU gettext.
60785
60786 2005-08-24  Bruno Haible  <bruno@clisp.org>
60787
60788         * modules/lock-tests: New file.
60789         * tests/test-lock.c: New file, from GNU gettext.
60790
60791 2005-08-24  Bruno Haible  <bruno@clisp.org>
60792
60793         * lib/lock.h: Add multiple inclusion guard.
60794         * lib/tls.h: Add multiple inclusion guard.
60795
60796 2005-08-24  Bruno Haible  <bruno@clisp.org>
60797
60798         * gnulib-tool: Add support for the --aux-dir option to
60799         --create-testdir, --create-megatestdir, --test, --megatest.
60800         (func_create_testdir, func_create_megatestdir): Optionally emit a
60801         AC_CONFIG_AUX_DIR directive.
60802         (create-testdir, create-megatestdir, test, megatest): Provide a
60803         default value for $auxdir.
60804
60805 2005-08-24  Bruno Haible  <bruno@clisp.org>
60806
60807         * gnulib-tool (import): Use compound statement instead of subshell
60808         where possible.
60809
60810 2005-08-24  Bruno Haible  <bruno@clisp.org>
60811
60812         * gnulib-tool (import): Change --aux-dir default to "build-aux".
60813
60814 2005-08-24  Bruno Haible  <bruno@clisp.org>
60815
60816         * gnulib-tool (func_version): Update.
60817
60818 2005-08-24  Bruno Haible  <bruno@clisp.org>
60819
60820         * gnulib-tool (func_import, func_create_testdir,
60821         func_create_megatestdir): Quote all autoconf macro arguments.
60822
60823 2005-08-24  Bruno Haible  <bruno@clisp.org>
60824
60825         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
60826         option --force, because --force causes the aclocal.m4 of each
60827         subdirectory to be newer than the corresponding config.h.in.
60828
60829 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60830
60831         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
60832         All contents moved to gl_REGEX.
60833         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
60834         assume that it does.
60835
60836 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60837
60838         * lib/regex.h (REG_NOSYS)
60839         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
60840         Define, since POSIX requires it as of 2001.
60841         (_REG_ENOSYS)
60842         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
60843         New private symbol, used to keep the enum signed in all cases.
60844         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
60845         Youngman in
60846         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
60847
60848         * lib/regex_internal.c (re_string_skip_chars, register_state):
60849         (calc_state_hash):
60850         Remove forward decls; no longer needed now that we use prototypes.
60851         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
60852         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
60853         (clean_state_log_if_needed): Likewise.
60854
60855 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60856
60857         * config/srclist.txt: Add glibc bugs 1231-1233.
60858
60859 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60860
60861         Fix problems reported by Sam Steingold in
60862         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
60863         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
60864         assumed that reg_errcode_t is a signed type, which is not
60865         necessarily true if _XOPEN_SOURCE is not defined.
60866         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
60867         since some compilers warn about it otherwise.
60868
60869 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60870
60871         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
60872         (init_word_char, create_initial_state, duplicate_node_closure):
60873         (fetch_token, peek_token_bracket, build_range_exp):
60874         (build_collating_symbol): Remove forward decls; no longer needed
60875         now that we use prototypes.
60876
60877         * lib/regcomp.c:
60878         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
60879         (re_compile_fastmap_iter, regcomp, regerror, regfree):
60880         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
60881         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
60882         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
60883         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
60884         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
60885         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
60886         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
60887         (build_range_exp, build_collating_symbol, parse_bracket_exp):
60888         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
60889         (build_charclass, build_charclass_op, fetch_number, create_tree):
60890         (create_token_tree, mark_opt_subexp, duplicate_tree):
60891         Use prototypes rather than old-style definitions.
60892
60893         * lib/regex_internal.c:
60894         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
60895         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
60896         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60897         (re_string_reconstruct, re_string_peek_byte_case):
60898         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
60899         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60900         (re_node_set_init_copy, re_node_set_add_intersect):
60901         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60902         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60903         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60904         (re_acquire_state, re_acquire_state_context, register_state):
60905         (create_ci_newstate, create_cd_newstate, free_state):
60906         Likewise.
60907         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
60908         re_search_2):
60909         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
60910         (re_search_internal, prune_impossible_nodes):
60911         (acquire_init_state_context, check_matching, static):
60912         (check_halt_node_context, check_halt_state_context, proceed_next_node):
60913         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
60914         (update_regs, sift_states_backward, build_sifted_states):
60915         (clean_state_log_if_needed, merge_state_array):
60916         (update_cur_sifted_state, add_epsilon_src_nodes):
60917         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
60918         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
60919         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
60920         (find_recover_state, check_subexp_matching_top, transit_state_mb):
60921         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
60922         (check_arrival, check_arrival_add_next_nodes):
60923         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60924         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60925         (check_node_accept_bytes, check_node_accept, extend_buffers):
60926         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
60927         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
60928         (sift_ctx_init):
60929         Likewise.
60930
60931         * lib/regex_internal.h:
60932         (re_string_allocate, re_string_construct, re_string_reconstruct):
60933         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
60934         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
60935         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
60936         (re_string_context_at, re_string_peek_byte_case):
60937         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
60938         is defined, since we now use prototypes always.
60939
60940         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
60941         C89 or better.  All uses removed.
60942
60943 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60944
60945         * config/srclist.txt: Add glibc bugs 1220-1227.
60946
60947 2005-08-20  Jim Meyering  <jim@meyering.net>
60948
60949         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
60950         of unused local, dfa.
60951
60952 2005-08-20  Bruno Haible  <bruno@clisp.org>
60953
60954         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
60955
60956 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60957
60958         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
60959         (re_node_set_insert_last, re_dfa_add_node):
60960         Rename local variables to avoid GCC shadowing warnings.
60961
60962 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60963
60964         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
60965         [defined lint]: Suppress bogus uninitialized-variable warnings.
60966
60967         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
60968         and let the caller return REG_ESPACE if out of space.  This
60969         removes an uninitialied-variable warning with GCC 4.0.1, and also
60970         avoids taking the address of a local variable.  All callers
60971         changed.
60972
60973 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60974
60975         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
60976         $LIBCSRC/posix/regexec.c.
60977         Add glibc bug 1217 for regcomp.c.
60978
60979 2005-08-19  Jim Meyering  <jim@meyering.net>
60980
60981         * lib/regexec.c (proceed_next_node): Redo local variables to
60982         avoid GCC shadowing warnings.
60983
60984 2005-08-18  Bruno Haible  <bruno@clisp.org>
60985
60986         * lib/strstr.c (strstr): Fix return value in multibyte case.
60987         * lib/strcasestr.c (strcasestr): Likewise.
60988
60989 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60990
60991         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
60992
60993 2005-08-17  Jim Meyering  <jim@meyering.net>
60994
60995         Make the %s format (seconds since the epoch) work for a negative
60996         number and when used with a zero-padded field width, e.g. %015s.
60997
60998         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
60999         label so that it precedes the code to set `digits'.  Otherwise,
61000         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
61001         print `00-22'.  Now, it prints `-0022', as it should.
61002
61003 2005-08-17  Bruno Haible  <bruno@clisp.org>
61004
61005         * modules/strstr (Files): Add m4/mbrtowc.m4.
61006         (Depends-on): Add mbuiter.
61007
61008 2005-08-17  Bruno Haible  <bruno@clisp.org>
61009
61010         * modules/strcasestr: New file.
61011         * MODULES.html.sh (String handling, based on ANSI C 89): Add
61012         strcasestr.
61013
61014 2005-08-17  Bruno Haible  <bruno@clisp.org>
61015
61016         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
61017
61018 2005-08-17  Bruno Haible  <bruno@clisp.org>
61019
61020         * modules/mbuiter: New file.
61021         * MODULES.html.sh (Extended multibyte and wide character utilities):
61022         Add mbuiter.
61023
61024 2005-08-17  Bruno Haible  <bruno@clisp.org>
61025
61026         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
61027         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
61028
61029 2005-08-17  Bruno Haible  <bruno@clisp.org>
61030
61031         * m4/strcasestr.m4: New file.
61032
61033 2005-08-17  Bruno Haible  <bruno@clisp.org>
61034
61035         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
61036         * lib/strstr.c: Completely rewritten, with multibyte locale support.
61037
61038 2005-08-17  Bruno Haible  <bruno@clisp.org>
61039
61040         * lib/strcasestr.h: New file.
61041         * lib/strcasestr.c: New file.
61042
61043 2005-08-17  Bruno Haible  <bruno@clisp.org>
61044
61045         * lib/strcasecmp.c: Use mbuiter.h.
61046
61047 2005-08-17  Bruno Haible  <bruno@clisp.org>
61048
61049         * lib/mbuiter.h: New file.
61050
61051 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61052
61053         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
61054         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
61055         and gl_GETOPT are both invoked via different paths (as happens
61056         with GNU tar CVS because it uses both argp and getopt), the former
61057         wins.
61058
61059 2005-08-16  Bruno Haible  <bruno@clisp.org>
61060
61061         * modules/tls: New file.
61062         * MODULES.html.sh (Multithreading): Add tls.
61063
61064 2005-08-16  Bruno Haible  <bruno@clisp.org>
61065
61066         * modules/strnlen1: New file.
61067         * MODULES.html.sh (String handling): Add strnlen1.
61068
61069 2005-08-16  Bruno Haible  <bruno@clisp.org>
61070
61071         * modules/strcase (Files): Add m4/mbrtowc.m4.
61072         (Depends-on): Add strnlen1, mbchar.
61073
61074 2005-08-16  Bruno Haible  <bruno@clisp.org>
61075
61076         * modules/mbiter: New file.
61077         * MODULES.html.sh (Extended multibyte and wide character utilities):
61078         Add mbiter.
61079
61080 2005-08-16  Bruno Haible  <bruno@clisp.org>
61081
61082         * modules/mbfile: New file.
61083         * MODULES.html.sh (Extended multibyte and wide character utilities):
61084         Add mbfile.
61085
61086 2005-08-16  Bruno Haible  <bruno@clisp.org>
61087
61088         * modules/mbchar: New file.
61089         * MODULES.html.sh (Extended multibyte and wide character utilities):
61090         New section.
61091
61092 2005-08-16  Bruno Haible  <bruno@clisp.org>
61093
61094         * m4/tls.m4: New file, from GNU gettext.
61095
61096 2005-08-16  Bruno Haible  <bruno@clisp.org>
61097
61098         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
61099         always.
61100         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
61101
61102 2005-08-16  Bruno Haible  <bruno@clisp.org>
61103
61104         * m4/mbiter.m4: New file.
61105
61106 2005-08-16  Bruno Haible  <bruno@clisp.org>
61107
61108         * m4/mbfile.m4: New file.
61109
61110 2005-08-16  Bruno Haible  <bruno@clisp.org>
61111
61112         * m4/mbchar.m4: New file.
61113
61114 2005-08-16  Bruno Haible  <bruno@clisp.org>
61115
61116         * lib/tls.h: New file, from GNU gettext.
61117         * lib/tls.c: New file, from GNU gettext.
61118
61119 2005-08-16  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/strnlen1.h: New file.
61122         * lib/strnlen1.c: New file.
61123
61124 2005-08-16  Bruno Haible  <bruno@clisp.org>
61125
61126         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
61127         (mbi_init): Update.
61128         (mbi_avail, mbi_advance): Let the iteration end before the terminating
61129         NUL byte, not after it.
61130
61131 2005-08-16  Bruno Haible  <bruno@clisp.org>
61132
61133         * lib/strcase.h (strcasecmp): Add note in comments.
61134         * lib/strncasecmp.c: Use code from strcasecmp.c.
61135         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
61136         (strcasecmp): Work correctly in multibyte locales.
61137
61138 2005-08-16  Bruno Haible  <bruno@clisp.org>
61139
61140         * lib/mbiter.h: New file.
61141
61142 2005-08-16  Bruno Haible  <bruno@clisp.org>
61143
61144         * lib/mbfile.h: New file.
61145
61146 2005-08-16  Bruno Haible  <bruno@clisp.org>
61147
61148         * lib/mbchar.h: New file.
61149         * lib/mbchar.c: New file.
61150
61151 2005-08-16  Bruno Haible  <bruno@clisp.org>
61152
61153         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
61154         the valid ones. Makes the comparison operations transitive:
61155         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
61156         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
61157
61158 2005-08-15  Simon Josefsson  <jas@extundo.com>
61159
61160         * modules/ssize_t (License): Change to 'unlimited'.
61161
61162         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
61163
61164 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61165
61166         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
61167         Add comments for each pending glibc patch.
61168
61169 2005-08-15  Bruno Haible  <bruno@clisp.org>
61170
61171         * lib/regex.h (__restrict_arr): Don't define to __restrict if
61172         __cplusplus is defined.
61173
61174 2005-08-14  Jim Meyering  <jim@meyering.net>
61175
61176         Sync from coreutils.
61177
61178         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
61179         Use the hash-table-based cycle-detection code not just when
61180         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
61181         Reported by James Youngman in
61182         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
61183         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
61184         FTS_TIGHT_CYCLE_CHECK.
61185         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
61186         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
61187         once again.
61188         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
61189         * lib/fts.c (fd_safer): Remove decl.
61190         Include fcntl--.h rather than unistd-safer.h
61191         (fts_safe_changedir): Don't call fd_safer; no longer needed
61192         now that we include fcntl--.h.
61193
61194 2005-08-12  Simon Josefsson  <jas@extundo.com>
61195
61196         * modules/getndelim2: Use ssize_t module.
61197         * modules/getnline: Likewise.
61198         * modules/safe-read: Likewise.
61199         * modules/xreadlink: Likewise.
61200
61201         * modules/ssize_t: New file.
61202
61203 2005-08-12  Simon Josefsson  <jas@extundo.com>
61204
61205         * m4/readline.m4: Look for termcap, curses or ncurses if required.
61206
61207 2005-08-12  Simon Josefsson  <jas@extundo.com>
61208
61209         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61210         ssize_t.
61211
61212 2005-08-12  Simon Josefsson  <jas@extundo.com>
61213
61214         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
61215         readline, getdelim and check_version.
61216         (Support for systems lacking ISO C 99: Sizes of integer types):
61217         Add size_max.
61218
61219 2005-08-12  Bruno Haible  <bruno@clisp.org>
61220
61221         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
61222
61223 2005-08-11  Simon Josefsson  <jas@extundo.com>
61224
61225         * modules/readline: New file.
61226
61227         * modules/strnlen (Files): Add strnlen.h.
61228
61229 2005-08-11  Simon Josefsson  <jas@extundo.com>
61230
61231         * m4/readline.m4: New file.
61232
61233 2005-08-11  Simon Josefsson  <jas@extundo.com>
61234
61235         * lib/readline.h, readline.c: New file.
61236
61237 2005-08-11  Simon Josefsson  <jas@extundo.com>
61238
61239         * doc/gnulib.texi (Initial import, Finishing touches): Mention
61240         gl_AVOID.
61241
61242 2005-08-11  Bruno Haible  <bruno@clisp.org>
61243
61244         * lib/strnlen.h (strnlen): Change parameter name to match comment.
61245
61246 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
61247
61248         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
61249
61250 2005-08-10  Simon Josefsson  <jas@extundo.com>
61251
61252         * tests/test-iconvme.c: New file.
61253
61254 2005-08-10  Simon Josefsson  <jas@extundo.com>
61255
61256         * m4/strnlen.m4: New file.
61257
61258         * m4/strndup.m4: Don't check for strnlen declaration, done in
61259         strnlen.m4.
61260
61261 2005-08-10  Simon Josefsson  <jas@extundo.com>
61262
61263         * lib/strndup.c: Use strnlen.h.
61264
61265         * lib/strnlen.h: New file.
61266
61267 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61268
61269         * README: Typos.
61270
61271 2005-08-02  Simon Josefsson  <jas@extundo.com>
61272
61273         * modules/readline: New file.
61274
61275 2005-08-02  Simon Josefsson  <jas@extundo.com>
61276
61277         * modules/getdelim: New file.
61278
61279         * modules/getline: Rewrite, don't use getndelim2.
61280
61281 2005-08-02  Simon Josefsson  <jas@extundo.com>
61282
61283         * m4/getline.m4: Separate out getdelim stuff into separate module.
61284
61285         * m4/getdelim.m4: New file.
61286
61287 2005-08-02  Simon Josefsson  <jas@extundo.com>
61288
61289         * lib/getline.h, getline.c: Rewrite.
61290
61291         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
61292
61293 2005-07-31  Bruno Haible  <bruno@clisp.org>
61294
61295         * lib/lock.h (gl_lock_initializer): New macro.
61296         (gl_lock_define_initialized): Use it.
61297         (gl_rwlock_initializer): New macro.
61298         (gl_rwlock_define_initialized): Use it.
61299         (gl_recursive_lock_initializer): New macro.
61300         (gl_recursive_lock_define_initialized): Use it.
61301
61302 2005-07-30  Karl Berry  <karl@gnu.org>
61303
61304         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
61305         Report from Ben Pfaff, regarding getopt.
61306
61307 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
61308
61309         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
61310         normal way.
61311         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
61312         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
61313         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
61314         (gl_GETOPT): Use the new macros.  Most of the implementation
61315         is moved to the new macros.  This is for programs like Emacs
61316         that don't want all the functionality of gl_GETOPT.
61317
61318 2005-07-26  Bruno Haible  <bruno@clisp.org>
61319
61320         * m4/lock.m4: Update from GNU gettext.
61321
61322 2005-07-26  Bruno Haible  <bruno@clisp.org>
61323
61324         * lib/lock.h: Update from GNU gettext.
61325         * lib/lock.c: Update from GNU gettext.
61326
61327 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
61328
61329         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
61330         obsolescent AC_TRY_RUN.  Include the default includes files, for
61331         'exit'.
61332
61333 2005-07-24  Bruno Haible  <bruno@clisp.org>
61334
61335         * modules/visibility: New file.
61336         * MODULES.html.sh (Misc): Add visibility.
61337
61338 2005-07-24  Bruno Haible  <bruno@clisp.org>
61339
61340         * m4/visibility.m4: New file.
61341
61342 2005-07-24  Bruno Haible  <bruno@clisp.org>
61343
61344         * doc/visibility.texi: New file.
61345
61346 2005-07-22  Bruno Haible  <bruno@clisp.org>
61347
61348         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
61349         $(ALLOCA_H), redundant through BUILT_SOURCES.
61350         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
61351         redundant through BUILT_SOURCES.
61352         * modules/byteswap (Makefile.am): Remove explicit dependency on
61353         $(BYTESWAP_H), redundant through BUILT_SOURCES.
61354         * modules/fnmatch (Makefile.am): Remove explicit dependency on
61355         $(FNMATCH_H), redundant through BUILT_SOURCES.
61356         * modules/getopt (Makefile.am): Remove explicit dependency on
61357         $(GETOPT_H), redundant through BUILT_SOURCES.
61358         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
61359         redundant through BUILT_SOURCES.
61360         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
61361         redundant through BUILT_SOURCES.
61362         * modules/stdbool (Makefile.am): Remove explicit dependency on
61363         $(STDBOOL_H), redundant through BUILT_SOURCES.
61364         * modules/stdint (Makefile.am): Remove explicit dependency on
61365         $(STDINT_H), redundant through BUILT_SOURCES.
61366         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
61367         Remove explicit dependency on $(SYSEXITS_H).
61368         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
61369
61370 2005-07-18  Simon Josefsson  <jas@extundo.com>
61371
61372         * lib/check-version.c (check_version): Accept identical versions too.
61373
61374 2005-07-18  Bruno Haible  <bruno@clisp.org>
61375
61376         * modules/lock: New file.
61377         * MODULES.html.sh (Multithreading): New section.
61378
61379 2005-07-18  Bruno Haible  <bruno@clisp.org>
61380
61381         * m4/lock.m4: New file, from GNU gettext.
61382
61383 2005-07-18  Bruno Haible  <bruno@clisp.org>
61384
61385         * lib/lock.h: New file, from GNU gettext.
61386         * lib/lock.c: New file, from GNU gettext.
61387
61388 2005-07-18  Bruno Haible  <bruno@clisp.org>
61389
61390         * lib/lock.h (gl_once_t): New type.
61391         (gl_once_define, gl_once): New macros.
61392         * lib/lock.c (fresh_once): New variable.
61393         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
61394         functions.
61395
61396 2005-07-16  Simon Josefsson  <jas@extundo.com>
61397
61398         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
61399         workaround, suggested by Bruno.
61400
61401 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61402
61403         * modules/xalloc (Depends-on): Add xalloc-die.
61404         * modules/xvasprintf (Depends-on): Add xalloc-die.
61405
61406 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61407
61408         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
61409         with a minor change.
61410
61411 2005-07-15  Bruno Haible  <bruno@clisp.org>
61412
61413         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
61414         When using lib/poll.c, define poll as rpl_poll.
61415
61416 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
61417
61418         * modules/argp (Depends-on): Remove unlocked-io.
61419
61420 2005-07-14  Derek Price  <derek@ximbiot.com>
61421
61422         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
61423         for glob symlink bug.
61424
61425 2005-07-14  Bruno Haible  <bruno@clisp.org>
61426
61427         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
61428         Instead, test for *_unlocked function declarations directly.
61429
61430 2005-07-11  Simon Josefsson  <jas@extundo.com>
61431
61432         * modules/size_max: New file.
61433
61434         * modules/xsize: Depend on size_max module for size_max.m4.
61435
61436 2005-07-11  Simon Josefsson  <jas@extundo.com>
61437
61438         * lib/size_max.h: New file.
61439
61440 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
61441
61442         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
61443         copyright symbol and the year.
61444         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
61445         (version_etc_va): Use parameterized copyright notice.
61446         Reword to conform to the current GNU coding standards.
61447
61448 2005-07-11  Karl Berry  <karl@gnu.org>
61449
61450         * doc/gnulib.texi (Quoting): new node.
61451         (Initial import): more info, from Patrice.
61452
61453 2005-07-11  Bruno Haible  <bruno@clisp.org>
61454
61455         * gnulib-tool (func_usage): Document option --avoid.
61456         (Command line options): Handle --avoid.
61457         (func_acceptable): New function.
61458         (func_modules_transitive_closure): Use it.
61459
61460 2005-07-11  Bruno Haible  <bruno@clisp.org>
61461
61462         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
61463         Reported by Jim Meyering.
61464
61465 2005-07-10  Bruno Haible  <bruno@clisp.org>
61466
61467         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
61468         Needed when size_t is smaller than 'unsigned int'.
61469         Reported by Paul Eggert.
61470
61471 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61472
61473         * modules/argp (Depends-on): Add unlocked-io
61474
61475 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61476
61477         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
61478         block of defines.
61479
61480 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61481
61482         * config/srclist.txt: Comment out regcomp.c, since we have a porting
61483         fix now.
61484
61485 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
61486         and Paul Eggert  <eggert@cs.ucla.edu>
61487
61488         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
61489         in wint_t, not wchar_t.  Remove now-unnecessary cast.
61490
61491 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61492
61493         * modules/regex (Files): Add lib/regex_internal.c,
61494         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
61495         (Depends-on): Add extensions.
61496         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
61497
61498 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61499
61500         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
61501         pathconf.
61502         * m4/same.m4 (gl_SAME): Likewise.
61503         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
61504
61505         * m4/regex.m4: Adjust to new libc regex implementation.
61506         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
61507         all the .c and .h parts of (the new) regex.
61508         Quote the m4 stuff better.
61509         Check for RE_ICASE bug of old gnulib.
61510         Check for REG_STARTEND of recent libc.
61511         Rename local variables from jm_* to gl_*.
61512         Quote operand of "test -f".
61513         Say "recent enough" version of libc, not "version 2".
61514         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
61515         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
61516         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
61517         Remove check for btowc, isascii.
61518         Require AM_LANGINFO_CODESET.
61519
61520 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61521
61522         * lib/regex.c, regex.h: Sync from libc.
61523         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
61524         * lib/regexec.c:
61525         New files, synced from libc, except that regex_internal.h
61526         currently has a small porting fix.
61527
61528 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61529
61530         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
61531         regex_internal.c, regexec.c.
61532         Add regex_internal.h too, but as a comment, since the libc version
61533         is currently broken in gnulib mode.
61534
61535 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61536
61537         Support programs like Emacs that use gnulib but not gettext.
61538         * MODULES.html.sh (Internationalization functions): Add gettext-h.
61539         * modules/gettext-h: New file.
61540         * modules/gettext (Files): Remove lib/gettext.h.
61541         (Depends-on): Add gettext-h.
61542         (Makefile.am): Remove lib_SOURCES.
61543         * modules/argmatch, modules/c-stack, modules/closeout:
61544         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
61545         * modules/execute, modules/file-type, modules/getaddrinfo:
61546         * modules/getopt, modules/human, modules/javacomp:
61547         * modules/javaexec, modules/mkdir-p, modules/obstack:
61548         * modules/openat, modules/pagealign_alloc, modules/pipe:
61549         * modules/quotearg, modules/regex, modules/rpmatch:
61550         * modules/unicodeio, modules/userspec, modules/version-etc:
61551         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
61552         * modules/xsetenv:
61553         Depend on gettext-h, not gettext.
61554
61555 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61556
61557         * gnulib-tool (func_import): Add support for 'public domain' license.
61558         * modules/alloca, modules/atexit, modules/memmove:
61559         Now public domain, not GPL.
61560         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
61561         * modules/realloc, modules/strerror, modules/strtod:
61562         Now LGPL, not GPL.
61563
61564 2005-07-05  Bruno Haible  <bruno@clisp.org>
61565
61566         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
61567         autoconf CVS. Needed for mingw.
61568
61569 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61570
61571         Remove the dependency of the strftime module on the tzset module.
61572         * modules/strftime (Depends-on): Remove dependency on tzset.
61573
61574 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61575
61576         Remove the dependency of the strftime module on the tzset module.
61577         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
61578         gl_FUNC_TZSET_CLOBBER.
61579
61580 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61581
61582         Remove the dependency of the strftime module on the tzset module.
61583         * lib/strftime.c (my_strftime)
61584         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
61585         Copy the input structure, to work around some of the bug with
61586         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
61587         Solaris releases, you should also use the tzset module, but we won't
61588         require it as a dependency any more since we don't want LGPLed code
61589         to depend on GPLed code.
61590
61591 2005-07-02  Jim Meyering  <jim@meyering.net>
61592
61593         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
61594         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
61595         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
61596         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
61597
61598 2005-07-02  Jim Meyering  <jim@meyering.net>
61599
61600         * lib/backupfile.c (backup_args): Change a `0' to NULL.
61601
61602 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61603
61604         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
61605         declares only 'struct timespec;' (!).
61606
61607 2005-07-01  Jim Meyering  <jim@meyering.net>
61608
61609         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
61610         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
61611         * lib/save-cwd.c, tempname.c:
61612         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
61613         and don't include <sys/file.h>).
61614
61615 2005-06-29  Jim Meyering  <jim@meyering.net>
61616
61617         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
61618         type name.  Use the variable name instead.
61619         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
61620         Likewise.
61621
61622 2005-06-28  Simon Josefsson  <jas@extundo.com>
61623
61624         * modules/check-version (Files): Add check-version.m4.
61625
61626 2005-06-28  Simon Josefsson  <jas@extundo.com>
61627
61628         * m4/check-version.m4: New file, suggested by Jim Meyering
61629         <jim@meyering.net>.
61630
61631 2005-06-28  Simon Josefsson  <jas@extundo.com>
61632
61633         * lib/check-version.h, lib/check-version.c: New files.
61634
61635 2005-06-28  Simon Josefsson  <jas@extundo.com>
61636
61637         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
61638         collision with global variable.  Better indentation.  Don't
61639         increment buffer pointer beyond buffer end.  Based on comments
61640         from Paul Eggert <eggert@cs.ucla.edu>.
61641
61642         * lib/base64.h: Indent.
61643
61644 2005-06-28  Simon Josefsson  <jas@extundo.com>
61645
61646         * doc/gnulib.texi (Library version handling): New section.
61647
61648 2005-06-28  Jim Meyering  <jim@meyering.net>
61649
61650         * check-module (find_included_lib_files): Hard-code another
61651         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
61652         but modules/fts-lgpl (correctly) does not list those files.
61653
61654         * modules/canonicalize (Files): Add lib/pathmax.h.
61655
61656 2005-06-25  Simon Josefsson  <jas@extundo.com>
61657
61658         * modules/check-version: New file.
61659
61660 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
61661
61662         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
61663         initializer of struct addrinfo, as an indication that we don't
61664         care how many members the structure has.
61665
61666 2005-06-24  Derek Price  <derek@ximbiot.com>
61667         and Bruno Haible  <bruno@clisp.org>
61668
61669         Remove stat module & update lstat.
61670         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
61671         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61672         * m4/stat.m4: Remove this file.
61673
61674 2005-06-24  Derek Price  <derek@ximbiot.com>
61675         and Bruno Haible  <bruno@clisp.org>
61676
61677         Remove stat module & update lstat.
61678         * lib/stat.c: Remove this file...
61679         (slash_aware_lstat): ...moving this content and its support...
61680         * lib/lstat.c (rpl_lstat): ...into here.
61681         * lib/lstat.h: New file.
61682
61683 2005-06-24  Derek Price  <derek@ximbiot.com>
61684         and Bruno Haible  <bruno@clisp.org>
61685
61686         Remove stat module & update lstat.
61687         * config/srclist.txt (libc sources): Remove stat.
61688
61689 2005-06-24  Derek Price  <derek@ximbiot.com>
61690         and Bruno Haible  <bruno@clisp.org>
61691
61692         Remove stat module & update lstat.
61693         * MODULES.html.sh (stat): Remove.
61694         * MODULES.html: Regenerated.
61695         * modules/lstat (Description): Correct function name.
61696         (Files): Add "lstat.h".
61697         (Depends-on): Remove stat, add xalloc, stat-macros.
61698         * modules/stat: Remove this file.
61699         (Include): Add "lstat.h", remove <sys/stat.h>.
61700
61701 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61702
61703         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
61704         (ranged_convert): Don't save conversion in a temporary struct.
61705         This causes a warning with GCC 4.0.0, and anyway in the typical
61706         case it's not worth the extra 100 bytes or so of code.
61707         (ranged_convert, __mktime_internal): When calling a function via a
61708         pointer P, use P () rather than (*P) (), as we now assume C89 or
61709         better.
61710
61711 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61712
61713         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
61714         "who -r" failed to give output.  Problem reported by Tim Waugh.
61715
61716         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
61717         (xcalloc): Use it to avoid needless tests.
61718         Problem reported by Jim Meyering.
61719
61720 2005-06-20  Derek Price  <derek@ximbiot.com>
61721
61722         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
61723         unnecessary for Autoconfs > 2.59c.
61724
61725 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61726
61727         * lib/argp.h (__option_is_short): Check upper limit of
61728         __key. Isprint() requires its argument to have the value
61729         of an unsigned char or EOF.
61730
61731 2005-06-16  Jim Meyering  <jim@meyering.net>
61732
61733         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
61734         when either N or S is zero.
61735
61736 2005-06-16  Derek Price  <derek@ximbiot.com>
61737
61738         * m4/bison.m4: Declare YACC & YFLAGS precious.
61739
61740 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
61741
61742         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
61743         multibyte string or pattern, fall back on unibyte matching.
61744         Problem reported by James Youngman.
61745
61746 2005-06-08  Bruno Haible  <bruno@clisp.org>
61747
61748         * modules/csharpcomp: New file.
61749         * MODULES.html.sh (C#): Add csharpcomp.
61750
61751 2005-06-08  Bruno Haible  <bruno@clisp.org>
61752
61753         * m4/csharpcomp.m4: New file, from GNU gettext.
61754
61755 2005-06-08  Bruno Haible  <bruno@clisp.org>
61756
61757         * lib/csharpcomp.h: New file, from GNU gettext.
61758         * lib/csharpcomp.c: New file, from GNU gettext.
61759         * lib/csharpcomp.sh.in: New file, from GNU gettext.
61760
61761 2005-06-08  Bruno Haible  <bruno@clisp.org>
61762
61763         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
61764         warning on mingw.
61765
61766 2005-06-07  Derek Price  <derek@ximbiot.com>
61767
61768         Sync from CVS.
61769         * lib/glob_.h: Indent nested #ifdef.
61770
61771 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61772
61773         Sync from coreutils.
61774         Use "file name" when talking about file names, instead of "filename"
61775         or "path", as per the GNU coding standards.
61776         * lib/mkdir-p.c: Renamed from makepath.c.
61777         (make_dir_parents): Renamed from make_path.  All callers changed.
61778         * lib/mkdir-p.h: Likewise.  All includers changed.
61779         * lib/filenamecat.c: Renamed from path-concat.c.
61780         (file_name_concat): Renamed from path_concat.  All callers changed.
61781         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
61782         * lib/filenamecat.h: Likewise.  All includers changed.
61783         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
61784         in comments or local variable names.
61785         * lib/basename.c: Likewise.
61786         * lib/canonicalize.c, canonicalize.h: Likewise.
61787         * lib/dirname.c, dirname.h: Likewise.
61788         * lib/euidaccess.c: Likewise.
61789         * lib/exclude.c: Likewise
61790         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
61791         * lib/fsusage.c, fsuage.h: Likewise.
61792         * lib/fts.c, fts_.h: Likewise.
61793         * lib/getcwd.c: Likewise.
61794         * lib/getloadavg.c: Likewise.
61795         * lib/mkstemp.c: Likewise.
61796         * lib/mountlist.c, mountlist.h: Likewise.
61797         * lib/openat.c, openat.h: Likewise.
61798         * lib/readlink-stub.c: Likewise.
61799         * lib/readutmp.c, readutmp.h: Likewise.
61800         * lib/rename.c: Likewise.
61801         * lib/rmdir.c: Likewise.
61802         * lib/same.c: Likewise.
61803         * lib/savedir.c: Likewise.
61804         * lib/stripslash.c: Likewise.
61805         * lib/tempname.c: Likewise.
61806         * lib/xreadlink.c: Likewise.
61807         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
61808         All uses changed.
61809         * lib/exclude.h: Likewise.
61810
61811         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
61812         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61813         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
61814         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61815         * lib/pathmax.h: Include <limits.h> unconditionally, since other
61816         files have been getting away with it for years (MORE/BSD 4.3
61817         is extinct now).
61818         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
61819         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61820
61821         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
61822         Define to 256, not 255, as per modern POSIX.
61823
61824 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61825
61826         Sync from coreutils.
61827         Use "file name" when talking about file names, instead of "filename"
61828         or "path", as per the GNU coding standards.
61829         * MODULES.html.sh: mkdir-p renamed from makepath.
61830         filenamecat renamed from path-concat.
61831         * modules/filenamecat: Renamed from modules/path-concat.
61832         (Files): filenamecat.h and filenamecat.c renamed from
61833         path-concat.h and path-concat.c.
61834         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
61835         (Include): filenamecat.h, not path-concat.h.
61836         * modules/mkdir-p: Renamed from modules/makepath.
61837         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
61838         makepath.c.
61839         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
61840         (Include): mkdir-p.h, not makepath.h.
61841
61842 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61843
61844         Sync from coreutils.
61845         * m4/mkdir-p.m4: Renamed from makepath.m4.
61846         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
61847         Rename files from makepath.c to mkdir-p.c, and from
61848         makepath.h to mkdir-p.h.
61849         * m4/filenamecat.m4: Renamed from path-concat.m4.
61850         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
61851         Rename files from path-concat.c to filenamecat.c,
61852         and from path-concat.h to filenamecat.h.
61853         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
61854         "file name" in local variables or comments.
61855         * m4/rename.m4: Likewise.
61856
61857 2005-06-01  Bruno Haible  <bruno@clisp.org>
61858
61859         * modules/csharpexec: New file.
61860         * MODULES.html.sh (C#): New section.
61861
61862 2005-06-01  Bruno Haible  <bruno@clisp.org>
61863
61864         * m4/csharp.m4: New file, from GNU gettext.
61865         * m4/csharpexec.m4: New file, from GNU gettext.
61866
61867 2005-06-01  Bruno Haible  <bruno@clisp.org>
61868
61869         * lib/csharpexec.h: New file, from GNU gettext.
61870         * lib/csharpexec.c: New file, from GNU gettext.
61871         * lib/csharpexec.sh.in: New file, from GNU gettext.
61872
61873 2005-05-31  Derek Price  <derek@ximbiot.com>
61874             Paul Eggert  <eggert@cs.ucla.edu>
61875
61876         Sync from cvs.
61877         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61878
61879 2005-05-31  Derek Price  <derek@ximbiot.com>
61880             Paul Eggert  <eggert@cs.ucla.edu>
61881
61882         Sync from cvs.
61883         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61884
61885 2005-05-29  Derek Price  <derek@ximbiot.com>
61886
61887         * config/srclist.txt (glob_.h, glob.c): Add these files.
61888
61889 2005-05-29  Derek Price  <derek@ximbiot.com>
61890
61891         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
61892         * modules/glob: New file.
61893         * modules/getlogin_r: Add link to POSIX spec in description.
61894
61895 2005-05-29  Derek Price  <derek@ximbiot.com>
61896             Paul Eggert  <eggert@cs.ucla.edu>
61897
61898         * m4/glob.m4: New file.
61899
61900 2005-05-29  Derek Price  <derek@ximbiot.com>
61901             Paul Eggert  <eggert@cs.ucla.edu>
61902
61903         * lib/glob_.h, lib/glob.c: New files.
61904
61905 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61906
61907         * modules/fts (Files): Remove m4/inttypes-pri.m4.
61908         * modules/fts-lgpl (Depends-on): Remove gettext.
61909
61910 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61911
61912         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
61913         and don't require gt_INTTYPES_PRI.
61914
61915 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61916
61917         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
61918
61919         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
61920         the configuration hassle isn't worth it.
61921         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
61922         (LONGEST_MODIFIER, PRIuMAX): Remove.
61923
61924 2005-05-27  Bruno Haible  <bruno@clisp.org>
61925
61926         * lib/getlogin_r.h: Remove second include of <stddef.h>.
61927
61928 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
61929
61930         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
61931         _POSIX_PTHREAD_SEMANTICS for Solaris.
61932
61933 2005-05-25  Derek Price  <derek@ximbiot.com>
61934
61935         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
61936
61937 2005-05-25  Derek Price  <derek@ximbiot.com>
61938             Paul Eggert  <eggert@cs.ucla.edu>
61939
61940         * modules/getlogin_r, m4/getlogin_r.m4: New files.
61941         * lib/getlogin_r.c, getlogin_r.h: New files.
61942
61943 2005-05-25  Bruno Haible  <bruno@clisp.org>
61944             Derek Price  <derek@ximbiot.com>
61945
61946         * lib/getlogin_r.h: Simplify API documentation.
61947
61948 2005-05-23  Derek Price  <derek@ximbiot.com>
61949
61950         * modules/minmax (Files): Add m4/minmax.m4.
61951         (configure.ac): Add gl_MINMAX.
61952
61953 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61954
61955         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
61956         so that unistd-safer.h (GPL'ed code) need not be included.
61957
61958 2005-05-22  Bruno Haible  <bruno@clisp.org>
61959
61960         * m4/minmax.m4: New file.
61961         Based on a patch by Derek Price <derek@ximbiot.com>.
61962
61963 2005-05-22  Bruno Haible  <bruno@clisp.org>
61964
61965         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
61966         (INT64_MIN): Fix definition.
61967         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
61968
61969         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
61970         NEED_SIGNED_INT_TYPES.
61971
61972         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
61973         HAVE_SYSTEM_INTTYPES.
61974
61975 2005-05-22  Bruno Haible  <bruno@clisp.org>
61976
61977         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
61978         Also include <sys/param.h> if it defines MIN, MAX.
61979         Based on a patch by Derek Price <derek@ximbiot.com>.
61980
61981 2005-05-21  Jim Meyering  <jim@meyering.net>
61982
61983         * modules/fts (Files): Add m4/inttypes-pri.m4.
61984         (Depends-on): Add lstat and remove gettext.  Alphabetize.
61985
61986 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61987
61988         New fts module.
61989         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
61990         (setup_dir, free_dir): New functions.
61991         (enter_dir, leave_dir): Define trivial
61992         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
61993         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
61994         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
61995         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
61996         Move to fts-cycle.c.
61997         (fts_open): Use setup_dir.
61998         (fts_close): Use free_dir.
61999         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
62000         This adds a label and some gotos, but the alternatives were messier.
62001         Check for memory allocation failure when entering a dir.
62002         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
62003         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
62004         (FTS): New member fts_cycle, that is a union that contains the
62005         old active_dir_ht and cycle_state.  All uses changed to mention
62006         fts_cycle.ht and fts_cycle.state.
62007         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
62008         fts.c, with the following changes:
62009         (setup_dir, free_dir): New functions.
62010         (enter_dir): Now returns bool.  Return true if successful, false
62011         if memory exhausted.  All callers changed.
62012         Do not bother partly cleaning up on
62013         memory allocation failure; that is free_dir's job.
62014         However, free ad if hash_insert fails, to avoid memory leak.
62015         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
62016         fts->fts_options to see which union member to use.
62017
62018 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62019
62020         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
62021         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
62022
62023 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62024
62025         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
62026
62027 2005-05-20  Jim Meyering  <jim@meyering.net>
62028
62029         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
62030         Now a macro, to pacify GCC.
62031
62032 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
62033
62034         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
62035         of -1.
62036
62037 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
62038
62039         * lib/chown.c (rpl_chown): Return -1 on failure.
62040
62041 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
62042
62043         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
62044         Don't check for stddef.h.
62045         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
62046         don't use its results.
62047         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
62048         since we include them unconditionally.  Don't require
62049         AM_STDBOOL_H, since stdbool is a prerequisite.
62050         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
62051         since we assume C89 or better.
62052         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
62053         as we don't use their results.
62054         Don't check for fchdir, memmove, memset, strrchr, as we use
62055         them unconditionally.
62056         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
62057         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
62058
62059 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
62060
62061         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
62062         Include <stddef.h> unconditionally, since we assume C89 now.
62063         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
62064         * lib/fts.c: Include fts_.h first, to check interface.
62065         Do not include intprops.h; no longer needed.
62066         Include cycle-check.h and hash.h, since fts_.h no longer does.
62067         Remove unnecessary casts of closedir to void.
62068         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
62069         decide whether to decrement nlinks.
62070         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
62071         (FTS): Use struct hash_table * instead of Hash_table, so that
62072         we no longer need to include hash.h here.
62073
62074 2005-05-18  Jim Meyering  <jim@meyering.net>
62075
62076         * modules/dirfd (License): Change to LGPL.  Most of the code
62077         is already in the public domain.
62078
62079 2005-05-18  Jim Meyering  <jim@meyering.net>
62080
62081         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
62082         Reported by Yoann Vandoorselaere.
62083
62084 2005-05-17  Jim Meyering  <jim@meyering.net>
62085
62086         * m4/fts.m4: New file, from coreutils.
62087
62088 2005-05-17  Jim Meyering  <jim@meyering.net>
62089
62090         * lib/fts.c, lib/fts_.h: New files, from coreutils.
62091
62092 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62093
62094         Sync from coreutils.
62095         * m4/unlinkdir.m4: New file.
62096
62097 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62098
62099         Sync from coreutils.
62100         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
62101         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
62102         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
62103         White space changes only.
62104         * lib/makepath.c (make_path): Port to hosts where leading "//" is
62105         special.
62106         * lib/yesno.c: Include getline.h, not ctype.h.
62107         (yesno): Don't remove leading white space; POSIX doesn't allow it.
62108         Use getline to remove arbitrary restriction on response length.
62109
62110 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62111
62112         * config/srclist-update: Spell out "Street" in FSF postal
62113         mail address; this is the style the FSF seems to prefer.
62114
62115         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
62116         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
62117         this updates FSF postal mail address.
62118
62119         Sync from coreutils.
62120         * modules/unlinkdir: New file.
62121         * modules/yesno (Depends-on): Add getline.
62122         * MODULES.html.sh (File system functions): Add unlinkdir.
62123
62124 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62125
62126         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
62127         lib/strsep.h:
62128         Change the initial comment to refer to GPL, not LGPL.
62129         gnulib-tool will change it to LGPL as needed.
62130
62131         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
62132         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
62133         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
62134         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
62135         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
62136         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
62137         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
62138         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
62139         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
62140         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
62141         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
62142         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
62143         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
62144         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
62145         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
62146         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
62147         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
62148         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
62149         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
62150         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
62151         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
62152         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
62153         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
62154         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
62155         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
62156         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
62157         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
62158         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
62159         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
62160         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
62161         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
62162         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
62163         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
62164         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
62165         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
62166         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
62167         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
62168         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
62169         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
62170         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
62171         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
62172         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
62173         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
62174         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
62175         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
62176         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
62177         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
62178         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
62179         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
62180         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
62181         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62182         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
62183         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
62184         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
62185         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
62186         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
62187         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
62188         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
62189         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
62190         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
62191         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
62192         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
62193         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
62194         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
62195         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
62196         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
62197         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
62198         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
62199         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
62200         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
62201         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
62202         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
62203         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
62204         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
62205         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
62206         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
62207         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
62208         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
62209         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
62210         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
62211         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
62212         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
62213         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
62214         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
62215         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
62216         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
62217         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
62218         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
62219         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
62220         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
62221         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
62222         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
62223         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
62224         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
62225         lib/yesno.c, lib/yesno.h:
62226         Update FSF postal mail address.
62227
62228 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62229
62230         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
62231         tests/test-memmem.c, tests/test-stpncpy.c:
62232         Update FSF postal mail address.
62233
62234 2005-05-13  Bruno Haible  <bruno@clisp.org>
62235
62236         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
62237         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
62238         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
62239         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
62240         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
62241         Add support for 64-bit integers in the MSVC compiler.
62242
62243 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62244
62245         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
62246
62247 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
62248
62249         * gnulib-tool (func_import): Sort and uniquify recommended includes.
62250
62251 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
62252
62253         * doc/getdate.texi (General date syntax): Don't say that date
62254         date --iso-8601=ns generates acceptable dates; it doesn't yet.
62255         Problem reported by Nic Ferrier.
62256
62257 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62258
62259         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
62260         specified in ai_socktype. Fix invalid ai_protocol
62261         check. ai_protocol is usually set to 0 or depending on
62262         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
62263         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
62264         ai_socktype / ai_protocol in the returned addrinfo structure.
62265
62266 2005-05-10  Simon Josefsson  <jas@extundo.com>
62267
62268         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
62269         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62270
62271 2005-05-10  Karl Berry  <karl@gnu.org>
62272
62273         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
62274         (from http://www.gnu.org/licenses).
62275         * doc/COPYING.LIB: also rename to COPYING.LESSER.
62276         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
62277         fdl.texi suffices.
62278
62279 2005-05-10  Karl Berry  <karl@gnu.org>
62280
62281         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
62282         (COPYING.DOC): remove.
62283
62284         * config/srclist-update: new FSF address.
62285
62286 2005-05-10  Derek Price  <derek@ximbiot.com>
62287
62288         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
62289         possible.
62290
62291 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62292             Bruno Haible  <bruno@clisp.org>
62293
62294         * modules/inet_ntop: New file.
62295         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62296         inet_ntop.
62297
62298 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62299             Bruno Haible  <bruno@clisp.org>
62300
62301         * m4/inet_ntop.m4: New file.
62302
62303 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62304             Bruno Haible  <bruno@clisp.org>
62305
62306         * lib/inet_ntop.h: New file.
62307         * lib/inet_ntop.c: New file, from glibc with modifications.
62308
62309 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
62310
62311         * modules/time_r (License): Change to LGPL.
62312         * modules/extensions (License): Change to LGPL.  Actually,
62313         the license is more permissive than that, but currently gnulib-tool
62314         doesn't know how to handle more-permissive licenses.
62315
62316         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
62317         Problem reported by Dave Love.
62318
62319 2005-05-08  Jim Meyering  <jim@meyering.net>
62320
62321         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
62322         blank.
62323
62324 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
62325
62326         * modules/argmatch (Depends-on): Add stdbool.
62327         * modules/backupfile (Depends-on): Likewise.
62328         * modules/chdir-long (Depends-on): Likewise.
62329         * modules/closeout (Depends-on): Likewise.
62330         * modules/cycle-check (Depends-on): Likewise.
62331         * modules/dirname (Depends-on): Likewise.
62332         * modules/fnmatch (Depends-on): Likewise.
62333         * modules/fsusage (Depends-on): Likewise.
62334         * modules/fwriteerror (Depends-on): Likewise.
62335         * modules/getcwd (Depends-on): Likewise.
62336         * modules/getloadavg (Depends-on): Likewise.
62337         * modules/hard-locale (Depends-on): Likewise.
62338         * modules/makepath (Depends-on): Likewise.
62339         * modules/mountlist (Depends-on): Likewise.
62340         * modules/nanosleep (Depends-on): Likewise.
62341         * modules/posixtm (Depends-on): Likewise.
62342         * modules/quotearg (Depends-on): Likewise.
62343         * modules/readtokens (Depends-on): Likewise.
62344         * modules/readtokens0 (Depends-on): Likewise.
62345         * modules/readutmp (Depends-on): Likewise.
62346         * modules/save-cwd (Depends-on): Likewise.
62347         * modules/strftime (Depends-on): Likewise.
62348         * modules/userspec (Depends-on): Likewise.
62349         * modules/utimecmp (Depends-on): Likewise.
62350         * modules/xgetcwd (Depends-on): Likewise.
62351         * modules/xnanosleep (Depends-on): Likewise.
62352         * modules/xstrtod (Depends-on): Likewise.
62353         * modules/yesno (Depends-on): Likewise.
62354
62355 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
62356
62357         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
62358         needless checks.
62359
62360 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62361
62362         Merge from coreutils.  Among other things,
62363         add bulletproofing for cases where stdin, stdout, or stderr are closed.
62364         * lib/fd-safer.c: New file.
62365         * lib/fcntl-safer.h, open-safer.c: Remove.
62366         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
62367         * lib/dup-safer.c: Include unistd-safer.h first.
62368         Don't include errno.h.
62369         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
62370         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
62371         * lib/file-type.c: Rely on file-type.h change.
62372         * lib/getloadavg.c: Include unistd-safer.h.
62373         (getloadavg): Use safer open.
62374         * lib/getusershell.c: Include "stdio-safer.h".
62375         (getusershell): Use safer fopen.
62376         * lib/long-options.c (long_options): Use NULL rather than 0.
62377         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
62378         'free'.
62379         * lib/modechange.c: Likewise.
62380         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
62381         (MODE_DONE): New constant.
62382         (struct mode_change): Remove 'next' member.
62383         (make_node_op_equals): New function; like the old one of the
62384         same name, except it allocates an array.
62385         (mode_compile, mode_create_from_ref): Use it.
62386         (mode_compile): Allocate result as an array, not a linked list.
62387         Parse octal string ourself, so that we catch mistakes like "+0".
62388         (mode_adjust): Arg is an array, not a linked list.
62389         * lib/modechange.c: Include stat-macros.h, xalloc.h.
62390         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
62391         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
62392         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
62393         Remove.  This is now stat-macros.h's job.
62394         (talloc): Remove.  All callers replaced by xalloc, so that
62395         our invokers don't have to worry about reporting memory failures.
62396         (make_node_op_equals): Remove.
62397         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62398         New constants.
62399         (struct mode_change): Moved here from modechange.h.
62400         (mode_append_entry): Remove.
62401         (mode_compile): Remove MASKED_OPS arg, since it encouraged
62402         apps to have incorrect behavior.  Use simpler algorithm for head
62403         and tail.  Don't futz with umask; that's now the job of mode_adjust.
62404         Detect more invalid usages rather than having somewhat-random behavior.
62405         Don't insert an "a=" action, as that leads to incorrect behavior.
62406         (mode_compile, mode_create_from_ref): Return NULL on error instead
62407         of an enum, since now there's only one way to have an error.  All
62408         callers changed.
62409         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
62410         at the correct time.  Simplify calculation of "+u" and its ilk.
62411         Don't mishandle "+X".
62412         (mode_free): Remove "register" and localize decls.
62413         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62414         (struct mode_change): Move to modechange.c; callers don't
62415         need to see this stuff.
62416         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
62417         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
62418         (mode_change, mode_adjust): Reflect the new signatures noted above.
62419         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
62420         that might redefine system include files.
62421         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
62422         (my_usleep): Use NULL rather than (void *) 0.
62423         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
62424         Use siginterrupt to specify that system calls should be interrupted.
62425         (rpl_nanosleep): Move initialization of suspended closer to call of
62426         my_usleep.
62427         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
62428         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
62429         (desirable_utmp_entry): New function.
62430         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
62431         using x2nrealloc, to simplify logic.
62432         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
62433         size calculation.  Do not assume utmp file is a regular file.
62434         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
62435         (READ_UTMP_CHECK_PIDS): New constant.
62436         * lib/save-cwd.c: Include unistd-safer.h.
62437         (save_cwd): Use fd_safer.
62438         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
62439         [!_LIBC] Include "stat-macros.h" instead.
62440         * lib/unistd-safer.h (fd_safer): New decl.
62441
62442 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62443
62444         * modules/getloadavg (Depends-on): Add unistd-safer.
62445         * modules/getusershell (Depends-on): Add stdio-safer.
62446         * modules/lstat (Depends-on): Remove xalloc.
62447         * modules/mkstemp (Depends-on): Add stat-macros.
62448         * modules/modechange (Depends-on): Remove xstrtol.
62449         Add stat-macros, xalloc.
62450         * modules/save-cwd (Depends-on): Add unistd-safer.
62451         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
62452         * modules/unistd-safer (Files): Add lib/fd-safer.c
62453         (Makefile.am): Remove lib_SOURCES.
62454
62455         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
62456         Remove fcntl-safer; unistd-safer supersedes it.
62457
62458 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62459
62460         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
62461         AC_HEADER_STAT.
62462         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
62463         (gl_PREREQ_CHOWN): Remove.
62464         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
62465         it.  Don't require AC_HEADER_STAT.
62466         (gl_PREREQ_LSTAT): Remove.
62467         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
62468         Don't require AC_HEADER_STAT.
62469         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
62470         (gl_PREREQ_RMDIR): Remove.
62471         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
62472         mention stat-macros.h or AC_HEADER_STAT, since we'll make
62473         the stat-macros module a prerequisite.
62474         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
62475         * m4/filemode.m4 (gl_FILEMODE): Likewise.
62476         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
62477         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
62478         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
62479         variable names.
62480         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
62481         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
62482         variable prefixes.
62483         * m4/fcntl-safer.m4: Remove.
62484         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
62485         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
62486         Invoke gl_PREREQ_FD_SAFER.
62487         (gl_PREREQ_FD_SAFER): New macro.
62488         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
62489         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
62490         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
62491         Remove duplicate call to AC_LIBOBJ(readutmp).
62492         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
62493
62494         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
62495         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
62496
62497 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62498
62499         * MODULES.html.sh (Misc): Add byteswap.
62500
62501 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62502
62503         * modules/getcwd (Depends-on): Add extensions.
62504         * modules/openat (Depends-on): Likewise.
62505
62506 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62507
62508         * modules/byteswap: New file.
62509
62510 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62511
62512         * m4/byteswap.m4: New file.
62513
62514 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62515
62516         * lib/byteswap_.h: New file.
62517
62518 2005-04-25  Karl Berry  <karl@gnu.org>
62519
62520         * m4/gettext.m4: Update from GNU gettext 0.14.4.
62521
62522 2005-04-25  Albert Chin  <china@thewrittenword.com>
62523
62524         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
62525         Toolkit C bug.
62526
62527 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
62528
62529         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
62530         (func_ln_if_changed) Remove forcibly for no error message
62531         in case file does not exist.
62532
62533 2005-04-19  Simon Josefsson  <jas@extundo.com>
62534
62535         * gnulib-tool (Options): Make --symlink mean --symbolic.
62536
62537 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
62538
62539         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
62540
62541 2005-04-16  Simon Josefsson  <jas@extundo.com>
62542
62543         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
62544
62545 2005-04-15  Simon Josefsson  <jas@extundo.com>
62546
62547         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
62548
62549 2005-04-15  Simon Josefsson  <jas@extundo.com>
62550
62551         * gnulib-tool: Rename --symlink to --symbolic.
62552
62553 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
62554
62555         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
62556         symbolic links to files instead of copying/moving.  Add --aux-dir,
62557         specifying directory relative --dir where auxiliary build tools
62558         are placed.
62559
62560 2005-04-14  Bruno Haible  <bruno@clisp.org>
62561
62562         * modules/allocsa (License): Change to LGPL.
62563         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
62564
62565 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62566
62567         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
62568         that "UTC +1 second" continues to work.  Problem reported
62569         by Dmitry V. Levin.
62570         (relunit_snumber): New rule.
62571         (relunit): Use it.
62572
62573 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62574
62575         * lib/getdate.y (universal_time_zone_table): New constant.
62576         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
62577         universal_time_zone_table.
62578         (lookup_zone): Prefer universal_time_zone_table to
62579         local_time_zone_table, so that "GMT" time stamps are allowed in
62580         London during the summer.  Problem reported by Ian Abbott.
62581
62582 2005-04-12  Jim Meyering  <jim@meyering.net>
62583
62584         * lib/human.c (humblock): Set *options even when returning due to
62585         xstrtoumax conversion failure.  Thanks to a used-uninitialized
62586         warning from gcc-4.
62587
62588 2005-04-09  Jim Meyering  <jim@meyering.net>
62589
62590         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
62591         -Wuninitialized: initialize tm0.tm_year.
62592
62593 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62594
62595         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
62596         count, since there's no maximum.  All uses changed.
62597         Add member dsts_seen.
62598         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
62599         not being INT_MAX.
62600         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
62601         Use pc_rels_seen to decide whther a date is absolute.
62602
62603         * lib/getdate.y (number): Don't overwrite year.
62604         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
62605         check.
62606
62607 2005-04-02  Simon Josefsson  <jas@extundo.com>
62608
62609         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
62610         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
62611
62612 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
62613
62614         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
62615         where no absolute path name can be longer than PATH_MAX.
62616
62617 2005-03-27  Jim Meyering  <jim@meyering.net>
62618
62619         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
62620
62621 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
62622
62623         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
62624         "one's complement" -> "ones' complement" in comment, as per Knuth.
62625         "value of type" -> "type or expression" in comment.
62626         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
62627
62628 2005-03-26  Jim Meyering  <jim@meyering.net>
62629
62630         Comment nits.
62631         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
62632         Correct typos: s/or/of/.
62633
62634 2005-03-26  Jim Meyering  <jim@meyering.net>
62635
62636         * modules/check-include-files: Move to ../ and rename to...
62637         * check-module: ...this.
62638
62639 2005-03-25  Jim Meyering  <jim@meyering.net>
62640
62641         * modules/xvasprintf (Files): Add xalloc.h.
62642
62643 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62644
62645         * modules/gettext (Files): config/config.rpath ->
62646         build-aux/config.rpath
62647         * modules/iconv (Files): Likewise.
62648         Problem reported by Oskar Liljeblad.
62649
62650 2005-03-23  Jim Meyering  <jim@meyering.net>
62651
62652         * modules/check-include-files: New script to check for
62653         missing dependencies, multiple includes, etc.
62654
62655         * modules/c-strtold (Depends-on): Add xalloc.
62656         * modules/c-strtod (Depends-on): Add xalloc.
62657         * modules/hash (Depends-on): Add xalloc.
62658         (Files): Remove lib/xalloc.h.
62659
62660         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
62661         * modules/userspec (Files): Add lib/inttostr.h.
62662
62663 2005-03-23  Jim Meyering  <jim@meyering.net>
62664
62665         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
62666
62667 2005-03-22  Jim Meyering  <jim@meyering.net>
62668
62669         * modules/stat-macros: New module.
62670         * modules/canonicalize, modules/euidaccess, modules/file-type,
62671         * modules/filemode, modules/lchown, modules/makepath,
62672         * modules/rmdir, modules/stat: Depend on new stat-macros module
62673         rather than listing lib/stat-macros.h manually.
62674         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
62675
62676 2005-03-22  Jim Meyering  <jim@meyering.net>
62677
62678         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
62679
62680 2005-03-22  Bruno Haible  <bruno@clisp.org>
62681
62682         * config/srclist.txt: Replace target directory 'config' with
62683         'build-aux'.
62684         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
62685         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
62686         ../build-aux/.
62687
62688 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
62689
62690         * modules/chdir-long (Depends-on): Add mempcpy.
62691
62692         * modules/acl, modules/backupfile, modules/c-strtod,
62693         modules/c-strtold, modules/canon-host, modules/canonicalize,
62694         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
62695         modules/exclude, modules/exitfail, modules/file-type,
62696         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
62697         modules/getdate, modules/getline, modules/getpagesize,
62698         modules/getpass, modules/getugroups, modules/group-member,
62699         modules/hard-locale, modules/hash, modules/human, modules/idcache,
62700         modules/inttostr, modules/long-options, modules/makepath,
62701         modules/md5, modules/memcasecmp, modules/memcoll,
62702         modules/modechange, modules/mountlist, modules/path-concat,
62703         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
62704         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
62705         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
62706         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
62707         modules/strftime, modules/strndup, modules/strverscmp,
62708         modules/timespec, modules/unlocked-io, modules/userspec,
62709         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
62710         modules/yesno:
62711         Remove lib_SOURCES line from Makefile.am section, as this is now
62712         done automatically by the corresponding Autoconf macro.
62713
62714 2005-03-21  Jim Meyering  <jim@meyering.net>
62715
62716         Changes imported from coreutils.
62717
62718         * lib/cycle-check.c: Don't include xalloc.h.
62719
62720         * lib/path-concat.c: Don't include assert.h.
62721         (path_concat): Remove assertion that would have triggered
62722         for ABASE starting with more than one slash.
62723         Reported by Andreas Schwab.
62724
62725         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
62726         properly when ABASE is an absolute file name.
62727         Correct the description of this function.
62728         Include <assert.h>.
62729         Add an assertion and a test driver.
62730         This fixes a bug introduced on 2004-07-02.
62731         Andreas Schwab reported the resulting failure of cp --parents:
62732         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
62733
62734 2005-03-21  Jim Meyering  <jim@meyering.net>
62735
62736         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
62737         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
62738
62739 2005-03-21  Jim Meyering  <jim@meyering.net>
62740         and  Paul Eggert  <eggert@cs.ucla.edu>
62741
62742         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
62743         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
62744         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
62745         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
62746         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
62747         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
62748         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
62749         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
62750         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
62751         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
62752         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
62753         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
62754         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
62755         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
62756         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
62757         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
62758         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
62759         for these modules.
62760
62761 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
62762
62763         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
62764         (which shouldn't happen), generate nothing instead of returning 0
62765         immediately, so that nstrftime (NULL, ...) doesn't return 0.
62766
62767 2005-03-16  Bruno Haible  <bruno@clisp.org>
62768
62769         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
62770         HAVE_LONGLONG_64BIT.
62771
62772 2005-03-16  Bruno Haible  <bruno@clisp.org>
62773
62774         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
62775         HAVE_LONGLONG_64BIT.
62776
62777 2005-03-16  Bruno Haible  <bruno@clisp.org>
62778
62779         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
62780         HAVE_LONGLONG_64BIT.
62781
62782 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62783
62784         * lib/strftime.c (my_strftime): Prepend space to format so that we can
62785         reliably distinguish strftime failure from empty output on POSIX
62786         hosts.
62787
62788 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62789
62790         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
62791         (iconv_string): Don't guess a size-zero buffer, as that might cause
62792         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
62793         result would be 'too large', where 'too large' is (heuristically)
62794         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
62795         overflow concerns.  This will prevent some unwanted malloc failures
62796         when the inputs are very large.
62797
62798 2005-03-15  Karl Berry  <karl@gnu.org>
62799
62800         * config/srclist.txt (config.rpath): from gettext.
62801         * config/config.rpath: update.
62802
62803 2005-03-15  Bruno Haible  <bruno@clisp.org>
62804
62805         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
62806         to 'negate'.
62807
62808         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
62809         variable.
62810
62811         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
62812         results.
62813
62814 2005-03-14  Simon Josefsson  <jas@extundo.com>
62815
62816         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
62817         <fx@gnu.org>.
62818
62819 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
62820
62821         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
62822         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
62823         intprops.h.
62824         * lib/strtol.c: Likewise.
62825
62826 2005-03-14  Jim Meyering  <jim@meyering.net>
62827
62828         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
62829         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
62830         to be nonzero so that we (and caller) can detect the difference
62831         between a valid zero-length expansion and an error return, even
62832         when the underlying strftime fails before writing anything into
62833         that location.
62834
62835 2005-03-14  Bruno Haible  <bruno@clisp.org>
62836
62837         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
62838         Update from GNU gettext 0.14.3.
62839
62840 2005-03-10  Jim Meyering  <jim@meyering.net>
62841
62842         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
62843
62844 2005-03-10  Jim Meyering  <jim@meyering.net>
62845
62846         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
62847         so that this module works on systems without fchdir.
62848
62849 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
62850
62851         Factor int-properties macros into a single file, except for
62852         glibc-related files.
62853         * lib/intprops.h: New file.
62854         * lib/getloadavg.c: Include it instead of limits.h.
62855         (INT_STRLEN_BOUND): Remove.
62856         * lib/human.c: Include intprops.h.
62857         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
62858         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
62859         302/1000.
62860         * lib/inttostr.h: Include intprops.h instead of limits.h.
62861         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
62862         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
62863         for consistency with intprops.h.
62864         (time_t_is_integer, twos_complement_arithmetic): Use them.
62865         * lib/sig2str.h: Include <signal.h>, intprops.h.
62866         (INT_STRLEN_BOUND): Remove.
62867         * lib/strftime.c (TYPE_SIGNED): Remove.
62868         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
62869         * lib/strtol.c: Adjust comments to match intprops.h.
62870         * lib/userspec.c: Include intprops.h.
62871         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
62872         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
62873         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
62874         instead of rolling our own expressions.
62875         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
62876
62877         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
62878         instead of int.
62879         (my_strftime): Do not mishandle years close to INT_MAX, by doing
62880         the right thing even if adding 1900 would overflow.  Similarly
62881         for tm_mon + 1 and tm_yday + 1.
62882         Make %Y always equivalent to %C%y, and similarly for %G and %g.
62883         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
62884         (DO_SIGNED_NUMBER): New macro.
62885         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
62886
62887 2005-03-07  Bruno Haible  <bruno@clisp.org>
62888
62889         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
62890
62891 2005-03-07  Bruno Haible  <bruno@clisp.org>
62892
62893         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
62894
62895 2005-03-04  Derek R. Price  <derek@ximbiot.com>
62896
62897         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
62898         (func_import): Only replace files via --import when they have actually
62899         changed.
62900
62901 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62902
62903         * m4/mmap-anon.m4: New file.
62904         * m4/pagealign_alloc.m4: New file.
62905
62906 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62907             Bruno Haible  <bruno@clisp.org>
62908
62909         * modules/pagealign_alloc: New file.
62910         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
62911
62912 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62913             Bruno Haible  <bruno@clisp.org>
62914
62915         * lib/pagealign_alloc.h: New file.
62916         * lib/pagealign_alloc.c: New file.
62917
62918 2005-03-03  Bruno Haible  <bruno@clisp.org>
62919
62920         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
62921         Use an all-permissive copyright notice, recommended by RMS.
62922
62923 2005-03-02  Bruno Haible  <bruno@clisp.org>
62924
62925         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
62926         of AIX, the replacement has to be done only after <string.h> is
62927         included, therefore not in config.h. stpncpy.h does the replacement,
62928         and stpncpy.c uses it.
62929
62930 2005-03-02  Bruno Haible  <bruno@clisp.org>
62931
62932         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
62933         stpncpy.c uses it.
62934
62935 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62936
62937         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
62938         The workaround isn't strictly needed for POSIX conformance, and
62939         it's too much of a pain to configure and maintain.  We'll ask
62940         people to fix their kernels instead.
62941         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
62942         (NANOSLEEP_BUG_WORKAROUND): Remove.
62943         (xnanosleep): Remove the workaround.
62944
62945 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62946
62947         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
62948         Reported by Derek Price.
62949         (Include): Add "timespec.h".
62950
62951         * modules/xnanosleep (Depends-on): Remove gethrxtime.
62952
62953 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62954
62955         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
62956         to detect nanosleep bug.
62957
62958 2005-03-01  Bruno Haible  <bruno@clisp.org>
62959
62960         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
62961
62962 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62963
62964         * modules/gethrxtime: New file.
62965         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
62966         (Depends-on): Add gethrxtime.
62967         (configure.ac): Add gl_XNANOSLEEP.
62968         (Makefile.am): Remove lib_SOURCES line.
62969
62970 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62971
62972         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
62973         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
62974
62975 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62976
62977         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
62978         * lib/timespec.h (gettime): Return void, since it always
62979         succeeds now.  All uses changed.
62980         * lib/gettime.c (gettime) Likewise.
62981         [HAVE_NANOTIME]: Prefer nanotime.
62982         Assume gettimeofday succeeds, as POSIX requires.
62983         Assime time () succeeds, since other code already does.
62984         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
62985         (timespec_subtract): Remove.
62986         (NANOSLEEP_BUG_WORKAROUND): New constant.
62987         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
62988         things considerably.  Use it only on GNU/Linux hosts, since the
62989         workaround shouldn't be needed elsewhere.
62990
62991 2005-02-24  Bruno Haible  <bruno@clisp.org>
62992
62993         * modules/gettext (Files): Add m4/glibc2.m4.
62994
62995 2005-02-24  Bruno Haible  <bruno@clisp.org>
62996
62997         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
62998         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
62999         * m4/progtest.m4:
63000         Update from GNU gettext 0.14.2.
63001         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
63002
63003 2005-02-24  Bruno Haible  <bruno@clisp.org>
63004
63005         * lib/localcharset.c: Update from GNU gettext 0.14.2.
63006         * lib/config.charset: Update from GNU gettext 0.14.2.
63007
63008 2005-02-24  Bruno Haible  <bruno@clisp.org>
63009
63010         * lib/gettext.h: Update from GNU gettext 0.14.2.
63011
63012 2005-02-23  Simon Josefsson  <jas@extundo.com>
63013
63014         * m4/iconvme.m4: New file.
63015
63016 2005-02-23  Jim Meyering  <jim@meyering.net>
63017
63018         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
63019         change.
63020         Thanks to Bruno Haible for catching it.
63021
63022 2005-02-22  Simon Josefsson  <jas@extundo.com>
63023
63024         * modules/iconvme: New file.
63025
63026         * MODULES.html.sh: Add iconvme.
63027
63028 2005-02-22  Simon Josefsson  <jas@extundo.com>
63029
63030         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
63031
63032 2005-02-22  Simon Josefsson  <jas@extundo.com>
63033
63034         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
63035
63036 2005-02-22  Jim Meyering  <jim@meyering.net>
63037
63038         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
63039         s/ifndef/ifdef/.
63040
63041 2005-02-20  Neil Conway  <neilc@samurai.com>
63042
63043         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
63044         returned by OSX/Darwin if the specified buffer is not large
63045         enough for the hostname.
63046
63047 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63048
63049         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
63050         pass it to _help, otherwise the latter coredumps trying to
63051         dereference state.root_argp.
63052
63053 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63054
63055         * modules/chdir-long (Depends-on): Add memrchr.
63056         * modules/memrchr (Files): Add lib/memrchr.h.
63057         (Include): "memrchr.h".
63058
63059 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63060
63061         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
63062
63063 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63064
63065         * lib/memrchr.h: New file.
63066         * lib/chdir-long.c: Include it.
63067         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
63068         Don't bother including stddef.h.
63069
63070 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63071
63072         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
63073         inclusion.
63074         Include <sys/types.h>, for dev_t.
63075         (ME_DUMMY, ME_REMOTE): Move from here....
63076         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
63077         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
63078         Dmitry V. Levin.
63079         Include mountlist.h first, to test the interface.
63080
63081 2005-01-29  Bruno Haible  <bruno@clisp.org>
63082
63083         * lib/progname.c (program_name): Initialize.
63084         Needed when linking statically on MacOS X.
63085
63086 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63087
63088         Sync from coreutils.
63089         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
63090         (Depends-on): Add c-strtod.
63091         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
63092
63093 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63094
63095         Sync from coreutils.
63096         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
63097
63098         Remove files that are specific to coreutils.
63099         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
63100
63101 2005-01-28  Bruno Haible  <bruno@clisp.org>
63102
63103         * modules/javacomp: New file.
63104         * MODULES.html.sh (Java): Add javacomp.
63105
63106 2005-01-28  Bruno Haible  <bruno@clisp.org>
63107
63108         * m4/javacomp.m4: New file, from GNU gettext.
63109
63110 2005-01-28  Bruno Haible  <bruno@clisp.org>
63111
63112         * lib/javacomp.sh.in: New file, from GNU gettext.
63113         * lib/javacomp.h: New file, from GNU gettext.
63114         * lib/javacomp.c: New file, from GNU gettext.
63115
63116 2005-01-26  Simon Josefsson  <jas@extundo.com>
63117
63118         * lib/gai_strerror.c: Use GPL in header.
63119
63120 2005-01-26  Bruno Haible  <bruno@clisp.org>
63121
63122         * modules/javaexec: New file.
63123         * MODULES.html.sh (Java): Add javaexec.
63124
63125 2005-01-26  Bruno Haible  <bruno@clisp.org>
63126
63127         * m4/javaexec.m4: New file, from GNU gettext.
63128
63129 2005-01-26  Bruno Haible  <bruno@clisp.org>
63130
63131         * lib/javaexec.sh.in: New file, from GNU gettext.
63132         * lib/javaexec.h: New file, from GNU gettext.
63133         * lib/javaexec.c: New file, from GNU gettext.
63134
63135 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63136
63137         * modules/lchown (Depends-on): Remove lchown.h
63138
63139 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63140
63141         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
63142         must be defined if the header file was not found, in order
63143         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
63144
63145 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63146
63147         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
63148         initializers for struct pentry_state.
63149         (__argp_error): Check return value of __asprintf
63150         (__argp_failure): Translate error message
63151
63152         * lib/argp-parse.c: Removed braces around the expansion of N_()
63153
63154 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63155
63156         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
63157         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
63158         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
63159         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
63160         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
63161         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
63162         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
63163         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
63164         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
63165         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
63166         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
63167         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
63168         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
63169         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
63170         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
63171         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
63172         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
63173         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
63174         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
63175         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
63176         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
63177         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
63178         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
63179         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
63180         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
63181         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
63182         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
63183         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
63184         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
63185         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
63186         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
63187         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
63188         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
63189         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
63190         xstrtol.m4, xstrtoumax.m4, yesno.m4:
63191         Use an all-permissive copyright notice, recommended by RMS.
63192
63193 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
63194
63195         * modules/chdir-long (Depends-on): Remove mempcpy.
63196
63197 2005-01-21  Jim Meyering  <jim@meyering.net>
63198
63199         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
63200         same value as for Solaris 9.
63201
63202         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
63203         component length.  This included changing the parameter to be
63204         of type `char *' rather than `char const *'.
63205         * lib/chdir-long.h (chdir_long): Update prototype.
63206
63207         * lib/openat.c (fdopendir, fstatat): New functions.
63208         * lib/openat.h: Include headers required for use of DIR and struct
63209         stat.
63210         [AT_SYMLINK_NOFOLLOW]: Define.
63211         (fdopendir, fstatat): Add prototypes.
63212
63213 2005-01-21  Bruno Haible  <bruno@clisp.org>
63214
63215         * modules/classpath: New file.
63216         * MODULES.html.sh (Java): Add classpath.
63217
63218 2005-01-21  Bruno Haible  <bruno@clisp.org>
63219
63220         * lib/classpath.h: New file, from GNU gettext.
63221         * lib/classpath.c: New file, from GNU gettext.
63222
63223 2005-01-20  Simon Josefsson  <jas@extundo.com>
63224
63225         * modules/version-etc-fsf: New file.
63226
63227 2005-01-20  Simon Josefsson  <jas@extundo.com>
63228
63229         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
63230         * lib/version-etc.c: Remove version_etc_copyright.
63231         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
63232         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
63233
63234 2005-01-20  Simon Josefsson  <jas@extundo.com>
63235
63236         * lib/base64.h (isbase64): Add.
63237
63238         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
63239         using a unsigned prototype, don't inline.
63240         (base64_decode): Use it.
63241
63242 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63243
63244         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
63245         it.
63246
63247 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63248
63249         * lib/save-cwd.c (save_cwd): Remove code to support the case
63250         where fchdir is missing or flaky.
63251
63252 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63253
63254         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
63255
63256 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63257
63258         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
63259         AC_LIBSOURCES now does this.
63260         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
63261         with new ullong_max module.
63262
63263 2005-01-19  Bruno Haible  <bruno@clisp.org>
63264
63265         * modules/sh-quote: New file.
63266         * MODULES.html.sh (Executing programs): Add sh-quote.
63267
63268 2005-01-19  Bruno Haible  <bruno@clisp.org>
63269
63270         * lib/sh-quote.h: New file, from GNU gettext.
63271         * lib/sh-quote.c: New file, from GNU gettext.
63272
63273 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63274
63275         Merge from coreutils.
63276         * m4/ullong_max.m4: New file.
63277         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
63278         (gl_MACROS): Assume localeconv exists.
63279
63280 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63281
63282         Merge changes from coreutils, as described below in several
63283         changelogs dated today.
63284
63285         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
63286         (O_DIRECTORY): Remove; not needed here, since "." must be
63287         a directory.  All uses removed.
63288         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
63289         universal on Suns, and we also need to test for IRIX.
63290         Revamp code to use 'if' rather than '#if'.
63291         Avoid unnecessary comparison of cwd->desc to 0.
63292
63293         * lib/utimens.c (futimens): Robustify the previous patch, by checking
63294         for known valid error numbers rather than observed invalid ones.
63295
63296 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63297
63298         * modules/ullong_max: New file.
63299
63300         * modules/chdir-long, modules/openat: New files.
63301         * modules/save-cwd (Depends-on): Depend on chdir-long.
63302         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
63303
63304 2005-01-18  Jim Meyering  <jim@meyering.net>
63305
63306         Merge from coreutils.
63307         * m4/chdir-long.m4, m4/openat.m4: New files.
63308         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
63309         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
63310         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
63311         is sane and DOES follow symlinks.  Besides, testing 20 different
63312         systems found no broken chown implementations.
63313         Prompted by a change in rsync's copy of this macro.
63314         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
63315
63316         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
63317
63318         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
63319         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
63320         NULL-means-set-to-current-time semantics.
63321         Remove temporary file immediately, rather than waiting
63322         for configure's at-exit trap code to do it.
63323
63324 2005-01-18  Jim Meyering  <jim@meyering.net>
63325
63326         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63327
63328         * lib/utimens.c (futimens): Account for the fact that futimes
63329         can also fail with errno == ENOSYS or errno == ENOENT.
63330         Patch from Dmitry V. Levin.
63331
63332         Change the name of the robust chdir function from chdir to chdir_long.
63333         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
63334         (restore_cwd): Use chdir_long, not chdir.
63335         * lib/chdir-long.c: Renamed from chdir.c.
63336         * lib/chdir-long.h: Renamed from chdir.h.
63337         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
63338         Hurd.
63339
63340 2005-01-18  Bruno Haible  <bruno@clisp.org>
63341
63342         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
63343         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
63344         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
63345         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
63346         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
63347         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
63348         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
63349         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
63350         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
63351         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
63352         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
63353         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
63354         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
63355         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
63356         Use an all-permissive copyright notice, recommended by RMS.
63357
63358 2005-01-18  Bob Proulx  <bob@proulx.com>
63359
63360         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
63361         simplify offsetof() macro construct to avoid compile failure with
63362         native HP-UX 11.0 ANSI C compiler.
63363
63364 2005-01-17  Bruno Haible  <bruno@clisp.org>
63365
63366         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
63367         redundant because stpncpy.m4 takes care of it.
63368
63369 2005-01-17  Bruno Haible  <bruno@clisp.org>
63370
63371         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
63372
63373 2005-01-17  Bruno Haible  <bruno@clisp.org>
63374
63375         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
63376         used.
63377
63378 2005-01-17  Bruno Haible  <bruno@clisp.org>
63379
63380         * lib/fwriteerror.h (fwriteerror): Change specification to include
63381         fclose.
63382         * lib/fwriteerror.c: Include <stdbool.h>.
63383         (fwriteerror): At the end, close the file stream. Record whether
63384         stdout was already closed.
63385
63386 2005-01-17  Bruno Haible  <bruno@clisp.org>
63387
63388         * lib/execute.c (environ): Declare if needed.
63389         * lib/pipe.c (environ): Likewise.
63390         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
63391
63392 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63393
63394         * modules/argp: Depend on vsnprintf
63395
63396 2005-01-10  Jim Meyering  <jim@meyering.net>
63397
63398         * modules/closeout (Depends-on): Add atexit.
63399
63400 2005-01-06  Bruno Haible  <bruno@clisp.org>
63401
63402         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
63403
63404 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63405
63406         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
63407         definitions to be after all include files, to avoid collisions.
63408         Problem reported by Bob Proulx.
63409
63410 2005-01-04  Jim Meyering  <jim@meyering.net>
63411
63412         Changes imported from coreutils.
63413         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
63414         as the mkstemp template, use a temporary directory and an
63415         8.3-friendly template to avoid trouble on systems like DJGPP.
63416         Reported by Juan M. Guerrero via Stepan Kasal.
63417         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
63418         close. Remove the temporary directory right away, rather than waiting
63419         for configure's at-exit trap code to do it.
63420         Suggestion from Stepan Kasal.
63421
63422 2005-01-01  Simon Josefsson  <jas@extundo.com>
63423
63424         * gnulib-tool: Print #include directives when --import'ing.
63425
63426 2004-12-28  Simon Josefsson  <jas@extundo.com>
63427
63428         * tests/test-base64.c: Include required header files.  Remove
63429         unused variables.
63430
63431 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63432
63433         * modules/error (Depends-on): Remove gettext.
63434
63435 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63436
63437         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
63438         not needed.  This removes a dependency on the gettext module.
63439         [defined _LIBC]: Do not include <libintl.h>; not needed.
63440
63441 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63442
63443         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
63444         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
63445
63446 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63447
63448         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
63449         HAVE_DECL_STRTOLD.
63450
63451 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63452
63453         * modules/getdate (Depends-on): Remove alloca-opt.
63454
63455 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63456
63457         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
63458
63459 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63460
63461         * lib/argp-parse.c: Include <stddef.h>.
63462         (alignof, alignto): New macros.
63463         (parser_init): Don't assume that void * is aligned sufficiently
63464         for struct option.
63465
63466         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
63467         need to extend the stack.
63468         (YYINITDEPTH): New macro, so that the initial stack isn't overly
63469         large.
63470
63471 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63472
63473         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
63474
63475 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63476
63477         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
63478         (2004-10-24) change.  Apparently this was a false alarm.
63479
63480         * modules/getdate: Depend on alloca-opt, not alloca.
63481
63482 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63483
63484         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
63485         Remove now-obsolete comment about AIX.
63486         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
63487         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
63488         (YYMAXDEPTH): New macro.
63489
63490 2004-12-18  Simon Josefsson  <jas@extundo.com>
63491
63492         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
63493
63494 2004-12-18  Bruno Haible  <bruno@clisp.org>
63495
63496         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
63497
63498 2004-12-18  Bruno Haible  <bruno@clisp.org>
63499
63500         * lib/fatal-signal.c (fatal_signals): Make non-const.
63501         (init_fatal_signals): New function.
63502         (uninstall_handlers, install_handlers): Ignore signals that were set to
63503         SIG_IGN.
63504         (at_fatal_signal): Call init_fatal_signals.
63505         (init_fatal_signal_set): Likewise. Ignore signals that were set to
63506         SIG_IGN.
63507         Reported by Paul Eggert.
63508
63509 2004-12-18  Bruno Haible  <bruno@clisp.org>
63510
63511         * doc/alloca.texi: New file.
63512         * doc/alloca-opt.texi: New file.
63513
63514 2004-12-17  Jim Meyering  <jim@meyering.net>
63515
63516         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
63517         Otherwise, install-sh could exit with improper exit status when
63518         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
63519
63520 2004-12-16  Simon Josefsson  <jas@extundo.com>
63521
63522         * tests/test-base64.c: Add license.
63523
63524 2004-12-15  Stepan Kasal  <address@hidden>
63525
63526         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
63527
63528 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
63529
63530         * modules/getcwd (Files): Add m4/d-ino.m4.
63531         Suggested by Mark D. Baushke.
63532
63533 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63534
63535         * lib/getdate.y (textint): New member "negative".
63536         (time_zone_hhmm): New function.
63537         Expect 14 shift-reduce conflicts, not 13.
63538         (o_colon_minutes): New rule.
63539         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
63540         (yylex): Set the "negative" member of signed numbers.
63541
63542 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63543
63544         * doc/getdate.texi (Time of day items, Time zone items):
63545         Describe new formats +00:00, UTC+00:00.
63546
63547 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63548
63549         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
63550         spurious "-l"s.  Problem reported by Stepan Kasal.
63551
63552 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
63553
63554         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
63555         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
63556
63557 2004-12-04  Simon Josefsson  <jas@extundo.com>
63558
63559         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
63560         Vandoorselaere <yoann@prelude-ids.org>.
63561
63562 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63563
63564         Changes imported from coreutils.
63565         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
63566         exist.
63567         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
63568
63569 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63570
63571         Changes imported from coreutils.
63572         * lib/hard-locale.c: Assume <locale.h> exists.
63573         Include "strdup.h".
63574         (GLIBC_VERSION): New macro.
63575         (hard_locale): Assume setlocale exists.
63576         Rewrite to avoid #ifdef.
63577         Use strdup rather than malloc + strcpy.
63578         * lib/human.c: Assume <locale.h> exists.
63579         (human_readable): Assume localeconv exists.
63580
63581 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63582
63583         * modules/hard-locale (Depends-on): Add strdup.
63584
63585 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63586
63587         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
63588         convert T2, not T.  (Imported from libc.)
63589
63590 2004-11-30  Simon Josefsson  <jas@extundo.com>
63591
63592         * modules/restrict (License): Change to LGPL.
63593
63594 2004-11-30  Simon Josefsson  <jas@extundo.com>
63595
63596         * m4/restrict.m4: Add copyright and copying conditions.
63597
63598 2004-11-30  Simon Josefsson  <jas@extundo.com>
63599
63600         * m4/base64.m4: New file.
63601
63602 2004-11-30  Simon Josefsson  <jas@extundo.com>
63603
63604         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
63605         base64.
63606
63607         * tests/test-base64.c: New file.
63608
63609         * modules/base64: New file.
63610
63611 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63612
63613         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
63614         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
63615
63616         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
63617
63618 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63619
63620         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
63621         (__getcwd.c): Don't restore errno; glibc doesn't.
63622         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
63623         first, falling back to our code only if its results look suspicious.
63624         Ensure that the resulting buffer is only as large as necessary.
63625
63626         * lib/readutmp.c: Include readutmp.h first.
63627         Include <errno.h>, since readutmp.h no longer does that.
63628         * lib/readutmp.h: Don't include <errno.h>,
63629         <sys/param.h>, <time.h>; not needed to establish interface.
63630         (errno): Remove decl.
63631         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
63632         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
63633         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
63634
63635 2004-11-28  Simon Josefsson  <jas@extundo.com>
63636
63637         * lib/base64.h, base64.c: New file.
63638
63639 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63640
63641         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
63642
63643 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63644
63645         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
63646         (Depends-on): Remove pathmax, same.  Add mempcpy.
63647         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
63648         (Makefile.am): Append getcwd.h to lib_SOURCES.
63649         (Include): Add getcwd.h.
63650         (Maintainer): Change from Jim Meyering to "all, glibc",
63651         since getdate now uses intended-for-glibc code.
63652         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
63653         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
63654
63655 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63656
63657         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
63658         HP's ANSI C compiler.
63659         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
63660         Declaring int functions causes warnings on some modern systems and
63661         shouldn't be needed to compile on ancient ones.
63662         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
63663         defined.
63664
63665         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
63666         with the following changes.
63667         (__set_errno): Parenthesize properly.
63668         Include <stdbool.h>.
63669         (MIN, MAX, MATCHING_INO): New macros.
63670         (__getcwd): Define with prototype, not K&R form.
63671         Use heuristics to allocate default buffer on stack if possible.
63672         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
63673         behavior, and to avoid the PATH_MAX limit when computing
63674         ../../../../...
63675         Use MATCHING_INO to compare inode number to file.
63676         Check for arithmetic overflow in size calculations.
63677         Fix bug in reallocation of dot array that caused getcwd to fail
63678         on directories nested deeper than 75.
63679         Be more careful about saving errno on error.
63680         Do not use realloc; use only free+malloc, as this is a bit
63681         more flexible and avoids a needless copy operation.
63682         Do not inspect st_dev and st_ino for symbolic links; POSIX
63683         doesn't specify the latter.
63684         Check for closedir errors.
63685         Avoid needless casts.
63686         Use "#ifdef weak_alias" around weak_alias, to be like other
63687         glibc code.
63688         The following changes to getcwd.c have effect only when used in
63689         gnulib; they have no effect inside glibc proper.
63690         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
63691         as alloca isn't used.
63692         (alloca, __alloca): Likewise.
63693         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
63694         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63695         unconditionally, as gnulib assumes C89 or better.
63696         Do not include <sys/param.h>.
63697         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
63698         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
63699         better.
63700         (NULL) [!defined NULL]: Remove; we assume C89 or better.
63701         Include <dirent.h> in a way that is compatible with modern Autoconf.
63702         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
63703         New macros, if not already defined.
63704         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
63705         Use "_LIBC", not "defined _LIBC", for consistency.
63706         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
63707         a mempcpy module.
63708         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
63709         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
63710         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
63711         credit only to Jim Meyering and adjust the copyright dates.
63712         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
63713         <stdlib.h>, <unistd.h>, "pathmax.h".
63714         Instead, include "xgetcwd.h" (first) and "getcwd.h".
63715         (INITIAL_BUFFER_SIZE): Remove.
63716         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
63717
63718 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63719
63720         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
63721         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
63722         Use the _ONCE methods, for efficiency.
63723         Check for fcntl.h.  In test program, include <errno.h>
63724         and <fcntl.h> if available.  Remove old K&R cruft from
63725         test program.  Check for common errors in GNU/Linux,
63726         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
63727         don't do AC_LIBOBJ, as that's getcwd.m4's job.
63728         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
63729         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
63730         name accordingly.
63731         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
63732         accommodate new getcwd.c.
63733         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
63734         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
63735         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
63736         that's all we need now.
63737
63738 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63739
63740         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
63741         argp-parse.c depends on getopt internals, that means we should
63742         always use our getopt, to be on the safe side.
63743         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
63744         order not to spoil the result of an eventual previous invocation
63745         of gl_GETOPT_SUBSTITUTE.
63746
63747 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63748
63749         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
63750         redefinition warnings. To avoid them, include the defines
63751         in `#if !defined __need_getopt ... #endif'. The only place
63752         where __getopt_argv_const is used is in definitions
63753         of getopt_long and getopt_long_only below, which are as well
63754         protected by `#ifndef __need_getopt'.
63755         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
63756         __need_getopt after including <stdio.h> and <unistd.h> These
63757         headers might have defined it.
63758
63759 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63760
63761         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
63762
63763 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63764
63765         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
63766         (futimens): New function, which uses futimes if available.
63767         (futimens, utimens): Support timespec==NULL, with same semantics
63768         as utime and utimens.
63769         * lib/utimens.h (futimens): New decl.
63770
63771 2004-11-23  Jim Meyering  <jim@meyering.net>
63772
63773         * lib/getopt_.h: Remove trailing blanks.
63774
63775 2004-11-23  Jim Meyering  <jim@meyering.net>
63776
63777         * lib/__fpending.c: Add comment.
63778
63779 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
63780
63781         * modules/canonicalize (Depends-on): Add xreadlink.
63782         Problem reported by James Youngman.
63783
63784 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63785
63786         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
63787         New macros.
63788         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
63789         optopt): Use them instead of invoking ## directly; otherwise, the
63790         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
63791
63792 2004-11-19  Bruno Haible  <bruno@clisp.org>
63793
63794         * lib/strtok_r.c: Move comments from here...
63795         * lib/strtok_r.h: ... to here.
63796
63797 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63798
63799         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
63800         implementations that mishandle size_t overflow.
63801
63802 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63803
63804         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
63805         might fail.  Problem reported by Yoann Vandoorselaere.
63806         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
63807         implementations that mishandle size_t overflow.
63808
63809 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63810
63811         * modules/canon-host (Depends-on): Add strdup.
63812
63813 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63814
63815         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
63816
63817 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63818
63819         * lib/canon-host.c: Include "strdup.h".
63820         (canon_host): Use getaddrinfo if available, so that IPv6 works.
63821         Use strdup instead of malloc/strcpy to duplicate strings.
63822
63823         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
63824         (human_space_before_unit): New constant.
63825         * lib/human.c (human_readable): Support it.
63826
63827         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
63828         (xgetcwd): Set errno correctly when failing.
63829         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
63830         the failure is actually due to a PATH_MAX problem.
63831
63832         Further getopt changes to make it more likely that glibc will
63833         buy the changes back.
63834         * lib/getopt.c (POSIXLY_CORRECT): New constant.
63835         (getopt): Use it, so to preserve glibc semantic
63836         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
63837         when compiling for libc.
63838         * lib/getopt_.h (__getopt_argv_const): Bring it back.
63839         (getopt_long, getopt_long_only): Use it.
63840
63841         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63842         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
63843         (getopt): Argv is now char * const *, as per standard.
63844         (_getopt_internal_r, _getopt_internal): Argv is now char **,
63845         not char *__getopt_argv_const *.
63846         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63847         _getopt_long_only_r): Likewise.
63848         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
63849         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63850         _getopt_long_r, _getopt_long_only_r): Likewise.
63851         * lib/getopt_.h (__getopt_argv_const): Remove.
63852         (getopt): Argv is now char * const *, as per standard.
63853
63854         * lib/getdate.y (tORDINAL): New token.
63855         (day, relunit): Allow it for relative times.
63856         (relative_time_table): Use tORDINAL for ordinals.
63857
63858 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63859
63860         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
63861         Document that "second" isn't allowed as an ordinal number.
63862
63863 2004-11-16  Jim Meyering  <jim@meyering.net>
63864
63865         * modules/closeout (Depends-on): Add fpending.
63866
63867 2004-11-15  Jim Meyering  <jim@meyering.net>
63868
63869         * lib/closeout.c: Include "__fpending.h" once again.
63870         Include <stdbool.h>.
63871         (close_stdout): Don't fail just because stdout was closed initially,
63872         since some programs don't write to stdout in the normal course of
63873         operation (other than --version and --help), and we don't want this
63874         function to make e.g. `touch file >&-' fail.
63875         But do fail if it was closed and someone has tried to write to it.
63876         E.g., `printf foo >&-' must fail.
63877
63878 2004-11-13  Jim Meyering  <jim@meyering.net>
63879
63880         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
63881
63882 2004-11-12  Simon Josefsson  <jas@extundo.com>
63883
63884         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
63885         small doc fix is still pending.
63886
63887 2004-11-11  Simon Josefsson  <jas@extundo.com>
63888
63889         * modules/strtok_r: New file.
63890
63891         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63892         strtok_r.
63893
63894 2004-11-11  Simon Josefsson  <jas@extundo.com>
63895
63896         * m4/strtok_r.m4: New file.
63897
63898         * m4/getopt.m4: Replace opterr.
63899
63900 2004-11-11  Simon Josefsson  <jas@extundo.com>
63901
63902         * lib/strtok_r.h, strtok_r.c: New file.
63903
63904 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63905
63906         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
63907         of replacing opterr, getopt, etc.  This should handle the
63908         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
63909
63910 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63911
63912         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
63913         we can stop lying to compilers about the constness of argv when we
63914         are compiled outside glibc.
63915         (getopt, getopt_long, getopt_long_only): Use it.
63916         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63917         _getopt_internal, getopt): Likewise.
63918         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63919         _getopt_long_only_r): Likewise.
63920         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63921         _getopt_long_r, _getopt_long_only_r): Likewise.
63922
63923         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
63924         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
63925         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
63926         the other external symbols.
63927         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
63928         declaration, since the above renaming now works around collisions.
63929
63930 2004-11-11  Jim Meyering  <jim@meyering.net>
63931
63932         * lib/linebreak.c: Remove trailing blanks.
63933         * lib/alloca_.h: Likewise.
63934         * lib/acosl.c: Likewise.
63935         * lib/euidaccess.c: Likewise.
63936         * lib/allocsa.h: Likewise.
63937
63938 2004-11-10  Simon Josefsson  <jas@extundo.com>
63939
63940         * m4/getaddrinfo.m4: New file.
63941
63942 2004-11-10  Simon Josefsson  <jas@extundo.com>
63943
63944         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
63945
63946 2004-11-10  Simon Josefsson  <jas@extundo.com>
63947
63948         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63949         getaddrinfo.
63950
63951         * modules/getaddrinfo: New file.
63952
63953 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63954
63955         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
63956
63957 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63958
63959         * lib/mktime.c (SHR): New macro, which is a portable
63960         substitute for >> that should work even on Crays.
63961         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
63962         Problem reported by Mark D. Baushke in
63963         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
63964         * lib/getdate.y (SHR): Likewise.
63965         (tm_diff): Use it.
63966         * lib/strftime.c (SHR): Likewise.
63967         (tm_diff): Use it.
63968         * lib/quotearg.c (struct quoting_options): Use unsigned int for
63969         quote_these_too, so that right shifts are well defined.  All uses
63970         changed.
63971
63972 2004-11-10  Jim Meyering  <jim@meyering.net>
63973
63974         Ensure that no close failure goes unreported.
63975         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
63976         return early when it seems there's nothing to flush.
63977         Don't include __fpending.h.
63978
63979 2004-11-10  Jim Meyering  <jim@meyering.net>
63980
63981         * modules/closeout (Depends-on): Remove fpending.
63982
63983 2004-11-10  Jim Meyering  <jim@meyering.net>
63984
63985         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
63986
63987 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63988
63989         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
63990         gl_FUNC_STRFTIME.
63991         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
63992         and AC_REQUIRE when possible, to avoid duplicate checks.
63993         Check for <wchar.h>.
63994
63995 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63996
63997         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
63998
63999 2004-11-09  Bruno Haible  <bruno@clisp.org>
64000
64001         * m4/sockpfaf.m4: New file.
64002
64003 2004-11-05  Bruno Haible  <bruno@clisp.org>
64004
64005         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
64006         Reported by Mark D. Baushke <mdb@cvshome.org>.
64007
64008 2004-11-04  Bruno Haible  <bruno@clisp.org>
64009
64010         2004-09-11  Bruno Haible  <bruno@clisp.org>
64011                 * allocsa.valgrind: New file.
64012         2004-02-06  Bruno Haible  <bruno@clisp.org>
64013                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
64014                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
64015                 Reported by Christopher Seip <chris.seip@hp.com>.
64016
64017 2004-11-04  Bruno Haible  <bruno@clisp.org>
64018
64019         * modules/allocsa (Files): Add lib/allocsa.valgrind.
64020         (Makefile.am): Distribute it.
64021
64022 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
64023
64024         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
64025         with errno == ERANGE if the buffer is too small.
64026         Problem reported by Mark D. Baushke.
64027
64028 2004-11-03  Albert Chin  <china@thewrittenword.com>
64029             Paul Eggert  <eggert@cs.ucla.edu>
64030
64031         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
64032         equivalent, substitute $ac_type for equivalent type rather than
64033         blindly using uint32_t *always* which won't work if uint32_t is not
64034         available.  Define _UINT32_T to work around typedef of uint32_t if
64035         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
64036         2.5.1.
64037
64038 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64039
64040         * m4/jm-macros.m4: Sync from coreutils.
64041         (gl_MACROS): Check for mbrlen, for pathchk.
64042         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
64043
64044 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64045
64046         * lib/xreadlink.c (MAXSIZE): New macro.
64047         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
64048         size does not exceed MAXSIZE.  Avoid cast.
64049         As suggested by Mark D. Baushke in
64050         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
64051         if readlink fails with buffer size just under MAXSIZE, try again
64052         with MAXSIZE.
64053
64054 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64055
64056         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
64057
64058 2004-11-02  Derek R. Price  <derek@ximbiot.com>
64059         and  Paul Eggert  <eggert@cs.ucla.edu>
64060
64061         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
64062         (get_date): Overparenthesize to avoid GCC warning.
64063
64064 2004-11-02  Bruno Haible  <bruno@clisp.org>
64065
64066         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
64067         returns void.
64068
64069 2004-11-02  Bruno Haible  <bruno@clisp.org>
64070
64071         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
64072         function returns void.
64073
64074 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64075
64076         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
64077         fflush_unlocked, flockfile, funlockfile, funlockfile,
64078         fputs_unlocked, putc_unlocked.
64079
64080 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64081
64082         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
64083         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
64084         already declared.
64085
64086 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64087
64088         * modules/getdate (Files): Add doc/getdate.texi.
64089         (Depends-on): Add setenv, xalloc.
64090
64091 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64092
64093         * lib/getdate.y: Add support for TZ="foo" within a date string.
64094         Fix some bugs near time_t boundaries.  Reject dates with
64095         out-of-range components, e.g., "Sept 31".
64096         Include <stdlib.h>, "setenv.h", "xalloc.h".
64097         (ISDIGIT_LOCALE): Remove; unused.
64098         Note that the TZ and time functions used here are not reentrant.
64099         (mktime_ok, get_tz): New functions.
64100         (TZBUFSIZE): New constant.
64101         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
64102         This requires that we sometimes generate our own TZ="XXX..." setting.
64103
64104 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64105
64106         * doc/getdate.texi: New file, from coreutils with modifications for
64107         the new TZ parsing.
64108
64109 2004-10-27  Derek R. Price  <derek@ximbiot.com>
64110
64111         * lib/mktime.c (not_equal_tm): Remove redundant check.
64112
64113 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64114
64115         * modules/regex (lib_SOURCES): Add regex.c.
64116         Reported by James Youngman in
64117         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
64118
64119 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64120
64121         * lib/getdate.y: Use Bison 1.875 features, and some minor
64122         code cleanups.  This change does not affect semantics.
64123         Don't include <stdlib.h>; no longer needed.
64124         Don't include unlocked-io.h; only the "#if TEST" code uses
64125         stdio, and performance isn't crucial there.
64126         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
64127         Bison 1.875 features as described below.
64128         All uses of "PC." replaced by "pc->".
64129         (YYSTYPE): Add a forward declaration.
64130         (yylex, yyerror): Use full prototypes in forward decls.
64131         Use "%pure-parser" rather than obsolescent "%pure_parser".
64132         Use %parse-param and %lex-param instead of obsolescent
64133         YYPARSE_PARAM and YYLEX_PARAM.
64134         (meridian_table, month_and_day_table, time_units_table,
64135         relative_time_table, time_zone_table, military_table,
64136         lookup_zone, lookup_word, get_date):
64137         Use NULL instead of 0 where appropriate.
64138         (to_hour): Avoid abort (), to avoid a dependency on
64139         stdlib.h.
64140         (yyerror, yylex): Now accepts parser_control * arg.
64141         (main) [TEST]: Use '\0' rather than 0 for char.
64142
64143 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64144
64145         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
64146
64147 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64148
64149         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
64150         It's now the caller's responsibility to handle the case where
64151         !HAVE_GETPAGESIZE && !defined getpagesize.
64152
64153         * lib/mktime.c (leapyear): Arg is long int, not int.
64154
64155 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
64156
64157         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
64158
64159 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64160
64161         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
64162         missing.  Problem reported by James Youngman.
64163
64164 2004-10-16  Simon Josefsson  <jas@extundo.com>
64165
64166         * gnulib-tool: Fix comments.  Fix parse problem.
64167         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
64168
64169 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
64170
64171         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
64172         implementation of getopt_long.  Problem reported by Alexander Taler in:
64173         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
64174
64175 2004-10-15  Bruno Haible  <bruno@clisp.org>
64176
64177         * gnulib-tool: Untabify. Initialize supplied_libname.
64178         (func_usage): More homogenous output.
64179         (func_modules_transitive_closure, func_modules_to_filelist,
64180         func_emit_lib_Makefile_am): New functions.
64181         (func_import): New function, extracted from big case statement. Use
64182         func_get_license, func_modules_transitive_closure,
64183         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
64184         opt_lgpl. Don't use test -a, as it's not portable.
64185         (func_create_testdir): Use func_modules_transitive_closure,
64186         func_modules_to_filelist, func_emit_lib_Makefile_am.
64187
64188 2004-10-15  Bruno Haible  <bruno@clisp.org>
64189
64190         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
64191
64192 2004-10-15  Bruno Haible  <bruno@clisp.org>
64193
64194         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
64195         the portions belonging to each module.
64196         Suggested by Derek Robert Price <derek@ximbiot.com>.
64197
64198 2004-10-12  Simon Josefsson  <jas@extundo.com>
64199
64200         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
64201         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
64202         to real functions.
64203
64204 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64205
64206         * modules/vsnprintf: New file.
64207
64208 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64209
64210         * m4/vsnprintf.m4: New file.
64211
64212 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64213
64214         * lib/vsnprintf.h: New file.
64215         * lib/vsnprintf.c: New file.
64216
64217 2004-10-11  Bruno Haible  <bruno@clisp.org>
64218
64219         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
64220         vsnprintf.
64221
64222 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64223
64224         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
64225
64226 2004-10-07  Bruno Haible  <bruno@clisp.org>
64227
64228         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
64229         fits into the provided buffer.
64230
64231 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64232
64233         * lib/diacrit.c, diacrit.h: Add GPL notice.
64234
64235         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
64236         notice.
64237         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
64238         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
64239         This avoids a potential constant-folding bug.
64240
64241 2004-10-05  Bruno Haible  <bruno@clisp.org>
64242
64243         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
64244         for the declaration of strsep.
64245
64246 2004-10-05  Bruno Haible  <bruno@clisp.org>
64247
64248         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
64249
64250 2004-10-04  Simon Josefsson  <jas@extundo.com>
64251
64252         * modules/memmem: New file.
64253         * tests/test-memmem.c: New file.
64254         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
64255
64256 2004-10-04  Simon Josefsson  <jas@extundo.com>
64257
64258         * m4/memmem.m4: New file.
64259
64260 2004-10-04  Simon Josefsson  <jas@extundo.com>
64261
64262         * lib/memmem.h: New file.
64263         * lib/memmem.c: New file, taken from glibc.
64264
64265 2004-10-04  Simon Josefsson  <jas@extundo.com>
64266
64267         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
64268         '#ifdef USE_UNLOCKED_IO'.
64269
64270 2004-10-04  Simon Josefsson  <jas@extundo.com>
64271
64272         * config/srclist.txt: Add memmem from glibc.
64273
64274 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64275
64276         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
64277
64278         * modules/argmatch, modules/argp, modules/closeout, modules/error,
64279         modules/exclude, modules/getdate, modules/getline,
64280         modules/getndelim2, modules/getpass, modules/getpass-gnu,
64281         modules/getusershell, modules/linebuffer, modules/md5,
64282         modules/mountlist, modules/posixtm, modules/readtokens,
64283         modules/readutmp, modules/regex, modules/sha1,
64284         modules/version-etc, modules/yesno:
64285         Remove dependency on unlocked-io.
64286
64287 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64288
64289         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
64290
64291         * m4/unlocked-io.m4: Add copyright notice.
64292         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
64293
64294 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64295
64296         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
64297         * lib/xmalloc.c (xmemdup): Likewise.
64298         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
64299         XFREE): Remove these long-obsolescent macros.
64300         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
64301         * lib/xstrdup.c: Remove.
64302
64303         * lib/regex.c (re_comp): Cast gettext return value to char *,
64304         Problem reported by Martin Neitzel via Mark D. Baushke.
64305
64306 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64307
64308         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
64309         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
64310         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
64311         regex.c, sha1.c, version-etc.c, yesno.c:
64312         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
64313         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
64314         the includer's responsibility.
64315
64316         Sync from coreutils.
64317
64318         * lib/modechange.c (mode_compile): Don't decrement a pointer that
64319         points to the start of a string, as the C Standard says the
64320         resulting behavior is undefined.
64321
64322         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
64323         simple -> simple_backups, numbered_existing ->
64324         numbered_existing_backups, numbered -> numbered_backups
64325         to avoid shadowing problems.  All uses changed.
64326         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
64327         * lib/backupfile.c (check_extension, numbered_backup):
64328         Rename locals to avoid shadowing 'basename'.
64329         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
64330         once.
64331
64332         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
64333         * lib/.cvsignore: Add getopt.h.
64334
64335 2004-10-04  Bruno Haible  <bruno@clisp.org>
64336
64337         * modules/README: New file.
64338         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
64339         not a module.
64340
64341 2004-10-02  Jim Meyering  <jim@meyering.net>
64342
64343         * lib/dirfd.h, getpagesize.h: Add copyright notice.
64344
64345 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64346
64347         * modules/strsep: New file.
64348
64349 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64350
64351         * m4/strsep.m4: New file.
64352
64353 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64354
64355         * lib/strsep.h: New file.
64356         * lib/strsep.c: New file.
64357
64358 2004-10-01  Simon Josefsson  <jas@extundo.com>
64359
64360         * lib/snprintf.c (snprintf): Handle size==0.
64361
64362 2004-10-01  Simon Josefsson  <jas@extundo.com>
64363             Bruno Haible  <bruno@clisp.org>
64364
64365         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
64366         (snprintf): Declare 'args'.
64367
64368 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
64369
64370         * lib/snprintf.c: Remove comments as to why each header is needed.
64371
64372 2004-10-01  Bruno Haible  <bruno@clisp.org>
64373
64374         * MODULES.html.sh: Add strsep.
64375
64376 2004-09-30  Simon Josefsson  <jas@extundo.com>
64377
64378         * modules/snprintf: New file.
64379
64380 2004-09-30  Simon Josefsson  <jas@extundo.com>
64381
64382         * m4/snprintf.m4: New file.
64383
64384 2004-09-30  Simon Josefsson  <jas@extundo.com>
64385
64386         * lib/snprintf.h, lib/snprintf.c: New files.
64387
64388 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64389
64390         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
64391         (hol_entry_help): Never translate an empty string.
64392         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
64393         * lib/argp.h (OPTION_NO_TRANS): New option.
64394
64395 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64396
64397         * modules/argp (Maintainer): Replace Simon Josefsson
64398         by Sergey Poznyakoff.
64399
64400 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64401
64402         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
64403         changes merged back into glibc.
64404
64405 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64406
64407         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
64408
64409 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64410
64411         * lib/xvasprintf.c: Include xalloc.h.
64412         (xvasprintf): Use xalloc_die, not xmalloc_die.
64413
64414 2004-09-29  Bruno Haible  <bruno@clisp.org>
64415
64416         * modules/alloca-opt: New file, derived from modules/alloca.
64417         * modules/allocsa: Depend on alloca-opt instead of alloca.
64418         * modules/setenv: Likewise.
64419         * modules/vasnprintf: Likewise.
64420         * MODULES.html.sh: Add alloca-opt.
64421
64422 2004-09-28  Simon Josefsson  <jas@extundo.com>
64423
64424         * gnulib-tool: New parameter --lgpl, to asseert that modules are
64425         LGPL, and to replace license template from GPL to LGPL.
64426
64427 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64428
64429         * modules/dummy: Change license to LGPL.
64430
64431 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64432
64433         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
64434
64435 2004-09-24  Simon Josefsson  <jas@extundo.com>
64436
64437         * modules/minmax (License): Change from GPL to LGPL.
64438
64439 2004-09-23  Simon Josefsson  <jas@extundo.com>
64440
64441         * gnulib-tool (--import): Typo.
64442
64443 2004-09-23  Simon Josefsson  <jas@extundo.com>
64444
64445         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
64446
64447 2004-09-22  Bruno Haible  <bruno@clisp.org>
64448
64449         * modules/*: Add 'License' field.
64450         * gnulib-tool: Accept --extract-license option.
64451         (func_get_license): New function.
64452
64453 2004-09-21  Bruno Haible  <bruno@clisp.org>
64454
64455         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
64456         Reported by Simon Josefsson.
64457
64458 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64459
64460         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
64461         gl_AC_TYPE_LONG_LONG.
64462
64463 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64464
64465         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
64466
64467 2004-09-18  Simon Josefsson  <jas@extundo.com>
64468         and  Paul Eggert  <eggert@cs.ucla.edu>
64469
64470         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
64471         calls with autoreconf.  Define GL_LIB.
64472
64473 2004-09-14  Karl Berry  <karl@gnu.org>
64474
64475         * config/srclist.txt: unsync setenv.c, sigh.
64476
64477 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64478
64479         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
64480         Problem reported by Bruno Haible in:
64481         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
64482
64483 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64484
64485         * config/srclist.txt: Comment out argp-pvh.c.
64486
64487 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
64488
64489         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
64490         in case some system header has #define'd it.  Problem reported by
64491         Soeren D. Schulze in
64492         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
64493
64494 2004-09-09  Karl Berry  <karl@gnu.org>
64495
64496         * regex.[ch]: delete from the root.  These were supposed to be
64497                 synced with emacs cvs, but this has not happened for about
64498                 a year, and anyway nothing else uses emacs regex.[ch].
64499                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
64500                 lib/regex[.ch] is untouched.
64501
64502 2004-09-09  Bruno Haible  <bruno@clisp.org>
64503
64504         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
64505
64506 2004-09-09  Bruno Haible  <bruno@clisp.org>
64507
64508         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
64509         modifications.
64510         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
64511
64512 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64513
64514         * modules/xvasprintf: New file.
64515         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
64516
64517 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64518
64519         * lib/xvasprintf.h: New file.
64520         * lib/xvasprintf.c: New file.
64521         * lib/xasprintf.c: New file.
64522
64523 2004-09-08  Bruno Haible  <bruno@clisp.org>
64524
64525         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
64526
64527 2004-09-08  Bruno Haible  <bruno@clisp.org>
64528
64529         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
64530         length is > INT_MAX.
64531         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
64532         more.
64533
64534 2004-09-08  Bruno Haible  <bruno@clisp.org>
64535
64536         * lib/stdint_.h: New file, taken from GNU clisp.
64537
64538 2004-09-08  Bruno Haible  <bruno@clisp.org>
64539             Oskar Liljeblad  <oskar@osk.mine.nu>
64540
64541         * modules/stdint: New file.
64542         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
64543
64544 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64545
64546         Import from coreutils.
64547         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
64548         strings on unbounded length.  alloca's performance benefits aren't
64549         that important here.
64550         (V_STRDUP): Remove.
64551         (parse_with_separator): New function, with most of the internals
64552         of the old parse_user_spec.  Allow user to omit both user and group,
64553         for compatibility with FreeBSD.
64554         Clone only the user name, not the entire spec.
64555         Do not set *uid, *gid unless entirely successful.
64556         Avoid memory leak in some failing cases.
64557         Fix regression for USER.GROUP reported by Dmitry V. Levin in
64558         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
64559         (parse_user_spec): Rewrite to use parse_with_separator.
64560
64561 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64562
64563         * modules/userspec: Don't depend on alloca.
64564
64565 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64566
64567         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
64568
64569 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64570
64571         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
64572         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
64573         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
64574
64575 2004-08-16  Simon Josefsson  <jas@extundo.com>
64576
64577         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
64578         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
64579         Add --dry-run for --import.
64580         Let user provided command line parameters override configure.ac
64581         settings.
64582
64583 2004-08-12  Simon Josefsson  <jas@extundo.com>
64584
64585         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
64586         as discussed with Paul Eggert in threads rooted at
64587         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
64588         and
64589         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
64590         Before, the test was empty, and relied on ELIDE_CODE in source
64591         code.)
64592         (gl_PREREQ_GETOPT): New macro.
64593         (gl_GETOPT): Use them.
64594
64595 2004-08-12  Simon Josefsson  <jas@extundo.com>
64596
64597         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
64598         * lib/getopt_.h: Renamed from getopt.h.
64599
64600 2004-08-12  Simon Josefsson  <jas@extundo.com>
64601
64602         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
64603         Change default library name from libfoo to libgnu.
64604         Now, if you have a configure.ac that says:
64605                 gl_SOURCE_BASE(gl)
64606                 gl_M4_BASE(gl/m4)
64607                 gl_MODULES(error getopt etcetera)
64608                 gl_INIT
64609         you can import all you need by running:
64610                 ../gnulib/gnulib-tool --import
64611
64612         * modules/getopt (Files): Rename getopt.h to getopt_.h.
64613         (Makefile.am): Rewrite, use logic from argz.
64614         (Include): Use <getopt.h> instead of "getopt.h".
64615
64616 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64617
64618         * modules/argp (Files): Add m4/unlocked-io.m4.
64619         (Depends-on): Add extensions.
64620
64621 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64622
64623         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
64624         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
64625         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
64626         Check for program_invocation_name, program_invocation_short_name,
64627         flockfile, funlockfile, features.h, _getopt_long_only_r.
64628
64629 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64630
64631         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
64632         its complicated substitute.
64633         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
64634         and program_invocation_name.
64635         (__argp_basename) [!_LIBC]: Remove; the only use was
64636         replaced by its body.
64637         (__argp_short_program_name): Change condition from
64638         !defined __argp_short_program_name to
64639         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
64640         to match argp-namefrob.h.
64641         (__argp_failure): Don't assume strerror_r returns char *.
64642         * lib/argp-parse.c (N_): Define unconditionally.
64643         (argp_default_options): Fill out initializers with 0 to avoid
64644         gcc warnings.
64645
64646 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64647
64648         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
64649         getopt1.c.
64650
64651 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64652
64653         Merge from coreutils.
64654
64655         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
64656
64657         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
64658         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
64659
64660 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64661
64662         Merge from coreutils.
64663
64664         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
64665         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
64666         for Reliant Unix 5.43.
64667
64668         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
64669         (union fooround): Use uintmax_t, not long int.
64670         The rest is a merge from libc:
64671         [defined _LIBC]: Include <shlib-compat.h>.
64672         (_obstack) [defined _LIBC]: Remove after 2.3.4.
64673
64674         * lib/settime.c (settime): Recode to avoid warning with
64675         Sun Forte C 6U2.
64676
64677         * lib/strverscmp.c: Convert to UTF-8.
64678
64679 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64680
64681         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64682         m4/uintmax_t.m4.
64683
64684 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64685
64686         * modules/xalloc-die: New file.
64687         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
64688
64689         * modules/md5 (Files): Add m4/uint32_t.m4.
64690         * modules/sha1: Renamed from modules/sha.
64691         (Files):
64692         Rename lib/sha.h to lib/sha1.h.
64693         Rename lib/sha.c to lib/sha1.c.
64694         Rename m4/sha.m4 to m4/sha1.m4.
64695         (lib_SOURCES): Likewise.
64696         (configure.ac): Rename gl_SHA to gl_SHA1.
64697         (Include): sha.h -> sha1.h.
64698
64699 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64700
64701         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
64702         * m4/sha1.m4: Renamed from sha.m4.
64703         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
64704
64705 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64706
64707         * lib/obstack.h (obstack_empty_p):
64708         Don't assume that chunk->contents is suitably aligned.
64709         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
64710         Likewise. Problem reported by Benno in
64711         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
64712
64713         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
64714         readable.  This could be improved further but it'd take some work.
64715
64716 2004-08-08  Simon Josefsson  <jas@extundo.com>
64717
64718         * modules/xgethostname (Depends-on): Remove exit and error (not
64719         used).
64720
64721         * modules/getpass-gnu: Add getpass.h.
64722         (Depends-on): Add stdbool.
64723         * modules/getpass: Add getpass.h.
64724
64725 2004-08-08  Simon Josefsson  <jas@extundo.com>
64726
64727         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
64728         Check getpass declaration.
64729
64730 2004-08-08  Simon Josefsson  <jas@extundo.com>
64731
64732         * lib/xgethostname.c: Don't include error.h (not used).
64733
64734         * lib/getpass.h: Add.
64735         * lib/getpass.c: Include getpass.h first.
64736
64737 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
64738
64739         * lib/xalloc-die.c: New file.
64740         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
64741         All uses removed.
64742         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
64743         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
64744         xalloc-die.c.
64745         (_, N_, xalloc_die): Move to xalloc-die.c.
64746         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
64747         so that we needn't mess with xalloc_msg_memory_exhausted.
64748
64749         * lib/sha1.h: Renamed from sha.h.
64750         (SHA1_H): Renamed from _SHA_H.
64751         (sha1_ctx): Renamed from sha_ctx.
64752         (sha1_init_ctx): Renamed from sha_init_ctx.
64753         (sha1_process_block): Renamed from sha_process_block.
64754         (sha1_process_bytes): Renamed from sha_process_bytes.
64755         (sha1_finish_ctx): Renamed from sha_finish_ctx.
64756         (sha1_read_ctx): Renamed from sha_read_ctx.
64757         (sha1_stream): Renamed from sha_stream.
64758         (sha1_buffer): Renamed from sha_buffer.
64759         * lib/sha1.c: Likewise; renamed from sha.c.
64760         Do not include <sys/types.h>.
64761         Include <stddef.h> rather than <stdlib.h>.
64762
64763 2004-08-08  Bruno Haible  <bruno@clisp.org>
64764
64765         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
64766         FILESYSTEM_PREFIX_LEN.
64767         * lib/progreloc.c: Likewise.
64768         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
64769
64770 2004-08-06  Simon Josefsson  <jas@extundo.com>
64771
64772         * modules/progname (Depends-on): Don't depend on stdbool.
64773
64774 2004-08-06  Simon Josefsson  <jas@extundo.com>
64775
64776         * modules/getsubopt: New file.
64777         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64778         getsubopt.
64779
64780 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64781
64782         More merge from coreutils.
64783
64784         * m4/utimens.m4, m4/utimecmp.m4: New files.
64785         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
64786         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
64787         prereq.m4, sha.m4: Import changes from coreutils.
64788
64789 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64790
64791         More merge from coreutils.
64792         * modules/raise, modules/readtokens0, modules/utimens:
64793         * modules/utimecmp, module/xnanosleep: New files.
64794         * modules/strftime: Add lib/strftime.h.
64795         Change include from <time.h> to "strftime.h".
64796         * modules/yesno: Add lib/yesno.h.
64797         * modules/backupfile: Remove lib/addext.c.
64798         * modules/euidaccess: Add stat-macros.h.
64799         * modules/canonicalize, modules/euidaccess,
64800         modules/filemode, modules/lchown, modules/makepath,
64801         modules/rmdir, modules/stat: Likewise.
64802
64803 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64804
64805         Merge from tar.
64806         * lib/argp-help.c (make_hol, hol_append): Don't assume that
64807         SIZE_MAX is a valid preprocessor constant.
64808         (__argp_basename): Change from "#ifndef _LIBC"
64809         to "#ifndef __argp_short_program_name", so that
64810         we don't compile these functions for tar.
64811
64812         More merges from coreutils.
64813         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
64814         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
64815         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
64816         * lib/addext.c: Remove; no longer needed.
64817         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
64818         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
64819         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
64820         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
64821         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
64822         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
64823         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
64824         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
64825         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
64826         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64827         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
64828         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
64829         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
64830         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
64831         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
64832         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
64833         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
64834         Import changes from coreutils.
64835
64836 2004-08-05  Simon Josefsson  <jas@extundo.com>
64837
64838         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
64839
64840 2004-08-05  Simon Josefsson  <jas@extundo.com>
64841
64842         * m4/getsubopt.m4: New file.
64843
64844 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64845
64846         Merge from coreutils.
64847
64848         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
64849         * m4/getcwd-path-max.m4: New files.
64850
64851         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
64852         FILESYSTEM_PREFIX_LEN ->
64853         FILE_SYSTEM_PREFIX_LEN.
64854         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
64855         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
64856         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
64857         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
64858
64859         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
64860         prerequisite modules now handle the DOS stuff.
64861         Don't check for unistd.h.
64862
64863 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64864
64865         Merge from coreutils.
64866
64867         * lib/.gdb-history: Remove; this doesn't belong here.
64868
64869         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
64870         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
64871         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
64872         * lib/getcwd.c: New files.
64873
64874         * lib/dirname.h: Include <stdbool.h>.
64875         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
64876         for consistency with POSIX terminology.  All uses changed.
64877         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
64878         (strip_trailing_slashes): Use bool for booleans.
64879         * lib/stripslash.c (strip_trailing_slashes): Likewise.
64880
64881         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
64882         sometimes returns a positive errno value even when it succeeds.
64883         (print_errno_message) [!LIBC]: Fall back on strerror if
64884         __strerror_r fails.
64885
64886         * lib/path-concat.c (mempcpy): Don't define if a system header defines
64887         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
64888         (longest_relative_suffix): New function.
64889         (path_concat): Use it.  Assume first argument is not NULL.
64890         Port to DOS.  Omit redundant separators.
64891         Report an error instead of returning NULL.
64892         Use mempcpy instead of memcpy.
64893         (xpath_concat): Remove: not declared or used.
64894
64895         * lib/same.h: Include <stdbool.h>
64896         (same_name): Return bool, not int.
64897         * lib/same.c (same_name): Likewise.
64898         (errno): Don't declare; we assume C89 or better now.
64899
64900         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
64901         if not already defined.
64902
64903         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
64904         * lib/dup-safer.c (errno): Likewise.
64905
64906 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64907
64908         Merge from coreutils.
64909         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
64910         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
64911         * modules/path-concat: Don't depend on strdup.
64912
64913 2004-08-03  Simon Josefsson  <jas@extundo.com>
64914
64915         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
64916         * lib/progname.h: Don't include stdbool.h.
64917
64918 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64919
64920         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
64921         * MODULES.html.sh (func_all_modules): Remove fatal.
64922
64923 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64924
64925         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
64926
64927 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64928
64929         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
64930         working.
64931
64932 2004-08-02  Simon Josefsson  <jas@extundo.com>
64933
64934         * lib/getsubopt.h: New file, with comments from Bruno Haible.
64935         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
64936         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
64937
64938 2004-08-01  Simon Josefsson  <jas@extundo.com>
64939
64940         * lib/xgetdomainname.c: Include stdlib.h, for free().
64941
64942 2004-07-19  Bruno Haible  <bruno@clisp.org>
64943
64944         * MODULES.html.sh (func_all_modules): Add dummy.
64945
64946 2004-07-16  Simon Josefsson  <jas@extundo.com>
64947
64948         * modules/dummy: New file.
64949
64950 2004-07-16  Simon Josefsson  <jas@extundo.com>
64951
64952         * lib/dummy.c: New file.
64953
64954 2004-07-16  Bruno Haible  <bruno@clisp.org>
64955
64956         * lib/backupfile.h: Add extern "C" for C++.
64957         * lib/closeout.h: Likewise.
64958         * lib/copy-file.h: Likewise.
64959         * lib/findprog.h: Likewise.
64960         * lib/full-write.h: Likewise.
64961         * lib/pathname.h: Likewise.
64962         * lib/progname.h: Likewise.
64963         * lib/stpcpy.h: Likewise.
64964         * lib/stpncpy.h: Likewise.
64965         * lib/strcase.h: Likewise.
64966         * lib/strstr.h: Likewise.
64967         * lib/xalloc.h: Likewise.
64968
64969         * lib/mbswidth.h: Add extern "C" for C++.
64970         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
64971
64972 2004-07-13  Robert Millan  <robertmh@gnu.org>
64973
64974         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
64975
64976 2004-07-09  Simon Josefsson  <jas@extundo.com>
64977
64978         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
64979         failed without this.)
64980
64981 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64982
64983         * modules/chown (Files): Add lib/fchown-stub.c, since
64984         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
64985
64986 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64987
64988         * lib/fchown-stub.c: New file.
64989
64990 2004-06-24  Jim Meyering  <jim@meyering.net>
64991
64992         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
64993
64994 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64995
64996         * modules/argz: Omit "#include".
64997
64998         * MODULES.html.sh (func_all_modules): Add calloc, to match
64999         2004-06-01 addition of calloc module.
65000
65001 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65002
65003         * m4/argz.m4: New file, which is autoupdated from libtool.
65004
65005 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65006
65007         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
65008         libtool.
65009
65010 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65011
65012         * config/srclist-update: Don't insist on "USA." before the
65013         close-comment, as libtool omits the period and puts the */ on a
65014         separate line.
65015         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
65016         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
65017
65018 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
65019
65020         * modules/argz: New file.
65021         * MODULES.html.sh (func_all_modules): Add argz.
65022
65023 2004-06-12  Jim Meyering  <jim@meyering.net>
65024         and  Paul Eggert  <eggert@cs.ucla.edu>
65025
65026         * modules/hash (Files): Add lib/xalloc.h.
65027         * modules/pipe (Depends-on): Add wait-process.
65028         * modules/stat (Depends-on): Add xalloc.
65029         * modules/userspec (Files): Add lib/userspec.h.
65030         * modules/xstrto
65031
65032         Upgrade from gettext-0.13.
65033         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
65034         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
65035         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
65036
65037 2004-06-10  Jim Meyering  <jim@meyering.net>
65038
65039         * lib/calloc.c: New file.
65040
65041 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65042
65043         * lib/getdate.y (yylex): Allow space between sign and number.
65044         Problem reported by Dan Jacobson.
65045
65046 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
65047
65048         Merge from coreutils CVS.
65049
65050         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
65051         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
65052         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
65053         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
65054         xstrtol.m4: Fix copyright date and/or serial number.
65055
65056         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
65057         See if we need an fchown replacement.
65058         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
65059         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
65060         and use the replacement function if we detect either defect.
65061
65062         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
65063         gl_UTIMECMP.
65064
65065 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
65066         and  Jim Meyering  <jim@meyering.net>
65067
65068         Merge from coreutils CVS.
65069
65070         * lib/stat-macros.h: New file, with contents from file-type.h
65071         and coreutils' system.h.
65072         * lib/file-type.c: Include "stat-macros.h".
65073         * lib/file-type.h (file_type): Move all macro definitions to new file,
65074         stat-macros.h.
65075
65076         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
65077         Wrap old code with this conditional.
65078         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
65079         function that does not dereference symlinks.
65080         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
65081
65082         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
65083         dependency problems.
65084         (xreadlink): Accept new arg SIZE, for efficiency.
65085         All decls and uses changed.
65086         * lib/xreadlink.h: Include <stddef.h>, for size_t.
65087
65088         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
65089         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
65090
65091         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
65092         sysexits.h.
65093
65094 2004-06-01  Jim Meyering  <jim@meyering.net>
65095
65096         * m4/calloc.m4: New file.
65097
65098 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
65099
65100         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
65101         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
65102         Also, fix a typo in a diagnostic.
65103
65104 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
65105
65106         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
65107         or AC_FUNC_REALLOC.
65108
65109 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
65110
65111         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
65112         macros to be defined.
65113         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
65114         the allocator returns NULL because the requested size is zero.
65115
65116 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65117
65118         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
65119         var.  Add comment explaining why libc still defines it.  This
65120         merges the following patch from glibc:
65121         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
65122
65123 2004-05-20  Andreas Schwab  <schwab@suse.de>
65124
65125         * m4/free.m4: Replace free if it not known to work, not the other
65126         way round.
65127
65128 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65129
65130         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
65131         present in glibc since revision 1.1 of this file.
65132         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
65133         obstack_alignment_mask, obstack_alloc, obstack_base,
65134         obstack_blank, obstack_blank_fast, obstack_chunk_size,
65135         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
65136         obstack_grow0, obstack_init, obstack_int_grow,
65137         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
65138         obstack_next_free, obstack_object_size, obstack_ptr_grow,
65139         obstack_ptr_grow_fast, obstack_room): Remove declarations of
65140         nonexistent functions.
65141
65142 2004-05-18  Karl Berry  <karl@gnu.org>
65143
65144         * config/srclist.txt: break link for vasnprintf.c.
65145
65146 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65147
65148         Port obstack to the AS/400, where pointers are 16 bytes wide and
65149         you cannot cast an integer to a valid pointer.  This patch is
65150         currently waiting to be integrated into glibc; see
65151         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
65152
65153         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
65154         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
65155         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
65156         (struct obstack): temp member is now a union of a pointer and
65157         an integer, instead of an integer.  All integer uses changed.
65158         This does not affect the physical layout of struct obstack,
65159         except on hosts (like the AS/400) where the size or alignment of
65160         void * is greater than that of ptrdiff_t.
65161         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
65162         __STDC__)]: Store temporary in pointer member of union, not
65163         integer member.
65164         * lib/obstack.c: Include <stddef.h>, for offsetof.
65165         (struct fooalign): Remove; it doesn't need a name.
65166         (union fooround): Change double to long double, and add void *.
65167         (DEFAULT_ALIGNMENT): Use offsetof to compute.
65168         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
65169         not a macro.  Hence the values are always int; so remove all
65170         casts-to-int in uses.
65171
65172 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65173
65174         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
65175         we can get this patch merged into glibc.
65176
65177 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65178             Paul Eggert  <eggert@cs.ucla.edu>
65179
65180         * m4/argp: Depend on alloca.
65181
65182 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65183             Paul Eggert  <eggert@cs.ucla.edu>
65184
65185         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
65186         freecoding.
65187
65188 2004-05-17  Bruno Haible  <bruno@clisp.org>
65189
65190         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
65191         precision that consists of a '.' followed by an empty digit string.
65192         Patch by Tor Lillqvist <tml@iki.fi>.
65193
65194 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65195
65196         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
65197         for backward compatibility with older code.  We need our own
65198         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
65199         it under some other name, and our alloca.h will define it.
65200
65201 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65202             Derek Price  <derek@ximbiot.com>
65203
65204         * lib/alloca.c: Include <alloca.h>, to get our interface.
65205         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
65206         include <alloca.h> first.  Use C89 prototype for alloca; this
65207         requires including <stddef.h> for size_t.  Use extern "C" if C++.
65208         Use #elif for simplicity, since we can assume C89 now.
65209         Don't try to source the system alloca.h since it will not be found
65210         and to prevent recursively including its replacement.
65211         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
65212         * lib/regex.c: Likewise.
65213
65214 2004-05-16  Derek Price  <derek@ximbiot.com>
65215             Paul Eggert  <eggert@cs.ucla.edu>
65216
65217         getline cleanup.  This changes the getndelim2 API: both order of
65218         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
65219         no delimiter).
65220
65221         * lib/getline.c: Don't include stddef.h or stdio.h, since our
65222         interface does that.
65223         (getline): Always use getdelim, so that we don't have two
65224         copies of this code.
65225         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
65226         if available.
65227         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
65228         (GETNDELIM2_MAXIMUM): New macro.
65229         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
65230         instead of the old practice of delim2==0.  All callers changed.
65231         Return -1 on overflow, instead of returning junk.
65232         Do not set *linesize unless allocation succeeds.
65233         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
65234         that we include sys/types.h.
65235         * lib/getnline.h: Likewise.
65236         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
65237         (getndelim2): Reorder arguments.
65238         * lib/getnline.c (getnline, getndelim):
65239         Don't discard the NMAX argument.
65240         (getnline): Invoke getndelim, to avoid code duplication.
65241         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
65242         of (size_t) -1 by callers of the getnline family.
65243
65244 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65245
65246         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
65247         Check for gettimeofday.
65248         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
65249         Check for settimeofday, stime.
65250
65251 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65252
65253         * lib/nanosleep.c (suspended): Change its type from int to
65254         sig_atomic_t volatile.
65255         (first_call): Make it private to rpl_nanosleep, and have it
65256         be zero initially as that's a bit faster.
65257         (my_usleep): Round up fractional times instead of truncating them,
65258         as this is the usual meaning for 'sleep'.
65259
65260         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
65261         doesn't work.
65262         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
65263         (ENOSYS): Define if not defined.
65264         (settime): Fall back on stime if it exists and settimeofday fails.
65265         But don't bother with fallbacks if a method fails with errno == EPERM.
65266
65267 2004-05-11  Jim Meyering  <jim@meyering.net>
65268
65269         Prior to this change, the save_cwd caller required read access to the
65270         current directory on most systems (ones with the fchdir function).
65271
65272         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
65273         fails, try write-only, and finally, resort to using xgetcwd.
65274
65275 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65276
65277         * lib/obstack.c, obstack.h: Import changes from libc.
65278
65279 2004-04-28  Bruno Haible  <bruno@clisp.org>
65280
65281         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
65282         also implicitly appends .exe to executables.
65283         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
65284         accepts Windows pathnames.
65285         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65286         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65287         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65288         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65289         Reported by Derek Robert Price <derek@ximbiot.com>.
65290
65291 2004-04-21  Karl Berry  <karl@gnu.org>
65292
65293         * config/srclist.txt (localcharset.c): break sync.
65294
65295 2004-04-20  Paul Eggert  <eggert@twinsun.com>
65296
65297         * m4/host-os.m4: Add a copyright notice.
65298
65299 2004-04-20  Jim Meyering  <jim@meyering.net>
65300
65301         Change UTILS_ to gl_ in AC_DEFINE'd names.
65302         Change utils_- and jm_-prefixed variables, too.
65303         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
65304         UTILS_FUNC_MKDIR_TRAILING_SLASH.
65305         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
65306
65307         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
65308         Don't emit trailing blanks.
65309         Also rename jm_-prefixed variables to have gl_ prefix.
65310
65311         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
65312         Also rename jm_-prefixed variables to have gl_ prefix.
65313
65314         * m4/jm-macros.m4: Reflect the renamings.
65315         * m4/prereq.m4: Likewise.
65316
65317 2004-04-20  Jim Meyering  <jim@meyering.net>
65318
65319         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
65320         memory.
65321
65322 2004-04-20  Jim Meyering  <jim@meyering.net>
65323             Bruno Haible  <bruno@clisp.org>
65324
65325         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
65326         memory when realloc fails.
65327
65328 2004-04-19  Jim Meyering  <jim@meyering.net>
65329
65330         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
65331         now that readutmp.c may call `free (0)'.
65332
65333 2004-04-19  Bruno Haible  <bruno@clisp.org>
65334
65335         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
65336         * m4/inttypes_h.m4: Likewise.
65337         * m4/stdint_h.m4: Likewise.
65338         * m4/intmax_t.m4: Likewise.
65339         * m4/uintmax_t.m4: Likewise.
65340
65341 2004-04-18  Jim Meyering  <jim@meyering.net>
65342
65343         * m4/prereq.m4: Don't forbid jm_ prefix.
65344
65345         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
65346         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
65347         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
65348         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
65349         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
65350         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
65351         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
65352         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
65353         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
65354         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
65355         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
65356         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
65357         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
65358         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
65359         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
65360         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
65361         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
65362         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
65363         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
65364
65365 2004-04-18  Jim Meyering  <jim@meyering.net>
65366
65367         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
65368         failure, don't leak memory and do call END_UTMP_ENT.
65369
65370 2004-04-16  Jim Meyering  <jim@meyering.net>
65371
65372         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
65373         coreutils' stat program.
65374         (gl_PREREQ): Don't require jm_PREREQ_STAT.
65375
65376 2004-04-11  Paul Eggert  <eggert@twinsun.com>
65377
65378         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
65379         C89.
65380         (CHAR_BIT): Remove, since we assume C89.
65381         Include <stdint.h> if available, as per current Autoconf CVS advice.
65382
65383 2004-03-31  Jim Meyering  <jim@meyering.net>
65384
65385         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
65386         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
65387         * m4/xalloc.m4: Likewise.
65388
65389 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65390
65391         Merge from coreutils.
65392
65393         * m4/inttostr.m4: New file.
65394         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
65395         Require AM_STDBOOL_H and gl_TIMESPEC instead.
65396         Require gl_CLOCK_TIME.
65397         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
65398
65399 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65400
65401         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
65402         not bool, to be more consistent with Unix conventions.
65403         Suggested by Bruno Haible.
65404
65405         Merge from coreutils.
65406
65407         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
65408         * lib/umaxtostr.c: New files.
65409
65410         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
65411         the usual <time.h> dance.
65412         (get_date): Change signature to support fractional time stamps.
65413         All callers changed.
65414         * lib/getdate.y: Include "getdate.h" first, as we can now
65415         assume C89 and don't need to worry about 'const'.
65416         Similarly, include "unlocked-io.h" near start, not in middle.
65417         Include <limits.h>.
65418         (textint.value): Use long int rather than int.
65419         (textint.digits): Use size_t rather than int.
65420         (BILLION, LOG10_BILLION): New constants.
65421         (parser_control): New member rel_ns.  Members day_ordinal,
65422         time_zone, month, day, hour, minutes, rel_year, rel_month,
65423         rel_day, rel_hour, rel_minutes, rel_seconds
65424         are now long int, not int.  Member seconds is now struct timespec,
65425         not int.  New member timespec_seen.  Members dates_seen, days_seen,
65426         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
65427         not int.
65428         (%union.intval): Now long int, not int.
65429         New member timespec.
65430         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
65431         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
65432         (spec): Now is a timespec or an item list.
65433         (timespec, items): New nonterminals.
65434         (time, rel, relunit, number, get_date):
65435         Add support for fractional seconds.
65436         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
65437         (gmtime, localtime, mktime): Remove decls; not needed with C89.
65438         (to_hour): First arg is now long int, not int.
65439         (to_year): Returns long int, not int.
65440         Don't treat year -70 like 70.
65441         (tm_diff): Returns long int, not int.
65442         (lookup_word): Use bool instead of int when appropriate.
65443         (yylex): Use size_t for count, not int.
65444         Detect overflow when parsing large integer constants.
65445         Add support for fractions.
65446         (get_date): Make pointers 'const' if possible.
65447         Use more-portable code to detect integer overflow.
65448         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
65449         Don't use ctime; it's not reliable if the year has >4 digits.
65450
65451         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
65452         This is for compatibility with BSD.
65453
65454         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
65455         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
65456         From coreutils' system.h.
65457
65458         * lib/userspec.c: Don't include "posixver.h".
65459         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
65460         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
65461         compatible extension.  Simplify code by removing a boolean int
65462         that was always nonzero if a string was nonnull.
65463
65464 2004-03-30  Jim Meyering  <jim@meyering.net>
65465
65466         Merge from coreutils.
65467
65468         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
65469         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
65470         on some systems one must include <grp.h> before it.
65471         Reported by Christian Krackowizer.
65472
65473 2004-03-30  Jim Meyering  <jim@meyering.net>
65474
65475         Merge from coreutils.
65476
65477         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
65478
65479         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
65480         an empty input stream.
65481
65482         * lib/readtokens.c: Include <stdbool.h>.
65483         (readtoken): Use `size_t' rather than int/long.
65484         All callers adjusted.
65485         Use `bool' rather than `int' where appropriate.
65486         Use memset rather than an explicit loop.
65487         Use x2nrealloc rather than xrealloc.
65488         Allow the use of `\0' as a delimiter.
65489         (readtokens): Likewise.
65490         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
65491
65492 2004-03-30  Jim Meyering  <jim@meyering.net>
65493
65494         * m4/realloc.m4: Remove file, since now it does no more than
65495         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
65496         the `configure.ac' section of module/realloc.
65497         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
65498
65499 2004-03-30  Bruno Haible  <bruno@clisp.org>
65500
65501         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
65502         nonnull.
65503
65504 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65505
65506         Merge changes to getloadavg.c from coreutils and Emacs.
65507
65508         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
65509         Define to an expression, not to the empty string.
65510         Include cloexec.h and xalloc.h.
65511         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
65512         Use set_cloexec_flag rather than rolling our own.
65513         * lib/cloexec.c, lib/cloexec.h: New files.
65514
65515 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65516
65517         * m4/cloexec.m4: New file.
65518
65519 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65520
65521         * lib/getopt.h: Sync with libc CVS.
65522
65523 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65524             Bruno Haible  <bruno@clisp.org>
65525
65526         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
65527         mbswidth.
65528
65529 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65530             Bruno Haible  <bruno@clisp.org>
65531
65532         * lib/mbswidth.h: Include <wchar.h> only if
65533         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
65534         <wchar.h>.
65535         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
65536
65537 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65538
65539         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
65540         Sync with libc CVS.
65541         * lib/getopt_int.h: New file, also synced from libc.
65542
65543 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65544
65545         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
65546         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
65547         Bring back getopt.c, getopt.h, getopt1.c.
65548
65549 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65550
65551         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
65552         All uses changed.  Check for sa_sigaction member; this fixes
65553         a bug first reported by Jason Andrade in
65554         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65555
65556 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65557
65558         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
65559         '#if' expressions.  Unlike the code it replaces, it does not
65560         depend on (defined _SC_PAGESIZE).  However, it does depend on
65561         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
65562         first reported by Jason Andrade in
65563         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65564
65565 2004-02-25  Simon Josefsson  <jas@extundo.com>
65566
65567         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
65568
65569 2004-02-25  Simon Josefsson  <jas@extundo.com>
65570
65571         * lib/strdup.h: New file.
65572         * lib/strdup.c: Include it.
65573         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
65574         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
65575
65576 2004-02-23  Karl Berry  <karl@gnu.org>
65577
65578         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
65579         (from fencepost.gnu.org:/gd/gnuorg).
65580
65581 2004-02-23  Karl Berry  <karl@gnu.org>
65582
65583         * config/srclistvars.sh (GNUORG) [karl]: redefine.
65584         * config/srclist.txt: add maintain/standards documents.
65585
65586 2004-02-18  Bruno Haible  <bruno@clisp.org>
65587
65588         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
65589         Reported by Derek Robert Price <derek@ximbiot.com>.
65590
65591 2004-02-16  Karl Berry  <karl@gnu.org>
65592
65593         * config/mkinstalldirs, install-sh: update from automake.
65594
65595 2004-02-06  Karl Berry  <karl@gnu.org>
65596
65597         * m4/po.m4: update from gettext 0.14.1.
65598
65599 2004-02-06  Karl Berry  <karl@gnu.org>
65600
65601         * lib/config.charset: update from gettext 0.14.1.
65602
65603 2004-02-05  Paul Eggert  <eggert@twinsun.com>
65604
65605         Add comments and code, prompted by suggestions from Bruno Haible
65606         for sh-quote.
65607         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
65608         describing the enum quoting_style values.
65609         * lib/quotearg.c (quotearg_alloc): New function.
65610         (quotearg_buffer_restyled): Treat lone { and } as special.
65611         Treat = as special.  Work around bug with older shells
65612         that "see" a '\' that is really the 2nd byte of a multibyte char.
65613         Quote empty string with shell_quoting_style.
65614
65615 2004-02-03  Bruno Haible  <bruno@clisp.org>
65616
65617         * m4/pipe.m4: New file, from GNU gettext.
65618
65619 2004-02-03  Bruno Haible  <bruno@clisp.org>
65620
65621         * lib/pipe.h: New file, from GNU gettext.
65622         * lib/pipe.c: New file, from GNU gettext.
65623
65624 2004-01-27  Bruno Haible  <bruno@clisp.org>
65625
65626         * m4/execute.m4: New file, from GNU gettext.
65627
65628 2004-01-27  Bruno Haible  <bruno@clisp.org>
65629
65630         * lib/execute.h: New file, from GNU gettext.
65631         * lib/execute.c: New file, from GNU gettext.
65632         * lib/w32spawn.h: New file, from GNU gettext.
65633
65634 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65635
65636         Merge from diffutils.
65637
65638         * lib/file-type.c (file_type): Add typed memory objects.
65639         * lib/file-type.h (S_TYPEISTMO): New macro.
65640
65641         * lib/c-stack.h (c_stack_action): Remove argv argument.
65642         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
65643         (die): Don't calculate message unless segv_action returns.
65644         (get_stack_location, min_address_from_argv, max_address_from_argv,
65645         volatile stack_base, volatile_stack_size): Remove.
65646         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
65647         that every segmentation violation is a stack overflow.  (Ouch!)
65648         See Debian bug 136249 (still outstanding) for more info about why
65649         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
65650
65651 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65652
65653         Exit-status fix from coreutils.
65654
65655         Use exit_failure consistently in place of EXIT_FAILURE,
65656         so that program exit statuses are consistent on failure.
65657
65658         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
65659         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
65660         * lib/argmatch.h: Comment fix to match the above.
65661         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
65662         Now a macro referring to exit_failure, instead of a separate
65663         variable.  Include "exitfail.h" to get it.
65664         * lib/xstrtol.h: Include "exitfail.h".
65665         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
65666
65667         * lib/long-options.c (parse_long_options): Use prototype
65668         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
65669         for clarity.
65670
65671 2004-01-21  Jim Meyering  <jim@meyering.net>
65672
65673         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
65674         so as not to conflict with a different-sized __mktime_internal
65675         function in GNU libc.
65676         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
65677         Problem building statically-linked `ls' reported by Michael Brunnbauer.
65678
65679 2004-01-20  Karl Berry  <karl@gnu.org>
65680
65681         * config/config.guess: update from config.
65682
65683         * config/srclistvars.sh: GNUWWWLICENSES for karl.
65684
65685 2004-01-20  Bruno Haible  <bruno@clisp.org>
65686
65687         Safer stack allocation.
65688         * lib/setenv.c: Include allocsa.h.
65689         (alloca): Remove fallback definition.
65690         (freea): Remove macro.
65691         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
65692         instead of freea.
65693
65694 2004-01-20  Bruno Haible  <bruno@clisp.org>
65695
65696         * m4/eealloc.m4: New file, from GNU gettext.
65697
65698 2004-01-20  Bruno Haible  <bruno@clisp.org>
65699
65700         * m4/allocsa.m4: New file, from GNU gettext.
65701
65702 2004-01-20  Bruno Haible  <bruno@clisp.org>
65703
65704         * lib/xallocsa.h: New file, from GNU gettext.
65705         * lib/xallocsa.c: New file, from GNU gettext.
65706
65707 2004-01-20  Bruno Haible  <bruno@clisp.org>
65708
65709         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
65710
65711 2004-01-20  Bruno Haible  <bruno@clisp.org>
65712
65713         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
65714         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
65715         specially.
65716
65717 2004-01-20  Bruno Haible  <bruno@clisp.org>
65718
65719         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
65720         patch.
65721
65722 2004-01-20  Bruno Haible  <bruno@clisp.org>
65723
65724         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
65725
65726 2004-01-20  Bruno Haible  <bruno@clisp.org>
65727
65728         * lib/eealloc.h: New file.
65729
65730 2004-01-20  Bruno Haible  <bruno@clisp.org>
65731
65732         * lib/binary-io.h: Avoid warnings on Cygwin.
65733
65734 2004-01-20  Bruno Haible  <bruno@clisp.org>
65735
65736         * lib/allocsa.h: New file, from GNU gettext.
65737         * lib/allocsa.c: New file, from GNU gettext.
65738
65739 2004-01-18  Karl Berry  <karl@gnu.org>
65740
65741         * doc/gpl.texi, doc/lgpl.texi: new files.
65742
65743 2004-01-18  Karl Berry  <karl@gnu.org>
65744
65745         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
65746         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
65747
65748 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65749
65750         Merge from coreutils.
65751
65752         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
65753         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
65754         (gl_DEFAULT_POSIX2_VERSION): Move
65755         the documentation from 'configure' into 'config.hin',
65756         so that 'configure --help' isn't burdened by it and
65757         we don't have to worry about its formatting there.
65758         Reword the documentation so that it's more succinct
65759         and can be run together into a single paragraph.
65760         * m4/same.m4 (gl_SAME): Check for pathconf.
65761
65762 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65763
65764         Merge from coreutils.
65765
65766         * lib/posixver.c: Include posixver.h.
65767
65768         * lib/same.c: Include <stdbool.h>, <limits.h>.
65769         (_POSIX_NAME_MAX): Define if not defined.
65770         (MIN): New macro.
65771         (same_name): If file names are silently truncated, report
65772         that the file names are the same if they are the same after
65773         the silent truncation.
65774
65775         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
65776         conversion function.
65777         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
65778         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
65779         longer needed.
65780
65781 2004-01-15  Jim Meyering  <jim@meyering.net>
65782
65783         Merge from coreutils.
65784
65785         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
65786         if no library is required.
65787         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
65788         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
65789         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
65790         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
65791         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
65792         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
65793         value, $ac_cv_search_crypt, if it's "none required".
65794         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
65795         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
65796         not gl_FUNC_GETLOADAVG.
65797         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
65798         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
65799
65800 2004-01-15  Jim Meyering  <jim@meyering.net>
65801
65802         Merge from coreutils.
65803
65804         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
65805         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
65806         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
65807
65808         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
65809         optional configure-time default.
65810
65811         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65812
65813         * lib/xreadlink.c (xreadlink): Correct outdated comment.
65814
65815 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
65816
65817         Merge from coreutils.
65818
65819         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
65820         value, $ac_cv_search_nanosleep, if it's "none required".
65821
65822 2004-01-14  Paul Eggert  <eggert@twinsun.com>
65823
65824         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
65825         with like-named macro in fnmatch.c.
65826         (EXT): Use an internal constant instead.
65827
65828         Merge fnmatch patches from glibc.
65829         * lib/fnmatch.c (mbsinit): Remove define.
65830         Add libc_hidden_ver (__fnmatch, fnmatch).
65831         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
65832         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
65833
65834 2004-01-14  Karl Berry  <karl@gnu.org>
65835
65836         * config/install-sh: update from automake.
65837
65838 2004-01-13  Karl Berry  <karl@gnu.org>
65839
65840         * config/install-sh: update from automake.
65841
65842 2004-01-09  Karl Berry  <karl@gnu.org>
65843
65844         * config/install-sh: update from automake.
65845
65846 2004-01-05  Karl Berry  <karl@gnu.org>
65847
65848         * config/config.{sub,guess}: update from config.
65849
65850 2003-12-31  Karl Berry  <karl@gnu.org>
65851
65852         * config/depcomp: update from automake.
65853
65854 2003-12-14  Karl Berry  <karl@gnu.org>
65855
65856         * lib/config.charset: update from gettext-runtime.
65857
65858 2003-12-03  Paul Eggert  <eggert@twinsun.com>
65859
65860         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
65861         Bug reported by Alfred M. Szmidt.
65862
65863 2003-12-03  Bruno Haible  <bruno@clisp.org>
65864
65865         * m4/gettext.m4: Upgrade from gettext-0.13.
65866         * m4/po.m4: Upgrade from gettext-0.13.
65867         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
65868         * m4/intmax.m4: New file, from gettext-0.13.
65869         * m4/printf-posix.m4: New file, from gettext-0.13.
65870
65871 2003-11-29  Karl Berry  <karl@gnu.org>
65872
65873         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
65874
65875 2003-11-25  Paul Eggert  <eggert@twinsun.com>
65876             Bruno Haible  <bruno@clisp.org>
65877
65878         * lib/printf-parse.h: Don't include sys/types.h.
65879         (ARG_NONE): New macro.
65880         (char_directive): Change type of *arg_index fields to size_t.
65881         * lib/printf-parse.c: Don't include sys/types.h.
65882         (SSIZE_MAX): Remove macro.
65883         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
65884         Remove unnecessary overflow check.
65885         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
65886         fields.
65887
65888 2003-11-25  Bruno Haible  <bruno@clisp.org>
65889
65890         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
65891
65892 2003-11-25  Bruno Haible  <bruno@clisp.org>
65893
65894         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
65895         gt_TYPE_SSIZE_T.
65896
65897 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65898
65899         * modules/alloca: Remove dependency on xalloc.
65900
65901 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65902
65903         * lib/alloca.c: Remove dependency on xalloc module.
65904         (xalloc_die): Remove.
65905         (memory_full) [!defined emacs]: New macro.
65906         [!defined emacs]: Don't include xalloc.h.
65907         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
65908         address arithmetic overflows.  Change datatypes a bit to avoid
65909         unnecessary casts.
65910
65911 2003-11-22  Jim Meyering  <jim@meyering.net>
65912
65913         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
65914         s/size/size_t/.
65915
65916 2003-11-21  Karl Berry  <karl@gnu.org>
65917
65918         * config/config.{sub,guess}: update from config.
65919
65920 2003-11-18  Karl Berry  <karl@gnu.org>
65921
65922         * config/config.{sub,guess}: update from config.
65923
65924         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
65925
65926 2003-11-17  Paul Eggert  <eggert@twinsun.com>
65927
65928         * README: Mention that S+T cannot overflow if S is the size of
65929         an existing object and T is sufficiently small.
65930
65931 2003-11-17  Jim Meyering  <jim@meyering.net>
65932
65933         On systems without utime and without a utimes function capable of
65934         dealing with a NULL struct utimbuf* argument, this utime replacement
65935         could -- in unusual circumstances -- leak a file descriptor.
65936         * lib/utime.c: Include <unistd.h> and <errno.h>.
65937         (utime_null): Be sure to close `fd' and to preserve errno.
65938         Reported by Geoff Collyer via Arnold Robbins.
65939
65940 2003-11-17  Bruno Haible  <bruno@clisp.org>
65941
65942         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
65943         (Depends-on): Add xsize.
65944
65945 2003-11-17  Bruno Haible  <bruno@clisp.org>
65946
65947         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
65948
65949 2003-11-17  Bruno Haible  <bruno@clisp.org>
65950
65951         * lib/vasnprintf.c (alloca): Remove fallback definition.
65952         (freea): Remove definition.
65953         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
65954         Reported by Paul Eggert.
65955
65956 2003-11-16  Paul Eggert  <eggert@twinsun.com>
65957             Bruno Haible  <bruno@clisp.org>
65958
65959         Protect against address arithmetic overflow.
65960         * lib/printf-args.h: Include stddef.h.
65961         (arguments): Change type of field 'count' to size_t.
65962         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
65963         'unsigned int' where appropriate.
65964         * lib/printf-parse.h: Include sys/types.h.
65965         (char_directive): Change type of *arg_index fields to ssize_t.
65966         (char_directives): Change type of fields 'count', max_*_length to
65967         size_t.
65968         * lib/printf-parse.c: Include sys/types.h and xsize.h.
65969         (SSIZE_MAX): Define fallback value.
65970         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
65971         instead of 'int' where appropriate. Check a_allocated, d_allocated
65972         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
65973         * lib/vasnprintf.c: Include xsize.h.
65974         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
65975         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
65976         overflow. Avoid wraparound when converting a width or precision from
65977         decimal to binary.
65978
65979 2003-11-16  Bruno Haible  <bruno@clisp.org>
65980
65981         Update from GNU gettext.
65982         * lib/printf-parse.c: Generalize to it can be compiled for wide
65983         strings.
65984         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
65985         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
65986         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
65987         SNPRINTF): New macros.
65988         Don't include <alloca.h> if the file is used inside libintl.
65989         (local_wcslen): New function, for Solaris 2.5.1.
65990         (VASNPRINTF): Use it instead of wcslen.
65991
65992 2003-11-16  Bruno Haible  <bruno@clisp.org>
65993
65994         * lib/xsize.h (xmax): New function.
65995         (xsum, xsum3, xsum4): Declare as "pure" functions.
65996
65997 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65998
65999         * modules/xalloc (Files): Undo latest change, since xalloc.h
66000         no longer needs SIZE_MAX or PTRDIFF_MAX.
66001
66002 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66003
66004         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
66005         gl_PTRDIFF_MAX.
66006
66007 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66008
66009         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
66010         "return", to pacify some unknown compiler.  Problem reported
66011         by Joerg Schilling.
66012
66013 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66014
66015         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
66016         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
66017         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
66018         heuristic is just as accurate as far as we know, and it removes a
66019         dependency on size_max.m4 and ptrdiff_max.m4.
66020
66021 2003-11-11  Bruno Haible  <bruno@clisp.org>
66022
66023         * modules/xsize (Files): Add m4/size_max.m4.
66024         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
66025
66026 2003-11-11  Bruno Haible  <bruno@clisp.org>
66027
66028         * m4/size_max.m4: New file.
66029         * m4/ptrdiff_max.m4: New file.
66030         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
66031         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
66032         (gl_XALLOC): Invoke it.
66033
66034 2003-11-11  Bruno Haible  <bruno@clisp.org>
66035
66036         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
66037         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
66038         defined.
66039
66040 2003-11-10  Paul Eggert  <eggert@twinsun.com>
66041
66042         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
66043         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
66044         rejected some allocations of exactly SIZE_MAX - 2 bytes.
66045         From Bruno Haible.
66046         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
66047         not (size_t) -1, since it's defined here.
66048
66049 2003-11-09  Karl Berry  <karl@gnu.org>
66050
66051         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
66052
66053 2003-11-06  Paul Eggert  <eggert@twinsun.com>
66054
66055         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
66056         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
66057         Reject sizes of exactly SIZE_MAX bytes.
66058         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
66059         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
66060
66061 2003-11-05  Bruno Haible  <bruno@clisp.org>
66062
66063         * lib/xsize.h: Include limits.h, to avoid a possible collision with
66064         SIZE_MAX defined in <limits.h> on Solaris.
66065
66066 2003-11-04  Jim Meyering  <jim@meyering.net>
66067
66068         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
66069         variable names, rather than @VAR@.
66070         * modules/poll: Likewise.
66071
66072 2003-11-04  Bruno Haible  <bruno@clisp.org>
66073
66074         * modules/xsize: New file.
66075         * modules/linebreak: Depend on xsize.
66076         * MODULES.html.sh (func_all_modules): Add xsize.
66077
66078 2003-11-04  Bruno Haible  <bruno@clisp.org>
66079
66080         * m4/xsize.m4: New file.
66081
66082 2003-11-04  Bruno Haible  <bruno@clisp.org>
66083
66084         * lib/xsize.h: New file.
66085         * lib/linebreak.c: Include xsize.h.
66086         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
66087         argument for overflow.
66088         Suggested by Paul Eggert.
66089
66090 2003-11-03  Karl Berry  <karl@gnu.org>
66091
66092         * config/config.{guess,sub}: update from config.
66093
66094 2003-11-03  Jim Meyering  <jim@meyering.net>
66095
66096         * modules/userspec (lib_SOURCES): Add userspec.h.
66097         (Include): Add "userspec.h".
66098         Improve description.
66099
66100 2003-11-03  Jim Meyering  <jim@meyering.net>
66101
66102         * lib/userspec.c: Include "userspec.h".
66103         * lib/userspec.h: New file.
66104
66105 2003-11-03  Bruno Haible  <bruno@clisp.org>
66106
66107         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
66108
66109 2003-11-03  Bruno Haible  <bruno@clisp.org>
66110
66111         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
66112         available, to avoid (extremely rare) race condition.
66113         Suggested by Paul Eggert.
66114
66115 2003-11-02  Karl Berry  <karl@gnu.org>
66116
66117         * config/srclist.txt (vasprintf.c): sync broken, sigh.
66118
66119 2003-10-31  Paul Eggert  <eggert@twinsun.com>
66120
66121         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
66122         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
66123         (read_filesystem_list): Set and use me_type_malloced.
66124         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
66125         whatever the type happens to be), for brevity and consistency.
66126         Check for size calculation overflow on Alphas running OSF/1.
66127
66128 2003-10-31  Jim Meyering  <jim@meyering.net>
66129
66130         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
66131
66132         * lib/linebuffer.c: Include <string.h> for declaration of memset.
66133
66134 2003-10-30  Paul Eggert  <eggert@twinsun.com>
66135             Bruno Haible  <bruno@clisp.org>
66136
66137         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
66138         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
66139
66140 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66141
66142         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
66143         netbsd*-gnu*.  Suggested by Robert Millan.
66144
66145 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66146
66147         * modules/group-member: Depend on stdbool.
66148
66149 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66150
66151         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
66152
66153 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66154
66155         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
66156         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
66157         after the 'gnu' in these cases.  This fixes some bugs in the
66158         previous change, and is based on suggestions by Robert Millan.
66159
66160 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66161
66162         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
66163         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
66164         no longer needed.
66165         * lib/quotearg.c (quotearg_n_options): Use it.
66166         * lib/group-member.c: Include <stdbool.h>.
66167         (free_group_info): Arg is now const *; don't free arg.
66168         (get_group_info): Now returns bool and accepts struct group_info *,
66169         rather than returning a malloc'ed struct group_info *.
66170         All uses changed.  Check for overflow in internal size calculation.
66171
66172         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
66173         rather than xmalloc/xrealloc.
66174         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
66175         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
66176         conformance bug: the old code used a pointer after freeing the
66177         storage that it addressed.
66178         * lib/hash.c (hash_initialize): Simplify the code by using
66179         xalloc_oversized rather than doing it by hand.
66180         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
66181         the buffer preserved.  Use free and xmalloc instead.
66182         * lib/quotearg.c (quotearg_n_options): Likewise.
66183         Use a simpler test for size overflow.  Don't use xalloc_oversized
66184         because unsigned int might be wider than size_t (!); this suggests
66185         that we should switch from unsigned int to size_t for slot numbers.
66186
66187 2003-10-28  Paul Eggert  <eggert@twinsun.com>
66188
66189         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
66190         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
66191         NetBSD kernels.  Requested by Richard Stallman.
66192
66193 2003-10-27  Paul Eggert  <eggert@twinsun.com>
66194
66195         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
66196         to allocate the returned structure.  Do not allocate a subarray,
66197         as x2nrealloc will do that.
66198         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
66199         instead of xnrealloc.
66200         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
66201
66202 2003-10-27  Bruno Haible  <bruno@clisp.org>
66203
66204         * lib/stdbool_.h: Better support for BeOS.
66205
66206 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66207
66208         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
66209         now uses inline.
66210
66211 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66212
66213         * lib/xalloc.h (xalloc_oversized): New static inline function, for
66214         callers that want to do their own size-overflow checking.  Include
66215         <stdbool.h>, since xalloc_oversized returns bool.
66216         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
66217         to use xalloc_oversized.
66218
66219         Add two functions x2realloc, x2nrealloc, for programs that grow
66220         arrays dynamically by doubling their sizes.
66221         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
66222         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
66223         New functions.
66224
66225         Port to C99 semantics for 'inline' of external functions.
66226         Bug reported by Bruno Haible.
66227         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
66228         with the old contents of xnmalloc.
66229         (xnmalloc, xmalloc): Use it.
66230         (xnrealloc_inline): New static inline function,
66231         with the old contents of xnrealloc.
66232         (xnrealloc, xrealloc): Use it.
66233
66234         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
66235         that.
66236
66237 2003-10-26  Karl Berry  <karl@gnu.org>
66238
66239         * config/srclist.txt (COPYING.DOC): no longer available from
66240         /gd/gnuorg; don't know where the ultimate source is.
66241
66242 2003-10-25  Paul Eggert  <eggert@twinsun.com>
66243
66244         Fix several address-calculation bugs in the hash modules,
66245         plus some minor code cleanup.
66246
66247         * lib/hash.h: Include <stdbool.h>, for bool.
66248         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
66249         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
66250         hash_get_n_entries, hash_get_max_bucket_length,
66251         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
66252         hash_rehash): Use size_t rather than unsigned.
66253         * lib/hash.c (struct hash_table, hash_get_n_buckets,
66254         hash_get_n_buckets_used, hash_get_n_entries,
66255         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
66256         hash_get_entries, hash_do_for_each, hash_string, is_prime,
66257         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
66258         Likewise.
66259         (SIZE_MAX): Define if not defined.
66260         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
66261         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
66262         hash_print):
66263         Use const * when possible.
66264         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
66265         (check_tuning): Fix bug: if tuning parameters were very close to
66266         0 or 1, rounding errors could have caused subscript violations.
66267         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
66268         (hash_initialize): Add 'fail:' label
66269         to free table and return NULL, and use it to simplify code.
66270         Use calloc rather than clearing the storage ourself.
66271         (hash_initialize, hash_rehash): Check for arithmetic overflow in
66272         buffer size calculations.
66273         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
66274         Include <stddef.h>, for size_t.
66275         * lib/hash-pjw.c (hash_pjw): Likewise.
66276         Switch to method described by Bruno Haible.
66277         Include <limits.h>, for CHAR_BIT.
66278         (SIZE_BITS): New macro.
66279
66280 2003-10-23  Paul Eggert  <eggert@twinsun.com>
66281
66282         * m4/getline.m4 (AM_FUNC_GETLINE):
66283         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
66284         hosts.  Problem reported by Derek Robert Price in
66285         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
66286         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
66287         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
66288
66289 2003-10-21  Paul Eggert  <eggert@twinsun.com>
66290
66291         * lib/getndelim2.c (getndelim2): When size calculation overflows,
66292         ceiling the allocation at NMAX bytes rather than silently
66293         discarding input bytes before NMAX is reached.  This makes
66294         a difference only if NMAX exceeds SIZE_MAX / 2.
66295
66296         * lib/obstack.c: Merge from glibc.
66297         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
66298         Add libc_hidden_def (_obstack_newchunk).
66299         (_obstack_free) [! defined _LIBC]: Remove.
66300         [defined _LIBC]: Make a strong alias from obstack_free, rather than
66301         a clone of the function body.
66302         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
66303         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
66304
66305         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
66306         glibc.
66307         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
66308         arg to memcpy.
66309
66310         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
66311         (obstack_ptr_grow_fast, obstack_int_grow_fast):
66312         Don't use lvalue casts, as GCC plans to remove support for them
66313         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
66314         was also present in the non-GCC version, indicating that this
66315         code had always been buggy and had never been widely used.
66316         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
66317         Use the fast variant of each macro, rather than copying the
66318         definiens of the fast variant; that way, we'll be more likely to
66319         catch future bugs in the fast variants.
66320
66321 2003-10-20  Bruno Haible  <bruno@clisp.org>
66322
66323         * modules/wait-process: New file.
66324         * MODULES.html.sh (func_all_modules): Add wait-process.
66325
66326 2003-10-20  Bruno Haible  <bruno@clisp.org>
66327
66328         * m4/wait-process.m4: New file.
66329
66330 2003-10-20  Bruno Haible  <bruno@clisp.org>
66331
66332         * lib/wait-process.h: New file, from GNU gettext.
66333         * lib/wait-process.c: New file, from GNU gettext.
66334
66335 2003-10-19  Jim Meyering  <jim@meyering.net>
66336
66337         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
66338         HPUX 10.20.
66339
66340 2003-10-18  Karl Berry  <karl@gnu.org>
66341
66342         * config/config.guess: update from config.
66343
66344 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66345
66346         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
66347         (getgroups): First arg is int, not size_t.
66348         Don't let 'free' mangle errno.
66349
66350 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66351
66352         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
66353
66354 2003-10-16  Karl Berry  <karl@gnu.org>
66355
66356         * config/config.{guess,sub}: update from config.
66357
66358 2003-10-16  Jim Meyering  <jim@meyering.net>
66359
66360         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
66361         memcpy.
66362
66363 2003-10-15  Paul Eggert  <eggert@twinsun.com>
66364
66365         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
66366         (SIZE_MAX): Remove.
66367         (new_exclude, add_exclude_file): Initial size no longer needs to
66368         be a power of 2.
66369         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
66370         our own address arithmetic overflow checking.
66371
66372         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
66373         (fnmatch): Do not alloca more than 2000 wide characters;
66374         instead, use malloc for large buffers.
66375         Check for address arithmetic overflow, and return -1
66376         with errno set to ENOMEM in that case.
66377         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
66378         (NEW_PATTERN): Do not alloca more than 8000 bytes;
66379         instead, return -1.  Check for address arithmetic overflow.
66380
66381 2003-10-14  Paul Eggert  <eggert@twinsun.com>
66382
66383         Handle invalid suffixes and overflow independently, so that
66384         callers can treat them independently as needed.  Fix some bugs in
66385         suffix handling, e.g., "100k@" was not diagnosed as an invalid
66386         suffix for a human-readable blocksize.  The major caller-visible
66387         change is the addition of a new
66388         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
66389         that both overflow and suffix chars were found.
66390
66391         * lib/human.c (humblock): Don't check separately for invalid suffix
66392         char; that is xstrtoumax's job (now that its bug is fixed).
66393         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
66394         INTMAX_MAX]: New macros.
66395         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
66396         TYPE_MAXIMUM): New macros.
66397         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
66398         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
66399         if overflow occurs, as it's what __strtol does and it's more useful
66400         in practice.
66401         (__xstrtol): If __strtol reports some error other than ERANGE,
66402         reflect it to the caller as LONGINT_INVALID.  If it reports
66403         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
66404         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
66405         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
66406         value.
66407         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
66408         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
66409         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
66410         [defined UINTMAX_MAX]: New macros.
66411
66412 2003-10-14  Bruno Haible  <bruno@clisp.org>
66413
66414         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
66415
66416 2003-10-14  Bruno Haible  <bruno@clisp.org>
66417
66418         * m4/sig_atomic_t: New file, from GNU gettext.
66419         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
66420
66421 2003-10-14  Bruno Haible  <bruno@clisp.org>
66422
66423         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
66424         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
66425         Also use volatile where needed.
66426
66427 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66428
66429         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
66430         Change maintainer from Bruno Haible to 'all'.
66431
66432 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66433
66434         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
66435
66436 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66437
66438         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
66439         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
66440         and define in terms of the other primitives.
66441         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
66442         (SIZE_MAX): Define if not already defined.
66443         (array_size_overflow): New function.
66444         (xalloc_die): Abort instead of exiting if 'error' returns.
66445         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
66446         (xmalloc, xrealloc): Use them.
66447         (xcalloc): Check for address arithmetic overflow.
66448         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
66449         a bit faster than strcpy.
66450
66451 2003-10-10  Simon Josefsson  <jas@extundo.com>
66452
66453         * modules/argp (Depends-on): Add restrict and strcase.
66454
66455 2003-10-10  Simon Josefsson  <jas@extundo.com>
66456
66457         * m4/argp.m4: Add AC_C_INLINE.
66458
66459 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66460
66461         Merge getpass from libc, plus a few fixes.
66462
66463         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
66464         Include <stdbool.h>.
66465         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
66466         __fsetlocking to empty.
66467         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
66468         do include <bits/libc-lock.h>.
66469         Do not include <fcntl.h>; not needed.
66470         [_LIBC]: Include <wchar.h>.
66471         (NOTCANCEL_MODE): New macro.
66472         (flockfile, funlockfile) [_LIBC]: New macros.
66473         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
66474         [!_LIBC]: New macros.
66475         (call_fclose): New function.
66476         (getpass): Use it.  Save tty stream separately; this simplifies the
66477         code and makes it more reliable if stdin happens to equal stdout.
66478         Invoke __fsetlocking on tty.
66479         Handle thread cancellation if needed.
66480         Namespace cleanup (use __tcgetattr, __getline).
66481         Use bool for Booleans.
66482         [USE_IN_LIBIO]: Handle wide streams.
66483         [!_LIBC]: Unconditionally do the fseek, since we don't know what
66484         stream might go where.
66485
66486         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
66487         doesn't have to include <stdio.h> before us.
66488         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
66489         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
66490         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
66491         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
66492         if not declared, so that we can use getpass.c code from libc without
66493         rewriting it.
66494         (flockfile, ftrylockfile, funlockfile): New macros.
66495
66496 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66497
66498         * modules/getpass: Depend on stdbool.
66499
66500 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66501
66502         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
66503
66504 2003-10-07  Karl Berry  <karl@gnu.org>
66505
66506         * config/config.{guess,sub}: update from config.
66507
66508 2003-10-06  Jim Meyering  <jim@meyering.net>
66509             Bruno Haible  <bruno@clisp.org>
66510
66511         This lets translators provide better translations for the
66512         "Written by ..." part of --version output.
66513         * lib/version-etc.h: Include stdarg.h.
66514         (version_etc_copyright): Declare as readonly.
66515         (version_etc): Make this function variadic with a NULL-terminated list
66516         of author name strings.
66517         (version_etc_va): New declaration.
66518         * lib/version-etc.c: Include stdarg.h, stdlib.h.
66519         (version_etc_copyright): Declare as readonly.
66520         (version_etc_va): New function. Provide a different translatable string
66521         for each possible number of authors < 10. Abbreviate when there are 10
66522         authors or more.
66523         (version_etc): Make this function variadic. Call version_etc_va.
66524         Suggestion from Gary V. Vaughan.
66525
66526         * lib/long-options.h (parse_long_options): Change prototype: the
66527         authors string is moved to the end and becomes variadic.
66528         * lib/long-options.c: Include stdarg.h.
66529         (parse_long_options): Make this function variadic, too.
66530         Call version_etc_va, not version_etc.
66531
66532 2003-10-06  Bruno Haible  <bruno@clisp.org>
66533
66534         * modules/version-etc-2: Remove file.
66535         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
66536
66537 2003-10-06  Bruno Haible  <bruno@clisp.org>
66538
66539         * modules/fatal-signal: New file.
66540         * MODULES.html.sh (func_all_modules): Add fatal-signal.
66541
66542 2003-10-06  Bruno Haible  <bruno@clisp.org>
66543
66544         * m4/fatal-signal.m4: New file.
66545         * m4/signalblocking.m4: New file, from GNU gettext.
66546
66547 2003-10-06  Bruno Haible  <bruno@clisp.org>
66548
66549         * lib/version-etc-2.h: Remove file.
66550         * lib/version-etc-2.c: Remove file.
66551
66552 2003-10-06  Bruno Haible  <bruno@clisp.org>
66553
66554         * lib/fatal-signal.h: New file, from GNU gettext.
66555         * lib/fatal-signal.c: New file, from GNU gettext.
66556
66557 2003-10-05  Paul Eggert  <eggert@twinsun.com>
66558
66559         * README: Rework advice for preventing empty .o files.
66560         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
66561         not <sys/types.h>.
66562
66563 2003-10-04  Karl Berry  <karl@gnu.org>
66564
66565         * lib/argp*: update from libc.
66566
66567 2003-10-04  Karl Berry  <karl@gnu.org>
66568
66569         * config/config.{guess,sub}: update from config.
66570
66571 2003-10-02  Bruno Haible  <bruno@clisp.org>
66572
66573         * modules/lchown (Include): Add lchown.h.
66574         * modules/time_r (Include): Use "..." syntax.
66575         * modules/xgetdomainname (Include): Add xgetdomainname.h.
66576
66577 2003-10-01  Simon Josefsson  <jas@extundo.com>
66578
66579         * MODULES.html.sh (func_all_modules): Move gethostname from section
66580         'based on' to section 'lacking' POSIX:2001.
66581
66582 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
66583
66584         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
66585         to output mode on the same stream.
66586
66587 2003-09-29  Paul Eggert  <eggert@twinsun.com>
66588
66589         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
66590         Fix arg typo in previous patch.
66591
66592 2003-09-28  Jim Meyering  <jim@meyering.net>
66593
66594         * lib/error.c: Correct cpp indentation.
66595
66596 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66597
66598         * modules/free: New file.
66599
66600 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66601
66602         * m4/free.m4: New file.
66603
66604 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66605
66606         * lib/minmax.h (MIN, MAX)
66607         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
66608         Omit the special code that used __typeof__, since we worry that
66609         it could be more trouble than it's worth.  See:
66610         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
66611         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
66612
66613         * lib/free.c: New file.
66614
66615 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
66616
66617         Trivial fixes to Makefile.am parts of module listings.
66618         * modules/strstr: Append strstr.h to lib_SOURCES.
66619         * modules/strcase: Likewise, for strcase.h.
66620
66621 2003-09-27  Karl Berry  <karl@gnu.org>
66622
66623         * config/mkinstalldirs: update from automake.
66624
66625 2003-09-26  Paul Eggert  <eggert@twinsun.com>
66626
66627         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
66628         (error_tail): Do not loop, reallocating temporary buffer, since
66629         the output cannot contain more wide characters than the input
66630         contains bytes, the size must be big enough already.  This avoids
66631         one potential size overflow calculation.  Check for size overflow
66632         when calculating temporary buffer size.  Free temporary buffer
66633         when done, if it was allocated with malloc; this plugs a memory
66634         leak.  Remove casts from void * to pointers, that are no longer
66635         needed now that we're assuming C89 or better.
66636
66637         Merge error changes from glibc.
66638
66639         * lib/error.c, error.h: Update copyright notice header to match glibc.
66640         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
66641         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
66642         Disable cancellation while printing error.
66643         * lib/error.h: Prepend __ to parameter names.
66644
66645 2003-09-26  Jim Meyering  <jim@meyering.net>
66646
66647         * lib/error.c (error_tail): Move some declarations
66648         into inner scope where the local variables are used.
66649
66650 2003-09-26  Bruno Haible  <bruno@clisp.org>
66651
66652         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
66653         stpncpy().
66654         Don't define stpncpy through config.h; it's now done through stpncpy.h.
66655
66656 2003-09-26  Bruno Haible  <bruno@clisp.org>
66657
66658         * lib/stpncpy.h (gnu_stpncpy): New declaration.
66659         (stpncpy): Define as alias for gnu_stpncpy.
66660         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
66661
66662 2003-09-25  Simon Josefsson  <jas@extundo.com>
66663
66664         * lib/xgetdomainname.h: New file.
66665         * lib/xgetdomainname.c: New file.
66666
66667 2003-09-25  Simon Josefsson  <jas@extundo.com>
66668             Bruno Haible  <bruno@clisp.org>
66669
66670         * modules/getdomainname: New file.
66671         * modules/xgetdomainname: New file.
66672         * MODULES.html.sh (func_all_modules): Add getdomainname,
66673         xgetdomainname.
66674
66675 2003-09-25  Simon Josefsson  <jas@extundo.com>
66676             Bruno Haible  <bruno@clisp.org>
66677
66678         * m4/getdomainname.m4: New file.
66679
66680 2003-09-25  Simon Josefsson  <jas@extundo.com>
66681             Bruno Haible  <bruno@clisp.org>
66682
66683         * lib/getdomainname.h: New file.
66684         * lib/getdomainname.c: New file.
66685
66686 2003-09-25  Karl Berry  <karl@gnu.org>
66687
66688         * lib/argp-fmtstream.c, argp-help.c: update from libc.
66689
66690 2003-09-25  Karl Berry  <karl@gnu.org>
66691
66692         * config/install-sh: update from automake.
66693
66694 2003-09-25  Bruno Haible  <bruno@clisp.org>
66695
66696         * modules/version-etc-2: New file, from modules/version-etc with
66697         modifications.
66698         * MODULES.html.sh (func_all_modules): Add version-etc-2.
66699
66700 2003-09-25  Bruno Haible  <bruno@clisp.org>
66701
66702         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
66703         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
66704
66705 2003-09-24  Simon Josefsson  <jas@extundo.com>
66706
66707         * modules/xgethostname: Add xgethostname.h.
66708
66709 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66710
66711         * lib/linebuffer.c (freebuffer): Don't free the argument, just
66712         the buffer associated with the argument.  Bug reported by
66713         Simon Josefsson.
66714
66715 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66716
66717         * README: Document assumptions that 'int' is at least 32 bits
66718         wide, that integer arithmetic is 2's complement without overflow,
66719         that there are no holes in integer values, that adding sizes of
66720         two nonoverlapping objects can't overflow, and that all-bits-zero
66721         yields scalar zero.  Fix spelling and capitalization typos.
66722
66723 2003-09-19  Karl Berry  <karl@gnu.org>
66724
66725         * lib/argp.h: update from libc.
66726
66727 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66728
66729         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
66730         to avoid spurious warnings like "AC_RUN_IFELSE was called before
66731         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
66732
66733 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66734
66735         * gnulib-tool: Use "test -h", not "test -L", for portability
66736         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
66737         (tags_regexp): Remove, since \| doesn't conform to POSIX.
66738         (sed_extract_prog): Issue s commands one-by-one, rather than
66739         using \| in one s command.
66740
66741 2003-09-16  Paul Eggert  <eggert@twinsun.com>
66742
66743         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
66744         input error, instead of returning NULL the next time we are called
66745         (and therefore losing track of errno).
66746
66747 2003-09-16  Bruno Haible  <bruno@clisp.org>
66748
66749         * gnulib-tool (func_create_testdir): Warn about duplicated
66750         dependencies.
66751
66752 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66753
66754         * modules/argmatch, modules/fatal, modules/obstack,
66755         modules/xalloc, modules/xgethostname: Sort dependencies by
66756         importance, not alphabetically.
66757
66758 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66759
66760         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
66761         fails, so that the caller gets the proper errno.
66762
66763         * lib/readutmp.c (read_utmp): Likewise.
66764         Check for fstat error.  Close stream and free storage
66765         when failing.
66766
66767 2003-09-14  Karl Berry  <karl@gnu.org>
66768
66769         * config/srclist.txt (strdup.c): disable for c89 changes.
66770
66771 2003-09-14  Jim Meyering  <jim@meyering.net>
66772
66773         * lib/getloadavg.c: Correct cpp indentation.
66774         * lib/strdup.c: Likewise.
66775         * lib/vasnprintf.c: Likewise.
66776
66777 2003-09-14  Bruno Haible  <bruno@clisp.org>
66778
66779         * modules/fwriteerror: New file.
66780         * MODULES.html.sh (func_all_modules): Add fwriteerror.
66781
66782 2003-09-14  Bruno Haible  <bruno@clisp.org>
66783
66784         * lib/fwriteerror.h: New file.
66785         * lib/fwriteerror.c: New file.
66786
66787 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66788
66789         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
66790         modules/xgethostname, modules/xalloc: Depend on exit.
66791
66792 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66793
66794         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
66795
66796         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
66797         and AC_MINIX, too, so that their extensions are available.
66798
66799         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
66800         This macro has been superseded by gl_BACKUPFILE.
66801
66802         More patches to assume C89 or better.
66803
66804         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
66805
66806         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
66807         unconditionally.
66808         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
66809         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
66810         Include <string.h>, <stdlib.h> unconditionally.
66811         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
66812         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
66813         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
66814         headers or for string.h.
66815         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
66816         or strtoul.
66817
66818         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
66819         headers.
66820         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
66821         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66822         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
66823         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
66824         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66825         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
66826         memcpy, memset.
66827         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
66828         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
66829         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
66830         strtol.
66831         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
66832         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
66833         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
66834         strtoul.
66835
66836 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66837
66838         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
66839         * lib/obstack.c [!defined _LIBC]: Likewise.
66840         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
66841         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
66842         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
66843
66844         More changes to assume C89 or better.
66845
66846         * lib/error.c (error_tail): Assume vprintf.
66847
66848         * lib/argmatch.c (getenv): Remove decl.
66849         * lib/progreloc.c (get_full_program_name): Define via prototype.
66850         * lib/setenv.c (clearenv): Likewise.
66851         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
66852         needed.
66853         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
66854         (malloc, memcpy): Remove decls.
66855         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
66856         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
66857         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66858         (memcpy): Remove macro.
66859         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
66860         (__P): Remove.  All uses removed.
66861         (PTR): Remove.  All uses changed to void *.
66862         (CHAR_BIT, NULL): Remove.
66863         (spaces, zeros, memset_space, memset_zero)
66864         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
66865         Remove.
66866         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
66867         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
66868         Define with prototype.
66869         Remove now-unnecessary prototype decl.
66870         (extra_args_spec): Assume ANSI C.  All uses changed.
66871         (extra_args_spec_iso): Remove.
66872         (my_strftime, emacs_strftimeu): Define via prototype.
66873         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
66874         unconditionally.
66875         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
66876         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
66877         (strtoul, strtol): Remove decls.
66878         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
66879         LONG_MAX): Remove.
66880         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66881         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
66882         (LOCALE_PARAM_PROTO): New macro.
66883         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
66884         (INTERNAL (strtol), strtol): Define with a prototype.
66885         (PARAMS): Remove.  All uses removed.
66886         * lib/tempname.c: Include <string.h> unconditionally.
66887         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
66888         * lib/xgethostname.c (main): Define with a prototype.
66889         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
66890         Include <stdlib.h> unconditionally.
66891         (calloc, malloc, realloc, free): Remove decls.
66892         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
66893         Include <stdlib.h> unconditionally.  Sort include file names.
66894         (strtod): Remove.
66895         (xstrtod): Define with a prototype.
66896         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
66897         (strtol, strtoul): Remove decls.
66898
66899 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66900
66901         More patches to assume C89 or better.
66902         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
66903         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
66904         string.h, memchr, STDC_HEADERS.
66905
66906 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66907
66908         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
66909         Include <stdlib.h>, <string.h> unconditionally.
66910         Remove now-unnecessary cast to char *.
66911         * lib/strnlen.c: Include <string.h> unconditionally.
66912         * lib/yesno.c (yesno): Define with a prototype.
66913
66914 2003-09-11  Bruno Haible  <bruno@clisp.org>
66915
66916         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
66917
66918 2003-09-10  Jim Meyering  <jim@meyering.net>
66919
66920         * lib/error.c: Correct indentation of cpp directives.
66921
66922 2003-09-10  Bruno Haible  <bruno@clisp.org>
66923
66924         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
66925         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
66926         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
66927         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
66928         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
66929         <stdlib.h> and <string.h> checks.
66930         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
66931         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
66932
66933 2003-09-10  Bruno Haible  <bruno@clisp.org>
66934
66935         * lib/strcspn.c: Include <string.h> unconditionally.
66936         * lib/strpbrk.c: Include <string.h> unconditionally.
66937         * lib/strstr.c: Include <string.h> unconditionally.
66938         * lib/unicodeio.c: Include <string.h> unconditionally.
66939         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
66940         * lib/unsetenv.c: Likewise.
66941         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
66942         * lib/yesno.c: Include <stdlib.h> unconditionally.
66943         (rpmatch): Add prototype.
66944
66945 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66946
66947         More patches to assume C89 or better.
66948         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
66949         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
66950         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
66951         or for string.h.
66952         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
66953         stdlib.h.
66954         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
66955         C headers.
66956         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
66957         string.h.
66958         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
66959         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
66960         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
66961         or for string.h.
66962         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
66963         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
66964         C headers.
66965         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
66966         memcpy.
66967         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
66968         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
66969         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
66970         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
66971         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
66972         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
66973         string.h, free.
66974         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
66975         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
66976         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
66977         C headers, or for string.h.
66978         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
66979         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
66980         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
66981         headers, memory.h, stdlib.h, string.h, strings.h.
66982         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
66983         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
66984         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
66985         strchr.
66986         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
66987         headers, memory.h, string.h.
66988         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
66989         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
66990         free.
66991         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
66992         headers.
66993         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
66994         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
66995         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
66996         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
66997         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
66998
66999 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67000
67001         More K&R removal.
67002
67003         * lib/acosl.c (main): Use a prototype.
67004         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
67005         tanl.c: Likewise.
67006
67007         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
67008
67009         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
67010         (getopt, etopt_long, getopt_long_only, _getopt_internal)
67011         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
67012         with a prototype.
67013         * lib/getopt.c (const): Remove macro.
67014         Include <string.h> unconditionally.
67015         (my_index): Remove; all uses changed to strchr.
67016         (strlen): Remove decl.
67017         (exchange): Remove forward decl; no longer needed.
67018         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
67019         Define with prototype.
67020         * lib/getopt1.c (const): Remove macro.
67021         (getopt_long, getopt_long_only, main): Define with prototype.
67022
67023         * lib/getugroups.c: Include <string.h> unconditionally.
67024
67025         * lib/getusershell.c: Include <stdlib.h> unconditionally.
67026         (getusershell, setusershell, endusershell, readname, main):
67027         Define with prototypes.
67028
67029         * lib/group-member.c: Include group-member.h first.
67030         Include <stdlib.h> unconditionally.
67031
67032         * lib/hard-locale.c: Include hard-locale.h first.
67033         Include <stdlib.h>, <string.h> unconditionally.
67034
67035         * lib/hash.c (free, malloc): Remove decls.
67036         Include <stdlib.h> unconditionally.
67037
67038         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
67039         (getenv): Do not declare.
67040
67041         * lib/idcache.c: Include <string.h> unconditionally.
67042
67043         * lib/long-options.c: Include long-options.h first, to test interface.
67044         Include <stdlib.h> unconditionally.
67045
67046         * lib/makepath.c: Include makepath.h first, to test interface.
67047         Include <stdlib.h> and <string.h> unconditionally.
67048
67049         * lib/linebuffer.c: Include <stdlib.h>.
67050         (free): Remove decl.
67051
67052         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
67053         stddef.h. rpl_malloc returns void *, not char *.
67054         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
67055         prototype.
67056
67057         * lib/md5.h: Include <limits.h> unconditionally.
67058         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
67059         (__P): Remove; all uses removed.
67060         * lib/md5.c: Include "md5.h" first.
67061         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
67062         md5_buffer, md5_process_bytes, md5_process_block):
67063         Define with prototypes.
67064         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
67065         * lib/sha.c: Include "sha.h" first.
67066         Include <stdlib.h>, <string.h> unconditionally.
67067
67068         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
67069         * lib/memcmp.c (__ptr_t): Likewise.
67070         * lib/memrchr.c (__ptr_t): Likewise.
67071         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
67072         Include <string.h> unconditionally.
67073         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
67074         * lib/memchr.c: Include <stdlib.h> unconditionally.
67075         * lib/memchr.c (LONG_MAX): Remove.
67076         * lib/memrchr.c (LONG_MAX): Likewise.
67077         * lib/memchr.c (__memchr): Define via a prototype.
67078         * lib/memrchr.c (__memrchr): Likewise.
67079         * lib/memcmp.c (__P): Remove, and remove all uses.
67080         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
67081         Remove forward decls; no longer needed.
67082         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
67083         Use types required by C89 in prototype.
67084
67085         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
67086         * lib/savedir.c: Likewise.
67087         * lib/mkdir.c (free): Remove decl.
67088         * lib/rmdir.c (rmdir): Define with a prototype.
67089         * lib/savedir.c: Include savedir.h first, to test interface.
67090
67091         * lib/mktime.c (STDC_HEADERS): Remove.
67092         Include <stdlib.h>, <string.h> unconditionally.
67093
67094         * lib/modechange.c: Include <stdlib.h> unconditionally.
67095         (malloc): Remove decl.
67096
67097         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
67098         (free): Remove decl.
67099
67100         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
67101         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
67102         (This type really should be intptr_t, but that's a C99ism.)
67103         (_obstack_memcpy): Remove: all uses changed to memcpy.
67104         Include <string.h> unconditionally.
67105         (struct obstack): Assume __STDC__ for types of members
67106         chunkfun, freefun, extra_arg.
67107         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
67108         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
67109         obstack_begin, obstack_specify_allocation,
67110         obstack_specify_allocation_with_arg, obstack_chunkfun,
67111         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
67112         Remove unprototyped decls and the macros that use them.
67113         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
67114         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
67115         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
67116         (defined __STDC__ && __STDC__)]:
67117         Remove nonprototyped code.
67118         Include <stdlib.h> unconditionally.
67119         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
67120         _obstack_allocated_p, _obstack_free, obstack_free,
67121         _obstack_memory_used, print_and_abort):
67122         Define using prototypes.
67123         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
67124         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
67125         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
67126         obstack_next_free, obstack_object_size, obstack_room) [0]:
67127         Remove unused, unprototyped code.
67128
67129         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
67130
67131         * lib/physmem.c (physmem_total, physmem_available, main): Define
67132         with prototypes.
67133
67134         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
67135         (main): Define with a prototype.
67136
67137         * lib/posixver.c (getenv): Remove decl.
67138
67139         * lib/putenv.c (malloc): Returns void *, not char *.
67140         Include <string.h> unconditionally.
67141         (strchr, memcpy, NULL): Do not define.
67142
67143         * lib/readtokens.c: Include readtokens.h first, to test interface.
67144         Include <stdlib.h>, <string.h> unconditionally.
67145         (init_tokenbuffer): Define with a prototype.
67146
67147         * lib/regex.c (PARAMS): Remove.  All uses removed.
67148         All uses of _RE_ARGS removed, too.
67149         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67150         unconditionally.
67151         (bzero): Assume memset exists.
67152         (memcmp, memcpy, NULL): Remove.
67153         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
67154         char, or assignments to local vars of type signed char.
67155         (init_syntax_once, PREFIX(extract_number_and_incr),
67156         PREFIX(print_partial_compiled_pattern),
67157         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
67158         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
67159         PREFIX(regex_grow_registers), PREFIX(regex_compile),
67160         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
67161         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
67162         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
67163         wcs_compile_range, byte_compile_range, truncate_wchar,
67164         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
67165         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
67166         count_mbs_length, wcs_re_match_2_internal,
67167         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
67168         PREFIX(alt_match_null_string_p),
67169         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
67170         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
67171         regfree, PREFIX(extract_number)): Define with prototype.  Remove
67172         now-unnecessary declaration, if any.
67173         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
67174         regcomp, regexec):
67175         Remove now-unnecessary casts among pointer types.
67176         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
67177
67178         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
67179         (free): Remove decl.
67180
67181         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
67182
67183         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
67184         (free): Remove decl.
67185
67186         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
67187         * lib/xgetcwd.c: Likewise.
67188
67189         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
67190         (free): Remove decl.
67191
67192         * lib/strchrnul.c (strchrnul): Define with a prototype.
67193         Fix bug: c_in was not converted to char before searching.
67194
67195         The following changes are not K&R related:
67196
67197         * lib/group-member.h: Include <sys/types.h>, so that this file is
67198         self-contained.
67199         * lib/makepath.h: Likewise.
67200
67201         * lib/getusershell.c (readname, default_index, line_size, readname):
67202         Use size_t, not int, for sizes.
67203         (readname): If the size overflows, report an error instead of
67204         looping forever.
67205
67206 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67207
67208         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
67209         libc.
67210
67211 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67212
67213         * README: New section: portability guidelines.
67214
67215 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67216
67217         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
67218         C89 spec.
67219
67220 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67221
67222         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
67223
67224 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67225
67226         Assume C89 or better; remove K&R cruft.
67227         A few of these changes were first proposed by Derek Robert Price
67228         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
67229
67230         * lib/addext.c: Include <string.h> unconditionally.
67231         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
67232         Don't declare getenv or malloc.
67233
67234         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
67235         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
67236         (NULL): Remove.
67237         (find_stack_direction, alloca): Use prototypes.
67238
67239         * lib/atexit.c (atexit): Define using a prototype.
67240
67241         * lib/basename.c, dirname.c, stripslash.c:
67242         Include <string.h> unconditionally.
67243
67244         * lib/bcopy.c: Include <stddef.h>.
67245         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
67246
67247         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
67248
67249         * lib/error.h (error, error_at_line, error_print_progname)
67250         [! (defined (__STDC__) && __STDC__)]: Remove decls.
67251         * lib/error.c: Include error.h first, to check interface.
67252         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67253         (VA_START): Remove; all uses changeed to va_start.
67254         (exit, strerror): Remove decls.
67255         (error_print_progname): Prototype uncondionally.
67256         Don't include <errno.h>; no longer needed.
67257         (private_strerror): Remove.
67258         (error_tail): Always define.
67259         (error, error_at_line): Assume C89 or better; always use prototypes.
67260         * lib/fatal.c: Include "fatal.h" first, to test interface.
67261         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67262         (VA_START): Remove; all uses changed to va_start.
67263         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
67264         this case.
67265         (exit): Remove decl.
67266         (fatal): Prototype unconditionally.  Assume va_start works.
67267         Abort at end, to pacify gcc.
67268
67269         * lib/euidaccess.c (main): Define with a prototype.
67270
67271         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
67272
67273         * lib/exitfail.c: Include <stdlib.h> unconditionally.
67274
67275         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
67276         prototypes.
67277         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
67278         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
67279         (getenv): Remove decl.
67280         (fnmatch): Define using a prototype.
67281         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
67282         (FCT): Define using a prototype.
67283
67284         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
67285
67286         * lib/gethostname.c: Include <stddef.h>.
67287         (gethostname): Define with prototype.  Length is size_t, not int.
67288
67289 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67290
67291         Assume C89 or better; remove K&R cruft.
67292         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
67293         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
67294         string.h, getenv, malloc.
67295         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
67296         headers.
67297         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
67298         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
67299         do not check for strerror.
67300         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
67301         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
67302         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
67303         do not check for doprnt or vprintf.
67304         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
67305         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
67306
67307 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67308
67309         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
67310         getversion.c should have been removed then, but was accidentally
67311         preserved.
67312
67313         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
67314         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
67315
67316 2003-09-08  Karl Berry  <karl@gnu.org>
67317
67318         * config/config.sub, config.guess, srclistvars.sh: update from savannah
67319                 config, forget about prep.
67320
67321         * config/depcomp, missing: update from automake.
67322
67323 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67324
67325         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
67326         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67327
67328 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67329
67330         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
67331         copy_tm_result.  Bug reported by Simon Josefsson in
67332         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67333
67334 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67335
67336         * m4/time_r.m4: New file.
67337         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
67338         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
67339         is. Check for timegm declaration.
67340         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
67341         Do not check for gmtime_r.
67342         Replace mktime if __mktime_internal does not exist and if mktime
67343         hasn't been replaced already.
67344
67345 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67346
67347         * lib/time_r.c, lib/time_r.h: New files.
67348
67349         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
67350         __localtime_r.
67351         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
67352         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
67353
67354         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
67355         __gmtime_r.
67356         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
67357         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
67358         Include <time_r.h>.
67359
67360         * lib/timegm.c: Switch to glibc implementation, with the following
67361         changes:
67362         [defined HAVE_CONFIG_H]: Include <config.h>.
67363         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
67364         (__mktime_internal) [!defined _LIBC]: New decl.
67365         (__gmtime_r) [!defined _LIBC]: New macro and function.
67366         (timegm): Use a prototype, since gnulib assumes C89.
67367         Do not bother declaring tmp to be const, as it's not really usefu.
67368         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
67369         (timegm): Declare only if HAVE_DECL_TIMEGM.
67370
67371 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67372
67373         * MODULES.html.sh (func_all_modules): Add time_r.
67374         * modules/time_r: New file.
67375         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
67376         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
67377
67378 2003-09-03  Paul Eggert  <eggert@twinsun.com>
67379
67380         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
67381         Bug reported by Lute Kamstra in
67382         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
67383
67384         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
67385         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
67386         course with correspondingly smaller numbers for tomorrow and
67387         yesterday.  From Tadayoshi Funaba.  Originally installed into
67388         sh-utils on 1999-08-07, but the patch got lost (I guess during the
67389         coreutils merge?).
67390
67391 2003-08-31  Simon Josefsson  <jas@extundo.com>
67392
67393         * modules/timegm: New file.
67394         * MODULES.html.sh (func_all_modules): Add timegm.
67395
67396 2003-08-31  Simon Josefsson  <jas@extundo.com>
67397
67398         * m4/timegm.m4: New file.
67399
67400 2003-08-31  Simon Josefsson  <jas@extundo.com>
67401
67402         * lib/timegm.h: New file.
67403         * lib/timegm.c: New file.  Based on
67404         wget-1.8.2/src/http.c:mktime_from_utc.
67405
67406 2003-08-31  Karl Berry  <karl@gnu.org>
67407
67408         * lib/argp.h: update from libc.
67409
67410 2003-08-28  Bruno Haible  <bruno@clisp.org>
67411
67412         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
67413         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
67414         followed by '#define fnmatch fnmatch_posix' gives an error.
67415
67416 2003-08-28  Bruno Haible  <bruno@clisp.org>
67417
67418         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
67419         warning on QNX, which defines O_BINARY to 000000.
67420
67421 2003-08-27  Jim Meyering  <jim@meyering.net>
67422
67423         * m4/mkstemp.m4: Require that the system mkstemp be able to create
67424         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
67425         would fail after 32.  Reported by Danny Levinson.  Details here:
67426         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
67427
67428 2003-08-24  Bruno Haible  <bruno@clisp.org>
67429
67430         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
67431         MSVC7 <stdio.h> is included later.
67432
67433 2003-08-22  Simon Josefsson  <jas@extundo.com>
67434
67435         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
67436
67437 2003-08-20  Karl Berry  <karl@gnu.org>
67438
67439         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
67440
67441 2003-08-20  Bruno Haible  <bruno@clisp.org>
67442
67443         * modules/progname: New file.
67444         * MODULES.html.sh (func_all_modules): Add progname.
67445
67446 2003-08-20  Bruno Haible  <bruno@clisp.org>
67447
67448         * lib/progname.h: New file, from GNU gettext.
67449         * lib/progname.c: New file, from GNU gettext.
67450         * lib/progreloc.c: New file, from GNU gettext.
67451
67452 2003-08-19  Jim Meyering  <jim@meyering.net>
67453
67454         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
67455         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
67456
67457 2003-08-19  Bruno Haible  <bruno@clisp.org>
67458
67459         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
67460         more.
67461
67462 2003-08-19  Bruno Haible  <bruno@clisp.org>
67463
67464         * lib/xstrdup.c: Assume <string.h> exists.
67465
67466 2003-08-18  Paul Eggert  <eggert@twinsun.com>
67467
67468         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
67469         in makefile rules.
67470
67471 2003-08-18  Jim Meyering  <jim@meyering.net>
67472
67473         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
67474         * m4/lib-ld.m4: Likewise.
67475
67476 2003-08-18  Jim Meyering  <jim@meyering.net>
67477
67478         * lib/setenv.h: Indent nested cpp directive.
67479         * lib/vasnprintf.c: Remove trailing blanks.
67480
67481 2003-08-17  Simon Josefsson  <jas@extundo.com>
67482
67483         * modules/xstrndup: New file.
67484         * MODULES.html.sh (func_all_modules): Add xstrndup.
67485
67486 2003-08-17  Simon Josefsson  <jas@extundo.com>
67487
67488         * modules/argp: Fix autoconf macro name. Add more dependencies.
67489
67490 2003-08-17  Simon Josefsson  <jas@extundo.com>
67491
67492         * m4/xstrndup.m4: New file.
67493
67494 2003-08-17  Simon Josefsson  <jas@extundo.com>
67495
67496         * m4/argp.m4: New file.
67497
67498 2003-08-17  Simon Josefsson  <jas@extundo.com>
67499             Bruno Haible  <bruno@clisp.org>
67500
67501         * lib/xstrndup.h: New file.
67502         * lib/xstrndup.c: New file.
67503
67504 2003-08-17  Bruno Haible  <bruno@clisp.org>
67505
67506         * modules/strndup (Files, Include): Add lib/strndup.h.
67507
67508 2003-08-17  Bruno Haible  <bruno@clisp.org>
67509
67510         * modules/euidaccess (Files): Add lib/euidaccess.h.
67511
67512 2003-08-17  Bruno Haible  <bruno@clisp.org>
67513
67514         * lib/strndup.h: New file.
67515
67516 2003-08-17  Bruno Haible  <bruno@clisp.org>
67517
67518         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
67519         like AC_GNU_SOURCE.
67520         * modules/extensions (configure.ac): Comment out the invocation of
67521         gl_USE_SYSTEM_EXTENSIONS.
67522
67523 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67524
67525         Merges from coreutils, etc.
67526         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
67527         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
67528         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
67529         fixing a typo.
67530         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
67531         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
67532
67533 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67534
67535         Document merge from coreutils.
67536         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
67537         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
67538         * modules/utime: Add m4/utimes-null.m4.
67539
67540 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67541
67542         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
67543         space, undoing this 2003-08-12 change:
67544         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67545
67546 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67547
67548         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
67549         strtoul.c from libc, undoing this 2003-08-12 change:
67550         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67551
67552 2003-08-16  Jim Meyering  <jim@meyering.net>
67553
67554         Merges from coreutils.
67555         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
67556         prefix.  Adjust cache variables similarly.  Create 500 rather than
67557         just 300 files, to exercise bug on Darwin6.5, too.
67558         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
67559         $missing_dir.
67560         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
67561         AM_SYS_POSIX_TERMIOS.
67562         Reported by mkc@mathdogs.com.
67563         Also change use of $am_cv_sys_posix_termios
67564         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
67565         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
67566         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
67567         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
67568         in /proc/mounts until it finds one with matching device number.  This
67569         is unnecessary when the FILE argument *is* a mount point.  No stat call
67570         is necessary in that case.  So, disable the statvfs-testing code on
67571         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
67572         as RedHat bug# 84846.
67573         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67574         to 1MB, so as not to render systems with no stack size limit (e.g.,
67575         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67576         Include <unistd.h>.  On some systems,
67577         it is required for the definition of _SC_PAGESIZE.
67578
67579 2003-08-16  Jim Meyering  <jim@meyering.net>
67580
67581         Merge from coreutils.
67582         * lib/xstrtoimax.c: #else #if -> #elif.
67583         * lib/xstrtoumax.c: Likewise.
67584
67585 2003-08-16  Jim Meyering  <jim@meyering.net>
67586
67587         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
67588         * m4/utimes.m4: Removed.
67589         * m4/utimes-null.m4: Renamed from utimes.m4.
67590
67591         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67592         to 1MB, so as not to render systems with no stack size limit (e.g.,
67593         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67594         Include <unistd.h>.  On some systems,
67595         it is required for the definition of _SC_PAGESIZE.
67596
67597 2003-08-16  Jim Meyering  <jim@meyering.net>
67598         and Paul Eggert  <eggert@cs.ucla.edu>
67599
67600         Merges from coreutils, etc.
67601
67602         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
67603         using the latest version from cvs.  This avoids problems with #line
67604         directives using a vendor (Sun) compiler.
67605         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
67606         Don't set GETGROUPS_LIB here; now it's
67607         done via getgroups.m4's wrapper function.
67608         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
67609         rather than just in sh-util/configure.in, so that the
67610         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
67611         same.
67612         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
67613         AC_FUNC_GETLOADAVG where to find getloadavg.c.
67614         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
67615         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
67616         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
67617         Remove code that is now done by the newly-required macros.
67618         Append $(EXEEXT) to DF_PROG.
67619         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
67620         Do not invoke or require the following here,
67621         since prereq.m4 or some gnulib .m4 now does this for us:
67622         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
67623         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
67624         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
67625         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
67626         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
67627         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
67628         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
67629         AC_FUNC_OBSTACK.
67630         Do not replace the following functions, as this is now the job
67631         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
67632         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
67633         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
67634         atexit getpass, strdup, getpagesize.
67635         Replace 'raise'.
67636         Do not check for the following functions, as this is now the job
67637         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
67638         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
67639         setregid.
67640         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
67641         Check for sys/sysctl.h.
67642         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
67643         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
67644         of checking for ssize_t ourselves.
67645
67646         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
67647         Require every macro that gnulib/modules/* suggests for us.
67648         (jm_PREREQ_ADDEXT): New macro.
67649         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
67650         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
67651
67652         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
67653         (gl_PHYSMEM): Use it.
67654         Also check for `table' function.
67655         Check for new headers and functions.
67656         Add check for sys/sysmp.h.
67657         With suggestions from Kaveh Ghazi.
67658         Ignore headers that are present but cannot be compiled.  This
67659         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
67660         C 5.4.
67661
67662 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67663
67664         Document merge from coreutils.
67665         * modules/userspec: Depend on posixver.
67666         * modules/strftime: Depend on tzset.
67667
67668 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67669
67670         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
67671         rather than tab, after '#' in shell-script copyright notices.
67672         Suggested by Bruno Haible.
67673
67674 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67675
67676         * config/srclist-update: Use three spaces, rather than tab, after '#'
67677         in shell-script copyright notices.  Suggested by Bruno Haible.
67678         Remove unnecessary parenthesization in regular expression.
67679
67680 2003-08-15  Jim Meyering  <jim@meyering.net>
67681
67682         Merge from coreutils.
67683         * lib/xgethostname.c: Include <stdlib.h>.
67684         (xghostname): Don't exit for anything other than memory-related
67685         failure; just return NULL.
67686         * lib/userspec.c: Include "posixver.h".
67687         (parse_user_spec): Accept `.' as a separator only
67688         in pre-POSIX-200112 mode.
67689         * lib/strtoimax.c: Use #elif rather than #else #if.
67690         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
67691         Remove function, now that we can rely on a working tzset function.
67692         [!_LIBC]: Ensure that the required autoconf test has been run.
67693         [!defined _NL_CURRENT && HAVE_STRFTIME]:
67694         Use underlying_strftime for %r.
67695         * lib/sha.c: Merge in some clean-up and optimization changes from
67696         glibc.
67697         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
67698         Ensure that it is a multiple of 64.
67699         Rearrange loop exit tests so as to avoid performing an
67700         additional fread after encountering an error or EOF.
67701         * lib/realloc.c: Update copyright date.
67702
67703 2003-08-15  Jim Meyering  <jim@meyering.net>
67704         and Paul Eggert  <eggert@twinsun.com>
67705
67706         Merge from coreutils.
67707         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
67708         member but strut utmpx does not.  Needed for AIX 4.3.3.
67709         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
67710
67711 2003-08-15  Jim Meyering  <jim@meyering.net>
67712         and Paul Eggert  <eggert@cs.ucla.edu>
67713
67714         Merges from coreutils, etc.
67715         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
67716         Require gl_FUNC_TZSET_CLOBBER.
67717         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
67718         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
67719         members.
67720
67721 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67722
67723         Help the merge from coreutils.
67724         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
67725         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
67726         * m4/tzset.m4: Use it too.
67727
67728 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67729
67730         * modules/tzset: New file.
67731
67732 2003-08-14  Jim Meyering  <jim@meyering.net>
67733
67734         Merges from coreutils.
67735         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
67736         variable names, rather than @FNMATCH_H@.
67737         * modules/alloca: Likewise for $(ALLOCA_H).
67738
67739         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
67740         the three copies of the literal target, `fnmatch.h'.
67741         * modules/alloca (alloca.h): Likewise.
67742
67743 2003-08-14  Jim Meyering  <jim@meyering.net>
67744
67745         Merge from coreutils.
67746         * m4/tzset.m4: New file.
67747         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
67748         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
67749         otherwise, AIX 5.1 systems would end up using the latter.
67750         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
67751         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
67752         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
67753         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
67754
67755 2003-08-14  Jim Meyering  <jim@meyering.net>
67756
67757         Merge from coreutils.
67758         * lib/obstack.h: Whitespace changes.
67759         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
67760         and xcalloc return values.
67761         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
67762         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
67763         hang on OSF/1 5.1 for DIR on both local and remote file systems.
67764         Reported by (and fix confirmed by) Nelson H. F. Beebe.
67765         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67766         error from mntctl.
67767         Use mntctl's return value to drive the entry-processing loop, since
67768         we can't rely on the value of the vmt_length member in the last
67769         entry.  On some systems doing so could result in exhausting
67770         virtual memory.  Based in part on a patch from Mike Jetzer.
67771
67772 2003-08-14  Jim Meyering  <jim@meyering.net>
67773         and Paul Eggert  <eggert@twinsun.com>
67774
67775         Merges from coreutils, plus other fixes.
67776         * lib/physmem.c: Merge in portability changes from gcc/libiberty
67777         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
67778         for credits and details.  Thanks to Kaveh Ghazi for helping
67779         to keep these files in sync.
67780         (ARRAY_SIZE): Define it.
67781         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
67782         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
67783         (memcasecmp): Don't assume size_t fits in unsigned int.
67784         Remove casts and duplicate code.
67785         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
67786         (memcpy): Remove definition.
67787         Merge in some clean-up and optimization changes from glibc.
67788         [BLOCKSIZE]: Move definition to top of file.
67789         Ensure that it is a multiple of 64.
67790         Rearrange loop exit tests so as to avoid performing an
67791         additional fread after encountering an error or EOF.
67792         * lib/md5.h (md5_uintptr): Define.
67793         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
67794         return to the initial working directory.  Preserve errno
67795         for caller.
67796         * lib/idcache.c: Include "xalloc.h".
67797         (xmalloc, xrealloc): Remove decls.
67798         (getuser): Remove casts no longer required in C89.
67799         * lib/human.c: Include stdio.h, for sprintf.
67800         * lib/group-member.c: Include "xalloc.h".
67801         (xmalloc, xrealloc): Remove decls.
67802         (get_group_info): Remove casts no longer required in C89.
67803         * lib/getusershell.c (readname): Remove casts no longer required in
67804         C89.
67805         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
67806         * lib/getline.c: Whitespace fix, from coreutils.
67807
67808 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67809
67810         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
67811         Check for isascii.
67812
67813         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67814         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67815         Undo previous (whitespace-only) change.
67816
67817 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67818
67819         * lib/exclude.c: Include <ctype.h>
67820         (IN_CTYPE_DOMAIN): New macro.
67821         (is_space): New fn.
67822         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
67823         and empty lines.
67824
67825         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67826         Undo previous (whitespace-only) change.
67827
67828 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67829
67830         * config/srclist-update: Change update back to the old behavior,
67831         leaving whitespace alone.  Use one 'sed' command rather than a
67832         pipeline.
67833         (fixlicense): Now a variable, not a function.
67834         (remove_trailing_blanks): Remove.
67835         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
67836         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67837         Undo previous (whitespace-only) change.
67838
67839 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67840
67841         Merge from coreutils.
67842         * modules/euidaccess: Add lib_SOURCES, include for new
67843         file euidaccess.h
67844
67845 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67846
67847         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67848         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67849         Normalize leading white space and remove trailing white space.
67850
67851         Merge from coreutils
67852         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
67853
67854         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
67855         0.12.1.  These files are now being upgraded automatically by
67856         ../config/srclist-update.
67857
67858 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67859
67860         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67861         Normalize leading white space and remove trailing white space.
67862         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
67863         notice, as per ../config/srclist-update.
67864
67865         Merge from coreutils.
67866         * lib/euidaccess.h: New file.
67867         * lib/euidaccess.c: Include it.
67868         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
67869         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
67870         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
67871
67872 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67873
67874         * config/srclist-update: Add copyright notice.
67875         (remove_id_lines, remove_trailing_blanks): New constants.
67876         (fixfile): Use them to normalize spacing a bit in copied files.
67877         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67878         Normalize leading white space and remove trailing white space.
67879
67880         * config/texinfo.tex: Sync with texinfo.
67881
67882         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
67883         strtoul.c from libc, to merge coreutils whitespace changes.
67884
67885         * config/srclist.txt: Get the following m4 files from gettext:
67886         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
67887         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
67888         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
67889         wint_t.m4.
67890
67891 2003-08-12  Karl Berry  <karl@gnu.org>
67892
67893         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
67894         been made.
67895
67896 2003-08-11  Paul Eggert  <eggert@twinsun.com>
67897
67898         * modules/gnu-source, m4/gnu-source.m4:
67899         Remove; we're assuming Autoconf 2.54 or later now.
67900         Suggested by Bruno Haible.
67901         * MODULES.html.sh (func_all_modules): Remove gnu-source.
67902
67903 2003-08-11  Bruno Haible  <bruno@clisp.org>
67904
67905         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
67906
67907 2003-08-11  Bruno Haible  <bruno@clisp.org>
67908
67909         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
67910         (vasnprintf): Use it instead of wcslen.
67911
67912 2003-08-11  Bruno Haible  <bruno@clisp.org>
67913
67914         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
67915         value to ensure that _Bool promotes to int. Use #define for _Bool when
67916         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
67917
67918 2003-08-10  Karl Berry  <karl@gnu.org>
67919
67920         * lib/regex.h: update from libc (whitespace fix).
67921
67922 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67923
67924         Merge some files from coreutils.  These changes were
67925         originally made by Jim Meyering.
67926         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
67927         many older Unixes require this.
67928         * lib/alloca.c (alloca): Remove cast to argument of free;
67929         no longer needed in C89.
67930         * lib/alloca_.h, regex.h: Fix white space to match
67931         what GNU indent does.
67932
67933 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67934
67935         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
67936         apparently Emacs's Unicode mode got confused before my 2003-08-05
67937         checkin.
67938
67939 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67940
67941         * m4/extensions.m4: New file.
67942         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
67943         Require gl_USE_SYSTEM_EXTENSIONS.
67944         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
67945         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
67946
67947 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67948
67949         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
67950         * modules/extensions, modules/gnu-source: New files.
67951         * modules/timespec, modules/unlocked-io: Depend on extensions.
67952
67953 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67954
67955         * modules/restrict: New file.
67956         * MODULES.html.sh (func_all_modules): Add restrict.
67957         * modules/regex: Depend on restrict.
67958
67959 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67960
67961         * m4/restrict.m4: New file.
67962         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
67963
67964 2003-08-07  Bruno Haible  <bruno@clisp.org>
67965
67966         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
67967         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
67968
67969 2003-08-07  Bruno Haible  <bruno@clisp.org>
67970
67971         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
67972         makes the module 'getndelim2' compatible with the module 'getline'.
67973
67974 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67975
67976         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
67977         byte with "\201" to avoid glitches when editing that source file
67978         with multi-gnome-terminal.
67979
67980 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67981
67982         * lib/bumpalloc.h: Remove.
67983
67984 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67985
67986         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
67987         * modules/bumpalloc: Remove.
67988
67989 2003-08-04  Paul Eggert  <eggert@twinsun.com>
67990
67991         * lib/getloadavg.c: Change copyright notice and spacing to conform to
67992         GNU coding style.
67993
67994         Merge from coreutils.
67995         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
67996         1. From glibc.
67997         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
67998         from Karl Berry, implemented by Jim Meyering.
67999         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
68000         from Dmitry V. Levin.
68001         Remove anachronistic cast of xrealloc.
68002         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
68003         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
68004         type. Otherwise, it wouldn't compile with at least /bin/cc on
68005         ymp-cray-unicos9.0.2.X.
68006         Combine two mostly-identical uses of alloca into one.
68007         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
68008
68009 2003-08-04  Dave Love  <d.love@dl.ac.uk>
68010
68011         [From Emacs.]
68012
68013         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
68014         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
68015         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
68016         obsolete NLIST_NAME_UNION.
68017         [__GNU__]: Undef BSD and FSCALE.
68018         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
68019
68020 2003-08-03  Paul Eggert  <eggert@twinsun.com>
68021
68022         * lib/stdbool_.h (_Bool): Make it signed char, instead of
68023         an enum type, so that it's guaranteed to promote to int.  See:
68024         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
68025
68026 2003-08-03  Karl Berry  <karl@gnu.org>
68027
68028         * config/depcomp: update from automake.
68029
68030 2003-07-31  Paul Eggert  <eggert@twinsun.com>
68031
68032         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
68033         (strerror): Don't assume that a printable int fits in 14 bytes.
68034
68035 2003-07-31  Bruno Haible  <bruno@clisp.org>
68036
68037         * modules/getpass-gnu: New file.
68038         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
68039
68040 2003-07-31  Bruno Haible  <bruno@clisp.org>
68041
68042         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
68043
68044 2003-07-24  Karl Berry  <karl@gnu.org>
68045
68046         * config/missing: update from automake.
68047
68048 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
68049             Bruno Haible  <bruno@clisp.org>
68050
68051         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
68052         * lib/getline.c (getline, getdelim): Likewise.
68053         Remove _GNU_SOURCE define; now it's defined in config.h through
68054         m4/getline.m4.
68055
68056 2003-07-23  Karl Berry  <karl@gnu.org>
68057
68058         * config/config.sub: update from prep.
68059
68060 2003-07-22  Paul Eggert  <eggert@twinsun.com>
68061
68062         * modules/xalloc (Depends-on): Add exitfail.
68063         * modules/xmemcoll: Likewise.
68064
68065 2003-07-22  Paul Eggert  <eggert@twinsun.com>
68066
68067         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
68068         over-parenthesization in macros.
68069
68070         Sync with coreutils.
68071
68072         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
68073         required by C99.
68074
68075         Use `exit_failure' for xalloc and xmemcoll instead of their own
68076         private exit-failure variables.
68077         * lib/xalloc.h (xalloc_exit_failure): Remove.
68078         * lib/xmalloc.c: Likewise.  Include exitfail.h.
68079         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
68080         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
68081         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
68082         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
68083
68084 2003-07-20  Jim Meyering  <jim@meyering.net>
68085
68086         * modules/closeout (Depends-on): Add exitfail.
68087         Suggestion from Bruno Haible.
68088
68089 2003-07-19  Karl Berry  <karl@gnu.org>
68090
68091         * config/config.sub: update from prep.
68092
68093 2003-07-18  Paul Eggert  <eggert@twinsun.com>
68094
68095         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
68096         Remove.
68097         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
68098         to test that it can stand by itself.  Include "exitfail.h".
68099         Clients should set exit_failure instead.
68100         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
68101
68102 2003-07-18  Bruno Haible  <bruno@clisp.org>
68103
68104         * modules/getndelim2: New file.
68105         * modules/getline: Share files with module getndelim2.
68106         * modules/getnline: Depend on getndelim2 instead of sharing files with
68107         it. Add getnline.c to lib_SOURCES.
68108         * MODULES.html.sh (func_all_modules): Add getndelim2.
68109
68110 2003-07-18  Bruno Haible  <bruno@clisp.org>
68111
68112         * m4/getndelim2.m4: New file.
68113         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
68114         invoke gl_PREREQ_GETNDELIM2.
68115         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
68116         gl_PREREQ_GETNDELIM2.
68117         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
68118         gl_GETNDELIM2.
68119
68120 2003-07-18  Bruno Haible  <bruno@clisp.org>
68121
68122         * lib/getndelim2.h: New file.
68123         * lib/getndelim2.c: Make into a module of its own. Include config.h,
68124         getndelim2.h.
68125         (getndelim2): Make non-static. Change return type to ssize_t.
68126         * lib/getline.h: Change argument names.
68127         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
68128         * lib/getnline.c: Include getndelim2.h.
68129
68130 2003-07-18  Andreas Schwab  <schwab@suse.de>
68131
68132         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
68133
68134 2003-07-17  Karl Berry  <karl@gnu.org>
68135
68136         * config/config.sub: update from prep.
68137
68138 2003-07-17  Bruno Haible  <bruno@clisp.org>
68139
68140         * modules/getnline: New file.
68141         * modules/getline: Add lib/getndelim2.c to source file list.
68142         * MODULES.html.sh (func_all_modules): Add getnline.
68143
68144 2003-07-17  Bruno Haible  <bruno@clisp.org>
68145
68146         * m4/getnline.m4: New file.
68147
68148 2003-07-17  Bruno Haible  <bruno@clisp.org>
68149
68150         * m4/Makefile.am.in: Remove file.
68151         * m4/Makefile.am: Remove file.
68152         * m4/Makefile.in: Remove file.
68153
68154 2003-07-17  Bruno Haible  <bruno@clisp.org>
68155
68156         * lib/getnline.h: New file.
68157         * lib/getnline.c: New file.
68158         * lib/getndelim2.c: New file, extracted from getline.c.
68159         (getndelim2): Renamed from getdelim2, with added nmax argument.
68160         * lib/getline.c: Include getndelim2.c.
68161         (getdelim2): Moved out to getndelim2.c.
68162         (getline, getdelim): Update.
68163
68164 2003-07-17  Bruno Haible  <bruno@clisp.org>
68165
68166         * lib/Makefile.am: Remove file.
68167         * lib/Makefile.in: Remove file.
68168
68169 2003-07-17  Bruno Haible  <bruno@clisp.org>
68170
68171         * configure.in: Remove file.
68172         * Makefile.in: Remove file.
68173
68174 2003-07-17  Bruno Haible  <bruno@clisp.org>
68175
68176         * MODULES.html.sh: Put the </BODY> right before </HTML>.
68177
68178 2003-07-16  Karl Berry  <karl@gnu.org>
68179
68180         * config/srclist-update: was running fixlicense twice, which caused
68181                 texinfo.tex to be nullified for some reason.  Simplify,
68182                 $gplsrc is no longer needed as far as I can see?
68183
68184 2003-07-16  Jim Meyering  <jim@meyering.net>
68185
68186         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
68187
68188 2003-07-15  Paul Eggert  <eggert@twinsun.com>
68189
68190         * config/srclist.txt: Get the following files from gettext-runtime/intl
68191         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
68192         ref-del.sin.  From Bruno Haible.
68193         * config/srclist-update (fixfile): Change grep pattern again, since the
68194         previous fix didn't work (there was another trailing $).  Use
68195         '[$]' to escape the $s.
68196
68197 2003-07-15  Karl Berry  <karl@gnu.org>
68198
68199         * lib/vasnprintf.c: update from gettext.
68200
68201 2003-07-15  Karl Berry  <karl@gnu.org>
68202
68203         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
68204         gets expanded when surrounded by '$'.
68205
68206 2003-07-15  Jim Meyering  <jim@meyering.net>
68207
68208         * modules/save-cwd: Don't depend on error.  From Derek Price.
68209
68210 2003-07-15  Jim Meyering  <jim@meyering.net>
68211
68212         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
68213
68214 2003-07-14  Simon Josefsson  <jas@extundo.com>
68215
68216         * modules/mempcpy: New file.
68217         * MODULES.html.sh (func_all_modules): Add mempcpy.
68218
68219 2003-07-14  Simon Josefsson  <jas@extundo.com>
68220
68221         * m4/mempcpy.m4: New file.
68222
68223 2003-07-14  Simon Josefsson  <jas@extundo.com>
68224
68225         * lib/mempcpy.h: New file.
68226         * lib/mempcpy.c: New file.
68227
68228 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68229
68230         * modules/getdate, modules/posixtm: Depend on mktime.
68231
68232 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68233
68234         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
68235         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
68236         unicodeio.c, unicodeio.h, unlocked-io.h:
68237         Switch from LGPL to GPL.
68238
68239 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68240
68241         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
68242         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
68243         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
68244         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
68245         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
68246         updated automatically by ../config/srclist-update.  This changes
68247         their license from LPGL to GPL.
68248
68249 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68250
68251         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
68252         assumed to refer to the root of the most recent stable gettext version.
68253         * config/srclistvars.sh: Add defaults for eggert.
68254         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
68255         Match "This program" as well as "The program".  This is needed
68256         for gettext.
68257
68258 2003-07-14  Jim Meyering  <jim@meyering.net>
68259
68260         Don't emit diagnostics.  Let callers do that.
68261         * lib/save-cwd.c: Don't include "error.h".
68262         (save_cwd): Don't call error.  Ensure that errno is valid
68263         when returning nonzero.
68264
68265         * lib/save-cwd.h (restore_cwd): Update prototype.
68266         * lib/save-cwd.c (restore_cwd): Remove two parameters.
68267         Simplify.  Don't call error upon failure.  Let callers do that.
68268         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
68269         when auditing is enabled.  But don't bother updating the #if.
68270
68271 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
68272
68273         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
68274         it breaks C++ compilation.
68275         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
68276
68277 2003-07-10  Simon Josefsson  <jas@extundo.com>
68278
68279         * modules/strchrnul (Makefile.am): Add strchrnul.h.
68280
68281 2003-07-10  Jim Meyering  <jim@meyering.net>
68282
68283         * m4/clock_time.m4: Remove trailing blank.
68284         * m4/intmax_t.m4: Likewise.
68285
68286 2003-07-10  Jim Meyering  <jim@meyering.net>
68287
68288         * lib/vasnprintf.c: Remove trailing blanks.
68289         Make cpp indentation consistent.
68290
68291 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68292
68293         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
68294         posixver.c, strftime.c, strnlen.c, strverscmp.c:
68295         Switch from LGPL to GPL.
68296
68297 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68298
68299         * config/srclist.txt: Sort sublists.  Add
68300         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
68301         that differ from gnulib for one reason or another; we'd like this list
68302         to be smaller but for now let's document what we have.
68303
68304 2003-07-08  Paul Eggert  <eggert@twinsun.com>
68305
68306         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
68307         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
68308         and sweeter "eval x=$x".
68309         * config/srclist.txt: Get lib/argp* from glibc.
68310
68311 2003-07-07  Paul Eggert  <eggert@twinsun.com>
68312
68313         * lib/mktime.c: Fix some boundary cases and remove need for floating
68314         point.
68315
68316         Issue a compile-time diagnostic if time_t is floating point, or if
68317         two's complement arithmetic is not in effect, or if arithmetic
68318         right shift does not propagate the sign.  These assumptions were
68319         all in the original code but they weren't checked.
68320
68321         (TIME_T_MIDPOINT, verify): New macros.
68322         (__isleap): Remove; it has integer overflow problems.
68323         (leapyear): New function, without those problems.
68324         (ydhms_tm_diff): Remove; splitting into two parts.
68325         (ydhms_diff): New function, containing the arithmetic part of
68326         the old ydhms_tm_diff function.  Issue a compile-time
68327         diagnostic if we are not using C99 integer division.
68328         Avoid casts when possible.
68329         (guess_time_tm): New function, containing the checking part of
68330         the old ydhms_tm_diff function.  Return the new value, rather than
68331         the difference between it and the old.  Accept a new argument T
68332         so that *T specifies the old value.  Check for overflow in the result.
68333
68334         (__mktime_internal): Use a time_t offset, not a long int offset.
68335         This undoes the 2003-06-04 change, which is no longer needed now
68336         that we have better overflow checking.
68337         (localtime_offset): Likewise.
68338
68339         (__mktime_internal): Avoid harmful overflow on hosts where time_t
68340         and long are 64-bit but int is only 32-bit.
68341         (ydhms_diff): Use long int to store year1 and yday1.
68342         Issue a compile-time diagnostic if long int is not wide enough.
68343
68344         (__mktime_internal): Use long int to store adjusted year and yday.
68345         Use plain C rather than preprocessor commands, if that doesn't
68346         affect efficiency.
68347         Check for overflow (and try to repair) after each probe
68348         rather than checking only at the very end.  This avoids some bugs
68349         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
68350         does not equal GMT offset at maximum time).
68351         Use integer to check for overflow rather than floating point; this
68352         is more portable to non-IEEE hosts, and is a tad faster.
68353         When we detect that we are oscillating between two values,
68354         don't check whether tm_isdst has the requested value, since
68355         we already know the answer.  When tm_isdst has the wrong value,
68356         use a different heuristic to find the right one, based on the
68357         extreme values actually observed in practice in tz2003a,
68358         rather than the (overly optimistic) "previous 3 calendar quarters".
68359
68360         (not_equal_tm, print_tm, check_result): Use "const T" rather than
68361         "T const" to accommodate glibc style.
68362         (check_result): Use less-confusing report format.  "long" -> "long int.
68363         (main): Likewise.
68364         Don't loop if the iteration overflows time_t.
68365         Allow a negative step in the iteration.
68366
68367 2003-07-06  Karl Berry  <karl@gnu.org>
68368
68369         * config/depcomp: update from automake.
68370         * config/config.sub: update from prep.
68371
68372 2003-07-03  Karl Berry  <karl@gnu.org>
68373
68374         * config/config.guess: update from prep.
68375
68376 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68377
68378         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
68379         xreadlink.c now includes it unconditionally.
68380
68381 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68382
68383         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
68384         having it depend on HAVE_SYS_TYPES_H.
68385
68386 2003-07-01  Bruno Haible  <bruno@clisp.org>
68387
68388         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
68389         <sys/types.h> should be sufficient.
68390         Reported by Paul Eggert.
68391
68392 2003-06-26  Karl Berry  <karl@gnu.org>
68393
68394         * config/depcomp: update from automake.
68395
68396 2003-06-26  Bruno Haible  <bruno@clisp.org>
68397
68398         * modules/human: Depend on module stdbool.
68399
68400 2003-06-25  Bruno Haible  <bruno@clisp.org>
68401
68402         * modules/readlink: New file.
68403         * modules/xreadlink: Depend on it.
68404         * MODULES.html.sh (func_all_modules): Add readlink.
68405
68406 2003-06-25  Bruno Haible  <bruno@clisp.org>
68407
68408         * m4/readlink.m4: New file.
68409
68410 2003-06-25  Bruno Haible  <bruno@clisp.org>
68411
68412         * lib/readlink.c: New file.
68413
68414 2003-06-22  Karl Berry  <karl@gnu.org>
68415
68416         * config/srclist.txt: update mkinstalldirs from automake.
68417         * config/mkinstalldirs: update.
68418
68419 2003-06-22  Bruno Haible  <bruno@clisp.org>
68420
68421         Portability to mingw32.
68422         * m4/ssize_t.m4: New file, from GNU gettext.
68423         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
68424         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
68425
68426 2003-06-22  Bruno Haible  <bruno@clisp.org>
68427
68428         * modules/safe-read: Add m4/ssize_t.m4.
68429         * modules/xreadlink: Add m4/ssize_t.m4.
68430
68431 2003-06-20  Bruno Haible  <bruno@clisp.org>
68432
68433         Assume C89, so PARAMS isn't needed.
68434         * lib/unicodeio.h (PARAMS): Remove.
68435         * lib/unicodeio.c: Don't use PARAMS.
68436
68437 2003-06-18  Karl Berry  <karl@gnu.org>
68438
68439         * config/config.{guess,sub}: update from prep.
68440
68441 2003-06-18  Jim Meyering  <jim@meyering.net>
68442
68443         Merge changes from coreutils.
68444         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
68445         Remove explicit declarations of xmalloc and realloc.
68446         Include xalloc.h.
68447         (read_utmp): Remove anachronistic cast of xmalloc.
68448
68449 2003-06-17  Paul Eggert  <eggert@twinsun.com>
68450
68451         Assume C89, so PARAMS isn't needed.
68452         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
68453         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
68454         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
68455         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
68456         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
68457         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
68458         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
68459         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
68460         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
68461         lib/xstrtod.h, lib/xstrtol.h: Likewise.
68462         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
68463         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
68464         no longer needed. Anyway, config.h should always be included before any
68465         other file.
68466
68467 2003-06-11  Simon Josefsson  <jas@extundo.com>
68468
68469         * modules/sysexits: New file.
68470         * MODULES.html.sh (func_all_modules): Add sysexits.
68471
68472 2003-06-11  Simon Josefsson  <jas@extundo.com>
68473
68474         * lib/sysexit_.h: New file.
68475
68476 2003-06-11  Derek Price  <derek@ximbiot.com>
68477
68478         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
68479         necessary.
68480
68481 2003-06-11  Bruno Haible  <bruno@clisp.org>
68482
68483         * m4/sysexits.m4: New file.
68484
68485 2003-06-10  Simon Josefsson  <jas@extundo.com>
68486
68487         * lib/argp.h: New file, from glibc.
68488         * lib/argp-ba.c: New file, from glibc.
68489         * lib/argp-eexst.c: New file, from glibc.
68490         * lib/argp-fmtstream.c: New file, from glibc.
68491         * lib/argp-fmtstream.h: New file, from glibc.
68492         * lib/argp-fs-xinl.c: New file, from glibc.
68493         * lib/argp-help.c: New file, from glibc.
68494         * lib/argp-namefrob.h: New file, from glibc.
68495         * lib/argp-parse.c: New file, from glibc.
68496         * lib/argp-pv.c: New file, from glibc.
68497         * lib/argp-pvh.c: New file, from glibc.
68498         * lib/argp-xinl.c: New file, from glibc.
68499
68500 2003-06-10  Simon Josefsson  <jas@extundo.com>
68501
68502         * modules/strchrnul: New file.
68503
68504 2003-06-10  Simon Josefsson  <jas@extundo.com>
68505
68506         * modules/argp: New file.
68507
68508 2003-06-10  Simon Josefsson  <jas@extundo.com>
68509
68510         * m4/strchrnul.m4: New file.
68511
68512 2003-06-10  Simon Josefsson  <jas@extundo.com>
68513
68514         * lib/strchrnul.h: New file.
68515         * lib/strchrnul.c: New file.
68516
68517 2003-06-10  Bruno Haible  <bruno@clisp.org>
68518
68519         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
68520
68521 2003-06-07  Karl Berry  <karl@gnu.org>
68522
68523         * config/config.{guess,sub}: update from prep.
68524
68525 2003-06-07  Jim Meyering  <jim@meyering.net>
68526
68527         * modules/strtod: Use $(...) notation, not @...@ for
68528         AC_REPLACE'd variables.
68529         * modules/localcharset: Likewise.
68530
68531 2003-06-07  Jim Meyering  <jim@meyering.net>
68532
68533         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
68534         in place of my name in the copyright comment.
68535         Remove definition and uses of __P.
68536
68537         From coreutils.
68538         * lib/stat.c: Don't declare xmalloc explicitly.
68539         Instead, include "xalloc.h".
68540         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
68541         xrealloc, and xcalloc return values.
68542         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
68543         Improve comment.
68544         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
68545
68546 2003-06-07  Bruno Haible  <bruno@clisp.org>
68547
68548         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
68549         avoid AC_CONFIG_LINKS.
68550         * modules/fnmatch (Makefile.am): Use explicit creation rule for
68551         fnmatch.h, to avoid AC_CONFIG_LINKS.
68552         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
68553
68554 2003-06-07  Bruno Haible  <bruno@clisp.org>
68555
68556         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
68557         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
68558         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68559         directory.
68560         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
68561         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68562         directory.
68563
68564 2003-06-06  Jim Meyering  <jim@meyering.net>
68565
68566         Merge from coreutils.
68567         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
68568         Consolidate declarations and initializations of *_base* locals.
68569
68570         Merge from coreutils.
68571         This avoids a core dump on systems without GNU putenv,
68572         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
68573         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
68574         (unsetenv): New static function, from GNU libc.
68575         (rpl_putenv): Use it.
68576
68577         * lib/modechange.c: Remove trailing blanks.
68578
68579         Merge from coreutils.
68580         * lib/fsusage.c: Remove declaration of statfs.
68581         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
68582
68583         * lib/posixtm.c: Include <stdbool.h> unconditionally.
68584
68585 2003-06-06  Jim Meyering  <jim@meyering.net>
68586
68587         * lib/stdbool_.h: Renamed from stdbool.h.in.
68588
68589 2003-06-06  Jim Meyering  <jim@meyering.net>
68590             Bruno Haible  <bruno@clisp.org>
68591
68592         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
68593         Adjust Makefile.am snippet not to redirect directly to target.
68594         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
68595
68596 2003-06-05  Paul Eggert  <eggert@twinsun.com>
68597
68598         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
68599         mismatch, look in future quarters as well as past.  This fixes a
68600         bug when processing fall-backwards gaps immediately after a long
68601         period of daylight-saving time.
68602
68603         * lib/mktime.c: Assume freestanding C89 or better.
68604         (HAVE_LIMITS_H): Remove.  Assume it's 1.
68605         (__P): Remove; not used.
68606         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
68607         (mktime, not_equal_tm, print_tm, check_result,
68608         main): Use prototypes.  Use const * where appropriate.
68609         (main): Fix typo in testing code that uncovered by above changes.
68610         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
68611
68612 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68613
68614         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
68615         locale.h, localeconv.  This merges changes from coreutils.
68616
68617         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
68618         It can be removed after the next Autoconf is released.
68619         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
68620         needed.
68621
68622 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68623
68624         * lib/mktime.c: Fix Debian bug 177940
68625         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
68626         (localtime_offset): Now long int, not time_t, because we want it
68627         to be guaranteed to be signed.  All uses changed.
68628         (__mktime_internal): If overflow would occur when adding offset,
68629         don't add it.
68630
68631         Merge 'human' changes from coreutils.  Rewrite to support
68632         locale-specific notations like thousands separators.
68633         * lib/human.c: Simplify authorship notice.
68634         Include human.h immediately after config.h.
68635         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
68636         <limits.h>: Do not include, since human.h does.
68637         (SIZE_MAX, UINTMAX_MAX): New macros.
68638         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
68639         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
68640         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
68641         (power_letter): Renamed from suffixes.
68642         (generate_suffix_backwards): Remove.
68643         (adjust_value): Now takes int style (because of human.h changes)
68644         and long double value (for greater precision on some platforms).
68645         (group_number): New function.
68646         (human_readable): Use it.  Use integer options, not enum.
68647         Put the options before the sizes in the arg list.
68648         Support all the new options.
68649         The old human_readable function has been removed;
68650         use inttostr.h instead.
68651         (human_readable, default_block_size, humblock):
68652         Use uintmax_t, not int, for block sizes.
68653         (human_readable_inexact, block_size_types): Remove.
68654         (block_size_opts): New constant.
68655         (human_options): Renamed from human_block_size, with new signature
68656         that allows block sizes up to UINTMAX_MAX.  All callers changed.
68657         * lib/human.h: Add copyright and authorship notice.
68658         Include <limits.h> and <stdbool.h> unconditionally.
68659         (PARAMS): Remove.  All uses removed.
68660         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
68661         (enum human_inexact_style): Remove tag; now a nameless enum.
68662         (human_floor, human_ceiling, human_round_to_even): Now have
68663         values 2, 0, 1 rather than -1, 1, 0.
68664         (human_group_digits, human_suppress_point_zero, human_autoscale,
68665         human_base_1024, human_SI, human_B): New constants.
68666         (human_readable_inexact, human_block_size): Remove.
68667         (human_readable): Size args are now uintmax_t, not int.
68668         (human_options): New decl.
68669
68670         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
68671         unnecessary now that we assume C89 or better.  This change
68672         imported from coreutils.
68673
68674         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68675         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
68676         in the 2003-05-30 sync from glibc.
68677
68678         .h files should stand alone, but we shouldn't include <sys/types.h>
68679         if we can get away with just <stddef.h>.
68680
68681         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
68682         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
68683         rather than <sys/types.h>, as we merely need size_t.
68684         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
68685         to get size_t.
68686         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
68687         Include <stdio.h>, to get FILE.
68688         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
68689         memcasecmp.h has included <stddef.h> and all we need is size_t.
68690         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
68691         our interface, instead of including <sys/types.h>
68692
68693 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68694
68695         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
68696         now, as glibc mktime is buggy on non-glibc systems.
68697
68698 2003-06-03  Karl Berry  <karl@gnu.org>
68699
68700         * config/config.sub: update from prep.
68701
68702 2003-06-02  Paul Eggert  <eggert@twinsun.com>
68703
68704         [from coreutils]
68705         Fix some minor time-related bugs with POSIX time arguments.
68706         Some valid time stamps were being rejected (notably -1, and
68707         time stamps before 1900 on 64-bit hosts).  And some invalid
68708         time stamps were being accepted, e.g. September 31.
68709
68710         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
68711         that we can return (time_t) -1 successfully.
68712         * lib/posixtm.c: Likewise.
68713         [HAVE_STDBOOL_H]: Include <stdbool.h>.
68714         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
68715         (t): Remove static var.
68716         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
68717         of static var.  All uses changed.
68718         (year): Do not reject years before 1900; they can occur with
68719         64-bit time_t.
68720         (posix_time_parse): Do not check for out-of-range components;
68721         that is now the caller's responsibility, since our checks were
68722         only approximations.
68723         (posixtime): Use mktime to check for out-of-range components,
68724         since it knows them exactly.
68725         If mktime returns (time_t) -1, check whether an error actually occurred
68726         by invoking localtime on -1.
68727         (main) [TEST_POSIXTIME]: Check for input data errors, and report
68728         posixtime failures better.
68729         Improve the test data (in comments only).
68730
68731 2003-06-02  Karl Berry  <karl@gnu.org>
68732
68733         * config/mkinstalldirs (version): new variable.
68734         (--version): new option.
68735         (usage): improve message.
68736
68737 2003-05-30  Karl Berry  <karl@gnu.org>
68738
68739         * lib/mktime.c: update from libc.
68740
68741 2003-05-30  Bruno Haible  <bruno@clisp.org>
68742
68743         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
68744         * config/config.rpath: Upgrade to gettext-0.12.1.
68745
68746 2003-05-30  Bruno Haible  <bruno@clisp.org>
68747
68748         * m4/gettext.m4: Upgrade to gettext-0.12.1.
68749         * m4/nls.m4: New file, from gettext-0.12.1.
68750         * m4/po.m4: New file, from gettext-0.12.1.
68751         * m4/progtest.m4: Upgrade to gettext-0.12.1.
68752
68753 2003-05-30  Bruno Haible  <bruno@clisp.org>
68754
68755         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
68756         * lib/localcharset.h: Likewise.
68757         * lib/localcharset.c: Likewise.
68758
68759 2003-05-29  Karl Berry  <karl@gnu.org>
68760
68761         * config/config.rpath: update from gettext.
68762
68763 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68764
68765         Assume the headers required for C89 freestanding compilers.
68766         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
68767         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
68768         * m4/human.m4 (gl_HUMAN): Likewise.
68769         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
68770         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
68771         * m4/userspec.m4 (gl_USERSPEC): Likewise.
68772         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
68773         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68774         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
68775
68776 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68777
68778         Assume the headers required for C89 freestanding compilers.
68779         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
68780         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
68781         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
68782         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
68783         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
68784         define, since <limits.h> is guaranteed to do that.
68785         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
68786         * lib/exclude.c: Include <stdbool.h> unconditionally.
68787         * lib/tempname.c: Include <stddef.h> unconditionally.
68788         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
68789         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
68790         <stddef.h> does that.
68791         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
68792         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
68793         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
68794         needed.
68795         * lib/xstrtol.c: Likewise.
68796         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
68797         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
68798
68799         * lib/addext.c (addext): Use assignment rather than cast, to avoid
68800         warnings on some platforms.
68801
68802         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68803         arbitrarily.
68804
68805 2003-05-26  Jim Meyering  <jim@meyering.net>
68806
68807         Merge in a change from coreutils:
68808         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
68809         that is guaranteed to be `no'.  Use `no_such_member' to indicate
68810         that condition, rather than `-1' which is slightly misleading.
68811         Change the name of the cache variable to have the gl_ prefix.
68812         Prompted by a patch from Richard Dawe for DJGPP.
68813
68814 2003-05-24  Karl Berry  <karl@gnu.org>
68815
68816         * config/config.guess: update from prep.
68817
68818 2003-05-22  Karl Berry  <karl@gnu.org>
68819
68820         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
68821
68822 2003-05-20  Karl Berry  <karl@gnu.org>
68823
68824         * config/config.guess: update from prep.
68825
68826 2003-05-18  Karl Berry  <karl@gnu.org>
68827
68828         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
68829         might actually be set by the user.
68830
68831         * config/depcomp, install-sh, mdate-sh: update from automake.
68832
68833 2003-05-17  Bruno Haible  <bruno@clisp.org>
68834
68835         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
68836         invalid expansion for AC_EGREP_CPP.
68837         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
68838         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
68839         Suggested by Akim Demaille <akim@epita.fr> in
68840         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
68841
68842 2003-05-12  Jim Meyering  <jim@meyering.net>
68843
68844         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
68845         the space-padded-by-default conversion specifiers, %e, %k, %l.
68846
68847 2003-05-12  Bruno Haible  <bruno@clisp.org>
68848
68849         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
68850         the string is longer than 4 KB.
68851
68852 2003-05-11  Karl Berry  <karl@gnu.org>
68853
68854         * config/config.{guess,sub}: update from prep.
68855
68856 2003-05-09  Bruno Haible  <bruno@clisp.org>
68857
68858         * modules/error: Add m4/strerror_r.m4 to file list.
68859
68860 2003-05-03  Bruno Haible  <bruno@clisp.org>
68861
68862         Upgrade to Unicode-4.0.
68863         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
68864         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
68865         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
68866         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
68867         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
68868         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
68869         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
68870         Change width of U+E0100..U+E01EF from 1 to 0.
68871
68872 2003-04-25  Jim Meyering  <jim@meyering.net>
68873
68874         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
68875         of type size_t, not int.
68876
68877 2003-04-25  Bruno Haible  <bruno@clisp.org>
68878
68879         * lib/copy-file.c: Include <stddef.h>, for size_t.
68880
68881 2003-04-21  Paul Eggert  <eggert@twinsun.com>
68882
68883         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
68884         code which expansion is under static control.  Patch imported from
68885         Akim Demaille's patch to Bison; see
68886         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
68887
68888 2003-04-14  Bruno Haible  <bruno@clisp.org>
68889
68890         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
68891
68892 2003-04-11  Jim Meyering  <jim@meyering.net>
68893
68894         Merge changes from Coreutils.
68895
68896         2003-03-22  Jim Meyering  <jim@meyering.net>
68897
68898         * lib/strftime.c (widen): Cast alloca return value to proper type.
68899
68900         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
68901
68902         From GNU libc.
68903         * lib/strftime.c (my_strftime): Handle very large width
68904         specifications for numeric values correctly.  Improve checks for
68905         overflow.
68906
68907         2003-01-19  Jim Meyering  <jim@meyering.net>
68908
68909         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
68910         definitions.
68911         (nl_get_alt_digit) [! defined my_strftime]: Define.
68912         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
68913         _nl_get_alt_digit and _nl_get_walt_digit.
68914
68915         * lib/strftime.c (my_strftime): Merge in locale-related changes from
68916         libc. These changes have no effect outside of _LIBC.
68917
68918 2003-04-10  Bruno Haible  <bruno@clisp.org>
68919
68920         * modules/findprog: New file.
68921         * MODULES.html.sh (func_all_modules): Add it.
68922
68923 2003-04-10  Bruno Haible  <bruno@clisp.org>
68924
68925         * m4/findprog.m4: New file.
68926         * m4/eaccess.m4: New file.
68927
68928 2003-04-10  Bruno Haible  <bruno@clisp.org>
68929
68930         * lib/findprog.h: New file, from GNU gettext.
68931         * lib/findprog.c: New file, from GNU gettext.
68932
68933 2003-04-05  Jim Meyering  <jim@meyering.net>
68934
68935         Merge changes from Coreutils.
68936
68937         * lib/exclude.h (PARAMS): Remove definition and uses.
68938         * lib/exclude.c: Remove uses of `PARAMS'.
68939
68940         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
68941         Add test-cases for DOS filenames. Declare program_name.
68942         (main): Set up program_name.  Patch by Rich Dawe.
68943
68944         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68945         error from mntctl.
68946         Use mntctl's return value to drive the entry-processing loop, since
68947         we can't rely on the value of the vmt_length member in the last
68948         entry.  On some systems doing so could result in exhausting
68949         virtual memory.  Based in part on a patch from Mike Jetzer.
68950
68951 2003-04-04  Bruno Haible  <bruno@clisp.org>
68952
68953         * modules/linebreak: New file.
68954         * MODULES.html.sh (func_all_modules): Add it.
68955
68956 2003-04-04  Bruno Haible  <bruno@clisp.org>
68957
68958         * m4/linebreak.m4: New file.
68959
68960 2003-04-04  Bruno Haible  <bruno@clisp.org>
68961
68962         * lib/linebreak.h: New file, from GNU gettext.
68963         * lib/linebreak.c: New file, from GNU gettext with slight
68964         modifications.
68965         * lib/lbrkprop.h: New file, from GNU gettext.
68966
68967 2003-04-03  Bruno Haible  <bruno@clisp.org>
68968
68969         * modules/utf8-ucs4: New file.
68970         * modules/utf16-ucs4: New file.
68971         * modules/ucs4-utf8: New file.
68972         * modules/ucs4-utf16: New file.
68973         * MODULES.html.sh (func_all_modules): Add them.
68974
68975 2003-04-03  Bruno Haible  <bruno@clisp.org>
68976
68977         * m4/utf-ucs4.m4: New file.
68978         * m4/ucs4-utf.m4: New file.
68979
68980 2003-04-03  Bruno Haible  <bruno@clisp.org>
68981
68982         * lib/utf8-ucs4.h: New file, from GNU gettext.
68983         * lib/utf16-ucs4.h: New file, from GNU gettext.
68984         * lib/ucs4-utf8.h: New file, from GNU gettext.
68985         * lib/ucs4-utf16.h: New file, from GNU gettext.
68986
68987 2003-04-02  Bruno Haible  <bruno@clisp.org>
68988
68989         * modules/binary-io: New file.
68990         * MODULES.html.sh (func_all_modules): Add it.
68991
68992 2003-04-02  Bruno Haible  <bruno@clisp.org>
68993
68994         * lib/binary-io.h: New file, from GNU gettext.
68995
68996 2003-04-01  Bruno Haible  <bruno@clisp.org>
68997
68998         * modules/pathname: New file.
68999         * MODULES.html.sh (func_all_modules): Add it.
69000
69001 2003-04-01  Bruno Haible  <bruno@clisp.org>
69002
69003         * lib/pathname.h: New file, from GNU gettext.
69004         * lib/concatpath.c: New file, from GNU gettext.
69005
69006 2003-03-30  Bruno Haible  <bruno@clisp.org>
69007
69008         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
69009
69010 2003-03-30  Bruno Haible  <bruno@clisp.org>
69011
69012         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
69013         function chown() doesn't exist.
69014
69015 2003-03-28  Bruno Haible  <bruno@clisp.org>
69016
69017         * modules/copy-file: New file.
69018         * MODULES.html.sh (func_all_modules): Add it.
69019
69020 2003-03-28  Bruno Haible  <bruno@clisp.org>
69021
69022         * m4/copy-file.m4: New file.
69023
69024 2003-03-28  Bruno Haible  <bruno@clisp.org>
69025
69026         * lib/copy-file.h: New file, from GNU gettext.
69027         * lib/copy-file.c: New file, from GNU gettext.
69028
69029 2003-03-18  Jim Meyering  <jim@meyering.net>
69030
69031         * lib/quote.c (quote_n): Fix typo in comment.
69032
69033 2003-03-18  Bruno Haible  <bruno@clisp.org>
69034
69035         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
69036         checking.
69037         * m4/onceonly_2_57.m4: Likewise.
69038
69039 2003-03-17  Bruno Haible  <bruno@clisp.org>
69040
69041         * m4/onceonly.m4: Require autoconf 2.54 or newer.
69042         (m4_quote): Remove macro.
69043         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
69044
69045 2003-03-14  Jim Meyering  <jim@meyering.net>
69046
69047         Merge changes from Coreutils.
69048         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
69049         to be const, in order to avoid warnings.
69050         (obstack_room): Likewise.
69051         (obstack_empty_p): Likewise.
69052
69053 2003-03-14  Bruno Haible  <bruno@clisp.org>
69054
69055         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
69056         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
69057
69058 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69059
69060         Merge changes from Bison.
69061         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
69062         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
69063         when compiling Bison 1.875's `bitset bset = obstack_alloc
69064         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
69065         * lib/hash.c: Include <stdbool.h> unconditionally.
69066
69067 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69068
69069         * m4/onceonly.m4 (m4_quote): New macro.
69070         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
69071         Quote AC_FOREACH variable-expansions properly.
69072
69073 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69074
69075         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
69076
69077 2003-03-09  Paul Eggert  <eggert@twinsun.com>
69078
69079         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
69080         Reported by Bruce Becker; see:
69081         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
69082
69083 2003-03-03  Paul Eggert  <eggert@twinsun.com>
69084             Bruno Haible  <bruno@clisp.org>
69085
69086         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
69087         Reported by John Hughes, see
69088         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
69089
69090 2003-02-20  Bruno Haible  <bruno@clisp.org>
69091
69092         * MODULES.html.sh (func_all_modules): Add poll.
69093
69094 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69095
69096         * modules/poll: New file.
69097
69098 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69099
69100         * lib/poll_.h: New file.
69101         * lib/poll.c: New file.
69102
69103 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69104
69105         * m4/poll.m4: New file.
69106
69107 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69108
69109         * modules/mathl: New file.
69110
69111 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69112
69113         * lib/mathl.h: New file.
69114         * lib/acosl.c: New file.
69115         * lib/asinl.c: New file.
69116         * lib/atanl.c: New file.
69117         * lib/ceill.c: New file.
69118         * lib/cosl.c: New file.
69119         * lib/expl.c: New file.
69120         * lib/floorl.c: New file.
69121         * lib/frexpl.c: New file.
69122         * lib/ldexpl.c: New file.
69123         * lib/logl.c: New file.
69124         * lib/sincosl.c: New file.
69125         * lib/sinl.c: New file.
69126         * lib/sqrtl.c: New file.
69127         * lib/tanl.c: New file.
69128         * lib/trigl.c: New file.
69129         * lib/trigl.h: New file.
69130
69131 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69132
69133         * m4/mathl.m4: New file.
69134
69135 2003-02-18  Bruno Haible  <bruno@clisp.org>
69136
69137         * MODULES.html.sh (func_all_modules): Add mathl.
69138
69139 2003-02-17  Bruno Haible  <bruno@clisp.org>
69140
69141         * modules/mkdtemp: New module.
69142         * MODULES.html.sh (func_all_modules): Add it.
69143
69144 2003-02-17  Bruno Haible  <bruno@clisp.org>
69145
69146         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
69147
69148 2003-02-17  Bruno Haible  <bruno@clisp.org>
69149
69150         * lib/mkdtemp.h: New file, from GNU gettext.
69151         * lib/mkdtemp.c: New file, from GNU gettext.
69152
69153 2003-02-02  Jim Meyering  <jim@meyering.net>
69154
69155         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
69156         e.g. glibc-2.2.93.
69157
69158 2003-01-31  Bruno Haible  <bruno@clisp.org>
69159
69160         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
69161         'rpl_rename'.
69162         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
69163         'rpl_strnlen'.
69164         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
69165         'rpl_strtod'.
69166         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
69167         'rpl_utime'.
69168
69169 2003-01-31  Bruno Haible  <bruno@clisp.org>
69170
69171         * lib/rename.c: #undef rename before defining rpl_rename.
69172         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
69173
69174 2003-01-30  Bruno Haible  <bruno@clisp.org>
69175
69176         * modules/vasnprintf, modules/vasprintf: New modules.
69177         * MODULES.html.sh (func_all_modules): Add them.
69178
69179 2003-01-30  Bruno Haible  <bruno@clisp.org>
69180
69181         * m4/signed.m4: New file, from GNU gettext.
69182         * m4/longdouble.m4: New file, from GNU gettext.
69183         * m4/wchar_t.m4: New file, from GNU gettext.
69184         * m4/wint_t.m4: New file, from GNU gettext.
69185         * m4/vasnprintf.m4: New file.
69186         * m4/vasprintf.m4: New file.
69187
69188 2003-01-30  Bruno Haible  <bruno@clisp.org>
69189
69190         * lib/printf-args.h: New file, from GNU gettext.
69191         * lib/printf-args.c: New file, from GNU gettext.
69192         * lib/printf-parse.h: New file, from GNU gettext.
69193         * lib/printf-parse.c: New file, from GNU gettext.
69194         * lib/vasnprintf.h: New file, from GNU gettext.
69195         * lib/vasnprintf.c: New file, from GNU gettext.
69196         * lib/asnprintf.c: New file, from GNU gettext.
69197         * lib/vasprintf.h: New file, from GNU gettext with modifications.
69198         * lib/vasprintf.c: New file, from GNU gettext.
69199         * lib/asprintf.c: New file, from GNU gettext.
69200
69201 2003-01-29  Bruno Haible  <bruno@clisp.org>
69202
69203         * modules/stpncpy: New module.
69204         * MODULES.html.sh (func_all_modules): Add it.
69205
69206 2003-01-29  Bruno Haible  <bruno@clisp.org>
69207
69208         * m4/stpncpy.m4: New file.
69209
69210 2003-01-29  Bruno Haible  <bruno@clisp.org>
69211
69212         * lib/stpncpy.h: New file, from GNU gettext with modifications.
69213         * lib/stpncpy.c: New file, from GNU gettext with modifications.
69214
69215 2003-01-28  Bruno Haible  <bruno@clisp.org>
69216
69217         * modules/c-ctype: New module.
69218         * MODULES.html.sh (func_all_modules): Add it.
69219
69220 2003-01-28  Bruno Haible  <bruno@clisp.org>
69221
69222         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
69223         Paul Eggert.
69224         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
69225         Paul Eggert.
69226
69227 2003-01-27  Bruno Haible  <bruno@clisp.org>
69228
69229         * modules/xsetenv: New module.
69230         * MODULES.html.sh (func_all_modules): Add it.
69231
69232 2003-01-27  Bruno Haible  <bruno@clisp.org>
69233
69234         * lib/xsetenv.h: New file, from GNU gettext.
69235         * lib/xsetenv.c: New file, from GNU gettext.
69236
69237 2003-01-23  Jim Meyering  <jim@meyering.net>
69238
69239         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
69240         from working on systems without dirfd (at least Irix and OSF1/Tru64).
69241
69242 2003-01-23  Bruno Haible  <bruno@clisp.org>
69243
69244         * modules/minmax: New module.
69245         * MODULES.html.sh (func_all_modules): Add it.
69246
69247 2003-01-23  Bruno Haible  <bruno@clisp.org>
69248
69249         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
69250         Eggert.
69251
69252 2003-01-22  Bruno Haible  <bruno@clisp.org>
69253
69254         * modules/exit: New module.
69255         * MODULES.html.sh (func_all_modules): Add it.
69256
69257 2003-01-22  Bruno Haible  <bruno@clisp.org>
69258
69259         * lib/exit.h: New file, from GNU gettext.
69260
69261 2003-01-19  Bruno Haible  <bruno@clisp.org>
69262
69263         * gnulib-tool: Recognize option --extract-maintainer.
69264         (func_get_maintainer): New function.
69265         * modules/*: Add Maintainer entry.
69266
69267 2003-01-16  Jim Meyering  <jim@meyering.net>
69268
69269         * m4/regex.m4: The `regex' struct is both input and output.
69270         Initialize it before each use.  Patch by Tim Waugh.
69271
69272 2003-01-16  Bruno Haible  <bruno@clisp.org>
69273
69274         * MODULES.html.sh: Add a table of contents. Add the module name as
69275         leftmost column. Add hyperlinks.
69276
69277 2003-01-15  Bruno Haible  <bruno@clisp.org>
69278
69279         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
69280
69281 2003-01-15  Bruno Haible  <bruno@clisp.org>
69282
69283         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
69284         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
69285         suffix.
69286
69287 2003-01-15  Bruno Haible  <bruno@clisp.org>
69288
69289         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
69290
69291 2003-01-15  Bruno Haible  <bruno@clisp.org>
69292
69293         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
69294         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
69295
69296 2003-01-14  Jim Meyering  <jim@meyering.net>
69297
69298         * lib/same.c (same_name): Tweak a comment.
69299
69300 2003-01-14  Bruno Haible  <bruno@clisp.org>
69301
69302         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
69303         when a string comparison is sufficient.
69304
69305 2003-01-14  Bruno Haible  <bruno@clisp.org>
69306
69307         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
69308         'unsigned int'.
69309
69310 2003-01-14  Bruno Haible  <bruno@clisp.org>
69311
69312         * lib/hash-pjw.c: Add comment about low quality of this function.
69313
69314 2003-01-13  Bruno Haible  <bruno@clisp.org>
69315
69316         * modules/stpcpy: Distribute lib/stpcpy.h.
69317         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
69318
69319 2003-01-13  Bruno Haible  <bruno@clisp.org>
69320
69321         * modules/*: Add a description.
69322         * modules/strpbrk: Fix Makefile.am snippet.
69323         * modules/strtoimax: Fix dependencies.
69324         * modules/strtoumax: Likewise.
69325
69326 2003-01-13  Bruno Haible  <bruno@clisp.org>
69327
69328         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
69329         * modules/alloca (Makefile.am): All object files depend on alloca.h.
69330         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
69331
69332 2003-01-13  Bruno Haible  <bruno@clisp.org>
69333
69334         * gnulib-tool (func_create_testdir): Store config/* files in the main
69335         directory.
69336         * config.rpath: Move to ...
69337         * config/config.rpath: ... here.
69338         * modules/gettext: Contains config/config.rpath, not config.rpath.
69339         * modules/iconv: Likewise.
69340
69341 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69342
69343         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69344         to avoid collisions with libcurses and libreadline.
69345
69346         * m4/getstr.m4: Remove.
69347         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
69348
69349 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69350
69351         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69352         to avoid collisions with libcurses and libreadline.
69353
69354         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
69355         * lib/getstr.h, getstr.c: Remove.
69356         * lib/getline.c: Include "getline.h", to check interface.
69357         Move body of old getstr.c here: this defines MIN_CHUNK and
69358         declares getdelim2, which is renamed from getstr.
69359         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
69360
69361         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
69362         All uses changed.
69363         * lib/linebuffer.h: Likewise.
69364         (readline): Remove backward-compatibility macro.
69365
69366 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69367
69368         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69369         to avoid collisions with libcurses and libreadline.
69370         * getstr: Remove.
69371         * MODULES.html.sh: Remove getstr.
69372         * modules/getline: Depend on unlocked-io, not getstr.
69373
69374 2003-01-12  Jim Meyering  <jim@meyering.net>
69375
69376         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
69377
69378 2003-01-10  Bruno Haible  <bruno@clisp.org>
69379
69380         * modules/alloca: Change Makefile.am requirements. Simplify Include
69381         requirements. Add lib/alloca_.h to file list.
69382
69383 2003-01-10  Bruno Haible  <bruno@clisp.org>
69384
69385         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
69386
69387 2003-01-10  Bruno Haible  <bruno@clisp.org>
69388
69389         * lib/alloca_.h: New file.
69390         * lib/getdate.y: Unconditionally include alloca.h.
69391         * lib/makepath.c: Likewise.
69392         * lib/setenv.c: Likewise.
69393         * lib/userspec.c: Likewise.
69394
69395 2003-01-09  Karl Berry  <karl@gnu.org>
69396
69397         * MODULES.html.sh: include `dirname $0` in PATH, to find
69398         gnulib-tool.
69399
69400 2003-01-09  Bruno Haible  <bruno@clisp.org>
69401
69402         * modules/stdbool: Change configure.ac, Makefile.am requirements.
69403         Simplify Include requirements. Add lib/stdbool.h.in to file list.
69404
69405 2003-01-09  Bruno Haible  <bruno@clisp.org>
69406
69407         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
69408
69409 2003-01-09  Bruno Haible  <bruno@clisp.org>
69410
69411         * lib/stdbool.h.in: New file.
69412
69413 2003-01-09  Bruno Haible  <bruno@clisp.org>
69414
69415         * gnulib-tool (func_all_modules): Ignore files ending in ~.
69416         * MODULES.html.sh: Likewise.
69417
69418 2003-01-08  Jim Meyering  <jim@meyering.net>
69419
69420         * lib/full-write.c: Undefine and define-away `const' after inclusion
69421         of errno.h, not before.  Suggestion from Bruno Haible.
69422
69423 2003-01-08  Bruno Haible  <bruno@clisp.org>
69424
69425         * modules/full-read: Depend on full-write.
69426
69427 2003-01-08  Bruno Haible  <bruno@clisp.org>
69428
69429         * lib/safe-read.c: Include specification header first, to ensure its
69430         selfcontainedness.
69431         * lib/full-write.c: Likewise.
69432
69433 2003-01-07  Jim Meyering  <jim@meyering.net>
69434
69435         * lib/full-write.c: Rework so that it may serve to define full_read,
69436         too.
69437         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
69438
69439 2003-01-07  Bruno Haible  <bruno@clisp.org>
69440
69441         * lib/strtoimax.c: Include <stdint.h> as an alternative to
69442         <inttypes.h>.
69443         * lib/xstrtol.h: Likewise.
69444         * lib/xstrtoimax.c: Likewise.
69445         * lib/xstrtoumax.c: Likewise.
69446         * lib/human.h: Likewise.
69447
69448         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
69449         on systems that have <inttypes.h> but not <stdint.h>.
69450
69451 2003-01-07  Bruno Haible  <bruno@clisp.org>
69452
69453         * MODULES.html.sh: Add copyright notice.
69454         (missed_files): Omit CVS directory entries.
69455         (func_module): Make it work with sed-3.02.
69456         * MODULES.txt: Remove file.
69457
69458 2003-01-06  Jim Meyering  <jim@meyering.net>
69459
69460         * lib/version-etc.c: Update year in translatable copyright string.
69461
69462 2003-01-03  Karl Berry  <karl@gnu.org>
69463
69464         * config/config.{guess,sub}: update from prep.
69465
69466 2003-01-02  Karl Berry  <karl@gnu.org>
69467
69468         * doc/COPYING.DOC: belatedly updated to 1.2.
69469
69470 2003-01-01  Karl Berry  <karl@gnu.org>
69471
69472         * gnulib-tool (func_verify_module): report module name $module in
69473         error message, not $1.
69474         * gnulib-tool (create-testdir): don't complain if destdir couldn't
69475         be created, only if it doesn't exist.
69476         * gnulib-tool (last_checkin_date): don't expand the $Date here.
69477
69478 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69479
69480         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
69481
69482 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69483
69484         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
69485         memcmp if strcoll doesn't work.
69486
69487 2002-12-31  Bruno Haible  <bruno@clisp.org>
69488
69489         * lib/utime.c (utime_null): No need to call ftruncate if the file was
69490         nonempty.
69491
69492 2002-12-31  Bruno Haible  <bruno@clisp.org>
69493
69494         * lib/memcoll.c (STRCOLL): New macro.
69495         (memcoll): Use it.
69496
69497 2002-12-31  Bruno Haible  <bruno@clisp.org>
69498
69499         * lib/localcharset.h: New file.
69500         * lib/localcharset.c: Include it.
69501         * lib/unicodeio.c: Likewise.
69502
69503 2002-12-31  Bruno Haible  <bruno@clisp.org>
69504
69505         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
69506         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
69507
69508 2002-12-31  Bruno Haible  <bruno@clisp.org>
69509
69510         * lib/getline.h: Include <stddef.h>, for size_t.
69511
69512         * lib/unicodeio.h: Include <stddef.h>, for size_t.
69513         * lib/unicodeio.c: Don't include <stddef.h>.
69514
69515 2002-12-31  Bruno Haible  <bruno@clisp.org>
69516
69517         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
69518         HAVE_TM_ZONE.
69519
69520 2002-12-24  Karl Berry  <karl@gnu.org>
69521
69522         * config/config.guess: update from prep.
69523
69524 2002-12-24  Bruno Haible  <bruno@clisp.org>
69525
69526         General infrasructure.
69527         * m4/README: Rewritten.
69528         * m4/onceonly.m4: New file.
69529         * m4/onceonly_2_57.m4: New file.
69530
69531         Module atexit.
69532         * m4/atexit.m4: New file.
69533
69534         Module strtod.
69535         * m4/strtod.m4: New file.
69536
69537         Module strtol.
69538         * m4/strtol.m4: New file.
69539
69540         Module strtoul.
69541         * m4/strtoul.m4: New file.
69542
69543         Module memchr.
69544         * m4/memchr.m4: New file.
69545
69546         Module memcmp.
69547         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
69548         (jm_FUNC_MEMCMP): Invoke it.
69549
69550         Module memcpy.
69551         * m4/memcpy.m4: New file.
69552
69553         Module memmove.
69554         * m4/memmove.m4: New file.
69555
69556         Module memset.
69557         * m4/memset.m4: New file.
69558
69559         Module strcspn.
69560         * m4/strcspn.m4: New file.
69561
69562         Module strpbrk.
69563         * m4/strpbrk.m4: New file.
69564
69565         Module strstr.
69566         * m4/strstr.m4: New file.
69567
69568         Module strerror.
69569         * m4/strerror.m4: New file.
69570
69571         Module mktime.
69572         * m4/mktime.m4: Renamed from jm-mktime.m4.
69573         (gl_PREREQ_MKTIME): New macro.
69574         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
69575
69576         Module malloc.
69577         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
69578         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
69579         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
69580
69581         Module realloc.
69582         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
69583         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
69584         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
69585
69586         Module strftime.
69587         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
69588         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
69589         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
69590         gl_TM_GMTOFF.
69591         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
69592
69593         Module xalloc.
69594         * m4/xalloc.m4: New file.
69595
69596         Module alloca.
69597         * m4/alloca.m4: New file.
69598
69599         Module putenv.
69600         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
69601         (jm_FUNC_PUTENV): Invoke it.
69602
69603         Module setenv.
69604         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
69605         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
69606         when invoked twice.
69607         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
69608         gt_FUNC_SETENV.
69609
69610         Module memrchr.
69611         * m4/memrchr.m4: New file.
69612
69613         Module stpcpy.
69614         * m4/stpcpy.m4: New file.
69615
69616         Module strcase.
69617         * m4/strcase.m4: New file.
69618
69619         Module strdup.
69620         * m4/strdup.m4: New file.
69621
69622         Module strnlen.
69623         * m4/strnlen.m4: New file.
69624
69625         Module strndup.
69626         * m4/strndup.m4: New file.
69627
69628         Module xstrtod.
69629         * m4/xstrtod.m4: New file.
69630
69631         Module xstrtol.
69632         * m4/xstrtol.m4: New file.
69633
69634         Module getdate.
69635         * m4/getdate.m4: New file.
69636
69637         Module unlocked-io.
69638         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
69639         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
69640         * m4/jm-glibc-io.m4n: Remove file.
69641
69642         Module long-options.
69643         * m4/long-options.m4: New file.
69644
69645         Module md5.
69646         * m4/md5.m4: New file.
69647
69648         Module sha.
69649         * m4/sha.m4: New file.
69650
69651         Module getstr.
69652         * m4/getstr.m4: New file.
69653
69654         Module getline.
69655         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
69656         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
69657         <sys/types.h>, for size_t. Use the function name gnu_getline, not
69658         simply getline. Infoke gl_PREREQ_GETLINE.
69659
69660         Module obstack.
69661         * m4/obstack.m4: New file.
69662
69663         Module hash.
69664         * m4/hash.m4: New file.
69665
69666         Module readtokens.
69667         * m4/readtokens.m4: New file.
69668
69669         Module strverscmp.
69670         * m4/strverscmp.m4: New file.
69671
69672         Module stdbool.
69673         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
69674         OSF/1.
69675
69676         Module strtoll.
69677         * m4/strtoll.m4: New file.
69678
69679         Module strtoull.
69680         * m4/strtoull.m4: New file.
69681
69682         Module strtoimax.
69683         * m4/strtoimax.m4: New file.
69684
69685         Module strtoumax.
69686         * m4/strtoumax.m4: New file.
69687
69688         Module xstrtoimax.
69689         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
69690         jm_AC_PREREQ_XSTRTOIMAX.
69691         Moved the strtol prerequisites to strtol.m4.
69692         Moved the strtoll prerequisites to strtoll.m4.
69693         Moved the strtoimax prerequisites to strtoimax.m4.
69694
69695         Module xstrtoumax.
69696         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
69697         jm_AC_PREREQ_XSTRTOUMAX.
69698         Moved the strtoul prerequisites to strtoul.m4.
69699         Moved the strtoull prerequisites to strtoull.m4.
69700         Moved the strtoumax prerequisites to strtoumax.m4.
69701
69702         Module chown.
69703         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
69704         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
69705
69706         Module dup2.
69707         * m4/dup2.m4: New file.
69708
69709         Module ftruncate.
69710         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
69711         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
69712
69713         Module getgroups.
69714         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
69715         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
69716
69717         Module gettimeofday.
69718         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
69719         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
69720         gl_PREREQ_GETTIMEOFDAY.
69721
69722         Module mkdir.
69723         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
69724         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
69725
69726         Module mkstemp.
69727         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
69728         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
69729         jm_AC_TYPE_UINTMAX_T.
69730         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
69731
69732         Module stat.
69733         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
69734         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
69735
69736         Module lstat.
69737         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
69738         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
69739
69740         Module timespec.
69741         * m4/timespec.m4 (gl_TIMESPEC): New macro.
69742         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
69743         * m4/st_mtim.m4: Indentation.
69744
69745         Module nanosleep.
69746         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
69747         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
69748         gl_PREREQ_NANOSLEEP.
69749
69750         Module regex.
69751         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
69752         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
69753         (gl_REGEX): New macro.
69754
69755         Module rename.
69756         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
69757         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
69758
69759         Module rmdir.
69760         * m4/rmdir.m4: New file.
69761
69762         Module utime.
69763         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
69764         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
69765         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
69766
69767         Module dirname.
69768         * m4/dirname.m4: New file.
69769
69770         Module getopt.
69771         * m4/getopt.m4: New file.
69772
69773         Module unistd-safer.
69774         * m4/unistd-safer.m4: New file.
69775
69776         Module fnmatch.
69777         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
69778         declaration.
69779         (gl_PREREQ_FNMATCH_EXTRA): New macro.
69780         (gl_FUNC_FNMATCH_POSIX): New macro.
69781         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
69782         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
69783         simply fnmatch.
69784
69785         Module exclude.
69786         * m4/exclude.m4: New file.
69787
69788         Module human.
69789         * m4/human.m4: New file.
69790
69791         Module acl.
69792         * m4/acl.m4: Nop.
69793
69794         Module backupfile.
69795         * m4/backupfile.m4: New file.
69796         * m4/d-ino.m4: Indentation.
69797
69798         Module fsusage.
69799         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
69800         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
69801         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
69802
69803         Module dirfd.
69804         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
69805         requirements.
69806
69807         Module euidaccess.
69808         * m4/euidaccess.m4: New file.
69809
69810         Module file-type.
69811         * m4/file-type.m4: New file.
69812
69813         Module fileblocks.
69814         * m4/fileblocks.m4: New file.
69815
69816         Module filemode.
69817         * m4/filemode.m4: New file.
69818
69819         Module isdir.
69820         * m4/isdir.m4: New file.
69821
69822         Module lchown.
69823         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
69824         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
69825
69826         Module makepath.
69827         * m4/makepath.m4: New file.
69828
69829         Module modechange.
69830         * m4/modechange.m4: New file.
69831
69832         Module mountlist.
69833         * m4/mountlist.m4: New file.
69834         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
69835         Indentation.
69836
69837         Module path-concat.
69838         * m4/path-concat.m4: New file.
69839
69840         Module pathmax.
69841         * m4/pathmax.m4: New file.
69842
69843         Module same.
69844         * m4/same.m4: New file.
69845
69846         Module save-cwd.
69847         * m4/save-cwd.m4: New file.
69848
69849         Module savedir.
69850         * m4/savedir.m4: New file.
69851
69852         Module xgetcwd.
69853         * m4/xgetcwd.m4: New file.
69854         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
69855
69856         Module xreadlink.
69857         * m4/xreadlink.m4: New file.
69858
69859         Module safe-read.
69860         * m4/safe-read.m4: New file.
69861
69862         Module safe-write.
69863         * m4/safe-write.m4: New file.
69864
69865         Module closeout.
69866         * m4/closeout.m4: New file.
69867
69868         Module stdio-safer.
69869         * m4/stdio-safer.m4: New file.
69870
69871         Module getpass.
69872         * m4/getpass.m4: New file.
69873
69874         Module getugroups.
69875         * m4/getugroups.m4: New file.
69876
69877         Module group-member.
69878         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
69879         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
69880
69881         Module idcache.
69882         * m4/idcache.m4: New file.
69883
69884         Module userspec.
69885         * m4/userspec.m4: New file.
69886
69887         Module gettime.
69888         * m4/clock_time.m4: New file.
69889         * m4/gettime.m4: New file.
69890
69891         Module settime.
69892         * m4/settime.m4: New file.
69893
69894         Module posixtm.
69895         * m4/posixtm.m4: New file.
69896
69897         Module gethostname.
69898         * m4/gethostname.m4: New file.
69899
69900         Module canon-host.
69901         * m4/canon-host.m4: New file.
69902
69903         Module gettext.
69904         * m4/codeset.m4: New file, from gettext-0.11.5.
69905         * m4/gettext.m4: New file, from gettext-0.11.5.
69906         * m4/glibc21.m4: New file, from gettext-0.11.5.
69907         * m4/iconv.m4: New file, from gettext-0.11.5.
69908         * m4/intdiv0.m4: New file, from gettext-0.11.5.
69909         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
69910         * m4/inttypes.m4: New file, from gettext-0.11.5.
69911         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
69912         * m4/isc-posix.m4: New file, from gettext-0.11.5.
69913         * m4/lcmessage.m4: New file, from gettext-0.11.5.
69914         * m4/lib-ld.m4: New file, from gettext-0.11.5.
69915         * m4/lib-link.m4: New file, from gettext-0.11.5.
69916         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
69917         * m4/progtest.m4: New file, from gettext-0.11.5.
69918         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
69919         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
69920         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
69921
69922         Module localcharset.
69923         * m4/localcharset.m4: New file.
69924
69925         Module hard-locale.
69926         * m4/hard-locale.m4: New file.
69927
69928         Module mbswidth.
69929         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
69930         onceonly macros.
69931         * m4/mbrtowc.m4: Add comment.
69932
69933         Module memcasecmp.
69934         * m4/memcasecmp.m4: New file.
69935
69936         Module memcoll.
69937         * m4/memcoll.m4: New file.
69938
69939         Module unicodeio.
69940         * m4/unicodeio.m4: New file.
69941
69942         Module rpmatch.
69943         * m4/rpmatch.m4: New file.
69944
69945         Module yesno.
69946         * m4/yesno.m4: New file.
69947
69948         Module exitfail.
69949         * m4/exitfail.m4: New file.
69950
69951         Module c-stack.
69952         * m4/c-stack.m4 (gl_C_STACK): New macro.
69953         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
69954
69955         Module error.
69956         * m4/error.m4 (gl_ERROR): New macro.
69957         (jm_PREREQ_ERROR): Use onceonly macros.
69958
69959         Module fatal.
69960         * m4/fatal.m4: New file.
69961
69962         Module getloadavg.
69963         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
69964         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
69965
69966         Module getpagesize.
69967         * m4/getpagesize.m4: New file.
69968
69969         Module getusershell.
69970         * m4/getusershell.m4: New file.
69971
69972         Module physmem.
69973         * m4/physmem.m4: New file.
69974
69975         Module posixver.
69976         * m4/posixver.m4: New file.
69977
69978         Module quotearg.
69979         * m4/quotearg.m4: New file.
69980
69981         Module quote.
69982         * m4/quote.m4: New file.
69983
69984         Module readutmp.
69985         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
69986
69987         Module sig2str.
69988         * m4/sig2str.m4: New file.
69989
69990         Other.
69991         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
69992         ulonglong.m4.
69993         * m4/intmax_t.m4: New file.
69994         * m4/d-type.m4: Indentation.
69995         * m4/jm-macros.m4: Update.
69996         * m4/prereq.m4 (jm_PREREQ): Update.
69997         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
69998         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
69999         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
70000         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
70001         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
70002         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
70003         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
70004         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
70005         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
70006         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
70007         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
70008         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
70009         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
70010         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
70011         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
70012         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
70013         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
70014         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
70015         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
70016
70017 2002-12-24  Bruno Haible  <bruno@clisp.org>
70018
70019         * MODULES.txt: Update according to m4/ changes.
70020
70021         Module gettext.
70022         * config.rpath: New file, from gettext-0.11.5.
70023
70024         * modules/*: New module descriptions.
70025         * gnulib-tool: New file.
70026         * MODULES.html.sh: New file.
70027
70028 2002-12-21  Karl Berry  <karl@gnu.org>
70029
70030         * doc/fdl.texi: update to version 1.2.
70031
70032 2002-12-19  Karl Berry  <karl@gnu.org>
70033
70034         * config/config.guess: update from prep.
70035
70036 2002-12-18  Bruno Haible  <bruno@clisp.org>
70037
70038         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
70039         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
70040
70041 2002-12-17  Bruno Haible  <bruno@clisp.org>
70042
70043         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
70044         stdlib.h, string.h.
70045
70046 2002-12-17  Bruno Haible  <bruno@clisp.org>
70047
70048         * lib/canon-host.c (strdup): Remove unused declaration.
70049
70050         * lib/fsusage.c: Include full_read.h.
70051         (get_fs_usage): Use full_read instead of safe_read.
70052
70053         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
70054
70055 2002-12-12  Karl Berry  <karl@gnu.org>
70056
70057         * config/config.guess: update from prep.
70058
70059 2002-12-11  Bruno Haible  <bruno@clisp.org>
70060
70061         * m4/setenv.m4: New file, from gettext-0.11.5.
70062
70063 2002-12-11  Bruno Haible  <bruno@clisp.org>
70064
70065         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
70066         not unsetenv().
70067         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
70068         modifications:
70069
70070         2002-12-11  Bruno Haible  <bruno@clisp.org>
70071
70072                 * setenv.c (alloca): Fall back to malloc.
70073                 (freea): New macro.
70074                 (setenv): Use freea() to free memory allocated with alloca().
70075
70076         2002-11-13  Bruno Haible  <bruno@clisp.org>
70077
70078                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
70079                 function declarations.
70080                 * unsetenv.c (unsetenv): Likewise.
70081
70082         2002-03-04  Bruno Haible  <bruno@clisp.org>
70083
70084                 Portability to AIX 4.3.3.
70085                 * unsetenv.c: New file, extracted from setenv.c.
70086                 * setenv.c: Move the unsetenv() function to unsetenv.c.
70087
70088         2001-12-20  Bruno Haible  <bruno@clisp.org>
70089
70090                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
70091                 use malloc instead. For SunOS 4.
70092
70093         2001-12-11  Bruno Haible  <bruno@clisp.org>
70094
70095                 * setenv.c: Declare alloca.
70096                 (compar_fn_t): New typedef.
70097                 (KNOWN_VALUE, STORE_VALUE): Use it.
70098
70099         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
70100         setenv.h.
70101
70102 2002-12-10  Paul Eggert  <eggert@twinsun.com>
70103
70104         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
70105         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
70106         Choose values that are less likely to collide with system fnmatch
70107         options.
70108         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
70109         defined (e.g., a pure POSIX system).
70110         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
70111         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
70112
70113 2002-12-06  Paul Eggert  <eggert@twinsun.com>
70114
70115         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
70116         a pain in practice to deal with generated m4 files.  This change
70117         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
70118
70119         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
70120         and jm-glibc-io.m4, as they are no longer a special case.
70121         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
70122         kludge and the auto-generation stuff.  Check only whether the
70123         functions are declared, not whether they exist, since older hosts
70124         that don't declare the functions can't use the optimization anyway.
70125
70126 2002-12-06  Jim Meyering  <jim@meyering.net>
70127
70128         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
70129
70130         Merge in changes from libc's misc/error.c, in preparation
70131         for the merge of gnulib's changes back into libc.
70132
70133         * lib/error.c (_): Define only if not already defined.
70134         Move definition to follow all #include directives.
70135         Include unlocked-io.h only if !_LIBC.
70136         [_LIBC]: Include <libio/libioP.h>.
70137         [USE_IN_LIBIO]: Include <libio/iolibio.h>
70138         (fflush): Tweak definition to use INTUSE.
70139         (putc): Define.
70140
70141 2002-12-05  Paul Eggert  <eggert@twinsun.com>
70142
70143         * lib/alloca.c [defined emacs]: Include "lisp.h".
70144         (xalloc_die) [defined emacs]: New macro.
70145         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
70146         [! defined emacs]: Include <xalloc.h>.
70147         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
70148         (pointer): Typedef to POINTER_TYPE *.
70149         (malloc): Remove decl; we now always use xmalloc.
70150         (alloca): Use old-style definition, since Emacs needs this.
70151         Check for arithmetic overflow when computing combined size.
70152
70153 2002-12-04  Paul Eggert  <eggert@twinsun.com>
70154
70155         Do not generate unlocked-io.h automatically, since it's easier to
70156         maintain it by hand.
70157
70158         * lib/unlocked-io.h: New file, from GNU diffutils,
70159         but with proper copyright notice and attribution.
70160         * lib/gen-uio: Remove.
70161         * lib/Makefile.am: Add copyright notice.
70162         (libfetish_a_SOURCES): Add unlocked-io.h.
70163         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
70164         (DISTCLEANFILES, io_functions): Remove macros.
70165         (EXTRA_DIST): Remove gen_uio.
70166         (unlocked-io.h): Remove rule.
70167
70168 2002-12-04  Jim Meyering  <jim@meyering.net>
70169
70170         Reflect the fact that stat.c and lstat.c are no longer generated.
70171         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
70172         (DISTCLEANFILES): Likewise.
70173         (EXTRA_DIST): Likewise.
70174         (all_local): Don't depend on stat.c or lstat.c.
70175         (stat.c, lstat.c): Remove rules.
70176         (EXTRA_DIST): Remove xstat.in.
70177
70178         * lib/xstat.in: Remove file.  Contents moved into stat.c.
70179         * lib/stat.c: New file.  Contents mostly from xstat.in.
70180         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
70181         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
70182
70183         * lib/safe-read.c: Rework so that it may serve to define safe_write,
70184         too.
70185         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
70186
70187 2002-12-03  Jim Meyering  <jim@meyering.net>
70188
70189         * lib/safe-read.c, safe-write.c: Change variable names and comments,
70190         but not semantics, to minimize the differences between these two files.
70191         (safe_read): Change comment to mention SAFE_READ_ERROR.
70192
70193         * lib/safe-read.c (IS_EINTR): Define.
70194         (safe_read): Use IS_EINTR in place of in-function cpp directives.
70195
70196 2002-12-02  Jim Meyering  <jim@meyering.net>
70197
70198         * lib/safe-read.c (EINTR): Define.
70199         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70200         (INT_MAX): Provide fallback.
70201         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
70202
70203         * lib/safe-read.h (SAFE_READ_ERROR): Define.
70204
70205 2002-12-02  Bruno Haible  <bruno@clisp.org>
70206
70207         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
70208         Define, taken from safe-read.c.
70209         (INT_MAX): Provide fallback.
70210         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
70211         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
70212
70213         * lib/safe-read.c (EINTR): Remove definition.
70214         (safe_read): Don't use EINTR if it is absent.
70215
70216 2002-12-01  Jim Meyering  <jim@meyering.net>
70217
70218         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
70219         zero.
70220         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
70221
70222 2002-11-27  Paul Eggert  <eggert@twinsun.com>
70223
70224         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
70225         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
70226         with `if (! (value < limit)) abort ();', for readability.
70227
70228 2002-11-26  Karl Berry  <karl@gnu.org>
70229
70230         * lib/strdup.c: copy from libc again, with jim's ok.
70231         * lib/.cppi-disable: re-add strdup.c
70232
70233 2002-11-25  Karl Berry  <karl@gnu.org>
70234
70235         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
70236         instead of "strtol.c".
70237
70238 2002-11-25  Karl Berry  <karl@gnu.org>
70239
70240         * config/install-sh: update from automake for variable quoting, $0 in
70241         error msgs, etc.
70242
70243         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
70244         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
70245         entry.
70246
70247 2002-11-25  Jim Meyering  <jim@meyering.net>
70248
70249         * lib/mktime.c: Sync from libc, now that it has the latest fix.
70250
70251 2002-11-24  Karl Berry  <karl@gnu.org>
70252
70253         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
70254         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
70255
70256 2002-11-24  Jim Meyering  <jim@meyering.net>
70257
70258         Update from coreutils:
70259
70260         * lib/mktime.c: Merge in changes from libc.
70261
70262         Avoid a link-time failure on some Linux systems.
70263         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
70264         (otherwise).
70265         (__mon_yday): Declare with the STATIC attribute.
70266         (__mktime_internal): Likewise.
70267         Based on a report from Greg Schafer.
70268
70269 2002-11-23  Jim Meyering  <jim@meyering.net>
70270
70271         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
70272         Use `unsigned', not `int', as type of index.
70273
70274         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
70275
70276         * lib/fsusage.c: Remove unneeded parentheses around operands of
70277         `defined'.
70278
70279 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70280
70281         * lib/quotearg.h: Allow multiple inclusion by surrounding with
70282         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
70283         so that we can be included first.
70284         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
70285         * lib/quotearg.c: Include quotearg.h immediately after config.h.
70286         No need to include stddef.h or sys/types.h any more.
70287         Surround local include files with "", not "<>".
70288         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
70289         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
70290         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
70291         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
70292         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
70293         (ISPRINT): Remove; no longer needed now that we assume C89.
70294
70295         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
70296         Preserve errno.
70297
70298         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
70299         quotearg_char): Use SIZE_MAX rather than
70300         (size_t) -1 when we are talking about "infinity".
70301
70302         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
70303
70304 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70305
70306         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
70307         hint that one should use `if (! x) abort ();' rather than `assert
70308         (x);', and anyway it's one less thing to worry about configuring.
70309         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
70310         hash_rehash, hash_insert): Use abort rather than assert.
70311
70312 2002-11-22  Bruno Haible  <bruno@clisp.org>
70313
70314         * lib/safe-read.h: Assume C89. Add comments.
70315         (safe_read): Change return type to size_t.
70316         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
70317         byte counts > SSIZE_MAX correctly.
70318         * lib/safe-write.h: New file.
70319         * lib/safe-write.c: New file.
70320         * lib/full-read.h: New file.
70321         * lib/full-read.c: New file.
70322         * lib/full-write.h: Assume C89. Add comments.
70323         * lib/full-write.c: Include safe-write.h.
70324         (full_write): Rewritten to use safe_write.
70325         Suggested by Jim Meyering and Paul Eggert.
70326
70327 2002-11-21  Jim Meyering  <jim@meyering.net>
70328
70329         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
70330
70331         Merge in changes from the coreutils.
70332
70333         2002-09-25  Paul Eggert  <eggert@twinsun.com>
70334         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
70335         <stdint.h>.
70336         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
70337         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
70338         int.  Work more efficiently if X is the same width as uintmax_t.
70339         Do not compare X to -1, to avoid bogus compiler warning.
70340         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
70341         Don't assume that f_frsize and f_bsize are the same type.
70342
70343         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
70344         warning on FreeBSD.
70345
70346         * lib/makepath.c (make_path): Restore umask *before* creating the final
70347         component.
70348         (make_path): Minor reformatting.
70349
70350         * lib/xmalloc.c: Adjust to work with new autoconf macros,
70351         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
70352         HAVE_MALLOC/HAVE_REALLOC.
70353
70354         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
70355         dummy ones.  At least on GNU/Linux systems, `auto' means something
70356         else.
70357         From Michael Stone.
70358
70359 2002-11-21  Bruno Haible  <bruno@clisp.org>
70360
70361         Remove case insensitive option matching.
70362         * lib/argmatch.h (argcasematch): Remove declaration.
70363         (ARGCASEMATCH): Remove macro.
70364         (__xargmatch_internal): Remove case_sensitive argument.
70365         (XARGMATCH): Update.
70366         (XARGCASEMATCH): Remove macro.
70367         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
70368         case_sensitive argument.
70369         (argcasematch): Remove function.
70370         (__xargmatch_internal): Remove case_sensitive argument.
70371         (main): Use XARGMATCH instead of XARGCASEMATCH.
70372
70373         * lib/xmalloc.c: Change compile-time error message. Add comment about
70374         required autoconf version.
70375
70376 2002-11-20  Paul Eggert  <eggert@twinsun.com>
70377
70378         Merge argmatch cleanups from Bison.  Assume C89.
70379
70380         * lib/argmatch.c: Include config.h here, not in argmatch.h.
70381         Include stdlib.h, for EXIT_FAILURE.
70382         Always include <string.h>, since we assume C89.
70383         (EXIT_FAILURE): Remove pre-C89 bug workaround.
70384         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
70385         Include <stddef.h> instead, since it's all we need for size_t.
70386         (PARAMS): Remove.  All uses removed.
70387         (ARRAY_CARDINALITY): Do not bother to #undef.
70388         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
70389         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70390         Remove unnecessary parentheses.
70391         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70392         Insert necessary parentheses.
70393         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
70394         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
70395
70396 2002-11-19  Bruno Haible  <bruno@clisp.org>
70397
70398         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
70399         * lib/mbswidth.h: Include <stddef.h>, for size_t.
70400
70401         * lib/mbswidth.h (PARAMS): Remove macro.
70402         (mbswidth, mbsnwidth): Use ANSI C function declarations.
70403         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
70404
70405         * lib/gcd.h (PARAMS): Remove macro.
70406         (gcd): Use ANSI C function declarations.
70407         * lib/gcd.c (gcd): Likewise.
70408
70409 2002-11-15  Bruno Haible  <bruno@clisp.org>
70410
70411         * lib/strcspn.c: Include <stddef.h>.
70412         (strcspn): Use ANSI C function declaration. Change return type to
70413         size_t. Use NULL.
70414         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
70415         (strpbrk): Use NULL.
70416         * lib/strpbrk.h (PARAMS): Remove macro.
70417         (strpbrk): Use ANSI C function declaration.
70418         * lib/strstr.c: Don't include <sys/types.h>.
70419         * lib/strstr.h (PARAMS): Remove macro.
70420         (strstr): Use ANSI C function declarations.
70421
70422 2002-11-14  Karl Berry  <karl@gnu.org>
70423
70424         * config/mkinstalldirs: `do' on separate line, instead of
70425         `for var; do'.
70426
70427 2002-11-06  Bruno Haible  <bruno@clisp.org>
70428
70429         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
70430         * lib/gcd.c (gcd): Likewise.
70431
70432 2002-11-05  Bruno Haible  <bruno@clisp.org>
70433
70434         * lib/gcd.h: New file, from gettext-0.11.5.
70435         * lib/gcd.c: New file, from gettext-0.11.5.
70436
70437 2002-11-05  Bruno Haible  <bruno@clisp.org>
70438
70439         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70440         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70441         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70442         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70443
70444         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
70445         <libintl.h>.
70446         * lib/makepath.c: Include gettext.h instead of <locale.h> and
70447         <libintl.h>.
70448
70449         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
70450         * lib/human.c: Include gettext.h instead of <libintl.h>.
70451         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
70452         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
70453         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
70454         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
70455         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
70456         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
70457         (textdomain): Remove definition.
70458         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
70459
70460         * lib/long-options.c: Remove include of <libintl.h> and definition of
70461         _.
70462         * lib/same.c: Remove include of <libintl.h> and definition of _.
70463
70464 2002-11-04  Owen Taylor  <otaylor@redhat.com>
70465
70466         * lib/config.charset: A few additions for Solaris.
70467
70468 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70469
70470         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
70471         * lib/localcharset.c (locale_charset): Declare as extern "C".
70472
70473 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70474
70475         * lib/config.charset: msdos in uk_UA uses CP1125.
70476
70477 2002-11-04  Bruno Haible  <bruno@clisp.org>
70478
70479         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
70480         * lib/strcase.h: New file, from GNU gettext-0.11.5.
70481         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
70482         * lib/strstr.h: New file, from GNU gettext-0.11.5.
70483         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
70484
70485 2002-11-04  Bruno Haible  <bruno@clisp.org>
70486
70487         * lib/localcharset.c (locale_charset): Don't return an empty string.
70488
70489 2002-11-04  Bruno Haible  <bruno@clisp.org>
70490
70491         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
70492         aliases.
70493
70494 2002-11-04  Bruno Haible  <bruno@clisp.org>
70495
70496         * lib/config.charset: Update for newest glibc. Add canonical names
70497         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
70498
70499 2002-11-04  Bruno Haible  <bruno@clisp.org>
70500
70501         * lib/config.charset: Add support for NetBSD.
70502
70503 2002-11-04  Bruno Haible  <bruno@clisp.org>
70504
70505         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
70506
70507 2002-11-01  Bruno Haible  <bruno@clisp.org>
70508
70509         * configure.in: Add AC_CONFIG_AUX_DIR call.
70510         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
70511         test/Makefile.
70512         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
70513
70514 2002-09-28  Karl Berry  <karl@gnu.org>
70515
70516         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
70517         installed automake until the next release, since changes have been
70518         made.
70519
70520 2002-09-25  Karl Berry  <karl@gnu.org>
70521
70522         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
70523         * lib/getopt*: copy from libc/posix.
70524         * lib/gettext.h: copy from gettext.
70525         * lib/.cppi-disable: add strdup.c, gettext.h.
70526
70527 2002-09-25  Karl Berry  <karl@gnu.org>
70528
70529         * config/srclist.txt: enable gettext.h check.
70530         * config/config.{guess,sub}: update from prep.
70531         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
70532                 from automake 1.6.3.
70533         See srclist*.
70534
70535 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
70536
70537         * regex.c (PATFETCH): Remove the translating fetch.
70538         (PATFETCH_RAW): Rename to PATFETCH.
70539         (set_image_of_range): New fun.
70540         (SET_RANGE_TABLE_WORK_AREA): Use it.
70541         (regex_compile): Don't translate the pattern chars so eagerly.
70542         Only do it when inserting an `exactn' bytecode or when handling
70543         a char-range.
70544         (mutually_exclusive_p): Avoid empty statement.
70545
70546 2002-07-06  Jim Meyering  <meyering@lucent.com>
70547
70548         * m4/README: Don't mention Makefile.am.in.
70549         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
70550
70551 2002-07-01  Jim Meyering  <meyering@lucent.com>
70552
70553         * lib/c-stack.c: Include sys/time.h.
70554         From Volker Borchert.
70555
70556 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70557
70558         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
70559
70560 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70561
70562         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
70563         New macro.  Use it uniformly instead of
70564         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
70565         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
70566         reported by Vin Shelton.
70567
70568 2002-06-22  Paul Eggert  <eggert@twinsun.com>
70569
70570         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
70571         Do not assume SA_SIGINFO behavior.
70572         Bug reported by Jim Meyering on NetBSD 1.5.2.
70573
70574 2002-06-22  Jim Meyering  <meyering@lucent.com>
70575
70576         * m4/c-stack.m4: New file, from diffutils-2.8.2.
70577         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
70578
70579         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
70580         now that configure.ac uses AC_GNU_SOURCE.
70581         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
70582         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
70583
70584         Update to latest tools.  Suggestions from Paul Eggert.
70585         * m4/stdbool.m4: New file, from diffutils-2.8.2.
70586         * m4/gnu-source.m4: Update from diffutils-2.8.2.
70587         * m4/fnmatch.m4: Likewise.
70588         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
70589         to AC_HEADER_STDBOOL
70590
70591 2002-06-22  Jim Meyering  <meyering@lucent.com>
70592
70593         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
70594         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
70595
70596 2002-06-22  Jim Meyering  <meyering@lucent.com>
70597
70598         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
70599
70600         * lib/exitfail.c, exitfail.h: Likewise.
70601         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
70602
70603         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
70604         of fnmatch.h.
70605         (EXTRA_DIST): Add fnmatch_loop.c.
70606         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
70607
70608         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
70609         * lib/fnmatch.c: Update from diffutils-2.8.2.
70610         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
70611         * lib/fnmatch.h: Remove file.
70612
70613 2002-06-21  Jim Meyering  <meyering@lucent.com>
70614
70615         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
70616         * m4/mbrtowc.m4: Likewise.
70617
70618         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
70619         * m4/mbswidth.m4: Reflect name change:
70620         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
70621         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70622
70623         * m4/lib-link.m4: Update from gettext-0.11.2.
70624         * m4/gettext.m4: Likewise.
70625
70626         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
70627         From Alfred M. Szmidt.
70628
70629 2002-06-18  Paul Eggert  <eggert@twinsun.com>
70630
70631         * lib/file-type.h: Report an error if neither S_ISREG nor
70632         S_IFREG is defined, instead of using a test specific to glibc
70633         2.2.  This should be safe, since POSIX requires S_ISREG and
70634         Unix Version 7 had S_IFREG.  We don't need to check for
70635         <sys/types.h> since we don't use any symbols that it defines.
70636
70637 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
70638
70639         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
70640         $@-t, so that each temporary file name is unique and valid in the first
70641         8 characters, for operation under DOS.
70642
70643 2002-06-15  Paul Eggert  <eggert@twinsun.com>
70644
70645         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
70646
70647 2002-06-15  Jim Meyering  <meyering@lucent.com>
70648
70649         Work even with DJGPP 2.03, which lacks support for symlinks.
70650         From Richard Dawe.
70651         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
70652         is defined.
70653         * lib/lchown.c (S_ISLNK): Likewise.
70654
70655 2002-06-15  Jim Meyering  <meyering@lucent.com>
70656
70657         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
70658         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
70659         have been included before this file.
70660
70661 2002-06-14  Jim Meyering  <meyering@lucent.com>
70662
70663         * lib/file-type.h: Use the version from diffutils-2.8.2.
70664         * lib/file-type.c: Likewise.
70665
70666 2002-06-07  Jim Meyering  <meyering@lucent.com>
70667
70668         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
70669         They're needed at least for NetBSD 1.5.2.
70670         ($statxfs_includes): Include those same headers.
70671         ($statxfs_includes): Include sys/vfs.h if available.
70672         ($statxfs_includes): Likewise for sys/statvfs.h.
70673         Check for the following members in both structs statfs and statvfs:
70674         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
70675
70676 2002-06-01  Jim Meyering  <meyering@lucent.com>
70677
70678         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
70679         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
70680
70681 2002-05-28  Jim Meyering  <meyering@lucent.com>
70682
70683         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
70684         Reported by Volker Borchert.
70685
70686 2002-05-27  Jim Meyering  <meyering@lucent.com>
70687
70688         Fix a problem seen only on nonconforming systems whereby ls.c's
70689         use of localtime, and then of gettimeofday would cause trouble:
70690         the localtime call used to initialize rpl_gettimeofday's save
70691         mechanism would clobber ls's current local time information so
70692         that in any long listing the first file would always be listed
70693         with date 1970-01-01.  Analysis by Volker Borchert.
70694
70695         * lib/gettimeofday.c (localtime): Undefine.
70696         (rpl_localtime): New function.
70697
70698 2002-05-27  Jim Meyering  <meyering@lucent.com>
70699
70700         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
70701         localtime.
70702
70703         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
70704         use the replacement function; it wouldn't resolve at link time.
70705         Reported by Volker Borchert.
70706
70707 2002-05-22  Jim Meyering  <meyering@lucent.com>
70708
70709         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
70710         file-type.h.
70711         * lib/file-type.h: New file.
70712         * lib/file-type.c (file_type): New file/function.  Extracted from
70713         diffutils.
70714
70715 2002-04-30  Jim Meyering  <meyering@lucent.com>
70716
70717         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
70718
70719 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70720
70721         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
70722
70723 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70724
70725         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
70726         Do not check for alloca.h (no longer used) or stdbool.h (was never
70727         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
70728
70729 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70730
70731         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
70732
70733 2002-04-29  Jim Meyering  <meyering@lucent.com>
70734
70735         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
70736         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
70737         Use AC_FUNC_STRNLEN here instead.
70738
70739         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
70740         With autoconf-2.53a, it's part of AC_PROG_CC.
70741
70742 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70743
70744         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
70745         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
70746
70747 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70748
70749         * lib/sig2str.h, lib/sig2str.c: New files.
70750         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
70751
70752 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70753
70754         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
70755         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
70756         of 127, since 64 is the largest conceivable number for ancient
70757         nonstandard hosts.
70758         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
70759
70760 2002-04-28  Jim Meyering  <meyering@lucent.com>
70761
70762         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
70763
70764 2002-04-24  Jim Meyering  <meyering@lucent.com>
70765
70766         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
70767         (jm_PREREQ): Use it.
70768
70769         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
70770         mach/mach.h fcntl.h.
70771         Check for this function: setlocale.
70772
70773 2002-04-24  Jim Meyering  <meyering@lucent.com>
70774
70775         * lib/gettext.h: New file, from Gettext.
70776         * lib/Makefile.am (INCLUDES): Remove -I../intl.
70777         (libfetish_a_SOURCES): Add gettext.h.
70778
70779 2002-04-16  Jim Meyering  <meyering@lucent.com>
70780
70781         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
70782         ut_pid, ut_id, ut_exit.
70783
70784 2002-04-16  Jim Meyering  <meyering@lucent.com>
70785
70786         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
70787         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
70788         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
70789
70790 2002-04-12  Jim Meyering  <meyering@lucent.com>
70791
70792         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
70793         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
70794         existence of the getmntinfo function.  Needed for Darwin 5.3.
70795
70796         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
70797         This is necessary at least on Darwin 5.3.
70798
70799         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
70800         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
70801         strnlen.o in the library, and that makes some versions of ranlib
70802         object.
70803
70804 2002-04-12  Jim Meyering  <meyering@lucent.com>
70805
70806         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
70807
70808 2002-04-09  Jim Meyering  <meyering@lucent.com>
70809
70810         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
70811         to be more precise.  Rather than saying we're checking whether the
70812         function `works', say what we're testing.
70813         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
70814         Reported by Bruno Haible.
70815
70816 2002-03-10  Jim Meyering  <meyering@lucent.com>
70817
70818         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
70819         Suggestion from Santiago Vila.
70820
70821 2002-03-08  Jim Meyering  <meyering@lucent.com>
70822
70823         * lib/rename.c: Mention that this wrapper is needed also on
70824         mips-dec-ultrix4.4 systems.
70825
70826 2002-03-02  Jim Meyering  <meyering@lucent.com>
70827
70828         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
70829         not HAVE_CLOCK_SETTIME.
70830
70831 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70832
70833         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
70834         Check for clock_settime.
70835
70836 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70837
70838         * lib/nanosleep.h: Rename to....
70839         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
70840
70841         * lib/gettime.c: New file.
70842         * lib/settime.c: New file.
70843         * lib/stime.c: Remove.
70844
70845         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
70846         timespec.h.  Remove nanosleep.h.
70847
70848 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70849
70850         * m4/acl.m4: New file.
70851         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
70852         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
70853
70854 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70855
70856         * lib/acl.c, lib/acl.h: New files.
70857         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
70858
70859 2002-02-24  Jim Meyering  <meyering@lucent.com>
70860
70861         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
70862         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
70863         cause trouble.  Reported by Nelson Beebe.
70864
70865 2002-02-23  Paul Eggert  <eggert@twinsun.com>
70866
70867         * lib/path-concat.c (xpath_concat): Reorder code to pacify
70868         compilers that don't know that xalloc_die never returns.
70869
70870 2002-02-20  Jim Meyering  <meyering@lucent.com>
70871
70872         * lib/getdate.c: Regenerate using bison-1.33.
70873
70874 2002-02-17  Jim Meyering  <meyering@lucent.com>
70875
70876         * config/config.guess (main): Don't use `head -1'; it's no longer
70877         portable. Use `sed 1q' instead.
70878
70879 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
70880
70881         * m4/codeset.m4: Upgrade to gettext-0.11.
70882         * m4/gettext.m4: Upgrade to gettext-0.11.
70883         * m4/glibc21.m4: Upgrade to gettext-0.11.
70884         * m4/iconv.m4: Upgrade to gettext-0.11.
70885         * m4/isc-posix.m4: Upgrade to gettext-0.11.
70886         * m4/lcmessage.m4: Upgrade to gettext-0.11.
70887         * m4/lib-ld.m4: New file, from gettext-0.11.
70888         * m4/lib-link.m4: New file, from gettext-0.11.
70889         * m4/lib-prefix.m4: New file, from gettext-0.11.
70890         * m4/progtest.m4: Upgrade to gettext-0.11.
70891
70892 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70893
70894         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
70895         (jm_PREREQ): Use it.
70896
70897 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70898
70899         * lib/posixver.c, lib/posixver.h: New files.
70900         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70901
70902 2002-02-02  Paul Eggert  <eggert@twinsun.com>
70903             Bruno Haible  <bruno@clisp.org>
70904
70905         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
70906         (fwrite_success_callback): New declaration.
70907         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
70908         print_unicode_char. Call failure callback instead of error.
70909         (fwrite_success_callback): New function.
70910         (exit_failure_callback): New function.
70911         (fallback_failure_callback): New function.
70912         (print_unicode_char): Call unicode_to_mb.
70913
70914 2002-01-26  Jim Meyering  <meyering@lucent.com>
70915
70916         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
70917         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
70918
70919 2002-01-26  Jim Meyering  <meyering@lucent.com>
70920
70921         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
70922
70923 2002-01-22  Paul Eggert  <eggert@twinsun.com>
70924
70925         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
70926
70927 2002-01-22  Jim Meyering  <meyering@lucent.com>
70928
70929         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
70930         Otherwise, some versions of automake would omit the rule that makes
70931         Makefile from Makefile.in.
70932
70933 2002-01-21  Paul Eggert  <eggert@twinsun.com>
70934
70935         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
70936         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70937         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
70938         (memcoll): Set errno to zero if there is no error.
70939
70940         * lib/quotearg.c (quotearg_buffer_restyled):
70941         Fix bug with quoting buffers containing NUL when backslashing escapes.
70942         This bug was exposed by the other changes in this patch.
70943         (quotearg_n_options): New arg ARGSIZE.
70944         All callers changed.
70945         (quoting_options_from_style): New function.
70946         (quotearg_n_style): Use it.
70947         (quotearg_n_style_mem): New function.
70948
70949         * lib/quotearg.h (quotearg_n_style_mem): New function.
70950
70951 2002-01-19  Jim Meyering  <meyering@lucent.com>
70952
70953         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
70954         Remove useless quotes: DF_PROG="df".
70955         * m4/strnlen.m4: New file.
70956
70957 2002-01-16  Paul Eggert  <eggert@twinsun.com>
70958
70959         * lib/backupfile.c (ISDIGIT): Comment fix.
70960         * lib/getdate.y (ISDIGIT): Likewise.
70961         * lib/posixtm.c (ISDIGIT, year): Likewise.
70962         * lib/strverscmp.c (ISDIGIT): Likewise.
70963         * lib/userspec.c (ISDIGIT): Likewise.
70964
70965 2002-01-16  Jim Meyering  <meyering@lucent.com>
70966
70967         * lib/getdate.y: Add three semicolons, each just before a closing
70968         brace. Bison (as of version 1.31) no longer papers over that mistake.
70969
70970 2002-01-05  Jim Meyering  <meyering@lucent.com>
70971
70972         * lib/version-etc.c (version_etc_copyright): Update copyright year.
70973
70974 2001-12-19  Paul Eggert  <eggert@twinsun.com>
70975
70976         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
70977         not silently exit merely because the output buffer happens to
70978         have nothing pending.
70979
70980 2001-12-18  Paul Eggert  <eggert@twinsun.com>
70981
70982         See the big note in ../ChangeLog.
70983         * lib/human.c (suffixes): Prefer K to k for 1024.
70984         (generate_suffix_backwards): New function.
70985         (human_readable_inexact): Use it.
70986         * lib/xstrtol.c (__xstrtol): If there is no number but there
70987         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
70988         Accept 'K' as well as 'k'.
70989
70990 2001-12-15  Jim Meyering  <meyering@lucent.com>
70991
70992         * lib/regex.h (__restrict_arr): Update from libc.
70993
70994         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
70995         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
70996         (STREQ): Define.
70997
70998 2001-12-14  Jim Meyering  <meyering@lucent.com>
70999
71000         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
71001         Suggestion from Bruno Haible.
71002
71003 2001-12-10  Jim Meyering  <meyering@lucent.com>
71004
71005         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
71006         xrealloc, Instead, include "xalloc.h".
71007         (initbuffer): Don't cast xmalloc return value to char*.
71008         (readline): Reword comment.
71009         Don't cast xrealloc return value to char*
71010         Return NULL, not 0.
71011
71012 2001-12-09  Jim Meyering  <meyering@lucent.com>
71013
71014         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
71015         about `signed and unsigned type in conditional expression'.
71016         * lib/posixtm.c (posix_time_parse): Likewise.
71017
71018         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
71019
71020         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
71021         to avoid a pedantic warning.
71022
71023         * lib/getstr.c: Don't include assert.h.
71024         (getstr): Remove warning-evoking assertions.
71025         Return -1 if offset parameter is out of bounds.
71026         Change the type of a local from int to size_t.
71027
71028         * lib/strftime.c (my_strftime_localtime_r): Include this function
71029         definition in the `#if ! HAVE_TM_GMTOFF' block.
71030
71031         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
71032         Include xalloc.h instead.
71033
71034 2001-12-02  Jim Meyering  <meyering@lucent.com>
71035
71036         * lib/tempname.c: Don't declare getenv, thus reverting the change of
71037         2001-11-18.  It's no longer necessary, now that stdlib.h is always
71038         included.
71039
71040         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
71041         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
71042
71043 2001-11-30  Akim Demaille  <akim@epita.fr>
71044
71045         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
71046         before being defined.
71047
71048 2001-11-27  Paul Eggert  <eggert@twinsun.com>
71049
71050         * lib/quotearg.h (quotearg_n, quotearg_n_style):
71051         First arg is int, not unsigned.
71052         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
71053         (SIZE_MAX, UINT_MAX): New macros.
71054         (quotearg_n_options): Abort if N is negative.
71055         Avoid overflow check on hosts where size_t is 64 bits and int
71056         is 32 bits, as overflow is impossible there.
71057         Fix off-by-one typo that caused unnecessary reallocation.
71058
71059 2001-11-27  Jim Meyering  <meyering@lucent.com>
71060
71061         * lib/tempname.c: Merge with version from libc.
71062         * lib/regex.c: Likewise.
71063
71064         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
71065         systems for which STDC_HEADERS is 0, it was not included, resulting in
71066         a warning about an integer-to-pointer conversion problem with getenv.
71067         Reported by Volker Borchert.
71068
71069 2001-11-26  Jim Meyering  <meyering@lucent.com>
71070
71071         * lib/gtod.h: Remove file.
71072         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
71073         * lib/gettimeofday.c: Don't include gtod.h.
71074         (GTOD_init): Remove function.
71075         (rpl_gettimeofday): Do its job here instead, rather than aborting.
71076         Suggestion from Volker Borchert.
71077
71078 2001-11-23  Jim Meyering  <meyering@lucent.com>
71079
71080         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
71081         it.
71082         * lib/hash.c (struct hash_table): Define it here instead.
71083
71084 2001-11-22  Jim Meyering  <meyering@lucent.com>
71085
71086         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
71087
71088 2001-11-20  Jim Meyering  <meyering@lucent.com>
71089
71090         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
71091         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
71092
71093 2001-11-19  Jim Meyering  <meyering@lucent.com>
71094
71095         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
71096         directory.  Use "conftestXXXXXX" as the template.
71097         Suggestion from Paul Eggert.
71098
71099         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
71100         immediately, so the test doesn't mistakenly hit the max-open-files
71101         limit.
71102
71103 2001-11-18  Paul Eggert  <eggert@twinsun.com>
71104
71105         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
71106         (TEMPORARIES): New macro.
71107         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
71108         removes an artificial limitation (e.g. HP-UX 10.20, where
71109         TMP_MAX is 17576).
71110
71111 2001-11-18  Jim Meyering  <meyering@lucent.com>
71112
71113         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
71114
71115 2001-11-18  Jim Meyering  <meyering@lucent.com>
71116
71117         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
71118         on SunOS 4.
71119
71120         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
71121         files will be created before anything else.
71122
71123 2001-11-17  Paul Eggert  <eggert@twinsun.com>
71124
71125         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
71126         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
71127
71128 2001-11-17  Jim Meyering  <meyering@lucent.com>
71129
71130         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
71131         Prompted by a report from Bob Proulx.
71132
71133         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
71134         Instead, require UTILS_FUNC_MKSTEMP.
71135
71136 2001-11-17  Jim Meyering  <meyering@lucent.com>
71137
71138         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
71139         Now, that's done as part of AC_FUNC_STRTOD.
71140
71141 2001-11-17  Jim Meyering  <meyering@lucent.com>
71142
71143         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
71144         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
71145         rather than group writable.  Patch by Juan F. Codagnone.
71146
71147         * lib/readtokens.c: Remove explicit declarations of xmalloc and
71148         xrealloc, Instead, include "xalloc.h".
71149
71150         * lib/mountlist.c: Include unlocked-io.h after all system headers.
71151         Remove explicit declarations of xmalloc, xrealloc,
71152         and xstrdup.  Instead, include "xalloc.h".
71153
71154         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
71155         unlocked-io.h.
71156         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
71157         Likewise.
71158         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
71159
71160         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
71161         Reported by Padraig Brady.
71162
71163         * lib/mkstemp.c: #undef mkstemp.
71164         Include config.h.
71165         (rpl_mkstemp): Rename from mkstemp.
71166         Protoize.
71167
71168 2001-11-16  Jim Meyering  <meyering@lucent.com>
71169
71170         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
71171         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
71172         determine the amount of total physical memory, use pstat_getstatic.
71173         HPUX-11 doesn't define _SC_PHYS_PAGES.
71174         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
71175         If sysconf couldn't be used to determine the amount of available
71176         physical memory, use both pstat_getstatic and pstat_getdynamic.
71177         Based on a patch from Bob Proulx.
71178
71179 2001-11-10  Jim Meyering  <meyering@lucent.com>
71180
71181         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
71182         (jm_PREREQ): Use it.
71183
71184 2001-11-09  Jim Meyering  <meyering@lucent.com>
71185
71186         * m4/jm-macros.m4: Require autoconf-2.52f.
71187         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
71188         Use these AC_-prefixed names, not the AM_-prefixed ones.
71189
71190         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
71191
71192 2001-11-05  Jim Meyering  <meyering@lucent.com>
71193
71194         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
71195
71196 2001-11-04  Jim Meyering  <meyering@lucent.com>
71197
71198         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
71199         $DEFS.
71200
71201 2001-11-03  Jim Meyering  <meyering@lucent.com>
71202
71203         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
71204         of AC_DEFUN.
71205
71206         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
71207         know the name of the variable in the macro definition.
71208
71209 2001-11-03  Jim Meyering  <meyering@lucent.com>
71210
71211         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
71212         in argmatch_to_argument call.
71213
71214         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
71215         argument.
71216
71217         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
71218         e.g., a fault due to an attempt to free a NULL pointer.
71219
71220 2001-11-01  Jim Meyering  <meyering@lucent.com>
71221
71222         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
71223         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
71224
71225 2001-11-01  Jim Meyering  <meyering@lucent.com>
71226
71227         * lib/dirfd.c, lib/dirfd.h: New files.
71228         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
71229
71230         * lib/hash.c (hash_print) [TESTING]: Clean up.
71231
71232 2001-10-22  Paul Eggert  <eggert@twinsun.com>
71233
71234         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
71235         to avoid a warning if -Wall.
71236
71237 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
71238
71239         * README: New file
71240         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
71241         (per RMS's instructions, this is now the canonical source)
71242         * lgpl/, gpl/: New directories.
71243
71244 2001-10-21  Paul Eggert  <eggert@twinsun.com>
71245
71246         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
71247
71248 2001-10-21  Jim Meyering  <meyering@lucent.com>
71249
71250         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
71251         this code would end up calling gettext even in packages built
71252         with --disable-nls.
71253         * lib/getopt.c (_): Likewise.
71254         * lib/regex.c (_): Likewise.
71255
71256 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71257
71258         * m4/error.m4 (jm_PREREQ_ERROR):
71259         Do not invoke AC_CHECK_FUNCS with strerror_r, as
71260         AC_FUNC_STRERROR_R does that.
71261         Check for strerror declaration.
71262
71263         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
71264         are supposed to have them these days.
71265         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
71266         Merge changes from latest Autoconf CVS.
71267         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
71268         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
71269         POSIX decided to standardize on the int flavor of strerror_r.
71270
71271 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71272
71273         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
71274         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
71275         Use strerror_r that is only a macro, even if it is not a function.
71276         (strerror): Check for HAVE_DECL_STRERROR before declaring.
71277         (private_strerror): Use prototypes, not old-style function definition.
71278         (print_errno_message): New function.
71279         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
71280         char*-flavored one.
71281         (error_tail, error, error_at_line): Use it.
71282
71283 2001-10-11  Jim Meyering  <meyering@lucent.com>
71284
71285         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
71286         and quote_n (1, ... to avoid clobbering a buffer.
71287
71288 2001-10-05  Jim Meyering  <meyering@lucent.com>
71289
71290         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
71291         hash-pjw.h.
71292         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
71293         * lib/hash-pjw.h: New file.
71294
71295 2001-09-30  Jim Meyering  <meyering@lucent.com>
71296
71297         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
71298         `struct fsstat' has the `f_fstypename' member.
71299         Use that to define FS_TYPE, which is now used to make
71300         the getfsstat link test tighter.
71301
71302 2001-09-30  Jim Meyering  <meyering@lucent.com>
71303
71304         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
71305         Include <sys/ucred.h>, for Apple Darwin.
71306         Include sys/mount.h and sys/fs_types.h only if available.
71307         (FS_TYPE): Define.
71308         (read_filesystem_list): Use FS_TYPE.
71309
71310 2001-09-29  Paul Eggert  <eggert@twinsun.com>
71311
71312         * lib/exclude.c (excluded_filename): 0 -> false, since it's
71313         a boolean context.
71314
71315 2001-09-29  Jim Meyering  <meyering@lucent.com>
71316
71317         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71318         [one-argument getmntent function]): Include stdio.h before mntent.h.
71319         SunOS 4.1.x needs it for the declaration of `FILE'.
71320         Patch by Volker Borchert.
71321
71322         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71323         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
71324         sys/fs_types.h, and make the link-test for getfsstat guard #include
71325         directives with appropriate #if HAVE_*_H tests so that we can
71326         detect getfsstat on Apple Darwin1.3.7 systems.
71327         Reported by Nelson Beebe.
71328         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
71329
71330 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71331
71332         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71333         #defines strtoimax.  Also treat the other strto* functions
71334         like strtoimax.
71335
71336         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71337         Check for strtoul and strtoumax,
71338         as those declarations are made even in the signed case.
71339         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
71340         Likewise, for strtol and strtoimax.
71341
71342 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71343
71344         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71345         #defines strtoimax.  Also treat the other strto* functions
71346         like strtoimax.
71347
71348         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
71349         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
71350         (strtoimax, strtoumax): Do not declare if already defined as a macro.
71351
71352 2001-09-26  Jim Meyering  <meyering@lucent.com>
71353
71354         Most macros in unlocked-io.h had the wrong number of arguments.
71355         * lib/gen-uio: New script.
71356         (USE_UNLOCKED_IO): Define to 1 if not already defined.
71357         * lib/unlocked-io.hin: Remove file.
71358         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
71359         rather than trying to embed it here.
71360         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
71361         Reported by Padraig Brady.
71362
71363 2001-09-25  Volker Borchert  <bt@teknon.de>
71364
71365         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
71366         `result'.
71367
71368 2001-09-24  Jim Meyering  <meyering@lucent.com>
71369
71370         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
71371
71372 2001-09-23  Jim Meyering  <meyering@lucent.com>
71373
71374         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
71375         instead of the mere test for existence of mntent.h.  The latter
71376         would get a false-positive on AIX 3.4 systems.
71377         In the outer getmntent if-block, don't die if neither of the getmntent
71378         tests succeeds.  Instead, just fall through and continue with the
71379         remaining tests.
71380
71381 2001-09-23  Jim Meyering  <meyering@lucent.com>
71382
71383         * lib/mountlist.c: Remove useless parentheses in #if directives.
71384         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
71385         the deprecated MOUNTED symbol is no longer defined in mntent.h.
71386
71387 2001-09-22  Jim Meyering  <meyering@lucent.com>
71388
71389         * m4/gettext.m4: New file.  From gettext.
71390         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
71391         * m4/progtest.m4: Likewise
71392         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
71393         * m4/glibc21.m4: Likewise.
71394
71395         * m4/libintl.m4: Remove.  No longer used.
71396
71397 2001-09-22  Jim Meyering  <meyering@lucent.com>
71398
71399         * lib/localcharset.c: Update from latest gettext.
71400         * lib/config.charset: Likewise.
71401
71402 2001-09-20  Jim Meyering  <meyering@lucent.com>
71403
71404         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
71405         strtoimax.
71406         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
71407         strtoumax.
71408
71409 2001-09-20  Jim Meyering  <meyering@lucent.com>
71410
71411         * lib/xstrtol.c (strtoimax): Guard declaration with
71412         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
71413         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
71414         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
71415         (strtoumax): Likewise, for completeness (it wasn't necessary).
71416
71417 2001-09-17  Paul Eggert  <eggert@twinsun.com>
71418
71419         * lib/strtoimax.c (HAVE_LONG_LONG):
71420         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
71421         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
71422         to work around bug in IBM C compiler.
71423
71424 2001-09-17  Jim Meyering  <meyering@lucent.com>
71425
71426         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
71427         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
71428         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
71429         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
71430         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
71431         whenever the right hand side need not be expanded by the shell.
71432
71433 2001-09-16  Paul Eggert  <eggert@twinsun.com>
71434
71435         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
71436         library.  It's not correct, as some older glibcs are buggy.
71437         fnmatch wasn't fixed until glibc 2.2.
71438
71439         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
71440         special shell magic here.
71441
71442 2001-09-16  Jim Meyering  <meyering@lucent.com>
71443
71444         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
71445         * m4/jm-macros.m4: Require it.
71446
71447 2001-09-16  Jim Meyering  <meyering@lucent.com>
71448
71449         * lib/mkdir.c: New file.
71450
71451 2001-09-15  Jim Meyering  <meyering@lucent.com>
71452
71453         * m4/jm-macros.m4: Check for help2man.
71454
71455 2001-09-11  Jim Meyering  <meyering@lucent.com>
71456
71457         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
71458         The body, by Paul Eggert, was moved here from configure.in.
71459         * m4/jm-macros.m4: Require UTILS_HOST_OS.
71460
71461 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71462
71463         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
71464         (jm_PREREQ): Use it.
71465
71466 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71467
71468         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
71469         Use ssize_t, not int, to store result of readlink.
71470         Check for ssize_t overflow as well as size_t overflow,
71471         as POSIX says the result of readlink is implementation-defined
71472         when ssize_t overflows.
71473         Remove unnecessary cast to char*.
71474         Use free+malloc instead of realloc, as the storage doesn't need
71475         to be preserved and it's clearer and can be more efficient that way.
71476         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
71477         * lib/xreadlink.h (xreadlink): Update prototype.
71478
71479 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71480
71481         * lib/xgetcwd.c: Revert some of the previous change; intead,
71482         fix the HAVE_GETCWD_NULL code to behave more like the
71483         !HAVE_GETCWD_NULL code used to.
71484
71485         Include "xalloc.h".
71486         (xgetcwd): Do not return NULL when memory is exhausted; instead,
71487         invoke xalloc_die.
71488
71489 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71490
71491         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
71492         sys/param.h, as pathmax.h includes them.
71493
71494 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71495
71496         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
71497         (jm_PREREQ_XGETCWD): New macro.
71498
71499         * m4/getcwd.m4: New file.
71500
71501 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71502
71503         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
71504         like the HAVE_GETCWD_NULL code.
71505         Include pathmax.h if not HAVE_GETCWD.
71506         Do not include xalloc.h.
71507         (INITIAL_BUFFER_SIZE): New symbol.
71508         Do not use xmalloc / xrealloc, since the caller is responsible for
71509         handling errors.  Preserve errno around `free' during failure.
71510         Do not overrun buffer when using getwd.
71511
71512 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71513
71514         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
71515         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
71516         getcwd (NULL, 0).
71517
71518 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71519
71520         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
71521         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
71522         spotted by Jim Meyering.
71523
71524 2001-09-03  Jim Meyering  <meyering@lucent.com>
71525
71526         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
71527         failure.
71528
71529 2001-09-02  Jim Meyering  <meyering@lucent.com>
71530
71531         * lib/error.c: Update from GNU libc.
71532
71533 2001-09-01  Jim Meyering  <meyering@lucent.com>
71534
71535         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
71536         Used by df.
71537
71538 2001-09-01  Jim Meyering  <meyering@lucent.com>
71539
71540         * lib/xreadlink.c: New file.
71541         * lib/xreadlink.h: New file.
71542         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
71543         xreadlink.h.
71544
71545         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
71546         doesn't conflict with sparc Solaris 7's definition in
71547         /usr/include/sys/int_types.h.
71548
71549         * lib/exclude.c: Use `""', not `<>' to #include non-system header
71550         files.
71551         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
71552         and strncasecmp as r-values.  Unixware didn't have declarations.
71553
71554 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71555
71556         * lib/xstrtol.h: Add copyright notice.
71557         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
71558         LONGINT_INVALID_SUFFIX_CHAR.
71559
71560 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71561
71562         * lib/xstrtol.c (strtoimax): New decl.
71563
71564 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71565
71566         * lib/xgetcwd.c: Don't include pathmax.h.
71567         Include stdlib.h and unistd.h if available.
71568         Include xalloc.h.
71569         (xmalloc, xstrdup, free): Remove decls.
71570         (xgetcwd): Don't assume sizes fit in unsigned.
71571         Check for overflow when computing sizes.
71572         Simplify reallocation code.
71573
71574 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71575
71576         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
71577         a directory's st_size can have an arbitrary value, so the old
71578         usage could waste an arbitrary amount of memory.  All uses
71579         changed.
71580         * lib/savedir.h: Update prototype.
71581
71582 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71583
71584         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
71585
71586         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
71587         old strtoimax.c.
71588
71589         Also, make the following further changes to make this file's
71590         configuration more similar to that of strtol.c:
71591         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
71592         (strtoumax, uintmax_t, strtoull, strtol): Remove.
71593         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
71594         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
71595         changed to signed values.
71596
71597         And make the following changes as well:
71598         Fix copyright notice, as 1999 was missing.
71599         (verify): New macro.
71600         (strtoimax): Check sizes at compile-time, not run-time.
71601         Prefer strtol to strtoll if both work.
71602         (main): Remove; it was not that useful and was a pain to maintain.
71603
71604         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
71605
71606 2001-08-31  Jim Meyering  <meyering@lucent.com>
71607
71608         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
71609         Use an initial, malloc'd, buffer of length 128 rather than
71610         a statically allocated one of length 1024.
71611
71612 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71613
71614         Simplify code, partly by assuming autoconf 2.52 semantics.
71615
71616         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
71617
71618         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
71619         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
71620         All uses removed.
71621         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
71622         Move AC_REQUIRE to next-to-top level, to avoid confusion.
71623         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
71624         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
71625         jm_AC_HEADER_INTTYPES_H.
71626         * m4/jm-macros.m4 (jm_MACROS): Likewise.
71627
71628         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
71629
71630         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71631         Quote first arg of AC_DEFUN.
71632         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
71633         since they are needed to parse the include file even if we need
71634         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
71635         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
71636         but with opposite signedness.
71637
71638 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71639
71640         Merge 'exclude' changes from tar 1.13.22.
71641         This fixes one or two unlikely storage allocation overflow bugs,
71642         but doesn't change user-visible behavior otherwise.
71643
71644 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71645
71646         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
71647         (jm_PREREQ_EXCLUDE): New macro.
71648
71649 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71650
71651         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
71652         tm to be declared.
71653
71654 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71655
71656         * lib/hash.c: Remove '2001' from copyright notice.
71657
71658 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71659
71660         * lib/full-write.h: New file.
71661         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
71662         * lib/full-write.c: Correct credits, as cccp.c no longer
71663         exists and anyway it was so heavily changed from the old cccp
71664         code as to be unrecognizable.  Include full-write.h.
71665         (full_write) Return size_t, with short writes meaning failure.
71666         All callers changed.  This fixes a bug with large buffers
71667         on 64-bit hosts.
71668         * lib/utime.c: Include full-write.h.
71669
71670 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71671
71672         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
71673         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
71674         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
71675         Include if available.
71676         (<xalloc.h>): Include
71677         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
71678         (verify): New macro.  Use it to verify that EXCLUDE macros do not
71679         collide with FNM macros.
71680         (struct patopts): New struct.
71681         (struct exclude): Use it, as exclude patterns now come with options.
71682         (new_exclude): Support above changes.
71683         (new_exclude, add_exclude_file):
71684         Initial size must now be a power of two to simplify overflow checking.
71685         (free_exclude, fnmatch_no_wildcards): New function.
71686         (excluded_filename): No longer requires options arg, as the options
71687         are determined by add_exclude.  Now returns bool, not int.
71688         (excluded_filename, add_exclude):
71689         Add support for the fancy new exclusion options.
71690         (add_exclude, add_exclude_file): Now takes int options arg.
71691         Check for arithmetic overflow when computing sizes.
71692         (add_exclude_file): xrealloc might modify errno, so don't
71693         realloc until after errno might be used.
71694
71695         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
71696         New macros.
71697         (free_exclude): New decl.
71698         (add_exclude, add_exclude_file): Now takes int options arg.
71699         (excluded_filename): No longer requires options arg, as the options
71700         are determined by add_exclude.  Now returns bool, not int.
71701
71702 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71703
71704         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
71705
71706 2001-08-27  Jim Meyering  <meyering@lucent.com>
71707
71708         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
71709
71710         * lib/version-etc.c (N_): Remove definition.
71711         Revert most of last change.
71712         Instead, simply don't mark the `Copyright...' string for translation.
71713         Based on advice from Paul Eggert.
71714
71715         * lib/strtoxmax.c: Tweak comment.
71716
71717 2001-08-26  Jim Meyering  <meyering@lucent.com>
71718
71719         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
71720
71721         * m4/xstrtoimax.m4: New file.
71722         * m4/xstrtoumax.m4: Add comments explaining why we
71723         AC_REPLACE_FUNCS(strtol).
71724
71725 2001-08-26  Jim Meyering  <meyering@lucent.com>
71726
71727         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
71728         of copyright with `%s' so translators don't get an untranslated
71729         message in 2002.
71730         (COPYRIGHT_YEAR): Define.
71731         (version_etc): Use fprintf rather than fputs.
71732         Suggestion from Ulrich Drepper.
71733
71734         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
71735
71736         * lib/strtoll.c: New file, from GNU libc.
71737         * lib/xstrtoimax.c: New file.
71738
71739         * lib/xstrtol.h: Add xstrtoimax.
71740         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
71741         * lib/strtoimax.c: New file.  Likewise, but first define
71742         STRTOUXMAX_SIGNED.
71743
71744         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
71745         ...
71746         * lib/strtoxmax.c: ... then renamed to this.
71747
71748 2001-08-18  Paul Eggert  <eggert@twinsun.com>
71749
71750         * m4/inttypes.m4: Add AC_PREREQ(2.13).
71751         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
71752         (jm_AC_TYPE_INTMAX_T): New macro.
71753         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
71754
71755         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
71756
71757         * m4/longlong.m4: Renamed from ulonglong.m4.
71758         * m4/inttypes.m4: Renamed from inttypes_h.m4.
71759         * m4/uintmax_t.m4: Removed.
71760
71761 2001-08-13  Paul Eggert  <eggert@twinsun.com>
71762
71763         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
71764         Port to Solaris 8, where 'sed' requires a space after the 'r'
71765         command, and where sh dislikes "$/".  Clean up the spacing a bit.
71766         Redirect output to $tmp just once.
71767
71768 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
71769
71770         * lib/addext.c (<errno.h>): Include.
71771         (errno): Declare if not defined.
71772         (addext): Work correctly when pathconf returns -1 and leaves
71773         errno alone because there is no limit.  Also, work even if
71774         pathconf returns a value greater than SIZE_MAX.
71775
71776 2001-08-12  Jim Meyering  <meyering@lucent.com>
71777
71778         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
71779         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
71780         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
71781         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
71782         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
71783         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
71784         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
71785         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
71786         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
71787         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
71788         utime.m4, utimes.m4, xstrtoumax.m4:
71789         Quote the first argument in each use of AC_DEFUN.
71790
71791 2001-08-12  Jim Meyering  <meyering@lucent.com>
71792
71793         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
71794         Simply `return getcwd (NULL, 0);'.
71795         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
71796         Use 1300 as initial value for length, not PATH_MAX.
71797
71798         * lib/pathmax.h: Clean up cpp syntax.
71799
71800 2001-08-12  Jim Meyering  <meyering@lucent.com>
71801
71802         * lib/gettimeofday.c: New file.
71803         * lib/gtod.h: New file.
71804         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
71805
71806 2001-08-05  Jim Meyering  <meyering@lucent.com>
71807
71808         * m4/jm-macros.m4: Require autoconf-2.52.
71809
71810 2001-08-04  Jim Meyering  <meyering@lucent.com>
71811
71812         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
71813         stmt, to get in sync with glibc.
71814
71815 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71816
71817         The following changes are from gettext 0.10.39 as maintained by
71818         Bruno Haible.
71819
71820         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
71821         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
71822         with inverted sense.  All uses changed.
71823
71824         * lib/mbswidth.c: Don't include <limits.h>.
71825         Include <stdlib.h> and <string.h> unconditionally.
71826         (iswcntrl, mbsinit, ISCNTRL): New macros.
71827         (mbsnwidth): Use K&R style function declarations.
71828         Don't bother checking for MB_LEN_MAX == 1, since the compiler
71829         can optimize it when MB_CUR_MAX == 1.
71830         The width of control characters is zero, not 1.
71831
71832 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71833
71834         The following changes are from gettext 0.10.39 as maintained by
71835         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
71836
71837         * m4/codeset.m4: Upgrade to serial AM1.
71838         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
71839         all uses changed.  Quote first arg of AC_DEFUN.
71840         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
71841
71842         * m4/iconv.m4: Upgrade to serial AM2.
71843         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
71844         Add --with-libconv-prefix.
71845         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
71846         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
71847         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
71848         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
71849         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
71850
71851         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
71852         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
71853         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
71854         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
71855         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
71856         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
71857         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71858         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
71859         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71860
71861         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
71862         string.h any more.
71863
71864         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
71865         not the default value.
71866
71867         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
71868         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
71869         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
71870         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
71871         Also check for iswcntrl, used for wcwidth fallback.
71872         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
71873         to Autoconf 2.13.
71874
71875 2001-08-03  Jim Meyering  <meyering@lucent.com>
71876
71877         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
71878         as it was in the original.  Reported by Paul Eggert.
71879
71880 2001-07-16  Jim Meyering  <meyering@lucent.com>
71881
71882         * m4/gettimeofday.m4: New file.
71883         Prompted by a report from Bernhard Baehr.
71884
71885 2001-07-15  Jim Meyering  <meyering@lucent.com>
71886
71887         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
71888         stuff. Now it's in ../Makefile.cfg.
71889
71890 2001-07-15  Jim Meyering  <meyering@lucent.com>
71891
71892         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
71893         (BUILT_SOURCES): Add unlocked-io.h.
71894         (io_functions): Define.
71895         (unlocked-io.h): New rule.
71896         (DISTCLEANFILES): Add unlocked-io.h.
71897         (all-local): Depend on unlocked-io.h, to ensure it is created.
71898
71899         * lib/unlocked-io.hin: New file
71900
71901         * lib/regex.c: Update from glibc.
71902
71903 2001-07-05  Jim Meyering  <meyering@lucent.com>
71904
71905         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
71906         recommendation.
71907         (libfetish_a_SOURCES): Put all .h files here instead.
71908         Remove a thus-exposed (better checks in automake) duplicate and
71909         two unnecessary .h files.
71910
71911 2001-07-04  Jim Meyering  <meyering@lucent.com>
71912
71913         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
71914         that generates jm-glibc-io.m4 so that it doesn't trigger any make
71915         distcheck failure.
71916
71917 2001-07-02  Jim Meyering  <meyering@lucent.com>
71918
71919         The following changes were prompted by suggestions from Bruno Haible.
71920
71921         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
71922         is now generated.
71923         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
71924         definition of EXTRA_DIST.
71925         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
71926         ensure that the generated file is created/updated whenever the list
71927         of $(unlocked_functions) is changed.
71928         (jm-glibc-io.m4): New rule.
71929         (unlocked-io.h): New rule -- currently unused.
71930
71931 2001-06-24  Jim Meyering  <meyering@lucent.com>
71932
71933         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
71934         unmatched right bracket, rather than kludging it with an extra,
71935         falsely-matching quote in a comment.  Patch by Akim Demaille.
71936
71937 2001-06-11  Jim Meyering  <meyering@lucent.com>
71938
71939         * lib/regex.c: Update from GNU libc.
71940
71941 2001-05-27  Jim Meyering  <meyering@lucent.com>
71942
71943         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
71944         Check for ut_type in struct utmp.
71945
71946 2001-05-27  Jim Meyering  <meyering@lucent.com>
71947
71948         * lib/readutmp.h (UT_TYPE): Define.
71949
71950 2001-05-24  Jim Meyering  <meyering@lucent.com>
71951
71952         * lib/argmatch.c: Include "quote.h".
71953         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
71954         quote function.  Reported by Göran Uddeborg.
71955
71956 2001-05-22  Jim Meyering  <meyering@lucent.com>
71957
71958         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
71959         now that we use the package-supplied version unconditionally.
71960         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
71961
71962 2001-05-21  Jim Meyering  <meyering@lucent.com>
71963
71964         * m4/regex.m4: Change a couple backticks to single quotes to avoid
71965         shell syntax errors.
71966
71967 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71968
71969         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
71970
71971 2001-05-20  Paul Eggert  <eggert@twinsun.com>
71972
71973         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
71974         Don't bother to check library strftime, since
71975         we'll be using our own my_strftime function anyway.
71976         Define my_strftime instead of strftime.
71977
71978 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
71979
71980         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
71981         which is not yet declared.
71982
71983 2001-05-15  Jim Meyering  <meyering@lucent.com>
71984
71985         * m4/regex.m4: Use proper quoting so brackets appear in the test
71986         program.
71987         Reported by, and with help from, Bruno Haible.
71988
71989 2001-05-13  Jim Meyering  <meyering@lucent.com>
71990
71991         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
71992         undefined.
71993
71994 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71995
71996         dirname code cleanup.  base_name now behaves more compatibly
71997         with POSIX basename when given file names that have trailing
71998         slashes, and similarly for dir_name.  Add new primitives
71999         base_len and dir_len.  Put the directory-name-related decls
72000         into dirname.h.
72001
72002         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
72003         * lib/backupfile.c (base_name): Likewise.
72004         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
72005         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
72006         * lib/makepath.c (strip_trailing_slashes): Likewise.
72007         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
72008         ISSLASH): Likewise.
72009         * lib/rename.c (strip_trailing_slashes): Likewise.
72010         * lib/same.c (base_name): Likewise.
72011         * lib/stripslash.c (ISSLASH): Likewise.
72012
72013         * lib/addext.c: Include <dirname.h> after size_t is defined.
72014         * lib/backupfile.c: Likewise.
72015
72016         * lib/addext.c (addext): Use base_len to trim redundant
72017         trailing slashes instead of doing it ourselves.
72018         But do not trim the last slash if it is not redundant.
72019
72020         * lib/backupfile.c (find_backup_file_name,
72021         max_backup_version): Use base_len instead of rolling it ourselves.
72022         Handle the case of "" and (on DOS) "C:" correctly.
72023
72024         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
72025         needed. Include <string.h>, <dirname.h>.
72026         (base_name): Allow file names ending in slashes, other than names
72027         that are all slashes.  In this case, return the basename followed
72028         by the slashes.  This is more general, and can be used in places
72029         where the original base_name purposely had an assertion failure.
72030         (base_len): New function.
72031
72032         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
72033         Do not include <assert.h>; no longer needed.
72034         Include xalloc.h.
72035         (memrchr): Remove decl.
72036         (dir_name_r): Remove.
72037         (dir_len): Renamed from dirlen.  All callers changed.
72038         Rewrite in terms of base_name, for simplicity and consistency.
72039         (dir_name): Never return NULL.  All callers changed.
72040         Do not include <stdlib.h> in test program; no longer needed.
72041         return 0; is fine for test program.
72042
72043         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
72044         New macros.
72045         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
72046
72047         * lib/path-concat.c (path_concat): Use base_len to compute
72048         base length, not strlen; this means we cannot rely on memcpy
72049         to null-terminate.
72050
72051         * lib/same.c (STREQ): Remove.
72052         (same_name): Handle the case where the basename ends in trailing '/'.
72053
72054         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
72055         a slash was stripped.  Do not strip the last slash after a
72056         file system prefix.
72057
72058 2001-05-11  Paul Eggert  <eggert@twinsun.com>
72059
72060         * lib/Makefile.am (libfetish_a_SOURCES):
72061         Add strftime.c, since we now compile it on all hosts.
72062
72063         * lib/strftime.c (my_strftime):
72064         Define to nstrftime if emacs, but only if my_strftime is not defined.
72065         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
72066         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
72067         Add one more extra argument: a nanoseconds value.
72068         All uses changed.
72069         (ns): New macro.
72070         (my_strftime function): Add %N format.
72071         (emacs_strftimeu): Renamed from emacs_strftime,
72072         with extra ut argument.
72073
72074 2001-05-09  Paul Eggert  <eggert@twinsun.com>
72075
72076         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
72077
72078 2001-04-21  Jim Meyering  <meyering@lucent.com>
72079
72080         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
72081         doesn't interfere.
72082
72083 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
72084
72085         * m4/ftruncate.m4: Check for chsize.
72086         Link with ftruncate.o unconditionally if ftruncate is missing.
72087         This was required when cross-compiling to i586-mingw32msvc.
72088
72089 2001-04-08  Jim Meyering  <meyering@lucent.com>
72090
72091         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
72092         recomputed; that's necessary when the offset spans a DST transition.
72093         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
72094
72095 2001-04-02  Jim Meyering  <meyering@lucent.com>
72096
72097         * lib/regex.h, regex.c: Update from GNU libc.
72098
72099 2001-03-24  Jim Meyering  <meyering@lucent.com>
72100
72101         * m4/jm-macros.m4: Require autoconf-2.49d.
72102
72103 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
72104
72105         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
72106
72107 2001-03-19  Paul Eggert  <eggert@twinsun.com>
72108
72109         * lib/version-etc.c (version_etc_copyright): Update to 2001.
72110
72111 2001-03-17  Jim Meyering  <meyering@lucent.com>
72112
72113         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
72114         now that the version in autoconf is equivalent.
72115         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
72116
72117         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
72118         Suggestion from Akim Demaille.
72119
72120         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
72121         (jm_PREREQ_TEMPNAME): New function.
72122
72123 2001-03-16  Paul Eggert  <eggert@twinsun.com>
72124
72125         * lib/tempname.c (uint64_t): Define to uintmax_t if
72126         not defined, and if UINT64_MAX is not defined.
72127         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
72128         Reported by John David Anglin.
72129
72130 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
72131
72132         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
72133         resolve alias if codeset is empty.
72134         * lib/config.charset (BeOS): Use wildcard syntax.
72135
72136 2001-03-13  Jim Meyering  <meyering@lucent.com>
72137
72138         * lib/path-concat.c (path_concat)
72139         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
72140         concatenating e.g., `C:' and `foo'.
72141         From Bruno Haible.
72142
72143 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
72144
72145         * lib/localcharset.c (locale_charset): Don't use
72146         setlocale(LC_CTYPE,NULL). Don't return NULL.
72147         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
72148
72149 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
72150
72151         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
72152         support for DOS/DJGPP.
72153
72154 2001-03-01  Paul Eggert  <eggert@twinsun.com>
72155
72156         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
72157         lacks mkstemp.  Compile our own tempname.c if we compile our own
72158         mkstemp.c, as mkstemp relies on tempname.
72159
72160 2001-03-01  Jim Meyering  <meyering@lucent.com>
72161
72162         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
72163         AH_VERBATIM really does output its argument verbatim.
72164
72165 2001-02-28  Paul Eggert  <eggert@twinsun.com>
72166
72167         * lib/Makefile.am (libfetish_a_SOURCES):
72168         Add dup-safer.c, fopen-safer.c.
72169         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
72170
72171         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
72172         * lib/unistd-safer.h: New files.
72173
72174 2001-02-25  Paul Eggert  <eggert@twinsun.com>
72175
72176         The mkstemp replacement is taken from glibc 2.2.2, with some
72177         portability fixes for use outside glibc, as follows:
72178
72179         * lib/tempname.c (struct_stat64): New macro.
72180         (direxists, __gen_tempname): Use it.
72181         This avoids a portability problem with Solaris 8.
72182
72183         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
72184         (<stddef.h>, <stdint.h>, <string.h>):
72185         Include only if STDC_HEADERS || _LIBC.
72186         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
72187         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
72188         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
72189         (__set_errno): Define this macro if <errno.h> doesn't.
72190         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
72191         Define these macros if <stdio.h> doesn't.
72192         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
72193         Define these macros if <sys/stat.h>
72194         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
72195         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
72196         __xstat64): Define if not _LIBC.
72197         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
72198         (__gen_tempname): Invoke gettimeofday only if
72199         HAVE_GETTIMEOFDAY || _LIBC;
72200         otherwise, fall back on plain "time".
72201         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
72202
72203         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
72204
72205         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
72206
72207 2001-02-18  Paul Eggert  <eggert@twinsun.com>
72208
72209         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
72210
72211 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72212
72213         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
72214         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
72215         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
72216         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
72217
72218 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72219
72220         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
72221         Remove workaround macros for hosts that have mbrtowc but not
72222         mbstate_t, as we now insist on proper declarations for both
72223         before using mbrtowc.
72224
72225 2001-02-17  Jim Meyering  <meyering@lucent.com>
72226
72227         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
72228         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
72229         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
72230         UnixWare 7.1.1.
72231
72232         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
72233         rather than AC_CACHE_VAL.
72234
72235 2001-02-17  Jim Meyering  <meyering@lucent.com>
72236
72237         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
72238         around included file name.
72239
72240         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
72241
72242         * lib/strftime.c: Update from GNU libc (the only changes were to
72243         comments).
72244
72245 2001-02-17  Jim Meyering  <meyering@lucent.com>
72246
72247         * lib/regex.c: Update from libc.
72248
72249 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
72250
72251         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
72252         clash.
72253
72254 2001-02-16  Paul Eggert  <eggert@twinsun.com>
72255
72256         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
72257         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
72258         Reported by Mark Hounschell via Paul Eggert.
72259
72260 2001-02-07  Jim Meyering  <meyering@lucent.com>
72261
72262         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
72263
72264 2001-02-05  Jim Meyering  <meyering@lucent.com>
72265
72266         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
72267         it includes the patch required for `large file' support with at least
72268         HP-UX's 10.20 /bin/cc.
72269
72270 2001-02-03  Jim Meyering  <meyering@lucent.com>
72271
72272         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
72273         AS_IF, now that it works once again (mysteriously).
72274         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72275
72276 2001-01-30  Jim Meyering  <meyering@lucent.com>
72277
72278         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
72279         * m4/chown.m4: Rename conftestchown to conftest.chown.
72280         * m4/rename.m4: s/conftestdir/conftest.d1/ and
72281         s/conftestdir2/conftest.d2/.
72282         * m4/utimes.m4: s/conftestdata/conftest.data/
72283         Inspired by Pavel Roskin's change in autoconf.
72284
72285 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
72286
72287         * lib/config.charset: Update for FreeBSD 4.2.
72288
72289 2001-01-27  Jim Meyering  <meyering@lucent.com>
72290
72291         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
72292         a use of AS_IF.
72293         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72294
72295 2001-01-26  Jim Meyering  <meyering@lucent.com>
72296
72297         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
72298         quotearg.c includes it.
72299
72300 2001-01-26  Jim Meyering  <meyering@lucent.com>
72301
72302         * lib/quotearg.c: Include stddef.h.
72303         * lib/quote.c: Include stddef.h.
72304         Reported by Axel Kittenberger.
72305
72306         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
72307         line in double quotes so that it evokes a better diagnostic.
72308         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
72309         Reported by Axel Kittenberger.
72310
72311 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
72312
72313         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
72314         as if it was a `charset'.
72315
72316 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72317
72318         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
72319         has const.
72320
72321 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72322
72323         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
72324         to avoid a warning.  Add back 'const' to inptr.
72325
72326 2001-01-20  Jim Meyering  <meyering@lucent.com>
72327
72328         Be sure that headers are checked before used in code compiled
72329         for the type checks.
72330         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
72331         In place of that, invoke jm_CHECK_ALL_TYPES.
72332         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
72333         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
72334         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
72335         The check for ssize_t was mistakenly run before the test for unistd.h.
72336
72337         The configure-time check for stdbool.h was missing.
72338         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
72339         (jm_PREREQ_HASH): New function.
72340
72341 2001-01-17  Jim Meyering  <meyering@lucent.com>
72342
72343         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
72344         for autoconf-2.49c.
72345         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
72346
72347 2001-01-16  Jim Meyering  <meyering@lucent.com>
72348
72349         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
72350         From Bruno Haible.
72351
72352 2001-01-14  Jim Meyering  <meyering@lucent.com>
72353
72354         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
72355         foo and bar.  Create conftestdir/ in the script, not in the C code.
72356         Remove directories in the script, not in the C code.
72357         Remove conftestdir{,2} before trying to create the directory.
72358         Make the entire configure script fail if the mkdir fails.
72359
72360 2001-01-14  Jim Meyering  <meyering@lucent.com>
72361
72362         * lib/rename.c: New file.  From Volker Borchert.
72363         Include stdlib.h, string.h or strings.h, and xalloc.h.
72364         Use strip_trailing_slashes rather than open-coding it.
72365
72366 2001-01-03  Paul Eggert  <eggert@twinsun.com>
72367
72368         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
72369
72370 2001-01-03  Jim Meyering  <meyering@lucent.com>
72371
72372         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
72373         of local `inptr' to avoid warning with some system declarations of
72374         iconv.
72375
72376 2001-01-02  Volker Borchert  <bt@teknon.de>
72377
72378         * m4/rename.m4: New file.
72379         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
72380
72381 2001-01-01  Jim Meyering  <meyering@lucent.com>
72382
72383         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
72384         even on systems with utmpx.h.  It's necessary for the declaration of
72385         utmp's ut_user member.  Reported by Andreas Jaeger.
72386
72387         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
72388         available. They are required for the declarations of getgrgid and
72389         getpwuid resp.
72390         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
72391         Reported by Andreas Jaeger.
72392
72393 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
72394
72395         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
72396         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
72397         so `make install' also works in VPATH builds.
72398
72399 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
72400
72401         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
72402         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
72403         can be used in subdirectories.
72404
72405 2000-12-29  Paul Eggert  <eggert@twinsun.com>
72406
72407         * lib/modechange.c: Do not assume that mode_t uses the
72408         traditional octal encoding.  E.g. "chmod 1 FOO" should set
72409         the other-execute bit of FOO even if S_IXOTH != 1.
72410
72411         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
72412         WOTH, XOTH, ALLM): New macros.
72413         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
72414          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
72415         Use them.
72416         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
72417         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
72418         (mode_compile):
72419         No need to use uintmax_t; unsigned long is long enough.
72420         Don't bother to get suffix since we don't use it.
72421
72422 2000-12-26  Jim Meyering  <meyering@lucent.com>
72423
72424         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
72425         better with autoheader.
72426
72427 2000-12-24  Jim Meyering  <meyering@lucent.com>
72428
72429         * lib/hash.c (is_prime): Return explicit boolean values.
72430         (hash_get_first): Return NULL to appease Irix5.6's 89.
72431         Reported by Nelson Beebe.
72432
72433 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
72434
72435         * lib/localcharset.c (locale_charset): Add support for Win32.
72436
72437 2000-12-18  Paul Eggert  <eggert@twinsun.com>
72438
72439         * lib/physmem.h, lib/physmem.c: New files.
72440
72441         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
72442         (noinst_HEADERS): Add physmem.h.
72443
72444         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
72445         't' for compatibility with Solaris 8 sort.
72446
72447 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
72448
72449         * lib/config.charset: Add support for BeOS.
72450
72451 2000-12-17  Jim Meyering  <meyering@lucent.com>
72452
72453         * m4/dos.m4 (jm_AC_DOS): New file and macro.
72454         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
72455
72456 2000-12-16  Jim Meyering  <meyering@lucent.com>
72457
72458         This bug had a serious impact on chown: `chown N:M FILE' (for integer
72459         N and M) would have treated it like `chown N:N FILE'.
72460
72461         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
72462
72463 2000-12-16  Jim Meyering  <meyering@lucent.com>
72464
72465         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
72466         SHELLS_FILE to a file name that's useful on djgpp systems.
72467         Include stdlib.h.
72468         (ADDITIONAL_DEFAULT_SHELLS): Define.
72469         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
72470         Based mostly on a patch from Prashant TR.
72471
72472 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
72473
72474         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
72475         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
72476         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
72477
72478 2000-12-08  Andreas Schwab  <schwab@suse.de>
72479
72480         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
72481         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
72482
72483 2000-12-07  Jim Meyering  <meyering@lucent.com>
72484
72485         * lib/stripslash.c (ISSLASH): Define.
72486         (strip_trailing_slashes): Use ISSLASH rather than comparing against
72487         `/'.
72488         From Prashant TR.
72489
72490         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
72491         (dir_name_r): Declare this function as static.
72492         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
72493         manifest itself on a name containing a mix of slashes and
72494         backslashes.
72495         Make this function work with names starting with a DOS-style
72496         drive letter and colon prefix.
72497         (dir_name): Append `.' if necessary.
72498         Based mostly on patches from Prashant TR and Eli Zaretskii.
72499
72500         * lib/dirname.h (dir_name_r): Remove prototype.
72501
72502 2000-12-06  Paul Eggert  <eggert@twinsun.com>
72503
72504         * m4/off_t-format.m4: Remove this file.
72505         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
72506
72507 2000-12-06  Jim Meyering  <meyering@lucent.com>
72508
72509         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
72510         replacement strtoull, we may well need the replacement strtoul, too.
72511         Check for declarations of strtoul and strtoull.
72512         Check for strtol.  Mainly as a cue to cause automake to include
72513         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
72514         Check for limits.h -- strtol.c needs it.
72515
72516 2000-12-05  Jim Meyering  <meyering@lucent.com>
72517
72518         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
72519
72520 2000-12-04  Jim Meyering  <meyering@lucent.com>
72521
72522         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
72523         Also include memory.h, stdlib.h, unistd.h if appropriate.
72524         Reported by Andreas Jaeger (conflicting declaration of malloc).
72525
72526 2000-12-02  Jim Meyering  <meyering@lucent.com>
72527
72528         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
72529         * m4/jm-macros.m4 (jm_MACROS): require it.
72530
72531 2000-12-02  Jim Meyering  <meyering@lucent.com>
72532
72533         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
72534
72535 2000-12-01  Paul Eggert  <eggert@twinsun.com>
72536
72537         * lib/memrchr.c: Include <config.h> before any system include file.
72538
72539 2000-11-30  Jim Meyering  <meyering@lucent.com>
72540
72541         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
72542
72543 2000-11-30  Jim Meyering  <meyering@lucent.com>
72544
72545         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
72546
72547 2000-11-29  Paul Eggert  <eggert@twinsun.com>
72548
72549         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
72550
72551 2000-11-26  Jim Meyering  <meyering@lucent.com>
72552
72553         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
72554
72555 2000-11-22  Paul Eggert  <eggert@twinsun.com>
72556
72557         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
72558         size of (size_t) -1; it's not portable.
72559
72560 2000-11-17  Jim Meyering  <meyering@lucent.com>
72561
72562         * lib/strstr.c: Update from GNU libc.
72563
72564 2000-11-17  Akim Demaille  <akim@epita.fr>
72565
72566         * lib/obstack.h: Formatting changes.
72567         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
72568         prevent type checking.
72569         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
72570         cast the value to (void *): assigning a `foo *' to a `void *'
72571         variable is valid.
72572         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
72573
72574 2000-11-16  Jim Meyering  <meyering@lucent.com>
72575
72576         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
72577
72578 2000-11-11  Jim Meyering  <meyering@lucent.com>
72579
72580         * lib/error.c: Add a couple #includes, merging from GNU libc version.
72581
72582 2000-11-10  Jim Meyering  <meyering@lucent.com>
72583
72584         * lib/obstack.h: Update from GNU libc.
72585         * lib/obstack.c: Likewise.
72586
72587 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
72588
72589         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
72590
72591 2000-11-06  Paul Eggert  <eggert@twinsun.com>
72592
72593         * lib/getusershell.c (setusershell): Use rewind rather than
72594         fseek/fseeko, to avoid configuration hassles with fseeko.
72595         Don't bother opening SHELLS_FILE if shellstream is NULL;
72596         it's not necessary.
72597
72598 2000-11-05  Jim Meyering  <meyering@lucent.com>
72599
72600         * lib/makepath.h (make_dir): Declare.
72601         * lib/makepath.c (make_dir): Remove `static' attribute.
72602         Tweak a comment.
72603
72604 2000-11-04  Jim Meyering  <meyering@lucent.com>
72605
72606         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
72607
72608 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
72609
72610         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
72611         last one in a bucket, advance to the next bucket.
72612
72613 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
72614
72615         * lib/fnmatch.c: Do not comment out all the code if we are using
72616         the GNU C library, because in some cases we are replacing buggy
72617         code in the GNU C library itself.
72618
72619 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
72620
72621         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
72622         (regex_compile): Catch bogus \(\1\).
72623
72624 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72625
72626         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
72627         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
72628         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
72629
72630 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72631
72632         * lib/error.h, getline.h, modechange.h:
72633         Remove "2000" from Copyright line, as the file hasn't been
72634         changed this year other than in the copyright notice.
72635
72636         * lib/xalloc.h: Add "2000" to Copyright line, as this file
72637         was changed this year.
72638
72639 2000-10-29  Jim Meyering  <meyering@lucent.com>
72640
72641         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
72642         renaming.
72643         * m4/ls-mntd-fs.m4: Likewise
72644
72645 2000-10-29  Jim Meyering  <meyering@lucent.com>
72646
72647         * lib/xstat.in: Fix grammar in comment.
72648
72649 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
72650
72651         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
72652         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
72653         doesn't define __restrict_arr.
72654
72655 2000-10-28  Jim Meyering  <meyering@lucent.com>
72656
72657         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
72658         (jm_PREREQ_MEMCHR): New function.
72659
72660 2000-10-28  Jim Meyering  <meyering@lucent.com>
72661
72662         * lib/memchr.c: Update from libc.
72663         Adjust for portability:
72664         [HAVE_STDLIB_H]: Include stdlib.h.
72665         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
72666         Undef __memchr, too.
72667         [!weak_alias]: Define __memchr to memchr.
72668
72669         * lib/regex.c: Update from libc.
72670         * lib/regex.h: Likewise.
72671         * lib/getopt1.c: Likewise.
72672         * lib/memcmp.c: Likewise.
72673
72674         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
72675         Avoid using fseek, when possible -- it's broken by design.
72676         Patch by Ulrich Drepper.
72677
72678 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
72679
72680         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
72681         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
72682         Giving in to popular pressure to shut up the compiler with casts.
72683
72684 2000-10-26  Jim Meyering  <meyering@lucent.com>
72685
72686         * lib/strftime.c: Update from libc.
72687
72688 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
72689
72690         * regex.c: More `unsigned char' -> `re_char' changes.
72691         Also change several `int' into `re_wchar_t'.
72692         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
72693         (PUSH_FAILURE_POINTER): Don't cast any more.
72694         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
72695         We want GCC to complain, since this piece of code makes
72696         re_match non-reentrant, which *should* be fixed.
72697         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
72698         (EXTEND_BUFFER): Use RETALLOC.
72699         (SET_LIST_BIT): Don't cast.
72700         (re_wchar_t): New type.
72701         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
72702         that those two functions will always properly return.
72703         (IMMEDIATE_QUIT_CHECK): Cast to void.
72704         (analyse_first): Use recursion rather than an explicit stack.
72705         (re_compile_fastmap): Can't fail anymore.
72706         (re_search_2): Don't check re_compile_fastmap for failure.
72707         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
72708         Now also sets the new value (passed in a new argument).
72709         (re_match_2_internal): Use it.
72710         Also, use a new var `reg' of type size_t when looping through regs
72711         rather than reuse the inappropriate `mcnt'.
72712
72713 2000-10-25  Jim Meyering  <meyering@lucent.com>
72714
72715         * lib/obstack.c: Update from libc.
72716
72717 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
72718
72719         * regex.c (regex_compile): Change the way of handling a range from
72720         a char less than 256 to a char not less than 256.
72721
72722 2000-10-24  Andrew Innes  <andrewi@gnu.org>
72723
72724         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
72725         NT-Emacs only.
72726         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
72727         so that re_search functions only quit when callers expect them to.
72728
72729 2000-10-23  Jim Meyering  <meyering@lucent.com>
72730
72731         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
72732         wrong.  That set_locale call must not have any side effects.
72733         From Paul Eggert.
72734
72735 2000-10-22  Jim Meyering  <meyering@lucent.com>
72736
72737         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
72738         [CYCLIC]: Remove now-unused definition.
72739
72740         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
72741         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
72742         Suggestion from Ulrich Drepper.
72743
72744 2000-10-21  Jim Meyering  <meyering@lucent.com>
72745
72746         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
72747         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
72748         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
72749
72750 2000-10-21  Jim Meyering  <meyering@lucent.com>
72751
72752         * lib/dirname.c (memrchr): Declare if necessary.
72753         (dir_name): Remove the restriction that there be no
72754         trailing slashes.  Now, this code skips past them, effectively
72755         ignoring them.
72756         [TEST_DIRNAME] (main): New unit tests.
72757
72758         * lib/memrchr.c: New file from GNU libc.
72759         Undef __memrchr, too.
72760         [!weak_alias]: Define __memrchr to memrchr.
72761         Guard weak_alias use with `#ifdef weak_alias'.
72762
72763 2000-10-21  Jim Meyering  <meyering@lucent.com>
72764
72765         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
72766         (dir_name): Use dir_name_r.
72767         * lib/dirname.h (dir_name_r): Declare it.
72768
72769 2000-10-17  Jim Meyering  <meyering@lucent.com>
72770
72771         * lib/quote.h (PARAMS): Define and use.
72772         Reported by Akim Demaille.
72773
72774         * lib/getopt.c: Update from libc.
72775
72776 2000-10-16  Jim Meyering  <meyering@lucent.com>
72777
72778         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
72779         setlocale.
72780         From Jan Fedak.
72781
72782 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
72783
72784         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
72785
72786 2000-09-25  Jim Meyering  <meyering@lucent.com>
72787
72788         * lib/md5.h (rol): Define (from GnuPG).
72789
72790         * lib/sha.c: Give credit (GnuPG) where due.
72791         (M): Use rol rather than open-coding it.
72792         Add a FIXME comment.
72793
72794 2000-09-21  Jim Meyering  <meyering@lucent.com>
72795
72796         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
72797         Reported by Michael Stone.
72798
72799 2000-09-20  Jim Meyering  <meyering@lucent.com>
72800
72801         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
72802         (noinst_HEADERS): Add sha.h.
72803         Based on code from Scott G. Miller and from GnuPG.
72804
72805 2000-09-18  Jim Meyering  <meyering@lucent.com>
72806
72807         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
72808         LIBS. Otherwise, everyone ends up linking with -lelf for some
72809         configurations.
72810         Reported by Mike Stone.
72811
72812 2000-09-15  Jim Meyering  <meyering@lucent.com>
72813
72814         * lib/regex.c: Update from libc.
72815
72816 2000-09-10  Jim Meyering  <meyering@lucent.com>
72817
72818         * lib/getopt.c (_getopt_internal): Update from glibc.
72819
72820 2000-09-09  Jim Meyering  <meyering@lucent.com>
72821
72822         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
72823         think it should be used as a general replacement for isascii.
72824         * lib/fnmatch.c: Likewise.
72825         * lib/mbswidth.c: Likewise
72826         * lib/regex.c: Likewise.
72827
72828         Don't use atoi.
72829         * lib/userspec.c: Include sys/param.h and limits.h.
72830         Include xstrtol.h.
72831         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72832         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
72833         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
72834         UID, GID.  Check range.
72835
72836 2000-09-06  Jim Meyering  <meyering@lucent.com>
72837
72838         * lib/getopt.c (_getopt_internal): Update from glibc.
72839
72840 2000-08-30  Jim Meyering  <meyering@lucent.com>
72841
72842         * lib/strftime.c: Merge in changes from GNU libc.
72843
72844 2000-08-26  Jim Meyering  <meyering@lucent.com>
72845
72846         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
72847         * m4/fpending.m4: New file.
72848
72849 2000-08-26  Jim Meyering  <meyering@lucent.com>
72850
72851         * lib/closeout.c: Include "__fpending.h".
72852         (close_stdout_status): Return right away if there's nothing to flush.
72853
72854         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
72855         * lib/__fpending.c: New file.
72856         * lib/__fpending.h: New file.
72857
72858 2000-08-20  Jim Meyering  <meyering@lucent.com>
72859
72860         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
72861         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
72862         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
72863
72864 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
72865
72866         Improve fileutils installation on systems where running
72867         programs (like install) can't be unlinked.
72868         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
72869         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
72870
72871 2000-08-07  Paul Eggert  <eggert@twinsun.com>
72872
72873         Standardize on "memory exhausted" instead of "Memory exhausted"
72874         or "virtual memory exhausted".
72875         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
72876         "virtual memory exhausted".
72877         * lib/same.c (same_name): Invoke xalloc_die instead of printing
72878         our own message.
72879         * lib/userspec.c (parse_user_spec): Likewise.
72880         * lib/bumpalloc.h: comment fix
72881         * lib/same.c, userspec.c: Include xalloc.h.
72882
72883         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
72884         not char *const and pointing to a constant array.
72885         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
72886         (xrealloc): Comment fix.
72887
72888         * lib/userspec.c (parse_user_spec):
72889         Don't translate a message until just before returning,
72890         to avoid unnecessary translation.
72891
72892 2000-08-07  Jim Meyering  <meyering@lucent.com>
72893
72894         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
72895         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
72896         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
72897         getgroups.c, gethostname.c, getopt.h, group-member.c,
72898         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
72899         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
72900         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
72901         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
72902         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
72903         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
72904         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
72905         yesno.c: Back out Copyright date changes for each file with no change
72906         this year.  This eases coordination with other programs using the same
72907         source code modules.  From Paul Eggert.
72908
72909 2000-08-06  Paul Eggert  <eggert@twinsun.com>
72910
72911         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
72912         not char, for compatibility with glibc 2.1.3 strftime.c.
72913
72914 2000-08-03  Greg McGary  <greg@mcgary.org>
72915
72916         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
72917         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
72918         (EXTEND_BUFFER): Use them.
72919
72920 2000-08-01  Jim Meyering  <meyering@lucent.com>
72921
72922         * lib/dirname.c (ISSLASH): Define.
72923         (BACKSLASH_IS_PATH_SEPARATOR): Define.
72924         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
72925         both `\' and `/' may be use as path separators.
72926         Based on a patch from Prashant TR.
72927
72928 2000-07-31  Paul Eggert  <eggert@twinsun.com>
72929
72930         * lib/quotearg.c (quotearg_n_options): Don't make the initial
72931         slot vector a constant, since it might get modified.
72932
72933 2000-07-31  Jim Meyering  <meyering@lucent.com>
72934
72935         * lib/xmalloc.c: Use `virtual memory exhausted', not
72936         `Memory exhausted'.
72937         * lib/obstack.c (print_and_abort): Likewise.
72938
72939 2000-07-30  Paul Eggert  <eggert@twinsun.com>
72940
72941         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
72942         buffer, so that the caller can always quote one small
72943         component of a "memory exhausted" message in slot 0.
72944         From a suggestion by Jim Meyering.
72945
72946 2000-07-30  Jim Meyering  <meyering@lucent.com>
72947
72948         * lib/makepath.c (make_path): Quote the other instance, too.
72949
72950         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
72951         (STATIC_BUF_SIZE): Define.
72952         (quotearg_n_options): Use only statically allocated storage when
72953         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
72954         than STATIC_BUF_SIZE.
72955
72956 2000-07-29  Jim Meyering  <meyering@lucent.com>
72957
72958         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
72959         * lib/dirname.c (dir_name): Likewise.
72960
72961         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
72962         `/'.
72963
72964         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
72965         (dir_name): Assert that there are no trailing slashes.
72966
72967 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
72968
72969         * lib/mbswidth.h (mbswidth): Add a flags argument.
72970         (mbswidth): New declaration.
72971         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
72972         * lib/mbswidth.c (mbswidth): Add a flags argument.
72973         (mbsnwidth): New function.
72974
72975 2000-07-24  Jim Meyering  <meyering@lucent.com>
72976
72977         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
72978
72979 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72980
72981         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
72982
72983 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72984
72985         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
72986         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
72987         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
72988         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
72989         invoke multibyte primitives.
72990
72991 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72992
72993         * lib/quotearg.c:
72994         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
72995         so that mbstate_t is always defined.
72996
72997         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
72998         be 1 in at least one GCC installation, and this configuration
72999         error is likely to be common.  Ignoring MB_LEN_MAX hurts
73000         performance on hosts that have mbrtowc but have only unibyte
73001         locales, but I assume these hosts are rare.
73002
73003 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73004
73005         * lib/mbswidth.c (_XOPEN_SOURCE):
73006         Don't define; this causes problems on Solaris 7.
73007         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
73008
73009 2000-07-23  Jim Meyering  <meyering@lucent.com>
73010
73011         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
73012         too: getgrgid, getpwuid, getuid.
73013
73014 2000-07-23  Jim Meyering  <meyering@lucent.com>
73015
73016         * lib/basename.c (base_name): Add an assertion.
73017
73018 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
73019
73020         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
73021         shadow its mbsinit function.
73022
73023 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73024
73025         * lib/mbswidth.h: New file.
73026         * lib/mbswidth.c: New file.
73027         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
73028         (noinst_HEADERS): Add mbswidth.h.
73029
73030 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73031
73032         * lib/config.charset: Add support for FreeBSD. Improve support for
73033         HP-UX and IRIX 6.
73034
73035 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
73036
73037         * m4/mbswidth.m4: New file.
73038         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
73039
73040 2000-07-15  Jim Meyering  <meyering@lucent.com>
73041
73042         * lib/makepath.c: Include quote.h.
73043         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
73044         corresponding argument in a `quote (...)' call.
73045         Give better diagnostics.
73046
73047         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
73048         (noinst_HEADERS): Add quote.h.
73049
73050         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
73051         from tar's src/misc.c.
73052         * lib/quote.h: New file.  Prototypes for same.
73053
73054 2000-07-14  Paul Eggert  <eggert@twinsun.com>
73055
73056         From a suggestion by Bruno Haible.
73057         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
73058         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
73059         to decide whether to define the BeOS workaround macro;
73060         this adjusts to the change to AC_MBSTATE_T.
73061
73062 2000-07-14  Jim Meyering  <meyering@lucent.com>
73063
73064         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
73065         jm_AC_TYPE_UINTMAX_T.
73066
73067 2000-07-13  Paul Eggert  <eggert@twinsun.com>
73068
73069         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
73070
73071         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
73072         quotearg_buffer_restyled): Add support for
73073         clocale_quoting_style.  Undo previous change to
73074         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
73075         and "{RIGHT QUOTATION MARK}" msgids.
73076
73077 2000-07-10  Paul Eggert  <eggert@twinsun.com>
73078
73079         From a suggestion by Bruno Haible.
73080         * m4/mbstate_t.m4 (AC_MBSTATE_T):
73081         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
73082         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
73083         and mbstate_t, to a single-part test that simply defines mbstate_t.
73084         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
73085         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
73086
73087 2000-07-10  Jim Meyering  <meyering@lucent.com>
73088
73089         * m4/strerror_r.m4: Mirror the correction made in autoconf.
73090
73091         * m4/gnu-source.m4: Output to confdefs.h directly.
73092         Suggestion from Akim Demaille.
73093
73094 2000-07-09  Paul Eggert  <eggert@twinsun.com>
73095
73096         The old behavior of quoting `like this' doesn't look good with
73097         newer, ISO-style fonts.  See:
73098         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
73099
73100         Instead, quote "like this" by default.  Let the translator
73101         tailor the locale-specific quoting behavior by providing
73102         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
73103
73104         * lib/quotearg.c (N_): New macro.
73105         (gettext_default): New function.
73106         (quotearg_buffer_restyled): Use
73107         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
73108         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
73109
73110 2000-07-09  Jim Meyering  <meyering@lucent.com>
73111
73112         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
73113         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
73114
73115         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
73116         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
73117
73118 2000-07-09  Jim Meyering  <meyering@lucent.com>
73119
73120         * lib/Most files: Update copyright dates to include 2000.
73121
73122 2000-07-08  Jim Meyering  <meyering@lucent.com>
73123
73124         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
73125         if not defined.
73126         (xgethostname): Remove now-unnecessary #ifdef.
73127         Move declaration of `err' into loop where it's used.
73128
73129 2000-07-05  Paul Eggert  <eggert@twinsun.com>
73130         and Bruno Haible  <haible@clisp.cons.org>
73131
73132         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
73133         only if the test for an object-type mbstate_t fails.  This
73134         prevents us from mistakenly reporting that mbstate_t is a
73135         system object type after we "#define mbstate_t int" to work
73136         around its lack.
73137
73138 2000-07-05  Paul Eggert  <eggert@twinsun.com>
73139         and Bruno Haible  <haible@clisp.cons.org>
73140
73141         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
73142
73143 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73144
73145         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
73146         to strerror_r.
73147         Include <ctype.h> for use of isalpha.
73148
73149 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73150
73151         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
73152         by allocating a larger buffer. Test the gethostname return value for
73153         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
73154         returns an error and ENAMETOOLONG isn't defined.
73155
73156 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73157
73158         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
73159         dimension.
73160
73161 2000-07-04  Jim Meyering  <meyering@lucent.com>
73162
73163         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
73164         of the deprecated AC_CHECKING.
73165
73166 2000-07-04  Jim Meyering  <meyering@lucent.com>
73167
73168         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
73169         Reported by Bruno Haible.
73170
73171 2000-07-04  Jim Meyering  <meyering@lucent.com>
73172
73173         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
73174         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
73175         lacks mbrtowc.
73176
73177 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73178
73179         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
73180         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
73181
73182 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73183         and Bruno Haible  <haible@clisp.cons.org>
73184
73185         * lib/quotearg.c (mbrtowc):
73186         Assign to *pwc, and return 1 only if result is nonzero.
73187         (iswprint): Use ISPRINT when substituting our own mbrtowc.
73188
73189 2000-07-03  Jim Meyering  <meyering@lucent.com>
73190
73191         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
73192
73193 2000-07-03  Jim Meyering  <meyering@lucent.com>
73194
73195         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
73196         This is necessary to get a definition of e.g., UTMP_FILE on
73197         HP-UX 10.20.
73198         From Bob Proulx.
73199
73200 2000-07-02  Jim Meyering  <meyering@lucent.com>
73201
73202         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
73203
73204         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
73205         AC_LIBOBJ(function_name).
73206         * m4/chown.m4: Likewise.
73207         * m4/fnmatch.m4: Likewise.
73208         * m4/ftruncate.m4: Likewise.
73209         * m4/getgroups.m4: Likewise.
73210         * m4/getline.m4: Likewise.
73211         * m4/group-member.m4: Likewise.
73212         * m4/jm-macros.m4: Likewise.
73213         * m4/lstat.m4: Likewise.
73214         * m4/malloc.m4: Likewise.
73215         * m4/memcmp.m4: Likewise.
73216         * m4/nanosleep.m4: Likewise.
73217         * m4/putenv.m4: Likewise.
73218         * m4/realloc.m4: Likewise.
73219         * m4/regex.m4: Likewise.
73220         * m4/stat.m4: Likewise.
73221         * m4/strftime.m4: Likewise.
73222
73223 2000-07-02  Jim Meyering  <meyering@lucent.com>
73224
73225         * lib/quotearg.c (mbstate_t): Don't define here.
73226
73227 2000-07-02  Jim Meyering  <meyering@lucent.com>
73228
73229         * lib/nanosleep.c (SIGCONT): Define if not already defined.
73230
73231 2000-07-01  Jim Meyering  <meyering@lucent.com>
73232
73233         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
73234
73235 2000-07-01  Jim Meyering  <meyering@lucent.com>
73236
73237         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
73238         problem.
73239
73240 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73241
73242         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
73243         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
73244
73245 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73246
73247         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
73248         per change in ../m4/ls-mntd-fs.m4.
73249         (read_filesystem_list): Ignore symbolic links.
73250
73251 2000-06-29  Jim Meyering  <meyering@lucent.com>
73252
73253         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
73254         for declaration of strcmp.
73255
73256         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
73257
73258         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
73259         Avoid warning by casting result to `char *' to remove `const'.
73260
73261 2000-06-28  Jim Meyering  <meyering@lucent.com>
73262
73263         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
73264         included by quotearg.c, for which we perform this test.  From
73265         Bruno Haible.
73266
73267 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73268
73269         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
73270         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
73271         <utmpx.h> exists, put readutmp.o into LIBOBJS.
73272
73273 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73274
73275         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
73276
73277 2000-06-26  Paul Eggert  <eggert@twinsun.com>
73278
73279         savedir now sets errno on failure and invokes xmalloc to get memory.
73280         Fix a couple of other minor bugs while we're at it.
73281
73282         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
73283         (NAMLEN): Remove macro.
73284         (malloc, realloc): Remove decls.
73285         (stpcpy): Likewise.
73286         ("xalloc.h"): Include.
73287         (NAME_SIZE_DEFAULT): New macro.
73288         (savedir): Use xmalloc / xrealloc to allocate memory.
73289         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
73290         Skip "" directory entries.
73291         Use strlen to calculate directory entry length, since the old method
73292         is rarely used these days and isn't worth supporting.
73293         Don't use a pointer after freeing it.
73294         Check for integer overflow when calculating allocation size.
73295         Use memcpy to copy entries, instead of stpcpy.
73296         Set errno properly when returning NULL.
73297         Check for readdir error.
73298
73299 2000-06-26  Jim Meyering  <meyering@lucent.com>
73300
73301         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
73302
73303 2000-06-25  Jim Meyering  <meyering@lucent.com>
73304
73305         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
73306         Linux header bug when _XOPEN_SOURCE is defined to 500.
73307
73308 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73309
73310         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
73311         deficiency.
73312
73313 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73314
73315         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
73316         Include xalloc.h.
73317         Don't include <stdlib.h>.  Don't declare malloc, realloc.
73318
73319 2000-06-24  Jim Meyering  <meyering@lucent.com>
73320
73321         * m4/strerror_r.m4: Revive this file -- to try out an experimental
73322         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
73323         for which strerror does return char*, but which lacks a conveniently
73324         accessible declaration of the function.  If the compile-test says
73325         strerror_r doesn't work, then resort to a `run'-test that works on
73326         BeOS and segfaults on DEC Unix.
73327
73328 2000-06-24  Jim Meyering  <meyering@lucent.com>
73329
73330         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
73331
73332 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73333
73334         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
73335         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
73336
73337 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73338
73339         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
73340         (mbrtowc, mbstate_t): Define substitutes if
73341         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
73342         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
73343         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
73344
73345 2000-06-23  Jim Meyering  <meyering@lucent.com>
73346
73347         * m4/afs.m4: Add missing AC_MSG_RESULT.
73348         Reported by Bruno Haible.
73349
73350         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
73351         Suggestion from Bruno Haible.
73352
73353 2000-06-23  Jim Meyering  <meyering@lucent.com>
73354
73355         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
73356
73357 2000-06-21  Jim Meyering  <meyering@lucent.com>
73358
73359         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
73360
73361 2000-06-21  Jim Meyering  <meyering@lucent.com>
73362
73363         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
73364         (noinst_HEADERS): Add getstr.h.
73365
73366         * lib/getline.c (getstr): Move into a separate file.
73367         * lib/getstr.c (getstr): New file, extracted from getline.c, with
73368         the following changes: new parameter, delim2; both delim[12]
73369         parameters have type `int', not `char'.  The latter would lose
73370         with 8-bit delimiters.
73371         * lib/getstr.h: New file.
73372
73373 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73374
73375         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
73376         than 1024, return a memory chunk of least possible size, instead
73377         of size PATH_MAX + 2. In the loop, increment the size proportionally.
73378         Use free/xmalloc instead of xrealloc to avoid copying for very long
73379         paths.
73380
73381 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73382
73383         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
73384         the empty string.
73385
73386 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73387
73388         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
73389         address, not strdup.  Include <stdlib.h> and don't declare free().
73390
73391 2000-06-19  Jim Meyering  <meyering@lucent.com>
73392
73393         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
73394
73395 2000-06-18  Jim Meyering  <meyering@lucent.com>
73396
73397         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
73398
73399         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
73400         `checking whether...' message to be consistent with that of the
73401         lstat test.
73402
73403 2000-06-18  Jim Meyering  <meyering@lucent.com>
73404
73405         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
73406         Besides, these days every porting target provides a mkdir function.
73407
73408         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
73409         needed. (this snippet comes from src/system.h).
73410
73411 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
73412
73413         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
73414
73415 2000-06-15  Paul Eggert  <eggert@twinsun.com>
73416
73417         * lib/human.c (adjust_value): New function.
73418         (human_readable_inexact): Apply rounding style even when
73419         printing approximate values.
73420
73421 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73422
73423         * lib/human.c (human_readable_inexact): Allow an input block
73424         size that is not a multiple of the output block size, and vice versa.
73425         Reported by Piergiorgio Sartor.
73426
73427 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73428
73429         * lib/getdate.y (get_date): Apply relative times after time
73430         zone indicator, not before.  Reported by Todd A. Jacobs.
73431
73432 2000-06-13  Jim Meyering  <meyering@lucent.com>
73433
73434         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
73435
73436         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
73437
73438 2000-06-12  Paul Eggert  <eggert@twinsun.com>
73439
73440         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
73441
73442 2000-06-12  Jim Meyering  <meyering@lucent.com>
73443
73444         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
73445         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
73446         optional argument.
73447         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
73448         the optional argument, `lib'.
73449
73450 2000-06-08  Jim Meyering  <meyering@lucent.com>
73451
73452         * m4/largefile.m4: Remove file (now that it's part of autoconf).
73453
73454 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73455
73456         Rewrite largefile configuration so that we don't need to run
73457         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
73458         AC_CANONICAL_HOST in configure.in -- jmm]
73459
73460         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
73461         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
73462         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
73463         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
73464         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
73465         All uses changed.
73466         Instead of inspecting the output of getconf, try to compile the
73467         test program without and with the macro definition.
73468         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
73469         for getconf.  Instead, check for the needed flags by compiling
73470         test programs.
73471
73472 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73473
73474         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
73475
73476 2000-06-04  Jim Meyering  <meyering@lucent.com>
73477
73478         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
73479         SunOS 4.1.4 for which gid_t is an unsigned type.
73480
73481 2000-06-03  Jim Meyering  <meyering@lucent.com>
73482
73483         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
73484         now that autoconf requires that.
73485
73486         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
73487         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
73488         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
73489
73490 2000-06-03  Jim Meyering  <meyering@lucent.com>
73491
73492         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
73493
73494 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73495
73496         * m4/glibc21.m4: New file.
73497         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
73498
73499 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73500
73501         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
73502         newer, don't install charset.alias.
73503         * lib/config.charset: Change the Linux/glibc rules so they become empty
73504         on glibc-2.1 or newer.
73505
73506 2000-06-02  Jim Meyering  <meyering@lucent.com>
73507
73508         * lib/mountlist.c: Back out last change.  Instead, do this...
73509         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
73510         me_dummy member using the same `ignore'-testing code.
73511         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
73512         fs_type strings.
73513         From Mark D. Roth.
73514
73515 2000-05-29  Jim Meyering  <meyering@lucent.com>
73516
73517         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
73518         mounts with the `ignore' attribute.  Based on a patch from
73519         Mark D. Roth.
73520
73521 2000-05-28  Jim Meyering  <meyering@lucent.com>
73522
73523         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
73524         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73525         * m4/stat.m4: Likewise.
73526         * m4/lstat.m4: Likewise.
73527         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
73528
73529         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
73530         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
73531
73532 2000-05-26  Jim Meyering  <meyering@lucent.com>
73533
73534         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
73535
73536 2000-05-24  Jim Meyering  <meyering@lucent.com>
73537
73538         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
73539         autoconf requires that.
73540         * m4/lib-check.m4: Likewise.
73541         * m4/jm-macros.m4: Likewise.
73542         * m4/strftime.m4: Likewise.
73543
73544         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
73545         AC_CHECK_DECLS, now that autoconf requires that.
73546
73547 2000-05-22  Jim Meyering  <meyering@lucent.com>
73548
73549         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73550         * m4/lstat.m4: Likewise.
73551
73552 2000-05-22  Jim Meyering  <meyering@lucent.com>
73553
73554         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
73555
73556 2000-05-20  Jim Meyering  <meyering@lucent.com>
73557
73558         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
73559         (jm_PREREQ): Use it.
73560
73561 2000-05-18  Jim Meyering  <meyering@lucent.com>
73562
73563         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
73564         back, too, since it may have been modified by allocate_entry.
73565         (hash_delete): Rewrite to use neither the assignment operator
73566         nor the comma operator in an if-expression.
73567
73568 2000-05-15  Paul Eggert  <eggert@twinsun.com>
73569
73570         * lib/closeout.c:
73571         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
73572         Remove; no longer needed.
73573         "quotearg.h": Add include.
73574         (file_name): Do not bother to explicitly initialize to NULL; it's less
73575         efficient on some hosts.
73576         (close_stdout_status): Remove test as to whether stdout was already
73577         closed; it breaks for the case "echo x | sort >&-".
73578         Quote file name colons.
73579         Do not assume that _("write error") lacks format strings.
73580
73581 2000-05-15  Jim Meyering  <meyering@lucent.com>
73582
73583         * lib/version-etc.c (version_etc_copyright): Update the copyright
73584         string used in all --version output.
73585
73586 2000-05-14  Jim Meyering  <meyering@lucent.com>
73587
73588         * lib/closeout.c (close_stdout_set_file_name): New function.
73589         (close_stdout_status): Use new file-scoped global.
73590         Return right away if fstat says the stdout file descriptor is invalid.
73591         * lib/closeout.h (close_stdout_set_file_name): Declare.
73592
73593 2000-05-10  Jim Meyering  <meyering@lucent.com>
73594
73595         * lib/closeout.c [default_exit_status]: New file-scoped variable.
73596         (close_stdout_set_status): New function.
73597         * lib/closeout.h (close_stdout_set_status): Declare.
73598
73599 2000-05-09  Jim Meyering  <meyering@lucent.com>
73600
73601         * m4/gettext.m4: Rename this...
73602         * m4/libintl.m4: ...to this.
73603
73604 2000-05-08  Jim Meyering  <meyering@lucent.com>
73605
73606         * lib/long-options.c: Don't include closeout.h.
73607         (parse_long_options): Don't call close_stdout for --version.
73608
73609 2000-05-06  Paul Eggert  <eggert@twinsun.com>
73610
73611         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
73612         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
73613         2.1.3 bug.  This avoids a clash when files like regex.c define
73614         _GNU_SOURCE.
73615
73616 2000-05-06  Jim Meyering  <meyering@lucent.com>
73617
73618         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
73619         (AC_REPLACE_FUNCS): Add strnlen.
73620
73621         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
73622         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
73623
73624         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
73625         AC_SEARCH_LIBS call for nanosleep.
73626         (LIB_NANOSLEEP): Set and AC_SUBST.
73627
73628 2000-05-06  Jim Meyering  <meyering@lucent.com>
73629
73630         * lib/strnlen.c: Undefine __strnlen and strnlen.
73631         [!weak_alias]: Define __strnlen to strnlen.
73632
73633         * lib/atexit.c: New file, from libiberty.
73634
73635 2000-05-06  Jim Meyering  <meyering@lucent.com>
73636
73637         * lib/closeout.c (close_stdout_status): Also check for errors on the
73638         stderr stream.
73639
73640 2000-05-05  Jim Meyering  <meyering@lucent.com>
73641
73642         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
73643         AC_SEARCH_LIBS call for clock_gettime.
73644         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
73645
73646         * m4/search-libs.m4: Update from autoconf.
73647
73648         su doesn't work on Solaris 2.6.
73649         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
73650         <shadow.h>.  Reported by Dragos Harabor.
73651
73652 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
73653
73654         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
73655         memcpy instead of xmalloc, xrealloc, path_concat.
73656         (locale_charset): Treat empty environment variables as absent.
73657         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
73658
73659 2000-05-04  Jim Meyering  <meyering@lucent.com>
73660
73661         * lib/getopt.c: Update from glibc.
73662         * lib/obstack.c: Likewise.
73663         * lib/obstack.h: Likewise.
73664         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
73665         file
73666
73667         * lib/regex.h: Likewise.
73668         * lib/strndup.c: Likewise.
73669         * lib/strnlen.c: New file, from glibc.
73670
73671 2000-05-03  Jim Meyering  <meyering@lucent.com>
73672
73673         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
73674
73675 2000-05-02  Paul Eggert  <eggert@twinsun.com>
73676
73677         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
73678         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
73679         compile-time test, rather than inspecting host and OS, to
73680         decide whether to define _LARGEFILE_SOURCE.
73681
73682 2000-05-01  Jim Meyering  <meyering@lucent.com>
73683
73684         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
73685
73686         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
73687         Based on a patch from Bruno Haible.
73688
73689 2000-05-01  Jim Meyering  <meyering@lucent.com>
73690
73691         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
73692
73693 2000-04-29  Jim Meyering  <meyering@lucent.com>
73694
73695         * lib/path-concat.c: Declare strdup only if it's not defined.
73696         * lib/canon-host.c: Likewise.
73697
73698 2000-04-28  Jim Meyering  <meyering@lucent.com>
73699
73700         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
73701         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
73702         is included first, then limits.h is included by locale.h by libintl.h.
73703         From John David Anglin.
73704
73705 2000-04-25  Jim Meyering  <meyering@lucent.com>
73706
73707         * lib/makepath.c (S_IRWXUGO): Define.
73708         (make_path): Always perform explicit chmod if MODE specifies any
73709         of the `special' permission bits.  Prompted by a bug report against
73710         install from Mate Wierdl and Joost van Baal.
73711
73712 2000-04-18  Jim Meyering  <meyering@lucent.com>
73713
73714         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
73715         (jm_PREREQ): Use it.
73716
73717 2000-04-18  Jim Meyering  <meyering@lucent.com>
73718
73719         * lib/README: New file.
73720
73721         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
73722         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
73723
73724 2000-04-17  Jim Meyering  <meyering@lucent.com>
73725
73726         Get it right :-)
73727         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
73728         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
73729         Suggestion from Akim Demaille.
73730
73731 2000-04-17  Jim Meyering  <meyering@lucent.com>
73732
73733         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
73734         the definition of it to rpl_strftime also defined-away the system's
73735         declaration.
73736
73737 2000-04-15  Jim Meyering  <meyering@lucent.com>
73738
73739         Use `C' to denote so-called `contiguous' files, the same way
73740         that tar does.
73741         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
73742         (ftypelet): Use S_ISCTG.
73743         From Michael Deutschmann.
73744
73745 2000-04-14  Jim Meyering  <meyering@lucent.com>
73746
73747         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
73748         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
73749         clobbered.
73750
73751 2000-04-14  Jim Meyering  <meyering@lucent.com>
73752
73753         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
73754
73755 2000-04-13  Jim Meyering  <meyering@lucent.com>
73756
73757         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
73758         AH_VERBATIM to insert required #ifndef into config.h.in.
73759         Suggestion from Akim Demaille.
73760
73761 2000-04-12  Jim Meyering  <meyering@lucent.com>
73762
73763         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
73764         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
73765         Christian Krackowizer.
73766
73767         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
73768         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
73769         (AC_SYS_LARGEFILE): Require.
73770         (AM_C_PROTOTYPES): Require.
73771
73772 2000-04-08  Jim Meyering  <meyering@lucent.com>
73773
73774         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
73775         names don't conflict.  Reported by Eli Zaretskii.
73776
73777 2000-04-07  Jim Meyering  <meyering@lucent.com>
73778
73779         * lib/putenv.c: Move inclusion of errno.h so it follows that of
73780         sys/types.h, to work around system header problems on AIX 3.2.5.
73781         From Bruno Haible.
73782
73783 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
73784
73785         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
73786         bug.  Deal with the different error behavior of Irix iconv.
73787
73788 2000-04-05  Paul Eggert  <eggert@twinsun.com>
73789
73790         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
73791         IRIX if the installer said otherwise.
73792
73793 2000-04-05  Jim Meyering  <meyering@lucent.com>
73794
73795         Portability tweaks required for ultrix4.3.
73796         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
73797         (jm_CHECK_DECLS): Add getutent to the list of functions.
73798         (_jm_DECL_HEADERS): Add utmpx.h.
73799         From John David Anglin.
73800
73801         * m4/strftime.m4: Back out the 2000-04-02 change.
73802         Instead of that change, simply undefine putenv in the test program.
73803
73804 2000-04-05  Jim Meyering  <meyering@lucent.com>
73805
73806         Portability tweaks required for ultrix4.3.
73807         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
73808         getutent.
73809         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
73810         * lib/canon-host.c: Declare strdup.
73811         * lib/path-concat.c: Likewise.
73812         From John David Anglin.
73813
73814 2000-04-04  Jim Meyering  <meyering@lucent.com>
73815
73816         Be more DOS 8.3-friendly.
73817         * lib/ref-add.sin: Renamed from ref-add.sed.in.
73818         * lib/ref-del.sin: Renamed from ref-del.sed.in.
73819         * lib/Makefile.am: Reflect renaming.
73820         Reported by Eli Zaretskii.
73821
73822         Use a temporary file name that won't clash with `charset.alias'
73823         in the DOS 8.3 name space.
73824         * lib/Makefile.am (charset_tmp): Define.
73825         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
73826         (uninstall-local): Likewise.
73827         Reported by Eli Zaretskii.
73828
73829 2000-04-03  Jim Meyering  <meyering@lucent.com>
73830
73831         * m4/gettext.m4: Fix typo in comment.
73832
73833         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
73834         textutils/configure.in).  Suggestion from Paul Eggert.
73835         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
73836
73837 2000-04-02  Paul Eggert  <eggert@twinsun.com>
73838
73839         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
73840         variable in the shell rather than using putenv, which isn't
73841         portable.  This avoids the configure-time inter-test dependency
73842         on the potentially-renamed putenv function.
73843
73844 2000-03-30  Paul Eggert  <eggert@twinsun.com>
73845
73846         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
73847         before checking struct stat.st_blksize, so that
73848         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
73849
73850 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73851
73852         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
73853         since strftime.c uses HAVE_STRFTIME to decide whether to use
73854         the underlying strftime.
73855
73856 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73857
73858         * lib/time/strftime.c (my_strftime): Make sure we call the system
73859         strftime, not ourselves, when invoking the underlying strftime.
73860
73861 2000-03-24  Jim Meyering  <meyering@lucent.com>
73862
73863         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
73864         (charset_alias): Define.
73865         (install-exec-local): Factor out common code.
73866         (uninstall-local): Split lines longer than 80.
73867         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
73868         (SUFFIXES): Define.
73869         (.sed.in.sed): New rule.  Don't redirect directly to $@.
73870         (CLEANFILES): Add ref-add.sed and ref-del.sed.
73871
73872 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
73873
73874         * lib/config.charset: Output a line containing "Packages using this
73875         file".
73876         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
73877         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
73878         ref-del.sed): New rules.
73879
73880 2000-03-17  Jim Meyering  <meyering@lucent.com>
73881
73882         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
73883         Otherwise, include <strings.h>
73884
73885 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
73886
73887         * lib/unicodeio.c (utf8_wctomb): New function.
73888         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
73889         format instead of in UCS-4 with platform dependent endianness.
73890
73891 2000-03-10  Jim Meyering  <meyering@lucent.com>
73892
73893         * m4/lib-check.m4: Look for getspnam in -lgen, too.
73894         From Marco Franzen.
73895
73896 2000-03-07  Paul Eggert  <eggert@twinsun.com>
73897
73898         * lib/savedir.c (savedir): Work even if directory size is
73899         negative; this can happen with some screwy NFS configurations.
73900
73901 2000-03-06  Jim Meyering  <meyering@lucent.com>
73902
73903         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
73904         if it's NULL (because we ran out of memory).  From Bruno Haible.
73905
73906 2000-03-05  Jim Meyering  <meyering@lucent.com>
73907
73908         * lib/localcharset.c ("path-concat.h"): Include.
73909         (get_charset_aliases): Use path_concat instead of ANSI string
73910         concatenation.
73911
73912         * lib/unicodeio.h (PARAMS): Define.
73913         Use it to guard prototype.
73914
73915 2000-03-04  Jim Meyering  <meyering@lucent.com>
73916
73917         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
73918         for lib/localcharset.c.
73919
73920 2000-03-04  Jim Meyering  <meyering@lucent.com>
73921
73922         * lib/Makefile.am (install-exec-local): Create $(libdir) before
73923         installing into it.
73924         (uninstall-local): Uncomment this rule so `make distcheck' works
73925         once again.
73926
73927         * lib/unicodeio.c (<errno.h>): Include it.
73928         (errno): Declare if not defined.
73929
73930         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
73931
73932         * lib/config.charset: New version, incorporating remarks from a linux
73933         i18n mailing list.  From Bruno Haible.
73934
73935 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
73936
73937         * m4/codeset.m4: New file.
73938         * m4/iconv.m4: New file.
73939         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
73940
73941 2000-03-03  Jim Meyering  <meyering@lucent.com>
73942
73943         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
73944
73945 2000-03-02  Jim Meyering  <meyering@lucent.com>
73946
73947         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
73948         the messages come out on separate lines.
73949
73950         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
73951         rather than jm_CHECK_DECLARATIONS.
73952         * m4/decl.m4: Remove now-unused file.
73953
73954         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
73955         geteuid.
73956
73957 2000-03-02  Jim Meyering  <meyering@lucent.com>
73958
73959         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
73960
73961 2000-03-01  Jim Meyering  <meyering@lucent.com>
73962
73963         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
73964         * lib/unicodeio.c: Likewise.
73965
73966 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
73967
73968         * lib/config.charset: New file.
73969         * lib/localcharset.c: New file.
73970         * lib/unicodeio.h, lib/unicodeio.c: New files.
73971         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
73972         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
73973         (noinst_HEADERS): Add unicodeio.h.
73974         (all-local, install-exec-local, charset.alias): New targets.
73975
73976 2000-02-28  Paul Eggert  <eggert@twinsun.com>
73977
73978         * lib/quotearg.c (ALERT_CHAR): New macro.
73979         (quotearg_buffer_restyled): Use it.
73980
73981 2000-02-27  Jim Meyering  <meyering@lucent.com>
73982
73983         * m4/check-decl.m4: Add getenv to the list.
73984
73985 2000-02-27  Jim Meyering  <meyering@lucent.com>
73986
73987         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
73988         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
73989
73990         * lib/backupfile.c: Guard inclusion of stdlib.h with
73991         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
73992         Declare malloc if needed.
73993
73994         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
73995         `#ifndef HAVE_DECL..'
73996         now that autoconf always defines the HAVE_DECL_ symbols.
73997         * lib/human.c: Likewise.
73998         * lib/same.c: Likewise.
73999         * lib/strtoumax.c: Likewise.
74000
74001         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
74002         declaration check was not run.
74003         * lib/hash.c: Likewise.
74004         * lib/human.c: Likewise.
74005         * lib/same.c: Likewise.
74006         * lib/strtoumax.c: Likewise.
74007
74008         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
74009         `.', then first look up the entire `.'-containing string as a login
74010         name.
74011
74012 2000-02-23  Jim Meyering  <meyering@lucent.com>
74013
74014         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
74015         in place of my hack.
74016
74017 2000-02-18  Paul Eggert  <eggert@twinsun.com>
74018
74019         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
74020         (textint): New typedef.
74021         (parser_control): Member year changed from int to textint.
74022         All uses changed.
74023         (YYSTYPE): Removed; replaced by %union with int and textint members.
74024         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
74025         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
74026         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
74027         (tSNUMBER, tUNUMBER): Now of type <textintval>.
74028         (date, number, to_year): Use width of number in digits, not its value,
74029         to determine whether it's a 2-digit year, or a 2-digit time.
74030         (yylex): Store number of digits of numeric tokens.
74031         Reported by John Kendall.
74032
74033         (parser_control): Changed from struct parser_control to typedef (for
74034         consistency).  All uses changed.
74035
74036         (tID): Removed; not used.
74037         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
74038
74039 2000-02-14  Paul Eggert  <eggert@twinsun.com>
74040
74041         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
74042         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
74043
74044 2000-02-12  Jim Meyering  <meyering@lucent.com>
74045
74046         * lib/userspec.c (ISDIGIT): Define it.
74047         (isdigit): Remove definition.
74048         (is_number): Use ISDIGIT, not isdigit.
74049         <libintl.h>: Include.
74050         (_ and N_): Define.
74051         (parse_user_spec): Mark translatable strings.
74052
74053 2000-02-10  Jim Meyering  <meyering@lucent.com>
74054
74055         With these changes, nanosleep.[ch] are finally enough like the other
74056         lib/* replacement files to compile on a few more losing systems.
74057
74058         * lib/nanosleep.h: Don't include config.h.
74059         Remove prototype from declaration of nanosleep.
74060         (PARAMS): Remove now-unneeded definition.
74061         * lib/nanosleep.c: #undef nanosleep.
74062         (rpl_nanosleep): Rename from nanosleep.
74063
74064 2000-02-10  Jim Meyering  <meyering@lucent.com>
74065
74066         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
74067         gnu_nanosleep to rpl_nanosleep.
74068
74069 2000-02-09  Jim Meyering  <meyering@lucent.com>
74070
74071         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
74072         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
74073
74074 2000-02-08  Akim Demaille  <akim@epita.fr>
74075
74076         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
74077         `[' and `]' and remove uses of `changequote'.
74078         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
74079         (AC_SYS_LARGEFILE): Likewise.
74080         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
74081         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
74082         of changequote.
74083         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
74084         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
74085         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
74086         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
74087
74088 2000-02-05  Jim Meyering  <meyering@lucent.com>
74089
74090         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
74091         Remove explicit use of AC_HEADER_TIME.  It is required by
74092         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
74093         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
74094         in autoconf whereby the expansion of the latter ended up preceding
74095         the expansion of its prerequisite, AC_HEADER_TIME.
74096         Reported by Volker Borchert.
74097
74098 2000-02-03  Jim Meyering  <meyering@lucent.com>
74099
74100         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
74101
74102 2000-02-03  Jim Meyering  <meyering@lucent.com>
74103
74104         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
74105         rather than with `#if HAVE_UTMPNAME'.
74106
74107 2000-02-02  Jim Meyering  <meyering@lucent.com>
74108
74109         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
74110         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
74111         Reported by Eli Zaretskii.
74112
74113 2000-02-01  Jim Meyering  <meyering@lucent.com>
74114
74115         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
74116
74117 2000-01-31  Jim Meyering  <meyering@lucent.com>
74118
74119         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
74120         functions.  Add the time.h and sys/time.h headers along with the
74121         AC_REQUIRE'ment of AC_HEADER_TIME.
74122
74123 2000-01-31  Jim Meyering  <meyering@lucent.com>
74124
74125         * lib/nanosleep.h (nanosleep): Guard declaration with
74126         `#if ! HAVE_DECL_NANOSLEEP'.
74127         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
74128         the declaration in that vendor's sys/timers.h.
74129         Reported by Christian Krackowizer.
74130
74131         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
74132         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
74133         (ISPRINT): Likewise.
74134         Reported by Tom Tromey.
74135
74136 2000-01-30  Jim Meyering  <meyering@lucent.com>
74137
74138         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
74139
74140         * m4/prereq.m4 (utmp_includes): Define.
74141         Check for ut_user and ut_name members in both struct utmpx
74142         and struct utmp.
74143
74144 2000-01-30  Jim Meyering  <meyering@lucent.com>
74145
74146         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
74147         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
74148         header files where only utmpx.ut_user is declared.
74149
74150         * lib/readutmp.h (UT_USER): Define.
74151
74152 2000-01-29  Jim Meyering  <meyering@lucent.com>
74153
74154         * m4/lib-check.m4: New file containing library-related checks from
74155         fileutils and sh-utils (textutils had none).
74156
74157 2000-01-28  Jim Meyering  <meyering@lucent.com>
74158
74159         * m4/perl.m4: Change format of warning message to look more like that
74160         from the missing script.  Suggestion from François Pinard.
74161
74162 2000-01-25  Jim Meyering  <meyering@lucent.com>
74163
74164         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
74165         well as time.h in the compile check.
74166         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
74167         Fix typo in cross-compiling case: s/yes/no/.
74168
74169 2000-01-23  Jim Meyering  <meyering@lucent.com>
74170
74171         * m4/jm-macros.m4: Move df-related tests here from
74172         fileutils/configure.in
74173
74174         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
74175         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
74176
74177         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
74178         s/space/ac_fsusage_space/.
74179         (jm_FILE_SYSTEM_USAGE): Take two parameters.
74180
74181         * m4/ftruncate.m4: New file (derived from part of
74182         fileutils/configure.in).
74183         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
74184         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
74185
74186         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
74187         AC_SUBST these here, rather than just in sh-util/configure.in, so
74188         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
74189         all the same.
74190         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
74191         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
74192         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
74193         (AC_SUBST(POW_LIBM)): Likewise.
74194         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
74195
74196 2000-01-23  Jim Meyering  <meyering@lucent.com>
74197
74198         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
74199         obstack.c.
74200
74201 2000-01-22  Jim Meyering  <meyering@lucent.com>
74202
74203         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
74204
74205         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
74206
74207         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
74208         configure.in
74209         (AC_CHECK_HEADERS): Likewise for sh-utils.
74210         (AC_CHECK_HEADERS): Likewise for textutils.
74211         Merge the three lists of headers.
74212
74213         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
74214         from fileutils' configure.in.
74215
74216         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
74217         code. Moved tests into their own function (_jm_DECL_HEADERS) in
74218         check-decl.m4.
74219
74220         * m4/check-decl.m4: Use #if rather than #ifdef.
74221         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
74222         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
74223         (_jm_DECL_HEADERS): Define new function.
74224         (jm_CHECK_DECLARATIONS): Require it.
74225
74226 2000-01-22  Jim Meyering  <meyering@lucent.com>
74227
74228         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
74229         [! HAVE_DECL_STRTOULL]: Declare strtoull.
74230         Required for some AIX systems.  Reported by Christian Krackowizer.
74231         [TESTING] (main): New function.
74232
74233         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
74234         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
74235         letters.
74236
74237         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
74238         iswprint.
74239
74240         * lib/strverscmp.c (ISDIGIT): Define.
74241         (strverscmp): Use ISDIGIT, not isdigit.
74242
74243 2000-01-19  Jim Meyering  <meyering@lucent.com>
74244
74245         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
74246         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
74247         defines `struct timespec' in <sys/time.h>
74248
74249         * m4/c-bs-a.m4: Remove uses of changequote altogether.
74250         Thanks to Akim for explaining.
74251
74252 2000-01-17  Paul Eggert  <eggert@twinsun.com>
74253
74254         * lib/nanosleep.c (nanosleep):
74255         Don't use SA_INTERRUPT to decide whether to call sigaction, as
74256         POSIX.1 doesn't require SA_INTERRUPT and some systems
74257         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
74258         it's been part of POSIX.1 since day 1 (in 1988).
74259
74260 2000-01-17  Jim Meyering  <meyering@lucent.com>
74261
74262         * lib/interlock: Remove unused file.  Reported by François Pinard.
74263
74264 2000-01-16  Paul Eggert  <eggert@twinsun.com>
74265
74266         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
74267         alert, backslash, formfeed, and vertical tab unnecessarily in
74268         shell quoting style.
74269
74270 2000-01-16  Jim Meyering  <meyering@lucent.com>
74271
74272         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
74273         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
74274         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
74275         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
74276
74277 2000-01-16  Jim Meyering  <meyering@lucent.com>
74278
74279         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
74280         because the latter didn't work.
74281
74282 2000-01-15  Jim Meyering  <meyering@lucent.com>
74283
74284         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
74285         (AC_REPLACE_FUNCS): Add memcpy and memset.
74286         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
74287         Add strpbrk.
74288         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
74289
74290 2000-01-12  Jim Meyering  <meyering@lucent.com>
74291
74292         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
74293         (jm_PREREQ): Use it.
74294         (jm_PREREQ_READUTMP): New macro.
74295         (jm_PREREQ): Use it.
74296
74297 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74298
74299         Quote multibyte characters correctly.
74300         * m4/c-bs-a.m4: New file.
74301         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
74302         (jm_PREREQ): Use it.
74303
74304 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74305
74306         * m4/uintmax_t.m4: Port to autoconf 2.13.
74307
74308 2000-01-08  Jim Meyering  <meyering@ascend.com>
74309
74310         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
74311         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
74312
74313 2000-01-04  Jim Meyering  <meyering@ascend.com>
74314
74315         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
74316         jm_STRUCT_DIRENT_D_TYPE.
74317         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
74318         jm_STRUCT_DIRENT_D_INO.
74319         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
74320         jm_STRUCT_UTIMBUF.
74321         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
74322         renamings.
74323         * m4/utime.m4: Likewise.
74324
74325         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
74326         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
74327
74328 2000-01-03  Paul Eggert  <eggert@twinsun.com>
74329
74330         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
74331         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
74332
74333 2000-01-02  Jim Meyering  <meyering@ascend.com>
74334
74335         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
74336         remember if this is necessary.
74337
74338 1999-12-26  Jim Meyering  <meyering@ascend.com>
74339
74340         * m4/jm-macros.m4: Use it here.
74341         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
74342
74343 1999-12-23  Jim Meyering  <meyering@ascend.com>
74344
74345         * m4/jm-macros.m4: Check for clock_gettime (moved from
74346         fileutils/configure.in)
74347         Check for gettimeofday.
74348
74349 1999-12-20  Jim Meyering  <meyering@ascend.com>
74350
74351         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
74352         autoconf-2.14a-1999-12-20.
74353
74354 1999-12-19  Jim Meyering  <meyering@ascend.com>
74355
74356         * m4/lstat-slash.m4: New file.
74357         * m4/jm-macros.m4: Use the new macro:
74358         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74359
74360 1999-12-07  Jim Meyering  <meyering@ascend.com>
74361
74362         * m4/perl.m4: Require that File::Compare be available, too.
74363         Too many systems seem to lack it.
74364
74365         * m4/strftime.m4: Add checks for most of the cpp macros tested in
74366         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
74367
74368 1999-11-18  Paul Eggert  <eggert@twinsun.com>
74369
74370         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
74371         problem with the QNX 4.25 shell, which doesn't propagate exit
74372         status of failed commands inside shell assignments.
74373
74374 1999-11-17  Jim Meyering  <meyering@ascend.com>
74375
74376         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
74377
74378 1999-11-07  Jim Meyering  <meyering@ascend.com>
74379
74380         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
74381
74382 1999-11-06  Jim Meyering  <meyering@ascend.com>
74383
74384         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
74385         * m4/jm-macros.m4 (jm_MACROS): Use it here.
74386
74387 1999-11-05  Jim Meyering  <meyering@ascend.com>
74388
74389         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
74390         configure.in of textutils, fileutils, and sh-utils into this one
74391         (shared between those packages) file.
74392         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
74393         AC_STRUCT_ST_BLKSIZE.
74394
74395 1999-11-03  Jim Meyering  <meyering@ascend.com>
74396
74397         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
74398         of AC_CHECK_TYPE checks includes unistd.h.
74399         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
74400         Suggestion from Akim Demaille.
74401
74402 1999-10-30  Jim Meyering  <meyering@ascend.com>
74403
74404         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
74405         m4-quoted string.
74406         * m4/ls-mntd-fs.m4: Likewise.
74407         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
74408         * m4/jm-winsz1.m4: Likewise.
74409
74410         * m4/const.m4: Remove file, since the fix made it into the experimental
74411         version of autoconf.
74412         * m4/mktime.m4: Likewise.
74413
74414         * m4/check-type.m4: Remove file, now that the latest version of
74415         AC_CHECK_TYPE takes a third arg to specify additional #includes.
74416
74417         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
74418         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
74419         AC_CHECK_TYPE.
74420
74421 1999-10-04  Jim Meyering  <meyering@ascend.com>
74422
74423         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
74424
74425 1999-09-22  Paul Eggert  <eggert@twinsun.com>
74426
74427         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
74428         2.95.1 bug with HP-UX 10.20.
74429
74430 1999-09-17  Jim Meyering  <meyering@ascend.com>
74431
74432         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
74433         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
74434         due to missing strdup (against sh-utils-2.0).
74435
74436 1999-08-29  Jim Meyering  <meyering@ascend.com>
74437
74438         * m4/jm-macros.m4: Require jm_BISON.
74439         * m4/bison.m4: New file.
74440
74441 1999-08-17  Paul Eggert  <eggert@twinsun.com>
74442
74443         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
74444         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
74445
74446 1999-08-05  Jim Meyering  <meyering@ascend.com>
74447
74448         * m4/getline.m4: Rename test file from conftestdata to conftest.data
74449         to avoid conflicts with `conftest' on 8+3 filesystems.
74450         Suggestion from Eli Zaretskii.
74451
74452 1999-08-04  Jim Meyering  <meyering@ascend.com>
74453
74454         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
74455         fileutils and sh-utils (textutils's getline test was inadequate).
74456         (AM_FUNC_GETLINE): Run this test.
74457         (AC_CHECK_FUNCS): Check for getdelim.
74458         Reported by Bob Proulx.
74459
74460 1999-08-02  Jim Meyering  <meyering@ascend.com>
74461
74462         * m4/jm-macros.m4: Add a comment.
74463
74464 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74465
74466         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
74467         <inttypes.h> defines strtoumax as a macro (and not as a
74468         function).
74469
74470 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74471
74472         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
74473         that we can shift, multiply and divide unsigned long long
74474         values; Ultrix cc can't do it.
74475
74476 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74477
74478         * m4/mktime.m4: New file, which is a preview of what should appear
74479         in the next public autoconf release.
74480
74481 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74482
74483         * m4/lfs.m4: Remove this file.
74484         * m4/largefile.m4: New file.  It contains the old contents of
74485         lfs.m4, except that all names with prefix AC_LFS have been
74486         changed to use the prefix AC_SYS_LARGEFILE instead, to be
74487         compatible with future autoconf versions.  Also, some minor m4
74488         quoting problems have been fixed.
74489
74490 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74491
74492         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
74493         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
74494         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
74495         and simplify the shell code.
74496
74497 1999-08-01  Jim Meyering  <meyering@ascend.com>
74498
74499         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
74500         m4.
74501
74502 1999-07-20  Jim Meyering  <meyering@ascend.com>
74503
74504         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
74505
74506 1999-07-15  Jim Meyering  <meyering@ascend.com>
74507
74508         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
74509
74510 1999-05-22  Jim Meyering  <meyering@ascend.com>
74511
74512         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
74513
74514 1999-05-20  Jim Meyering  <meyering@ascend.com>
74515
74516         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
74517         Add a colon after each `then' in case $4 is empty.
74518
74519 1999-05-16  Jim Meyering  <meyering@ascend.com>
74520
74521         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
74522
74523 1999-05-10  Jim Meyering  <meyering@ascend.com>
74524
74525         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
74526
74527         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
74528         AC_FUNC_MKTIME.
74529
74530 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
74531
74532         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
74533
74534 1999-05-04  Paul Eggert  <eggert@twinsun.com>
74535
74536         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
74537         not CPPFLAGS, so that linking works correctly in IRIX.
74538
74539 1999-04-30  Paul Eggert  <eggert@twinsun.com>
74540
74541         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
74542
74543 1999-04-20  Paul Eggert  <eggert@twinsun.com>
74544
74545         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
74546         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
74547         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
74548         jm_AC_TYPE_UNSIGNED_LONG_LONG.
74549         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
74550
74551         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
74552
74553 1999-04-20  Jim Meyering  <meyering@ascend.com>
74554
74555         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
74556         AC_REPLACE xstroull if necessary.  From Paul Eggert.
74557         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
74558
74559 1999-04-18  Jim Meyering  <meyering@ascend.com>
74560
74561         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
74562         * m4/jm-macros.m4: Use it.
74563
74564 1999-04-06  Jim Meyering  <meyering@ascend.com>
74565
74566         * m4/strftime.m4: Remove test for %f.
74567
74568 1999-03-29  Jim Meyering  <meyering@ascend.com>
74569
74570         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
74571         superset of the AC_TYPE_* checks in the textutils, fileutils,
74572         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
74573         AC_TYPE_PID_T.
74574
74575 1999-03-28  Jim Meyering  <meyering@ascend.com>
74576
74577         * m4/jm-macros.m4: Define GNU_PACKAGE here.
74578         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
74579         replaced e.g., in the *.sh files of the sh-utils.
74580
74581 1999-03-20  Jim Meyering  <meyering@ascend.com>
74582
74583         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
74584         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
74585         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
74586
74587 1999-03-19  Jim Meyering  <meyering@ascend.com>
74588
74589         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
74590
74591 1999-03-12  Jim Meyering  <meyering@ascend.com>
74592
74593         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
74594
74595 1999-03-07  Jim Meyering  <meyering@ascend.com>
74596
74597         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
74598         declared.
74599
74600 1999-02-17  Jim Meyering  <meyering@ascend.com>
74601
74602         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
74603         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
74604
74605 1999-02-07  Jim Meyering  <meyering@ascend.com>
74606
74607         * m4/group-member.m4: New file -- extracted from sh-utils'
74608         configure.in.
74609
74610         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
74611         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
74612
74613 1999-02-06  Jim Meyering  <meyering@ascend.com>
74614
74615         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
74616         * m4/fnmatch.m4: Likewise.
74617         * m4/getgroups.m4: Likewise.
74618         * m4/lstat.m4: Likewise.
74619         * m4/malloc.m4: Likewise.
74620         * m4/putenv.m4: Likewise.
74621         * m4/realloc.m4: Likewise.
74622         * m4/regex.m4: Likewise.
74623         * m4/stat.m4: Likewise.
74624         * m4/strftime.m4: Likewise.
74625         Suggestion from Alain Magloire.
74626
74627         * m4/chown.m4: Use `.$ac_objext', not `.o'.
74628         * m4/fnmatch.m4: Likewise.
74629         * m4/getgroups.m4: Likewise.
74630         * m4/getline.m4: Likewise.
74631         * m4/lstat.m4: Likewise.
74632         * m4/malloc.m4: Likewise.
74633         * m4/memcmp.m4: Likewise.
74634         * m4/putenv.m4: Likewise.
74635         * m4/realloc.m4: Likewise.
74636         * m4/regex.m4: Likewise.
74637         * m4/stat.m4: Likewise.
74638         * m4/strftime.m4: Likewise.
74639         Suggestion from Alain Magloire.
74640
74641         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
74642         an argument.
74643
74644         * m4/regex.m4: Add a run-time Test for proper operation of
74645         re_compile_pattern.
74646
74647 1999-01-31  Jim Meyering  <meyering@ascend.com>
74648
74649         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
74650
74651 1999-01-30  Jim Meyering  <meyering@ascend.com>
74652
74653         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
74654
74655         * m4/jm-mktime.m4: Make this a wrapper around the official
74656         AM_FUNC_MKTIME rather than my private copy, now that the official one
74657         is up to date.
74658         * m4/mktime.m4: Remove file.
74659
74660         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
74661         * m4/uptime.m4: Likewise.
74662         * m4/uintmax_t.m4: Likewise.
74663
74664 1999-01-28  Jim Meyering  <meyering@ascend.com>
74665
74666         * m4/jm-macros.m4: Use jm_AFS.
74667         * m4/afs.m4: New file (from fileutils' configure.in).
74668
74669         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
74670         * m4/chown.m4: Likewise.
74671         * m4/d-ino.m4: Likewise.
74672         * m4/d-type.m4: Likewise.
74673         * m4/fnmatch.m4: Likewise.
74674         * m4/getgroups.m4: Likewise.
74675         * m4/gettext.m4: Likewise.
74676         * m4/jm-mktime.m4: Likewise.
74677         * m4/jm-winsz2.m4: Likewise.
74678         * m4/lcmessage.m4: Likewise.
74679         * m4/ls-mntd-fs.m4: Likewise.
74680         * m4/malloc.m4: Likewise.
74681         * m4/memcmp.m4: Likewise.
74682         * m4/putenv.m4: Likewise.
74683         * m4/realloc.m4: Likewise.
74684         * m4/st_mtim.m4: Likewise.
74685         * m4/strftime.m4: Likewise.
74686
74687 1999-01-16  Jim Meyering  <meyering@ascend.com>
74688
74689         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
74690         (ARGMATCH_DIE_DECL): Define.
74691
74692 1999-01-12  Jim Meyering  <meyering@ascend.com>
74693
74694         * m4/Makefile.am.in: Rewrite to avoid using fmt.
74695         Reported by Lars Hecking.
74696
74697 1999-01-10  Jim Meyering  <meyering@ascend.com>
74698
74699         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
74700         gross kludge.
74701         * m4/inttypes_h.m4: Likewise.
74702         * m4/lstat.m4: Likewise.
74703         * m4/malloc.m4: Likewise.
74704         * m4/readdir.m4: Likewise.
74705         * m4/realloc.m4: Likewise.
74706         * m4/st_dm_mode.m4: Likewise.
74707         * m4/stat.m4: Likewise.
74708         * m4/utimbuf.m4: Likewise.
74709         * m4/utimes.m4: Likewise.
74710
74711         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
74712         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
74713         comments in config.h.in are meaningful.
74714
74715         * m4/jm-macros.m4: Require autoconf-2.13 here.
74716
74717         * m4/regex.m4: By default, don't use the included regex.c on systems
74718         with glibc 2.  Suggestion from Uli Drepper.
74719
74720 1999-01-02  Jim Meyering  <meyering@ascend.com>
74721
74722         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
74723
74724 1998-12-18  Jim Meyering  <meyering@ascend.com>
74725
74726         * m4/Makefile.am.in (Makefile.am): Simplify rule.
74727         Based on a suggestion from Lars Hecking.
74728
74729 1998-11-16  Paul Eggert  <eggert@twinsun.com>
74730
74731         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
74732
74733 1998-11-16  Jim Meyering  <meyering@ascend.com>
74734
74735         * m4/lfs.m4: Double-quote the `uname...` expression.
74736
74737 1998-11-14  Jim Meyering  <meyering@ascend.com>
74738
74739         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
74740         * m4/stat.m4: Likewise.
74741
74742 1998-11-03  Jim Meyering  <meyering@ascend.com>
74743
74744         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
74745         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
74746
74747 1998-10-18  Jim Meyering  <meyering@ascend.com>
74748
74749         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
74750
74751 1998-10-17  Jim Meyering  <meyering@ascend.com>
74752
74753         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
74754         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
74755         calls for those previously hard-coded headers.  Instead, take a new
74756         parameter.
74757         (jm_CHECK_DECLARATIONS): Reflect interface change.
74758         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
74759         (jm_CHECK_DECL_LOCALTIME_R): New macro.
74760
74761         * m4/mktime.m4: Test for spring-forward gap before long-running test.
74762
74763 1998-10-14  Jim Meyering  <meyering@ascend.com>
74764
74765         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
74766         instead of "TZ=America/Vancouver".  From Paul Eggert.
74767
74768 1998-10-11  Jim Meyering  <meyering@ascend.com>
74769
74770         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
74771         This adds a test for a recently added compatibility fix for mktime.c.
74772         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
74773
74774 1998-09-27  Jim Meyering  <meyering@ascend.com>
74775
74776         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
74777
74778         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
74779         ../configure.in, including a change from Gordon Matzigkeit to allow
74780         cross-compiling for the Hurd.
74781
74782         * m4/glibc.m4: New file/macro to test for the GNU C Library
74783         versions 1 and 2.  From Gordon Matzigkeit.
74784         Indent.
74785
74786 1998-09-21  Jim Meyering  <meyering@ascend.com>
74787
74788         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
74789
74790 1998-08-18  Paul Eggert  <eggert@twinsun.com>
74791
74792         Port nanosecond-resolution times to UnixWare 2.1.2 and
74793         pedantic Solaris 2.6.
74794
74795         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
74796         AC_STRUCT_ST_MTIM.
74797         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
74798         Generate name of ns member, instead of just 1 or undef.
74799         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
74800
74801 1998-08-15  Jim Meyering  <meyering@ascend.com>
74802
74803         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
74804         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
74805         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
74806         instead of jm_TYPE_SSIZE_T.
74807
74808 1998-08-12  Jim Meyering  <meyering@ascend.com>
74809
74810         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
74811
74812 1998-08-02  Jim Meyering  <meyering@ascend.com>
74813
74814         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
74815         in acconfig.h manually.
74816
74817 1998-07-31  Paul Eggert  <eggert@twinsun.com>
74818
74819         * m4/st_mtim.m4: New file.
74820
74821 1998-07-28  Jim Meyering  <meyering@ascend.com>
74822
74823         * m4/utimes.m4: Undef stat.
74824
74825 1998-07-25  Jim Meyering  <meyering@ascend.com>
74826
74827         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
74828         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
74829
74830 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
74831
74832         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
74833         uid and gid actually remain unchanged.
74834
74835 1998-07-07  Jim Meyering  <meyering@ascend.com>
74836
74837         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
74838
74839 1998-07-04  Jim Meyering  <meyering@ascend.com>
74840
74841         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
74842         to prove that this macro can be used in packages without regex.c.
74843
74844 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
74845
74846         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
74847         is to be used.
74848
74849 1998-07-03  Jim Meyering  <meyering@ascend.com>
74850
74851         * m4/gettext.m4: Add -lintl if it's found to be necessary.
74852
74853         * m4/gettext.m4: New file -- from gettext-0.10.35.
74854         * m4/lcmessage.m4: Likewise.
74855         * m4/progtest.m4: Likewise.
74856
74857         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
74858         * m4/jm-macros.m4: Require the new macro.
74859
74860 1998-06-29  Jim Meyering  <meyering@ascend.com>
74861
74862         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
74863         for the definition of NGROUPS (used in a system header included
74864         by sys/mount.h).
74865
74866 1998-06-28  Jim Meyering  <meyering@ascend.com>
74867
74868         * m4/ls-mntd-fs.m4: New file.
74869         * m4/fstypename.m4: New file.
74870
74871         * m4/jm-macros.m4: Require the new macro.
74872         * m4/jm-glibc-io.m4: New file.
74873
74874 1998-05-19  Jim Meyering  <meyering@ascend.com>
74875
74876         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
74877         * m4/lchown.m4: New file.
74878
74879         * m4/Makefile.am.in: New file.
74880         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
74881
74882 1998-05-14  Jim Meyering  <meyering@ascend.com>
74883
74884         * m4/Makefile.am (EXTRA_DIST): Add them.
74885         * m4/jm-macros.m4: New file.
74886         * m4/utimbuf.m4: New file.
74887
74888 1998-05-12  Jim Meyering  <meyering@ascend.com>
74889
74890         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
74891
74892 1998-05-11  Jim Meyering  <meyering@ascend.com>
74893
74894         * m4/isc-posix.m4: New file.
74895
74896 1998-05-10  Jim Meyering  <meyering@ascend.com>
74897
74898         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
74899
74900 1998-05-09  Jim Meyering  <meyering@ascend.com>
74901
74902         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
74903         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
74904         with automake.
74905
74906         * m4/ssize_t.m4: New file.
74907         * m4/mktime.m4: Remove file -- the new automake has this now.
74908
74909 1998-04-26  Jim Meyering  <meyering@ascend.com>
74910
74911         * m4/assert.m4: New file.
74912         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
74913
74914 1998-04-05  Jim Meyering  <meyering@ascend.com>
74915
74916         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
74917         (jm_PREREQ): Use it here.
74918
74919 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
74920
74921         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
74922         in acconfig.h.
74923
74924 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
74925
74926         * m4/prereq.m4: New file.
74927         * m4/error.m4: New file.
74928         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
74929
74930 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
74931
74932         * m4/getline.m4: Don't set am_cv_func_working_getline before the
74933         cache-check for the same variable -- that defeated the purpose of
74934         the test; the test program was never run.  This was a problem only
74935         on systems with losing getline functions -- HP-UX 10.20 is one.
74936         Reported by Bjorn Helgaas.
74937
74938 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
74939
74940         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
74941
74942 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
74943
74944         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
74945
74946         * m4/const.m4: New file.  Use an initializer in this declaration
74947         typedef int charset[2]; const charset x;
74948         Reported by Bob Glickstein.
74949
74950 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
74951
74952         * m4/chown.m4: Fix reversed types on -1 args to chown.
74953         From Kaveh Ghazi.
74954
74955 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
74956
74957         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
74958         Add lseek and memchr.
74959
74960         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
74961         T.E.Dickey <dickey@clark.net> said that some older preprocessors
74962         have a 20-character limit on names.
74963
74964 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
74965
74966         * m4/inttypes_h.m4: New file.
74967         * m4/uintmax_t.m4: New file.
74968         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
74969
74970
74971         -----
74972
74973         Local Variables:
74974         coding: utf-8
74975         End:
74976
74977         Copyright (C) 1997-2011 Free Software Foundation, Inc.
74978
74979         Copying and distribution of this file, with or without
74980         modification, are permitted provided the copyright notice
74981         and this notice are preserved.